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

Is there a Wiki or tutorial on how to reload/Re-spawn a players character?

Asked by 6 years ago

I need to re-spawn/re-load a player's character without adding to their death total on a leader board. Can someone leave a link to a Wiki or tutorial on how to do this? I couldn't find any.

(I know, it's sad that I don't know how to do this. But hey, I'm new)

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

There is, it's called loadcharacter

http://wiki.roblox.com/index.php?title=API:Class/Player/LoadCharacter

If it adds to the death leaderstats do this

for i,v in pairs(game.Players:GetPlayers()) do
    v.leaderstats.deaths = v.leaderstats.deaths - 1 -- you might want to edit this if it isn't called leaderstats or the death isn't called death
end
Ad

Answer this question