|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
| |
|