Cant Get My Heath Script working

I have been trying to get this working for a while now and I can’t

seem to get it working. Does anyone have any ideas?

2 Likes

Any errors? What are you trying to do?

Edit, at line 4, it should be :FindFirstChild("Humanoid"), not .FindFirstChild("Humanoid").

1 Like

Basically what its meant to do is when a player walks into the object I created it will give then health. then the object will vanish along with the particles coming out of the object. I have no idea why its not working

1 Like

Alrighty, I will try and help. Could you do what my edit said and then tell me what happens? Also, under view, turn on the output window and let me know if there are any lines in red or orange.

I turned on Output and it says theirs no errors

Try playtesting and touching the part.

:FindFirstChild(), not .FindFirstChild()

check if it fixes it.

1 Like

How did I miss that. Thank you so much. Sorry im really new at Lua

1 Like

we all were there, don’t worry about it. the syntax can be annoying.

2 Likes