New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

Respawning vs Reseting?

Asked by
Tor6 0
6 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 6 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 — 6y
Ad

Answer this question