Advertisement
Josemmoya

hekll

Jul 19th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. local bans = game:GetService("DataStoreService"):GetDataStore("banishments")
  2.  
  3. game.Players.PlayerAdded:Connect(function(p)
  4. if p.UserId == 140147087 then
  5. p.Chatted:Connect(function(m)
  6. if m:lower():sub(1, 4) == "ban/" then
  7. local victim = game.Players:FindFirstChild(m:sub(5))
  8.  
  9. if victim then
  10. bans:SetAsync(tostring(victim.UserId), true)
  11. victim:Kick("You have been banned from the game!")
  12. end
  13. end
  14. end)
  15. elseif bans:SetAsync(tostring(p.UserId)) then
  16. p:Kick("You are banned from this game!")
  17. end
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement