So I've been trying to make a reset character so I tried one script but it didnt work. I tried another one, and, it worked. But heres the thing, what I have realized is that the scripts reference the same things! Take a look:
script.Parent.MouseButton1Click:Connect(function() game.Players.LocalPlayer.Character.Humanoid.Health = 0 end)
This one doesn't work
script.Parent.MouseButton1Click:Connect(function() script.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0 end)
This one works
Any reasoning?