TouchTap having negative Y number

This is where i am tapping on the screen

The coordinates are (442, -57)
The Y coordinate being negative is breaking my script, because it launches a ray at the wrong position. I suspect this is to do with the roblox GUI bar, but i don’t know how i would fix it.

That’s the GUI inset. You can get a vec2 representing it

Basically just subtract game:GetService(“GuiService”):GetGuiInset() from the touch position.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.