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
 

Help!

Previous Thread :: Next Thread 
StrikerBOY606 is not online. StrikerBOY606
Joined: 25 Oct 2010
Total Posts: 747
08 Apr 2013 04:37 PM
What I'm trying to get it to do is... (I'm new to tables)

create a new hint with the text choosing minigame in 10,9,8,7 ETC
Then change the text saying randomly selecting minigame
it will then go through the table and select a random minigame to spawn
then change the hints text to minigame chosen: [The minigame name here]

mini = {"Model", "Model2", "Model3"}

while true do
for i = 10, 1, -1 do
h = Instance.new("Hint", game.Workspace)
h.Text = "Choosing next minigame in "..i
wait(10)
h.Text = "Randomly selecting minigame..."
for i,v in pairs(mini) do
game.Lighting(math.random(#mini))
end
h.Text = "Minigame chosen: "..mini[v]
end
end
Report Abuse
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
08 Apr 2013 04:54 PM
I could help you if it dident have those i = 1,1 blah things, I dont understand those.
Report Abuse
kert109 is not online. kert109
Joined: 31 Dec 2009
Total Posts: 681
08 Apr 2013 05:07 PM
while true do
h = Instance.new("Hint", game.Workspace)
for i = 10,1,-1 do
h.Text = "Choosing next minigame in "..tostring(i)
wait(1)
end
h.Text = "Randomly selecting minigame..."
for i,v in pairs(mini) do
game.Lighting(math.random(1,#mini))
end
h.Text = "Minigame chosen: "..mini[v]
wait(60*10) -- 10 minutes
end

I think this will fix it....
Basicly you messed up with the "for i = "
And forgot to put how long each minigame will go on.
Report Abuse
gamert7 is not online. gamert7
Joined: 18 Nov 2008
Total Posts: 4986
08 Apr 2013 05:09 PM
You forgot to add a wait(.1) just putting a while true do would crash his game.
Report Abuse
OldGoldie is not online. OldGoldie
Joined: 17 Aug 2010
Total Posts: 8210
08 Apr 2013 05:10 PM
@game put wait()
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