game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if msg == "reset" then
player.Humanoid.Health = 0
end
end)
end)
✓ ANSWER ACCEPTED
This is a script where when you chat "reset" it kills u. Help?
2 answers
✓ Accepted answer
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
player.Chatted:connect(function(msg)
if msg == "reset" then
char.Humanoid.Health = 0
end
end)
end)
end)
I dont really know if this gonna work.
I'm still figuring out this kind of thing myself, but I think I'd probly do this;
game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if msg == "reset" then
player.Charcter:BreakJoints()
end
end)
end)
Sorry if this wasn't what you were looking for.
This discussion is preserved as it was. New answers, comments, and votes are closed.
