Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UserInputService = game:GetService("UserInputService") --not created off of start up
- local RunService = game:FindService("RunService") --created on start up
- local function render(state)
- RunService:Set3dRenderingEnabled(state)
- end
- local function Initialize()
- UserInputService.WindowFocusReleased:Connect(function() --I personally perfer this unless you need to refer to the function more then once
- render(false)
- setfpscap(10)
- end)
- UserInputService.WindowFocused:Connect(function()
- render(true)
- setfpscap(360)
- end)
- end
- Initialize()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement