RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Kick anybody who dies"
-- server script (ServerScriptService) local function onCharacterAdded(character) local humanoid = character:WaitForChild("Humanoid") humanoid.Died:Connect(function() local player = game.Players:GetPlayerFromCharacter(character) if player then player:Kick("You have been kicked for dying.") end end) end local function onPlayerAdded(player) player.CharacterAdded:Connect(onCharacterAdded) end game.Players.PlayerAdded:Connect(onPlayerAdded)