Wyzloc
(Wyzloc)
#1
I have a health bar, and it’s AbsolutePosition displays over 100. I want to position other frames onto this bar, how can I do this?
Whenever I set the frame to
UDim2.new(0,healthbar.AbsolutePosition.X,0,healthbar.AbsolutePosition.Y)
it positions the frame off screen.
By any chance, are any of your GuiObjects using AnchorPoints?
Perhaps you might want to try this script?
UDim2.new(
0, healthbar.AbsolutePosition.X + healthbar.AbsoluteSize.X / healthbar.AnchorPoint.X,
0, healthbar.AbsolutePosition.Y + healthbar.AbsoluteSize.Y / healthbar.AnchorPoint.Y
)
Wyzloc
(Wyzloc)
#3
It’s fine I just made a 2nd bar but made it invisible and i used scaling positioning and plopped the slider inside the bar