Ok, so I know the title sounds confusing so I'm going to elaborate. I have a circle generation function that generates a circle using guis. It works perfectly fine, it just doesn't generate it fast enough.
I've set the wait time as low as I can possibly get it using runService but it's still not fast enough.
local generateCircle = function(gui, health)
local circumfrenceFormula = 360 * health / 100
for i = -180, circumfrenceFormula - 180 do
local x = x + r * math.sin(math.rad(i))
local y = y + r * math.cos(math.rad(i))
local n = gui.Frame:clone()
n.Position = UDim2.new(x, 0, y, 0)
n.Rotation = i
n.Parent = gui
n.Visible = true
runService.Stepped:wait()
end
end
I'm using it for a custom health UI so it needs to go as fast as I can get it without it being instantaneous; Like a tween. Can I get any help with this?

1 comment
AH! Thank you!