Advertisement
3DCreator

unban

Dec 22nd, 2024
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.37 KB | None | 0 0
  1. local module = {}
  2.  
  3. local datastore = game:GetService("DataStoreService")
  4. local bandata =  datastore:GetDataStore("bans")
  5. local players = game:GetService("Players")
  6.  
  7. module.run = function(player, message, arguments)
  8.     local userid = players:GetUserIdFromNameAsync(arguments[2])
  9.    
  10.     if bandata:GetAsync(userid) then
  11.         bandata:RemoveAsync(userid)
  12.     end
  13. end
  14.  
  15. return module
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement