Hello, I'm trying to make a demo script, that makes it if you hover over a model named "Noob" a Frame will follow your mouse. I've tried mouse.Hit and Mouse.Target but no matter what the script i'm working with isn't working. Can someone please review it?
local player = game.Players.LocalPlayer local mouse = player:GetMouse() local Gui = player.PlayerGui:WaitForChild("ScreenGui") function hover() print(mouse.Target.Parent.Name) if mouse.Target.Parent.Name == "Noob" then Gui.Frame.Position = UDim2.new(0, mouse.X, 0, mouse.Y) end end mouse.Move:Connect(hover)