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

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

how i new am roblox studio

2 answers

✓ Accepted answer

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

1 comment

0

sorry, this was my younger brother i already know how too but thanks

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

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