game.Players.CharacterAutoLoads=false function onPlayerDied(k,h)wait(respawn_time)k:LoadCharacter()end function onPlayerSpawned(k,h)while not h:FindFirstChild("\072\117\109\097\110\111\105\100")do wait()end h.Humanoid.Died:connect(function()onPlayerDied(k,h)end)end function onPlayerChatted(k,h,M)if h==force_respawn and allow_force_respawn then k:LoadCharacter()end end function onPlayerEntered(k)k.CharacterAdded:connect(function(h)onPlayerSpawned(k,h)end)k.Chatted:connect(function(h,M)onPlayerChatted(k,h,M)end)k: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)
