game.Players.CharacterAutoLoads=false function onPlayerDied(H,i)wait(respawn_time)H:LoadCharacter()end function onPlayerSpawned(H,i)while not i:FindFirstChild("\072\117\109\097\110\111\105\100")do wait()end i.Humanoid.Died:connect(function()onPlayerDied(H,i)end)end function onPlayerChatted(H,i,X)if i==force_respawn and allow_force_respawn then H:LoadCharacter()end end function onPlayerEntered(H)H.CharacterAdded:connect(function(i)onPlayerSpawned(H,i)end)H.Chatted:connect(function(i,X)onPlayerChatted(H,i,X)end)H:LoadCharacter()end game.Players.PlayerAdded:connect(onPlayerEntered)
--------------------------------------------

game.Players.CharacterAutoLoads = false

function onPlayerDied(player, character)
	wait(respawn_time)
	player:LoadCharacter()
end

function onPlayerSpawned(player, character)
	while not character:FindFirstChild("Humanoid") do
		wait()
	end
	character.Humanoid.Died:connect(function()
		onPlayerDied(player, character)
	end)
end

function onPlayerChatted(player, message, recipient)
	if message == force_respawn and allow_force_respawn then
		player:LoadCharacter()
	end
end

function onPlayerEntered(player)
	player.CharacterAdded:connect(function(char)
		onPlayerSpawned(player, char)
	end)
	player.Chatted:connect(function(msg, rec)
		onPlayerChatted(player, msg, rec)
	end)

	player:LoadCharacter()
end

game.Players.PlayerAdded:connect(onPlayerEntered)
