|
| 21 Aug 2011 07:03 PM |
~ #Parts == 5 ~
for i = 1, #Parts do wait() local Pos = Instance.new("BodyPosition") Pos.D = 500 Pos.P = 600 Pos.position = Parts[i].Position + Vector3.new(math.random(-20, 20), math.random(-20, 20), math.random(-20, 20)) local Spread = game.Workspace["Game Global"].Spread:Clone() Spread.Parent = Parts[i] Spread.Disabled = false Pos.Parent = Parts[i] Parts[i].Parent = _G["Animations"] end
Output: Running Script "Workspace.Animations.Part.Spread" (*50+) Too much messages generated, discarding 223 |
|
|
| Report Abuse |
|
|
Ozzypig
|
  |
| Joined: 27 Mar 2008 |
| Total Posts: 4906 |
|
|
| 21 Aug 2011 07:32 PM |
Do not :clone() scripts.
~Ozzy roblox.com/my/groups.aspx?gid=372 |
|
|
| Report Abuse |
|
|
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
|
| 21 Aug 2011 07:45 PM |
isn't it just much easier to run the scripts there?
for i=1,#Parts do coroutine.create(coroutine.resume(function() --stuff here end)) |
|
|
| Report Abuse |
|
|
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
|
| 21 Aug 2011 07:45 PM |
Sorry I'm barely paying attention, watching the princess bride.
for i=1,#Parts do coroutine.resume(coroutine.create(function() --stuff here end)) end |
|
|
| Report Abuse |
|
|
Ozzypig
|
  |
| Joined: 27 Mar 2008 |
| Total Posts: 4906 |
|
|
| 21 Aug 2011 07:47 PM |
@above I love that movie.
Also: use generic for statement for tables.
~Ozzy roblox.com/my/groups.aspx?gid=372 |
|
|
| Report Abuse |
|
|
SDuke524
|
  |
| Joined: 29 Jul 2008 |
| Total Posts: 6267 |
|
|
| 21 Aug 2011 07:49 PM |
@Ozzy It's a classic :P
and I was just using his example. |
|
|
| Report Abuse |
|
|