#How do i fix this error
1 messages · Page 1 of 1 (latest)
Is your hitbox not checking to make sure you're actively swinging?
it works
just the error is
respawn system
i took the quest
killed them once
took again
and killed
they got registered as 2
but it should be as 1
and got spawned as 2
@nimble dawn
not the error i have used raycast in dmg as 100
Oh, it wasn't very self explanatory because the video was a bit tiny and pixelated.
We need to see code
It looks like you connect to the died event when a child is added to npcFolder and after you respawn in respawnNPC
yeah
Just pick one place to connect to the died event
u call humanoid.died multiple times
suggest for me i am coming back to scripting after a year
"Just pick one place to connect to the died event, not two" is my suggestion
tell me whcih one...
Is it that hard to decide...?
Keep the ChildAdded one I guess
Ah okay remove the ChildAdded one and keep the other one. I guess that makes more sense.
u fixed the over lap but not this problem @nimble dawn
it should give one kill
it give 2
or 3
Where is the code that does that? Actually increases that number?
I meant like show me that.


are you sure you reset the players progress, or remove the previous quest or stuff like that
yes
@brave wing
help me
😭
my brain is ded
u are my saviour
try printing what the progress is at like every moment so u can find out where the error stems from

ill try
yes
it still not working
i added print
statements
but it still doest work
it works fully
but the error or bug is still there
@brave wing
** You are now Level 14! **
yeah
ok send code
The print statements were there to help you debug and figure out where it's going wrong
what is broken rn, the respawning or quest
its printing everything
the thing broken is the quest
it respawns
like i killed them once
i like 1 npc once
it register as 1
in the quest
i.e
1/5
when i kill that npc again
it doubles
3/5
i wanna fix it
i think this is wrong script then if the quest thing is borken
its correct?
ill send the main script
@brave wing
when the npcs die does it print twice or anything
connecting humanoid.died more than once (again)
Help me bro
😭
@vast ibex
When I kill once a npc it prints once when I kill again it still print once
U plz save me
I have tried over 2+ or 3+ hrs
aren't you s1?
U last hope pyro
Left scripting 4 months ago
imposter! 😱
Plz save mw
pay or read the docs https://create.roblox.com/docs/scripting/events
you made the same error twice - you learned nothing. i see no benefit to anyone spoonfeeding you working code. that's not help. that's free labor.
What's the same error?
If I remove one of those it won't work
oh, well then, that's every reason to simply stop working on it and beg people to "save you".
Correct
well since that happens try recoding it entirely with a different approach and a new mindset, that helps sometimes