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 a gui disappear after you are done using it? [SOLVED]

i thought it was like this

wait(2)

game.Workspace.StarterGui.ScreenGui.VirusContinues.Noob.Transparency = 1

like after a loading screen is done or something!

8 comments

0

you need to edit gui's with PlayerGui, for this use RemoteEvents, if script is in gui just use script.Parent.Parent....VirusContinued.Noob.Transparency = 1

0

didn't work

0

game.Workspace.StarterGui.ScreenGui.VirusContinues.Visible = false

0

that didn't work since startergui is not inside workspace

0

Do you want the text label or the whole frame to disappear.

0

the whole frame

0

Also MArzalAlBuchariZ, it would be game.Players.LocalPlayer(Asuming this is in a local script where it should be.).PlayerGui.ScreenGui . . .

0

Also if you want the entire ScreenGui to disappear, you can do ScreenGui.Enabled = false.

1 answer

✓ Accepted answer

Well for me, what I would do, instead of just making it disappear, I would slide it up, and if I won't need it later, delete it. Here's about the code I would use:

frame:TweenPosition(UDim2.new(0.5,0,-2,0),'Quint','Out',1)
wait(1)
frame:Destroy()
--Or if you need it later on:
frame.ImageTransparency = 1 -- For an image gui.
frame.BackgroundTransparency = 1 -- For a normal frame.

The issue with your script, is that transparency isn't a "valid member of frame" or whatever. Instead of transparency it's BackgroundTransparency or ImageTransparency.

1 comment

0

its would direction, style then time. so "Out", "Quint", "1"

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