--archiable Checklist
--cancollide Checklist
--Anchored Checklist
--images==>find dice1
game.Workspace.Dice1.Anchored = false
wait(1)
game.Workspace.Dice2.Anchored=false
for i = 0,5,1 do
game.Workspace.Dice1.Anchored = false
wait(0.5)
game.Workspace.Dice2.Anchored = false
wait(3)
game.Workspace.Dice1.Position = Vector3.new(-21,33.314,0)
game.Workspace.Dice2.Position = Vector3.new(-21,33.314,0)
end
for i = 0,5,1 do
game.Workspace.Dice1.Anchored = false
wait(0.5)
game.Workspace.Dice2.Anchored = false
wait(3)
game.Workspace.Dice1.Position = Vector3.new(-21,33.314,0)
game.Workspace.Dice2.Position = Vector3.new(-21,33.314,0)
game.Workspace.Dice1.Orientation = Vector3.new(math.random(),math.random(),math.random())
game.Workspace.Dice2.Orientation = Vector3.new(math.random(),math.random(),math.random())
end
Play it
--Button
--Script
--ClickDetector
--
--declare
--button object
--local button = game.Workspace.Button --biggest/main universe of roblox
local button = script.Parent.ClickDetector --declare from the script
local Dice1 = game.Workspace.Dice1
local Dice2 = game.Workspace.Dice2
--declare function(set instruction)
local function shaker()
Dice1.Anchored = false
Dice2.Anchored = false
Dice1.Position = Vector3.new()
Dice2.Position = Vector3.new()
local a = math.random(-50,50)
local b = math.random(-50,50)
local c = math.random(-50,50)
Dice1.BrickColor = Brickcolor.random()
Dice2.BrickColor = Brickcolor.random()
Dice1.Orientation = Vector3.new(a,b,c)
Dice2.Orientation = Vector3.new(c,a,b)
end
button.MouseClick:Connect(shaker)