#i want when npc die script working

30 messages · Page 1 of 1 (latest)

stable raft
#

Its cuz the script checks if the hit part belongs to a player

#

And an Npc isn't a player

#

So it'll glitch

#

Instead you should check if it has a humanoid

hearty totem
#

yeah pls make my script :(((((

tribal pelican
weak parcelBOT
#

studio** You are now Level 3! **studio

tribal pelican
#

before local plr, do if hit.Parent:FindFirstChild("Humanoid") then bla bla bla

hearty totem
#

i just can edit numbers in scripts

#

pls help

#

@tribal pelican

tribal pelican
#

I did

#

check if the thing that touched the part is a NPC / Player

hearty totem
#

no no, i want when npc die, its work

#

its give skill

tribal pelican
#

well there's no .Died functions in there

hearty totem
#

bro i'm so noob

#

i dont know how to scripting

tribal pelican
#

u just need to watch videos on scripting instead of ppl doing it 4 u

#

also its rly easy to fix that script

#

instead of checking if the hit.Parent is a plr check if its not a plr and it has a Humanoid

hearty totem
#

bro can you complite it now? i so much need it now

weak parcelBOT
#

studio** You are now Level 4! **studio

tribal pelican
#

Just spend your time on scripting rn instead of asking me to do it

hearty totem
#

Because my language is not English
And learning scripting is a disaster for me
That's why I'm here asking for help

tribal pelican
#

your language doesnt change anything

#

its the same muscle memory

stable raft