doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 30 Jun 2013 10:24 AM |
| I know for most Vector3's you can say: part.Position.X and get the X value. How can this be done for Vector3Values? |
|
|
| Report Abuse |
|
|
Desperian
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
| |
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 30 Jun 2013 10:25 AM |
SpawnPosition.Value.Z = 1
"Z can not be assigned to." |
|
|
| Report Abuse |
|
|
Desperian
|
  |
| Joined: 07 Feb 2012 |
| Total Posts: 3371 |
|
|
| 30 Jun 2013 10:28 AM |
local X, Y, Z = SpawnPosition.Value.X, SpawnPosition.Value.Y, SpawnPosition.Value.Z SpawnPosition.Value = Vector3.new(X, Y, 1)
Hmmm? |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 30 Jun 2013 10:31 AM |
Umm, dude.
game.Workspace.Part.Position = game.Workspace.Part.Position + Vector3.new(0,0,0) |
|
|
| Report Abuse |
|
|
Fedorakid
|
  |
| Joined: 17 Jul 2010 |
| Total Posts: 7079 |
|
|
| 30 Jun 2013 10:31 AM |
| That would only change ONE axis since its pluss its position. If you change one. |
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
|
| 30 Jun 2013 10:34 AM |
| Yeah I got it working with something like that. Thanks |
|
|
| Report Abuse |
|
|
doneyes
|
  |
| Joined: 21 Mar 2008 |
| Total Posts: 3466 |
|
| |
|
|
| 30 Jun 2013 10:40 AM |
| you can't assign an individual coordinate of a Vector3. the X, Y, and Z properties are read-only |
|
|
| Report Abuse |
|
|