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

How to avoid player respawning?

Asked by 5 years ago

Basically when a player's Humanoid gets destroyed, their character enters the following 'punished' state: Image. Soon after that, their character gets removed and a regular new one is spawned.

Is there a way to stop this respawning from happening and instead have the player's character stay on the 'punished' state previously mentioned?

Thanks in advance.

1
I mean this is something I'd do but, you could try cloning the punished model and use camera manipulation to focus the camera The_Pr0fessor 595 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago

You can set the Player.CharacterAutoLoads property to false. From there, make this server script:

game.Players.PlayerAdded:Connect(function(Player)
    Player:LoadCharacter()
end)

This makes the Characrer load once when joining. However, because CharacterAutoLoads is false, they will not respawn after dying.

If this helped, make sure to upvote/accept! Thank you!

0
Thanks, it did work! Le_Teapots 913 — 5y
Ad

Answer this question