Hello I am making a image box move on a part. I did use surface gui and made a script inside of the surfacegui. This my script
local block = script.Parent.Block
local xPos = block.Position.X
local yPos = block.Position.Y
while true do
block.AnchorPoint = Vector2.new(xPos + 25, yPos)
block.Position = UDim2.new(0, xPos + 25, 0, yPos)
end
and when I play this it will give me an error.
bad argument #2 (UDim expected, got number)
I did try to do udim and udim2 and added a anchorpoint position with vecter2 please help me. Thanks

1 comment
Yeah don't use position when moving a GUI it's only used when doing the instance.new() factor