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()