Is there a way to make a Frame in a ScreenGui follow the player's mouse Pointer? I came up with this but it's acting weird
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
while wait() do
script.Parent.Frame.Position = UDim2.new(0,mouse.Hit.x,0,mouse.Hit.y)
end

1 comment
Thank You!