I’ve been wondering if it’s possible to cap a game at a certain framerate; like 30FPS or something.
Do this:
local Game = game
local RunService = Game:GetService("RunService")
local Time = os.time()
local Frames = 0
local function OnRenderStep(Delta)
if os.time() > Time then
Time = os.time()
Frames = 0
end
Frames += 1
if Frames > 30 then return end
end
RunService.RenderStepped:Connect(OnRenderStep)
I think that you cannot modify the cap of the fps.
Roblox’s cap is set to default at 60 fps.
How will this cap the framerate?
No you cant unless you download external sources aka exploit Roblox making the cap to your desired value aka 30!
Why would you wish to make your game feel bad to play? The only thing I can think of it to replicate old Roblox
This won’t cap the FPS, you’re just making a value within a script and setting it to 30 every frame.