function onClick()--function
script.Parent.CloseButton:Destroy()--destroys text button
wait(.5)
Instance.new('TextButton',game.StarterGui.TestGui.Frame) --makes new button
TextButton.Name = "Taco" --renames it
end
script.Parent.CloseButton.Clicked:connect(onClick) --I tried using MouseButton1Down
Could i use the "MouseButton1Click"? (my first gui things)
