--[put in StarterGui]


wait(0) --dont delete, the script can crash if you delete this line
local plr = game.Players.LocalPlayer --local player
local players = game.Players --players

local message = "you lost" --message when die (kick message), change if you want

players.RespawnTime = 0

plr.CharacterRemoving:Connect(function(e) --detects if the player died.
	plr:Kick(message) --kick the player with the message
end) 
