#How do you calculate the x value of the position of an GUI inside a scrolling frame

27 messages · Page 1 of 1 (latest)

lean verge
#

For some reason my is offset I have tried using abosolute positon of the scrolling frame

jaunty gulch
vale glen
#

issue unclear

#

maybe this idk

lean verge
lean verge
worn swallow
#

Let me know if you´ve found a solution or still need help

lean verge
#

Which didn’t work

#

It’s slightly offset

lean verge
worn swallow
#

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))
lean verge
#

nothing is the scolling frame

worn swallow
#

Unless you want the position of the scrollingFrame for something

lean verge
#

It doesn’t work really it gives me values of 128 for

#

The x value

lean verge
#

@worn swallow