Title says it all possibly a bit out of context.
When in first person, how do I get the mouses position (the pointer) on all devices.
Heres the problem I had, the grey frame you see is my previous test, which is constantly wrong, every time I re-enter It decides it wants to not be the middle anymore. Heres the code I used to get the frame:
local mouse = game.Players.LocalPlayer:GetMouse() local f = Instance.new("Frame", game.Players.LocalPlayer.PlayerGui.Freecam) f.AnchorPoint = Vector2.new(.5,.5) f.Position = UDim2.new(0, mouse.X, 0, mouse.Y) f.Size = UDim2.new(.01, 0, 0.01, 0)
I did that in the command bar, this is my result, obviously varying in the new test. (The mouse is no longer in the center of the frame ;/)