generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: I need some help here...

Previous Thread :: Next Thread 
MrPieOfDoom is not online. MrPieOfDoom
Joined: 30 Oct 2008
Total Posts: 303
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
MrPieOfDoom is not online. MrPieOfDoom
Joined: 30 Oct 2008
Total Posts: 303
11 Nov 2008 03:36 PM
please? help?
Report Abuse
MrPieOfDoom is not online. MrPieOfDoom
Joined: 30 Oct 2008
Total Posts: 303
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
MidNightKiller is not online. MidNightKiller
Joined: 09 Mar 2008
Total Posts: 2773
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
MrPieOfDoom is not online. MrPieOfDoom
Joined: 30 Oct 2008
Total Posts: 303
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
MrPieOfDoom is not online. MrPieOfDoom
Joined: 30 Oct 2008
Total Posts: 303
11 Nov 2008 04:15 PM
oh, come on! help!
Report Abuse
MrPieOfDoom is not online. MrPieOfDoom
Joined: 30 Oct 2008
Total Posts: 303
11 Nov 2008 04:21 PM
well, I've got it all figured out, no thanks you guys.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image