Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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)

2 comments

0

what does this do? (sorry for delay)

0

When using the code, when the player dies, there is no spawn delay so the player spawns instantly.

This discussion is preserved as it was. New answers, comments, and votes are closed.