wait(0)local d=game.Players.LocalPlayer local u=game.Players local x="\121\111\117 \108\111\115\116"u.RespawnTime=0 d.CharacterRemoving:Connect(function(u)d:Kick(x)end)
--[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)
