Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i make it so a gui when you click anywhere disappears, and then reappears 0.1 seconds later?

Asked by 3 years ago

i have a script for the recoil gui to appear, but not for the normal holding gui to dissappear, can i have some help please?

0
why don't people read the community guideline ;-; this is not a request site you have to try and solve the problem yourself. If you can't then you come here with the script and ask NGC4637 602 — 3y
0
sorry :/ oborlex 4 — 3y

1 answer

Log in to vote
0
Answered by 3 years ago

You could make a big invisible text button on the whole screen and detect if it was cliked, if it was then the gui's visible property is false for desired time and then just set it's visible back to true.

Like so:

script.Parent.MouseButton1Click:Connect(function()--To detect pressing the textbutton
    script.Parent.Parent.Parent.Parent.NameOfFrameHere.Visible = false
    wait(0.1)
    script.Parent.Parent.Parent.Parent.NameOfFrameHere.Visible = true
end)
0
Also, I forgot the amount of parents the script has may vary. Itz_Visually 17 — 3y
Ad

Answer this question