It is just a simple Gui that makes you reset, but I need it to be filtering enabled.

script.Parent.MouseButton1Click:connect(function()
	script.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0
end)

Can someone please help me?

Thank you.

3 comments

0

Instead of so many script.Parents, I recommend using LocalPlayer. http://robloxdev.com/api-reference/property/Players/LocalPlayer

0

Thank you, I will try that.

0

If you're using this on a Local script, then you don't need to convert it to filtering enabled. It will replicate if it's only affecting the LocalPlayer