|
| 07 Dec 2013 09:38 AM |
Alright, so I want to make a player teleport to the top a brick, but I want them to teleport to the top where they're standing in the brick, How do I assign individual values for X,Y, and Z, So the torsos X and Z positions stay the same, but the Y value changes?
Torso.CFrame = CFrame.new(x,y,z) |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2013 09:39 AM |
| That is a really bad Title typo.. |
|
|
| Report Abuse |
|
|
Bebee2
|
  |
| Joined: 17 May 2009 |
| Total Posts: 3985 |
|
|
| 07 Dec 2013 09:40 AM |
| Whatever.CFrame = Whatever.CFrame + Vector3.new(0,9001,0) |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2013 09:49 AM |
Alrighty, but there is still no way to state the Y value. D:
Torso.CFrame = script.Parent.CFrame + Vector3.new(0,(Y pos of brick * 2),0) |
|
|
| Report Abuse |
|
|
| |
|
|
| 07 Dec 2013 09:55 AM |
do CFrame*CFrame its bether than CFrame+Vector3 |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2013 09:57 AM |
| Ok, but still I need to know how I can assign that Y value. |
|
|
| Report Abuse |
|
|
longbow12
|
  |
| Joined: 20 Sep 2008 |
| Total Posts: 565 |
|
|
| 07 Dec 2013 10:00 AM |
Assign the y value of the brick a variable for example
Torso.CFrame = CFrame.new(x,(b.CFrame.y),z)
b representing the brick you want. |
|
|
| Report Abuse |
|
|
vlekje513
|
  |
| Joined: 28 Dec 2010 |
| Total Posts: 9057 |
|
|
| 07 Dec 2013 10:26 AM |
Torso.Position = Vector3.new(x,y,z)
will automaticly teleport you up it? |
|
|
| Report Abuse |
|
|