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

Can't reload a player's character, I'm not sure how, help?

Asked by 5 years ago
Edited 5 years ago

I've been trying for a hour to re-spawn/re-load a character. Basically, I need the players to re-spawn at the new spawns, but I want to avoid just setting their health to 0 because the death animation will look tacky and unprofessional.

The script is really long so here is the small part I'm having trouble with.

Code:

     game.Workspace.Lobby.LobbySpawns.Parent = game.ReplicatedStorage 
    wait(1)
    game.ReplicatedStorage.MapSpawns.LavaIce.Parent = game.Workspace
    wait(0.1)
    -- Respawn/LoadChar on this line?
    wait(500)
0
Call LoadCharacter User#19524 175 — 5y
0
@incapaz There's an option to answer if you have one. Typing the answer in comments is pretty much low-priority to this website. Mirzadaswag 110 — 5y

1 answer

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

When you want him to respawn, Do the line:

player = game.players[name] -- you need the player

player:LoadCharacter()

Hope it helps!

Ad

Answer this question