local testFrame = script.Parent.Parent:FindFirstChild("testFrame")
local gui = script.Parent.Parent
local button = script.Parent
local px = testFrame.Position.X
local py = testFrame.Position.Y
function onClicked()
while true do
testFrame.Position = UDim2.new(px+1, py+1)
wait(1)
end
end
script.Parent.MouseButton1Click:connect(onClicked)
Maybe I over complicated it, maybe I'm doing it completely wrong, but how come my Gui won't move when the button is clicked? I figured CFrame was just for blocks so I switched to UDim2, no idea what it does but it was the recommended thing that the script does to guess what youre typing

2 comments
Thank you soooo much! :)
No problem.