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

how do i make a gui disappear after you are done using it? [SOLVED]

Asked by
hoth7 45
5 years ago
Edited 5 years ago

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!

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 yHasteeD 1819 — 5y
0
didn't work hoth7 45 — 5y
0
game.Workspace.StarterGui.ScreenGui.VirusContinues.Visible = false MArzalAlBuchariZ 33 — 5y
0
that didn't work since startergui is not inside workspace hoth7 45 — 5y
View all comments (4 more)
0
Do you want the text label or the whole frame to disappear. CaptainD_veloper 290 — 5y
0
the whole frame hoth7 45 — 5y
0
Also MArzalAlBuchariZ, it would be game.Players.LocalPlayer(Asuming this is in a local script where it should be.).PlayerGui.ScreenGui . . . Knineteen19 307 — 5y
0
Also if you want the entire ScreenGui to disappear, you can do ScreenGui.Enabled = false. Knineteen19 307 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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.

0
its would direction, style then time. so "Out", "Quint", "1" tonyv537 95 — 5y
Ad

Answer this question