Moeru
|
  |
| Joined: 25 Mar 2015 |
| Total Posts: 396 |
|
|
| 29 May 2015 07:25 PM |
local Random_Part = Link_Clone.Parts:GetChildren()[math.random(#Link_Clone.Parts:GetChildren())] local Random_X = math.random(Link_Clone.Spawn_Area.Size.X/-2, Link_Clone.Spawn_Area.Size.X/2) local Random_Y = math.random(Link_Clone.Spawn_Area.Size.Y/-2, Link_Clone.Spawn_Area.Size.Y/2) local Random_Z = math.random(Link_Clone.Spawn_Area.Size.Z/-2, Link_Clone.Spawn_Area.Size.Z/2) Random_Part.Position = Random_Part.Position + Vector3.new(Random_X, Random_Y, Random_Z) for i = 1, 100 do wait(0.001) Random_Part.CFrame = Random_Part.CFrame + Vector3.new(0, 0, 1) end
I thought this was going add '(0, 0, 1)' to all children of 'Link_Clone.Parts'
BUT it only chooses ONE random part. :( |
|
|
| Report Abuse |
|
|
Moeru
|
  |
| Joined: 25 Mar 2015 |
| Total Posts: 396 |
|
| |
|
Moeru
|
  |
| Joined: 25 Mar 2015 |
| Total Posts: 396 |
|
| |
|
Moeru
|
  |
| Joined: 25 Mar 2015 |
| Total Posts: 396 |
|
|
| 29 May 2015 07:34 PM |
| Am I not being clear enough? :C or can you understand? |
|
|
| Report Abuse |
|
|
|
| 29 May 2015 07:35 PM |
| it's cuz you only set your 'Random_Part' variable once, meaning it will NEVER change again until you change it. |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 29 May 2015 07:35 PM |
put the wait after that random part thing
for blah do --stuff wait(0.001) end |
|
|
| Report Abuse |
|
|
Moeru
|
  |
| Joined: 25 Mar 2015 |
| Total Posts: 396 |
|
|
| 29 May 2015 07:38 PM |
| @Legit so what should I do? Or is there a better way to do this whole thing? |
|
|
| Report Abuse |
|
|
Moeru
|
  |
| Joined: 25 Mar 2015 |
| Total Posts: 396 |
|
| |
|
Moeru
|
  |
| Joined: 25 Mar 2015 |
| Total Posts: 396 |
|
|
| 29 May 2015 07:53 PM |
| I'll figure it out I guess. Thanks for help anyways Scripters. C: |
|
|
| Report Abuse |
|
|