Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UserInputService = game:GetService("UserInputService")
- local RunService = game:GetService("RunService")
- local WindowFocusReleasedFunction = function()
- RunService:Set3dRenderingEnabled(false)
- setfpscap(1000)
- return
- end
- local WindowFocusedFunction = function()
- RunService:Set3dRenderingEnabled(true)
- setfpscap(1000)
- return
- end
- local Initialize = function()
- UserInputService.WindowFocusReleased:Connect(WindowFocusReleasedFunction)
- UserInputService.WindowFocused:Connect(WindowFocusedFunction)
- return
- end
- Initialize()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement