Bitwyl
|
  |
| Joined: 15 Nov 2014 |
| Total Posts: 7276 |
|
|
| 03 Mar 2017 12:28 AM |
I'm trying to do something like this:
cam.CoordinateFrame = CFrame.new(player.Character.Head.Position - 5)
where the cframe is positioned a little ways away from the characters head.
obviously I don't know how to do this. help? |
|
|
| Report Abuse |
|
|
Bitwyl
|
  |
| Joined: 15 Nov 2014 |
| Total Posts: 7276 |
|
|
| 03 Mar 2017 12:30 AM |
nevermind, you're supposed to subtract using vector3.
|
|
|
| Report Abuse |
|
|
Bitwyl
|
  |
| Joined: 15 Nov 2014 |
| Total Posts: 7276 |
|
|
| 03 Mar 2017 12:57 AM |
| ugh nvm, I need help I'm trying to position the camera to the left of the player..slightly. cam.CoordinateFrame = CFrame.new(player.Character.HumanoidRootPart.Position) + Vector3.new(-1,-1,-1) ive tried ## ## ## ## and switched up the vector3 values...and nothing is working. is there another way I should be doing this or.... |
|
|
| Report Abuse |
|
|
Bitwyl
|
  |
| Joined: 15 Nov 2014 |
| Total Posts: 7276 |
|
|
| 03 Mar 2017 12:57 AM |
| hashtags are the operation signs |
|
|
| Report Abuse |
|
|
Bitwyl
|
  |
| Joined: 15 Nov 2014 |
| Total Posts: 7276 |
|
| |
|
Bitwyl
|
  |
| Joined: 15 Nov 2014 |
| Total Posts: 7276 |
|
| |
|
Bitwyl
|
  |
| Joined: 15 Nov 2014 |
| Total Posts: 7276 |
|
| |
|
|
| 03 Mar 2017 04:14 AM |
relative to rotation:
cam.CFrame = player.Character.Head.CFrame:toWorldSpace(CFrame.new(-5,0,0))
not relative:
cam.CFrame = CFrame.new(player.Character.Head.Position - Vector3.new(5,0,0))
|
|
|
| Report Abuse |
|
|
Bitwyl
|
  |
| Joined: 15 Nov 2014 |
| Total Posts: 7276 |
|
| |
|