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

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 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 — 6y
Ad

Answer this question