offsetX and offsetY should be removed because the AnchorPoint actually makes it so no extra math is required and you shouldn’t be using AbsolutePosition because that assumes that the origin is the top left corner.
Uh okay, I’ll try removing the offset values.
As for the AbsolutePosition, you mean the Menu absolute position when calculating the mouseVector? What should I use instead? Something like vector2.new(Menu.Position.X.Scale, Manu.Position.Y.Scale)
?
EDIT: Scale doesn’t work. I also can’t use the Offset position cuz it’s 0 so…
Use something like this Vector2.new(Menu.Position.X.Scale * workspace.CurrentCamera.ViewportSize.X, Menu.Position.Y.Scale * workspace.CurrentCamera.ViewportSize.Y)
it basically converts it into offset.
OH LORD, it works at last! Thank you so so so much. I had no idea it was that simple to convert to offset, I remember doing something similar it had so many steps lol.
I’ll mark your last reply as solution, but for those reading who may have a similar issue in the future, read the whole thread
Here is the file with the final fix as well.
radial_menu_FIXED.rbxl (87.0 KB)
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.