|
| 11 Nov 2008 03:20 PM |
I have this minigame script, but I want it to chose from only 1 and 2. it chooses from 1, 2, 3, 4, 5, 6 and 7. please help!
plate = game.Workspace.Base mini1 = game.Workspace.mini1 mini1.Parent = nil function Minigame(N) local M = Instance.new("Message")
if game.Workspace:findFirstChild("Dice") ~= nil then game.Workspace.Dice:remove() end local dice = game.Lighting.Dice dice:clone().Parent = game.Workspace
if N == 1 then
M.Parent = game.Workspace M.Text = "Minigame 1: Rocket Platforms!" wait(3) M.Parent = nil
mini1.Parent = game.Workspace M.Parent = game.Workspace M.Text = "If you aren't on a white platform, you should get on one." wait(1) M.Text = "5" wait(1) M.Text = "4" wait(1) M.Text = "3" wait(1) M.Text = "2" wait(1) M.Text = "1" wait(1) M.Text = "go!" game.Workspace.Plat.CanCollide = false plate.Parent = nil wait(1) M.Parent = nil wait(2) game.Workspace.Plat.CanCollide = true
wait(60)
M.Parent = game.Workspace M.Text = "End of Rocket Platforms!" mini1.Parent = nil wait(2) plate.Parent = game.Workspace M.Text = "Picking new minigame..." wait(2) M.Parent = nil
if N == 2 then print("Pie") end end
wait(15) RNG(1,2) end
function RNG(x1,x2) local RN = math.random(x1,x2) print("[" .. RN .. "]") Minigame(RN) print("1") end
wait(1) RNG(6,6)
that's the script, up there. |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Nov 2008 03:47 PM |
omg! help!!! wait, is it:
plate = game.Workspace.Base mini1 = game.Workspace.mini1 mini1.Parent = nil function Minigame(N) local M = Instance.new("Message")
if game.Workspace:findFirstChild("Dice") ~= nil then game.Workspace.Dice:remove() end local dice = game.Lighting.Dice dice:clone().Parent = game.Workspace
if N == 1 then
M.Parent = game.Workspace M.Text = "Minigame 1: Rocket Platforms!" wait(3) M.Parent = nil
mini1.Parent = game.Workspace M.Parent = game.Workspace M.Text = "If you aren't on a white platform, you should get on one." wait(1) M.Text = "5" wait(1) M.Text = "4" wait(1) M.Text = "3" wait(1) M.Text = "2" wait(1) M.Text = "1" wait(1) M.Text = "go!" game.Workspace.Plat.CanCollide = false plate.Parent = nil wait(1) M.Parent = nil wait(2) game.Workspace.Plat.CanCollide = true
wait(60)
M.Parent = game.Workspace M.Text = "End of Rocket Platforms!" mini1.Parent = nil wait(2) plate.Parent = game.Workspace M.Text = "Picking new minigame..." wait(2) M.Parent = nil
if N == 2 then print("Pie")
end end
wait(15) RNG(1,2) end
function RNG(x1,x2) local RN = math.random(x1,x2) print("[" .. RN .. "]") Minigame(RN) print("1") end
wait(1) RNG(2,2)
is that it? |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2008 03:49 PM |
| wow, its actually choosing between 1-7? i'm suprised it even works! i'm so confused by this script, i'm suprised it runs! |
|
|
| Report Abuse |
|
|
|
| 11 Nov 2008 03:52 PM |
ok, I got it to work, but how would I do 1-3? is it this at the end:
wait(15) RNG(1,3) end
function RNG(x1,x2) local RN = math.random(x1,x2) print("[" .. RN .. "]") Minigame(RN) print("1") end
wait(1) RNG(1,3)
or:
wait(15) RNG(1,2,3) end
function RNG(x1,x2) local RN = math.random(x1,x2) print("[" .. RN .. "]") Minigame(RN) print("1") end
wait(1) RNG(1,2,3)
|
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Nov 2008 04:21 PM |
| well, I've got it all figured out, no thanks you guys. |
|
|
| Report Abuse |
|
|