Advertisement
Guest User

Untitled

a guest
May 26th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. local x = playersInformationCollection[player.Name].TimeSinceLastRequest;
  2.  
  3.  
  4.  
  5. local currentTime = time();
  6. local previousTime = x;
  7.  
  8. local timeSinceLastRequest = currentTime - previousTime;
  9.  
  10. playersInformationCollection[player.Name].TimeSinceLastRequest = currentTime;
  11.  
  12. if (x == 0) then return end;
  13.  
  14. print("Time Since Last Request: " .. tostring(timeSinceLastRequest));
  15.  
  16. if (timeSinceLastRequest <= 0.25) then
  17. print("Kicked");
  18. player:Kick("Kicked for server protection");
  19. else
  20.  
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement