of     1   

TheEpicSamuri
#73044366Friday, July 20, 2012 7:20 PM GMT

function onButtonClicked() for i=29,-31,-1 do wait(0.001) script.Parent.Parent.Creator.Position = UDim2.new(0,500,0,i) end end function close() if script.Parent.Parent.Creator.Position == (0,500,0,29) then script.Parent.MouseButton1Click:connect(onButtonClicked) end end script.Parent:connect(close) It says in out put that an ) is expected near an , on line 9
MrChubbs
#73045412Friday, July 20, 2012 7:31 PM GMT

function onButtonClicked() for i=29,-31,-1 do wait() --the least amount of time that it can wait is one frame and there is no point looping it that fast anyway, you mine as well just set it to the end position. script.Parent.Parent.Creator.Position = UDim2.new(0,500,0,i) end end function close() if script.Parent.Parent.Creator.Position == (0,500,0,29) then script.Parent.MouseButton1Click:connect(onButtonClicked) -- here it all depends on what script.Parent is, although I am not sure of this working end end script.Parent:connect(close) --No function connection here, you need a .Touched or somthing of that sort, .MouseButton1Click, .KeyDown, so on

    of     1