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

How do i add a wait function?

Asked by 8 years ago

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

Log in to vote
1
Answered by
DevNetx 250 Moderation Voter
8 years ago

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"
0
Additional info: The "10" in-between the parentheses is in seconds. For example, if you want to wait 5 seconds, do wait(5). XAXA 1569 — 8y
0
Thanks for that! :D DevNetx 250 — 8y
0
Doens't work! 1Minecraft0954 0 — 8y
0
Do you have more than one part called "Part" in workspace? DevNetx 250 — 8y
0
THANKS! i am soooo silly i knew wait(10).... and the rest but i forgot. Thanks! 1Minecraft0954 0 — 8y
Ad

Answer this question