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?
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?
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
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
Note that floating point errors may provide false negatives, especially if motion is involved.
Indeed. If you're tweening the GUI or something, that "could" be a problem. Not what was asked, but okay. More information!