look
function death(hum)
hum.Health = 0
end)
whenever i call it it errors wierd
look
function death(hum)
hum.Health = 0
end)
whenever i call it it errors wierd
This is very vague. Can you please show the error in the output as well as how/when you’re calling the function?
Are you calling it from a server script? What’s it look like in explorer?
I have fix:
function death(hum:Humanoid)
hum.Health = 0
end)
there that’ll fi\x
sure mate
death(game.Players.LocalPlayer.Character.Humanoid)
no localscript
it still dosent work
When are you trying to call the function?
i put a task.wait(2) before calling function
Have you tried hum:Kill() ? And if health isn’t getting destroyed, try printing the hum right before!
Before calling the function, do a check to make sure that the Character isn’t nil.
Try putting assert(false) before it, if you like the color red.
FIX
function death(hum)
hum.Health = 0
end
u added ) at the end when u shouldn’t add that there
i put print and it not nil llll
imma try it now thxhhhhhhhhhhhhhhhc
what does that do
oh, i did a stupid mistake, thx