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 add a wait function?

How do I put a wait function at the start of the function? can someone please help me

  1. ???

2.game.workspace.Part.Material="Slate"

1 answer

✓ Accepted answer

To wait a certain amount of time in scripts, use wait()

wait(10) -- replace 10 with the time in seconds you want to wait
game.Workspace.Part.Material="Slate"

5 comments

0

Additional info: The "10" in-between the parentheses is in seconds. For example, if you want to wait 5 seconds, do wait(5).

0

Thanks for that! :D

0

Doens't work!

0

Do you have more than one part called "Part" in workspace?

0

THANKS! i am soooo silly i knew wait(10).... and the rest but i forgot. Thanks!

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