|
| 21 Jul 2013 11:47 PM |
| One thing I've never understood is how to move things to a location other than an exact location, but a location say, 10 studs up from where they originally were. So, for example say there's a random brick at any location. How would a script work that moves the brick up exactly 10 studs? |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2013 11:48 PM |
| part.Position = part.Position + Vector3.new(0, 10, 0) |
|
|
| Report Abuse |
|
|
|
| 21 Jul 2013 11:49 PM |
part.CFrame = part.CFrame + Vector3.new(0, 10, 0)
That moves it up ten studs. If you want to move it ten studs depending on where the part's top is facing, then you'd do,
part.CFrame = part.CFrame*CFrame.new(0, 10, 0) |
|
|
| Report Abuse |
|
|