Error: Parent is not a valid member
script.Parent.Parent.MouseButton1Down:connect(function() local Player = game.Players.PlayerAdded script.Parent.Text = "Muahahaha, I hope you learned a lesson >:P" Player.Parent.Humanoid.Health = 0 end)
Wow, this is terrible, you don't know even how to script.
script.Parent.Parent.MouseButton1Down:connect(function() local Player = game.Players.PlayerAdded--How does that define Player?? script.Parent.Text = "Muahahaha, I hope you learned a lesson >:P" Player.Parent.Humanoid.Health = 0 end)
It should be,
game.Players.PlayerAdded:connect(function(p) Player = p--It doesn't need a local, I know it has blue under it, but who cares? end script.Parent.Parent.MouseButton1Down:connect(function() Player.Character.Humanoid.Health = 0 script.Parent.Text = "Muahahaha, I hope you learned a lesson >:P" end)
Please do not give me bad rep for this, I am just answering someone who doesn't know scripting very well.