Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 23 Jan 2015 02:05 PM |
Or at least for officially the past week.
I really need the scripts inside of these to choose two different numbers no matter what, but if you test it you see that they are somehow choosing the same numbers, you can also see how my things are set up if that helps.
I figured the only way for it to get fixed is for me to make it a free model, so here: www.roblox.com/Chests-item?id=207081569
|
|
|
| Report Abuse |
|
|
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
|
| 23 Jan 2015 02:09 PM |
What is it supposed to do? Each chest display different tools?
Hey, check this place out! http://www.roblox.com/Maze-Escape-Deep-Alpha-place?id=194858740 |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
| |
|
|
| 23 Jan 2015 02:15 PM |
| There could be something wrong with the part of the script that ensures it doesn't pick the same thing twice. Just use table.remove, it is easier to read and understand and use. |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 23 Jan 2015 02:21 PM |
@Jarod If I use table.remove, won't that just completely remove the table and make it so nothing's visible? |
|
|
| Report Abuse |
|
|
Hibobb
|
  |
| Joined: 18 Apr 2010 |
| Total Posts: 2146 |
|
|
| 23 Jan 2015 02:28 PM |
Wouldn't it be easier to have one script control both boxes? So you have your table of tools:
local tools = {"Sword","Bat",etc.}
then make a "clone table"
local ctools = tools
and then choose six tools from the list and remove them once chosen
chosenTools = {} for i = 1,6 do if #ctools > 0 then local chosen = math.random(1,#ctools) table.insert(chosenTools,ctools[chosen]) table.remove(ctools,chosen) end end
Hey, check this place out! http://www.roblox.com/Maze-Escape-Deep-Alpha-place?id=194858740 |
|
|
| Report Abuse |
|
|
|
| 23 Jan 2015 02:31 PM |
| Well do a copy of the table and use table.remove on that instead. |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 23 Jan 2015 02:32 PM |
| The thing is, they aren't actual tools, they're just ImageButtons. Is that technique gonna work for them too? |
|
|
| Report Abuse |
|
|
|
| 23 Jan 2015 02:35 PM |
| Of course. Why wouldn't it? |
|
|
| Report Abuse |
|
|
Klink45
|
  |
| Joined: 06 Jun 2011 |
| Total Posts: 26054 |
|
|
| 23 Jan 2015 02:38 PM |
@Hibobb Where do I put the script. Is workspace fine? |
|
|
| Report Abuse |
|
|