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

Respawning vs Reseting?

Asked by
Tor6 0
10 years ago

Is there a way to respawn your character like what you would find in, The Mad Murderer. Rather than reseting your character (by scripting at the end of your round fro each player to have 0 health)?

1 answer

Log in to vote
2
Answered by 10 years ago

There is a wonderful alternative called LoadCharacter. Here is a usage of it:

function Respawn()
    for i, v in pairs(game.Players:GetChildren())  do
        v:LoadCharacter()
    end
end
Respawn()

See? Very simple.

0
k thx! Tor6 0 — 10y
Ad

Answer this question