Whenever you click on a unit on the right side it displays that information bar to the left. Vice versa. If you click a unit on the left side it displays the information on the right. To make sure it always stays in the center of the screen.
Does anyone have a general idea on how to go about doing this? Basically a way to differentiate between two sides of the screen. It’s like knowing I am clicking closer to the left side of the screen versus the right.
local mouse = player:GetMouse()
local function WhereIsMouse()
if (mouse.x / mouse.ViewSizeX) <= (mouse.x / mouse.ViewSizeX) then
print("mouse is on left side of screen")
else
print("mouse is on right side of screen")
end
end)