So I have a script to control the clients frame rate and cap it to 30 fps, but how would i take this and make the cap customizable, for example changing it to 10 fps?

local RunService = game:GetService("RunService")
while RunService.RenderStepped:Wait() do
    local t0 = tick()
    RunService.Heartbeat:Wait()
    debug.profilebegin("30 FPS Cap")
    repeat until (t0+0.0325) < tick()
    debug.profileend()
end