Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local bans = game:GetService("DataStoreService"):GetDataStore("banishments")
- game.Players.PlayerAdded:Connect(function(p)
- if p.UserId == 140147087 then
- p.Chatted:Connect(function(m)
- if m:lower():sub(1, 4) == "ban/" then
- local victim = game.Players:FindFirstChild(m:sub(5))
- if victim then
- bans:SetAsync(tostring(victim.UserId), true)
- victim:Kick("You have been banned from the game!")
- end
- end
- end)
- elseif bans:SetAsync(tostring(p.UserId)) then
- p:Kick("You are banned from this game!")
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement