#How do you calculate the x value of the position of an GUI inside a scrolling frame
27 messages · Page 1 of 1 (latest)
this is a scripting issue?
yes it is
issue unclear
maybe this idk
close
It just is offset a little and i don't know how to fix it
Did you use absoluteposition?
Let me know if you´ve found a solution or still need help
I did the absolute position of the scroller - the absolute position of the button for the d value
Which didn’t work
It’s slightly offset
@lean verge
AbsolutePosition is the position of the top-left corner of whatever button you´re trying to get it from
Not the center
So you kinda have to do some basic math using the button´s AbsoluteSize to get it´s center
local Center = Vector2.new(AbsolutePosition.X - (AbsoluteSize.X/2), AbsolutePosition.Y - (AbsoluteSize.Y/2))
So are all those variables for the button?
nothing is the scolling frame
yes
Unless you want the position of the scrollingFrame for something
@worn swallow