|
| 03 May 2013 03:14 PM |
m = {1, 2, 3}
while true do
i = - How do i make it get Math.random for m? I forgot the lines for it. i:clone().Parent = Workspace wait(50) i:remove()
end
-- Unless i completely screwed up the stuff here, it's suppose to get random items from m (ex: Randomly choose 1, 2, or 3), clone it to the workspace, wait, then remove it and choose a new random.
|
|
|
| Report Abuse |
|
|
|
| 03 May 2013 03:15 PM |
local i = m[math.random(1, #m)]
~This sig is false~ |
|
|
| Report Abuse |
|
|
|
| 03 May 2013 03:17 PM |
m = {1, 2, 3}
while true do local ran = m[math.random(1, #m)] i:clone().Parent = Workspace wait(50) i:remove() wait(1) end |
|
|
| Report Abuse |
|
|
|
| 03 May 2013 03:51 PM |
@Cheese,
Used the line, stackend at i:clone.
I changed ran, did not work, so i changed it back.
I then changed the i's, did not work, so i changed it back. |
|
|
| Report Abuse |
|
|
| |
|
As8D
|
  |
| Joined: 24 Dec 2009 |
| Total Posts: 2907 |
|
|
| 03 May 2013 04:03 PM |
Really...
You can't clone a NUMBER, right?
i is a number, after all... not an instance.
So yeah, tell us where the objects to be randomly selected is located, and it can be made far more flexible.
- As, sjapum, I'm bored. No big news? Ohwell, then it's small news. |
|
|
| Report Abuse |
|
|
|
| 03 May 2013 04:16 PM |
@As: If your going to complain then leave, i don't want to hear it.
|
|
|
| Report Abuse |
|
|
As8D
|
  |
| Joined: 24 Dec 2009 |
| Total Posts: 2907 |
|
|
| 03 May 2013 04:47 PM |
Noep.
I'm just pointing out what's causing the script to error for you to shout "OH YES, THAT WAS THE PROBLEM! HOORAI!"
^
But still; tell me where your objects are located, so we can produce you an effective and flexible script.
- As, OH YES, NUMBERS! Quadratic numbers... leet numbers... wuz? |
|
|
| Report Abuse |
|
|