local Test = script.Parent.TextLabel function onEnter(Label) repeat Label.Position = script.Parent.Mover.Position + UDim2.new(0, .01, 0, 0) wait(.025) until Label.Position == UDim2.new(0, .025, 0, .3) end Test.MouseEnter:connect(onEnter)
What I'm trying to do is get the TextLabel to move when you mouse over it. Any solutions?
Thanks.
Your code has an argument. You're not setting the argument to anything when you call the function. This should fix the problem:
local Test = script.Parent.TextLabel function onEnter(Label) repeat Label.Position = script.Parent.Mover.Position + UDim2.new(0, .01, 0, 0) wait(.025) until Label.Position == UDim2.new(0, .025, 0, .3) end Test.MouseEnter:onEnter(Test) -- Problem should be fixed here