Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to check the position of a frame within a screengui?

if Shop.Visible and buttonparnt.Position == (0.339, 0, 0.339, 0) then

How do I locate that positon, because that doesn't function at all?

1 answer

✓ Accepted answer

To check for the position of a GUI, you would compare the value with another UDim2 value.

if Shop.Visible and buttonparnt.Position == UDim2.new(0.339, 0, 0.339, 0) then

Good Luck

If I helped, please don't forget to accept my answer.

2 comments

0

Note that floating point errors may provide false negatives, especially if motion is involved.

0

Indeed. If you're tweening the GUI or something, that "could" be a problem. Not what was asked, but okay. More information!

This discussion is preserved as it was. New answers, comments, and votes are closed.