How to make radial bar?

Hello! I’m making a game right now, and working on EXP bar.
https://i.gyazo.com/72d6173a573f935dbecce41135af3b29.mp4

so, I want to make radial exp bar, but as you can see, 0% part glitches and moving.
What I want to do is anchor this 0% part and make a move perfectly.
here’s a script.

while true do
	for i=1,100 do
		local NewSequence = NumberSequence.new{
			NumberSequenceKeypoint.new(0, 0), -- (time, value)
			NumberSequenceKeypoint.new(i/101, 0),
			NumberSequenceKeypoint.new(i/101+0.001, 1),
			NumberSequenceKeypoint.new(1,1)
		}
		script.Parent.UIGradient.Transparency = NewSequence
		script.Parent.UIGradient.Rotation = i*1.8+90
		wait()
	end
end

how to improve these glitch? thanks in advance :slight_smile:

4 Likes

Check this post out on how to do something similar. It may help you to create a full-radial bar.

1 Like

I checked that post, but I didn’t understand how to do perfectly with full-radial bar.
thanks for posting, I just want to set the 0% part of it.

2 Likes