Not sure the direct method that Jailbreak uses but playing with UIGradient tends to be a solution I’ve found to work, although you might need to use two semi circles instead of one entire circle.
The radial progress bar is usually achieved through using ui gradients nowadays i think?:
Needed: Have 2 half circles, and parent ui gradient under each. (one for the first half, one for the second half)
Have the UIGradient.Color property so half is coloured in, one is grayed out.
Have the UIGradient.Rotation to 90 degrees so it has gradient from top to bottom, not left to right
Change the ui gradient.Offset so only grayed out area is visible
local HalfCircle = Instance.new("ImageLabel")
HalfCircle.Image = ""--some image with half circle
HalfCircle.Size = UDim2.fromOffset(100, 100)
local UiGradient = Instance.new("UIGradient")
UiGradient.Rotation = -90
UiGradient.Color = ColorSequence.new(
ColorSequenceKeypoint.new(0, Color3.new(0.1, 0.1, 0.1)),
ColorSequenceKeypoint.new(0.5, Color3.new(0.1, 0.1, 0.1),
ColorSequenceKeypoint.new(0.51, Color3.new(1, 1, 1)),
ColorSequenceKeypoint.new(1, Color3.new(1, 1, 1))
)
UIGradient.Offset = Vector2.new(0, -0.5) -- Only Gray is visible with this
UIGradient.Parent = HalfCircle
Just keep changing the offset so it fills the half circle with coloured in area
--Start To fill the half circle
local duration = 2
local startTim = time()
local con; con = RunService.RenderStepped:Connect(function()
local fillPercentage = math.clamp((time() - startTime) / duration, 0, 1)
UIGradient.Offset = Vector2.new(0, -0.5):Lerp(Vector2.new(0, 0.5), fillPercentage)
if fillPercentage == 1 then
con:Disconnect()
end
end)
Didn’t know about those. Probably won’t work for this, since it’s for a button I want to slap on my main GUI, but those could be useful for other things.
Would be better if you read the whole reference as it contains all the necessary information about the methods and attributes of it’s class and rarely further examples. ProximityPrompt.Style (roblox.com)
Proximity Prompt Ui can be customized and no default Ui will be provided if style is set to custom.