Advertisement
davidxcgdr

Anti-Inject

Nov 29th, 2020
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1. local lastTime = tick()
  2. local runservice = game:GetService("RunService")
  3.  
  4. runservice.RenderStepped:connect(function()
  5.     local fps = math.floor(.5+(1/(tick()-lastTime)))
  6.    
  7.     if ((fps <= (1+1)) and (workspace:GetRealPhysicsFPS() > (1+1))) then
  8.         game.Players.LocalPlayer:Kick('\n\nExploit injected. D:\nDo you still get this error? contact a developer.')
  9.        
  10.     elseif ((fps > (1+1)) and (workspace:GetRealPhysicsFPS() <= (1+1))) then
  11.         game.Players.LocalPlayer:Kick('\n\nClient crashed.\nDo you still get this error? contact a developer.')
  12.        
  13.     elseif ((fps <= (1+1)) and (workspace:GetRealPhysicsFPS() <= (1+1))) then
  14.         game.Players.LocalPlayer:Kick('\n\nUnknown crash.\n\nDo you still get this error? contact a developer.')
  15.     end
  16.     lastTime = tick()      
  17. end)
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement