I was watching a tutorial for AlvinBlox (Beginner Roblox Scripting Tutorial 3 - Dice Game (Properties,Referencing Part 2] - YouTube ) It was about making a dice game, where the dice will fall onto the ground, and AlvinBlox put “wait(0.5)” in his script.
I did the script exactly as he did, but the script doesn’t wait for the second dice.
Script:
game.Workspace.Dice1.Anchored = false
wait(0.5)
game.Workspace.Dice2.Anchored = false
I also put this in ServerScriptService, as he did too, and I don’t know why my script isn’t working.
1 Like
Dorthsky
(askaye)
April 13, 2021, 11:56pm
#2
Your problem is when you start playing in roblox it will load. (obviously)
But the problem is that the physics will start before anything you see will start. So roblox is processing that it dropped, but your computer hasn’t. (if any of this makes sense.)
What you want to do is add a wait before any of them drop.
wait(2)
game.Workspace.Dice1.Anchored = false
wait(0.5)
game.Workspace.Dice2.Anchored = false
Something like this would work.
If you want to get fancier you could use ContentProvider | Roblox Creator Documentation .
Hope this helps.
1 Like
thats exactly the same tho he he wrote.
1 Like
wait never mind didn’t see the wait statement.
1 Like
Thanks! It now works!
I’m new to scripting, lol!
1 Like
Dorthsky
(askaye)
April 14, 2021, 12:04am
#6
No problem, glad I could help.
this is really really fun.