|
| 23 Oct 2012 06:43 PM |
script.Parent.CFrame.Y = CFrame.new(script.Parent.CFrame.Y - 0.5555)
I also tried
script.Parent.CFrame.Y = (script.Parent.CFrame.Y - 0.5555) |
|
|
| Report Abuse |
|
|
|
| 23 Oct 2012 06:46 PM |
| CFrame = script.Parent.CFrame * CFrame.new(0,-0.5555,0) |
|
|
| Report Abuse |
|
|
|
| 23 Oct 2012 06:48 PM |
@Pork I don't need to set the X and Z at 0, I need them to not change |
|
|
| Report Abuse |
|
|
REDALERT2
|
  |
| Joined: 25 Jul 2008 |
| Total Posts: 679 |
|
|
| 23 Oct 2012 06:49 PM |
| script.Parent.CFrame = script.Parent.CFrame + Vector3.new(0,0.5555,0) |
|
|
| Report Abuse |
|
|
|
| 23 Oct 2012 06:49 PM |
It'll do what you want it to do
CFrame * CFrame
Is basically adding it.
You're adding 0 on the X/Z, but subtracting on the Y axis |
|
|
| Report Abuse |
|
|
REDALERT2
|
  |
| Joined: 25 Jul 2008 |
| Total Posts: 679 |
|
|
| 23 Oct 2012 06:50 PM |
| script.Parent.CFrame = script.Parent.CFrame + Vector3.new(0,-0.5555,0)--Forgot to add in the negative sign... |
|
|
| Report Abuse |
|
|
|
| 23 Oct 2012 06:53 PM |
| Thank you both very much :D |
|
|
| Report Abuse |
|
|
REDALERT2
|
  |
| Joined: 25 Jul 2008 |
| Total Posts: 679 |
|
|
| 23 Oct 2012 06:57 PM |
| @XxChop, that actually subtracts off of the object's y-axis, which points between the center of the bottom surface and the center of the top surface of the brick. Your method in many cases can make the brick move downward in a tilted way, sideways, or even upwards. michael likely just wants the brick to move according the the world's axis instead of the brick's axis. |
|
|
| Report Abuse |
|
|
|
| 23 Oct 2012 07:11 PM |
| Vector3 stuff isn't my thing, so I'm guessing you're right. |
|
|
| Report Abuse |
|
|