Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local FillCount = 100 -- how many frames
- local Size = 50 -- pixels^2
- local SG = Instance.new("ScreenGui", Game.StarterGui);
- local ArcTop = 300 -- Height of arc in pixels
- local ArcLength = 1050 -- Length of arc in pixels
- for i = 0, FillCount do
- local F = Instance.new("Frame");
- F.Size = UDim2.new(0,Size,0,Size);
- local PercentY = (i/FillCount)
- local PosX = (i/FillCount) * ArcLength
- local Y = math.sin(PercentY * math.pi);
- F.Position = UDim2.new(0,PosX,.5,-(Y*ArcTop) );
- F.Rotation = ((180/FillCount)*i) + 90;
- F.Parent = SG
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement