How to load a player character as fast as possible?

Hi, I need to remove the animation of the death of the player and load his charactrt maximally fast, there is such a decision:

game.Players.PlayerAdded:Connect(function(plr)
	plr.CharacterAdded:Connect(function(char)
		while task.wait() do
			if char:FindFirstChild("Humanoid") then
				char.Parent = game.Workspace
				break
			end
		end
		
		char.Humanoid.Died:Connect(function()
			char:Destroy()
			task.wait()
			plr:LoadCharacter()
		end)
	end)
end)

Is this the best solution?

3 Likes

You can set game.Players.RespawnTime to 0 (the script was a bit slower)

1 Like

You can’t really speed up the process of loading the character. However, you can wait for the character to spawn with a simple 1 line script.

repeat task.wait() until plr.Character and plr.Character:FindFirstChild("Humanoid")

Thanks guys for the quick response :+1: :grinning:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.