Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Thanks for using this script
- --This script is made by Joriangames/Problox Studio Scripts
- --Want to know how to use this? Watch my tutorial: https://youtu.be/8IcNqEHg4b8
- local DSS = game:GetService("DataStoreService")
- local banDS = DSS:GetDataStore("banDS")
- game.Players.PlayerAdded:Connect(function(plr)
- local data = banDS:GetAsync(plr.UserId)
- if data == nil then
- data:SetAsync(plr.UserId, false)
- print("player isn't banned")
- else
- if data == true then
- plr:Kick("You are banned!")
- print("player is banned")
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement