Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local datastoreservice = game:GetService("DataStoreService")
- local datastore = datastoreservice:GetOrderedDataStore("PlayerData")
- local remote1 = game.ReplicatedStorage.L
- local ban = 24
- local ban1 = 1440
- game.Players.PlayerAdded:Connect(function(player)
- local Check = datastore:GetAsync(player.UserId)
- local userdata = os.time()
- if Check then
- print("LMAO")
- if (os.time()-Check)/3600>=ban then
- datastore:RemoveAsync(player.UserId, os.time())
- else
- local hourspassed = math.ceil((os.time()-Check)/3600)
- local banminute = math.ceil((os.time()-Check)/60)
- if ban-hourspassed < 1 then
- local banminute = math.floor((os.time()-Check)/60 +.5)
- player:Kick("You have ".. ban1 - banminute.. " minutes left until you are able to create another application.")
- else
- player:Kick("You have ".. ban - hourspassed.. " hours remaining until you are able to make another application.")
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement