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.
COMMUNITY QUESTION
Is there a way to prevent a spawn delay (no script provided)?
1 answer
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)
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
what does this do? (sorry for delay)
When using the code, when the player dies, there is no spawn delay so the player spawns instantly.