Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

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

Asked by 1 month 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 1 month ago
Edited 1 month 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 64 — 1mo
0
When using the code, when the player dies, there is no spawn delay so the player spawns instantly. BluelyTASer 10 — 1mo
Ad

Answer this question