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.
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
Instead of so many
script.Parents, I recommend usingLocalPlayer. http://robloxdev.com/api-reference/property/Players/LocalPlayerThank you, I will try that.
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