I can't find anything about what I'm doing wrong. When I use this, the frame is not positioned to where the mouse is pointing. How do I fix this?
player = game.Players.LocalPlayer mouse = player:GetMouse() mouse.Move:connect(function() Frame.Position = UDim2.new(0,mouse.x,0,mouse.y) end)
You may want to add a loop
while wait() do player = game.Players.LocalPlayer mouse = player:GetMouse() Frame.Position = UDim2.new(0,mouse.x,0,mouse.y) end
Please remember to define what Frame means
Lua is case sensitive. There is no property of the mouse named x nor y, but there are properties named X and Y. So, to fix this, do the following fix.
player = game.Players.LocalPlayer mouse = player:GetMouse() mouse.Move:connect(function() Frame.Position = UDim2.new(0,mouse.X,0,mouse.Y) end)
This should have been an easy fix if you looked at the output. Also, read my bio, otherwise I may not help you on another question.