Hi. How would I Respawn a Player with a LocalScript? I can't use a Normal Script because of other reasons, so it needs to be a LocalScript. I tried random stuff like putting a respawn script inside the LocalScript, then making it'd Disabled false, but it only works on Studios. So, is it even possible to respawn someone with a LocalScript?
Make a LocalScript in StarterGui:
1 | local player = game:GetService( "Players" ).LocalPlayer |
2 |
3 | wait( 10 ) |
4 | player:LoadCharacter() -- respawn the character |
1 | local plr = game.Players:Getchildren() --Get Children |
2 | wait( 10 ) --Wait 10 Seconds |
3 | for I = 1 , #plr do --This Will Select Everything That Is In Players |
4 | plr [ I ] :LoadCharacter() --You Know This |
5 | end -- End Line 3 |