Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I make a player unresetable?

Asked by
Azmidium 388 Moderation Voter
9 years ago

I am making a game, but when the player resets it will completely BREAK the game. I am trying to make a script where you can't reset the player so I tried this.

game.Players.PlayerAdded:connect(function(plr)
    plr.Character.Humanoid.MaxHealth = 0
    plr.Character.Humanoid.Health = 0
end)

The code above only removed the player from the Workspace, or from the game. Is there a proper way to do this?

1 answer

Log in to vote
0
Answered by 9 years ago

I think you can rename their Humanoid..

game.Players.PlayerAdded:connect(function()
    game.Players.LocalPlayer.Character.Humanoid.Name = "NoReset"
end)

Localscript

Ad

Answer this question