RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a votekick script"
-- server script local Players = game.Players local voteCount = 0 local kickPlayer = nil game.Players.PlayerAdded:Connect(function(player) player.Chatted:Connect(function(msg) if msg:lower():sub(1, 8) == "!votekick" then local target = msg:sub(10) local targetPlayer = Players:FindFirstChild(target) if targetPlayer then voteCount = voteCount + 1 kickPlayer = targetPlayer if voteCount >= Players.NumPlayers / 2 then kickPlayer:Kick() end end end end) end)