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

Is there a way to prevent a spawn delay (no script provided)?

Asked by 3 years ago

This question doesn't provide any code, I tried searching for the answer and I got nothing. My game has a weird spawn delay as the server gets older and I can't figure out why it's doing that. No spawn stuff has been affected, CharacterAutoLoad is enabled, I don't know what is causing spawn delays.

1 answer

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

Let's see if this script works, put this code in a regular script in StarterPlayerScripts or StarterCharacterScripts or Workspace.

game.Players.PlayerAdded:Connect(function(plr)
    plr.CharacterAdded:connect(function(chr)
        repeat wait() until chr.Humanoid
        chr.Humanoid.Died:connect(function()
            plr:LoadCharacter()
        end)
    end)
end)
0
what does this do? (sorry for delay) TheBuliderMC 84 — 3y
0
When using the code, when the player dies, there is no spawn delay so the player spawns instantly. BluelyTASer 25 — 3y
Ad

Answer this question