How would I make a gui appear when you join then dissapear when you touch it?

Hello !

I think I choosed the right category.
I need help at my gui.
So it will appear when you join but when you click it to dissapear.
The gui its a team change.
I really need help I dont know what I should do I searched on YouTube aswell but i didnt find anything. :confused:
Let me know if you know anything of how to do it.
Thank You ! :smiley:

2 Likes

inside of StarterGui, put a ScreenGui, inside that, put a ImageButton or a TextButton, make those how you want it
alright, when you join the game, you have a gui, now for the click part

inside the button, put a local script

local button = script.Parent --the button

button.MouseButton1Click:Connect(function() --detects when you click the button
    button:Destroy() --this destroys the button, if you only want it to be
    --invisible and not removed from the game, try button.Visible = false
end)
3 Likes

I will try that Thank You ! :smiley: :smiley:

1 Like

Thank you very much it worked !!! :smiley:
You are the best !!

1 Like