How can I set the UI FPS to something like 30?

This might sound like a weird request but I’m trying to make my game more interesting…

Doors did something like this, with the NVCS-3000 Scanner/Tablet thingy, where if the player looks through the scanner, it’s 30 FPS.

I want to accomplish practically the same thing but through a ScreenGui (im not making a scanner/im not copying)

Its using a viewport frame to achieve it so it’d practically be pretty much the same concept. I don’t think there’s any other real practical way of doing it other than that.

Just update it with 30 frames every second.

Hm, alright.

I never tried updating anything UI related though, is there any way you know how to? (I’m not asking for full code, just a sample and then ill update it every 2 frames)

--Controls
local FramesPerSecond = 30

--Variables
local TimeBetweenFrames = 1/FramesPerSecond
local lastUpdate = 0
local runService = game:GetService("RunService")

--Main Code
while true do
--update your UI

lastUpdate = time()
repeat runService.Stepped:Wait() until time()-TimeBetweenFrames > lastUpdate
end

You could try this.

where it says

--update your ui

am i meant to add something there?

Yes bro, thats where you put your movement/update