Wow, this is terrible, you don't know even how to script.
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)
It should be,
game.Players.PlayerAdded:connect(function(p)
Player = p
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.
4 comments
WHat is this a hopperbin or tool?
This is in workspace. There is a part and in the part they have a surfacegui then TextButton then TextLabel then Script
Is this a local script or just a script?
script