deathw8
|
  |
| Joined: 04 Mar 2008 |
| Total Posts: 102 |
|
|
| 17 Sep 2011 01:07 PM |
I am making a script to generate parts at an existing (non-colide) part. Here is a snippet or the properties I have set:
brick = Instance.new("Part", game.Workspace) brick.Name = "NewBrick" brick.Size = Vector3.new(3, 2.4, 4) brick.BrickColor = BrickColor.new(217) brick.Position = Workspace.BoxSpawn1.Position
I need it to turn 90 degrees when it spawns. The location where they are supposed to spawn is already rotated. What is the easiest way to rotate these? |
|
|
| Report Abuse |
|
|
smurf279
|
  |
| Joined: 15 Mar 2010 |
| Total Posts: 6871 |
|
|
| 17 Sep 2011 01:10 PM |
| Use CFrame instead of position |
|
|
| Report Abuse |
|
|
deathw8
|
  |
| Joined: 04 Mar 2008 |
| Total Posts: 102 |
|
|
| 17 Sep 2011 01:17 PM |
im having trouble understanding cframe. how would i make it so that it stays at this position 99, 6, 44.5 and rotates 90?
|
|
|
| Report Abuse |
|
|
|
| 17 Sep 2011 01:20 PM |
brick = Instance.new("Part", game.Workspace) brick.Name = "NewBrick" brick.Size = Vector3.new(3, 2.4, 4) brick.BrickColor = BrickColor.new(217) brick.CFrame = Workspace.BoxSpawn1.CFrame * CFrame.Angles(0, math.rad(90),0) |
|
|
| Report Abuse |
|
|
deathw8
|
  |
| Joined: 04 Mar 2008 |
| Total Posts: 102 |
|
|
| 17 Sep 2011 01:27 PM |
| ok thx. ill get a hang of it soon. |
|
|
| Report Abuse |
|
|