Advertisement
yeeyeehaicut

Untitled

Feb 6th, 2023
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | Software | 0 0
  1. local UserInputService = game:GetService("UserInputService")
  2. local RunService = game:GetService("RunService")
  3.  
  4. local WindowFocusReleasedFunction = function()
  5. RunService:Set3dRenderingEnabled(false)
  6. setfpscap(1000)
  7. return
  8. end
  9.  
  10. local WindowFocusedFunction = function()
  11. RunService:Set3dRenderingEnabled(true)
  12. setfpscap(1000)
  13. return
  14. end
  15.  
  16. local Initialize = function()
  17. UserInputService.WindowFocusReleased:Connect(WindowFocusReleasedFunction)
  18. UserInputService.WindowFocused:Connect(WindowFocusedFunction)
  19. return
  20. end
  21. Initialize()
Tags: Script
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement