i want just the mouse position for the white rectangle but it gives for the whole screen
EX: if i click on the middle of the right black line it will not give 1,0,.5,0, but it should
local mouse = game.Players.LocalPlayer:GetMouse()
local viewSize = game.Workspace.CurrentCamera.ViewportSize
local absoluteSize = player.PlayerGui.Workspace.characters.AbsoluteSize -- this is absolute size for the white frame, i didnt use this for any of the code because i dont know how to implement it
local x = mouse.X/viewSize.X -- this coverts the mouse pos to scale instead of offset
local y = mouse.Y/viewSize.Y -- this coverts the mouse pos to scale instead of offset
THANKS FOR ANY HELP