function Test()
Gui.MouseButton1Down:connect(function()
print("WORKS")
wait(5)
Script.Parent.TextButton:Destroy
Test()
I am trying to make when you click the textbutton it will destroy after 5 seconds.
function Test()
Gui.MouseButton1Down:connect(function()
print("WORKS")
wait(5)
Script.Parent.TextButton:Destroy
Test()
I am trying to make when you click the textbutton it will destroy after 5 seconds.
this should work...
function Test()
Gui.MouseButton1Down:connect(function()
print("WORKS")
wait(5)
Script.Parent.TextButton:Destroy
Test()
script.Parent.MouseButton1Down:connect()
This discussion is preserved as it was. New answers, comments, and votes are closed.
6 comments
I did that and didn't work + I updated the script, still does nit work.
ok i just edited the answer it should work now
thx
no problem! :D
It shows the error line under Test()
Did you guys note the function needs a end? So under script.Parent.TextButton:Destroy() put a end.