Smooth frame rotation loop?

I am trying to make one of my frames in a GUI to loop rotation smoothly, how would I be able to achieve this?

You just want to keep rotating a frame forever?

If that is the case:

 local RunService = game:GetService("RunService")
 local currentRot = 0
 local function beforeCamera(delta)
 currentRot += delta
  -- here you will have to get you Frame and modify it's cframe with the new rotation
 end
 RunService:BindToRenderStep("Before camera", Enum.RenderPriority.Camera.Value - 1, beforeCamera)