So, I've tried to make a code to make my GUI fade on the click of a text button, here's what I have so far, but it doesn't work, what am I missing?
Script.Parent.MouseButton1Click:connect (function()
Script.Parent.Parent.Position.UDim2.new(0+i
wait()
script.Parent.TextButton.MouseClick:connect(click)
end
I know something is wrong, but can't figure it out, anyone know a solution?

1 comment
I'll help you in a moment, I have to wait a minute and a half before posting another answer.