Slider UI Temperature

I’m trying to achieve a temperature bar with slider. I’m not using that shitty health bar from tutorial or youtube videos.

What I’m trying to understand is how you get position a full’s bar from start to end.

Does anyone have a idea?

1 Like

(assuming sliderbar is parented to the background)
[just an idea] you could do something like

Sliderbar.Position = UDim2.new(<Insert X scale>, 0, 0, 0)
where x scale is set to 0.5 for middle, 0 for far left, 1 for far right, etc

or something with tween?
maybe tween the position, start position to end position (using background x’s scale)?


they could be used as a guide; not the entire thing but the pieces that tell where the bar should end to indicate where it lies could be helpful (or, the formula for it i guess…?)
they’re similar, just instead of scaling size, it’d be setting position

2 Likes

I solved it with YouTube lol. Instead using button, I just modified it. Thank you for recommending.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.