utabon
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 900 |
|
|
| 21 Jun 2014 09:52 AM |
I'm not that "great" at scripting yet. I have this table and I am trying to randomly spawn a objects at 2 positions. But when I test it, nothing happens. Any help would be appreciated :)
PlayerPoint = game.Workspace.PlayerPoint
Positions = {Vector3.new(115.3, 178.9, 133.5, 166.8, 362.3); Vector3.new(3,2,1)} PlayerPoint:Clone().Position = Positions[ math.random ( 1, #Positions ) ] |
|
|
| Report Abuse |
|
|
utabon
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 900 |
|
|
| 21 Jun 2014 09:59 AM |
I fixed part of it, but it still doesen't work :/
PlayerPoint = game.Workspace.PlayerPoint
Positions = {Vector3.new(133.6, 187.6, 361.8); Vector3.new(108.6, 182.8, 242.2)} PlayerPoint:Clone().Position = Positions[ math.random ( 1, #Positions ) ] |
|
|
| Report Abuse |
|
|
| |
|
utabon
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 900 |
|
|
| 21 Jun 2014 10:12 AM |
| Dude...Do I know you? I dont think so... |
|
|
| Report Abuse |
|
|
DataStore
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 8540 |
|
|
| 21 Jun 2014 10:14 AM |
Anything you clone, by using the Clone method, has its parent property set to nil unless otherwise set. Aka, you need to set the cloned item's parent property to Workspace.
|
|
|
| Report Abuse |
|
|
| |
|
utabon
|
  |
| Joined: 12 Aug 2009 |
| Total Posts: 900 |
|
|
| 21 Jun 2014 10:25 AM |
1. Look at your name 2. I don't know you 3. Stop trying to make me look like an online dater. |
|
|
| Report Abuse |
|
|