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

how to make something invisible after you wait a few seconds?

Asked by 3 years ago

how i new am roblox studio

2 answers

Log in to vote
1
Answered by 3 years ago

You can use a wait() function to delay the script for x amount of seconds. For example,

wait(3) -- Number of seconds for the delay
script.Parent.Visible = false -- Sets the visibility of the UI that the script is attached to as false
0
sorry, this was my younger brother i already know how too but thanks momgggbghghghghg 50 — 3y
Ad
Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

Use the wait() function and change the amount of time in the wait function. (I’m replying to your little brother momgggbghghghghg)


brick.Anchored = true -- just to make sure the brick is anchored wait(4) -- the delay script.Parent.Transparency = 1 -- part transparency, to make a GUI Invisible, make it Visible. script.Parent.CanCollide = false -- delete this line if you don’t want this brick to be go though

Answer this question