script.Parent.MouseButton1Down:connect(function()
print("WORKS")
wait(5)
script.Parent.ImageButton:Destroy
end)
The 'end)' function shows a error. Can you help me?
script.Parent.MouseButton1Down:connect(function()
print("WORKS")
wait(5)
script.Parent.ImageButton:Destroy
end)
The 'end)' function shows a error. Can you help me?
script.Parent.ImageButton:Destroy() -- you forgot the brackets.
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
THANK YOU! I forgot about that!!!
:)
This is a repeat question... https://scriptinghelpers.org/questions/6358/function-argument-expected-near-test-not-solved
OHHHHH I SEE