Hello! I am Lows3D and I’m currently learning how to program in LUA. I started watching @Alvin_Blox beginner series.
I just did the Dice Video, but I went with my own format just to practice.
Here’s my code:
local D1 = game.Workspace:WaitForChild("Dice1")
local D2 = game.Workspace:WaitForChild("Dice2")
workspace.Gravity = 450 --// Sets Gravity
D1.Anchored = false --// Roll Dice 1
wait(.5)
D2.Anchored = false --// Roll Dice 2
I am wanting to add more variety to this dice game, as whenever I Run the script, I get the same results. I want to have a random result. And I need to set a random orientation for that.
If you guys help me, please don’t just send a few lines of code without explaining it. I’d like to learn from it, thanks!