Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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?

2 comments

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

0

sorry :/

1 answer

✓ Accepted answer

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)

1 comment

0

Also, I forgot the amount of parents the script has may vary.

This discussion is preserved as it was. New answers, comments, and votes are closed.