I can't seem to figure out this problem, and it's really bugging me, the gui will NOT move at all.
local char = script.Parent local gam = char.Parent game.Players.PlayerAdded:connect(function(plr) local mouse = plr:GetMouse() mouse.Move:connect(function() char.Position = UDim2.new(mouse.X, 0, mouse.Y, 0) end) end)
Make a localscript and put what I wrote for you
local char = script.Parent local gam = char.Parent local plr = game.Players.LocalPlayer repeat wait() until plr.Character -- waits for the player's character so that no errors occur. local mouse = plr:GetMouse() mouse.Move:connect(function() char.Position = UDim2(0,mouse.X, 0, mouse.Y) end)