Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Add + (0,0,5) to a current part CFrame?

Asked by 5 years ago

Hello How Could i add (0,0,5) to a Current Part CFrame i tried to do it like this

Part.CFrame = Part.CFrame + CFrame.new(0,0,5) and alot of other tries but it still did not worked so i am here asking for answer? i actually have no idea how to do that so no judging thank you.

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

For the camera's position do..

camera.CFrame = CFrame.new(Vector3.new(camera.CFrame.X, camera.CFrame.Y, camera.CFrame.Z + 5))

.. I guess?

0
to move object User#21499 0 — 5y
0
Then use the position property. Ashley_Phantom 372 — 5y
0
okay but how should i do that? User#21499 0 — 5y
0
Edited. Ashley_Phantom 372 — 5y
View all comments (8 more)
0
Camera does not have Position. User#21499 0 — 5y
0
You're trying to.. move the camera? Ashley_Phantom 372 — 5y
0
yeah? User#21499 0 — 5y
0
because i want to fix this https://imgur.com/a/Kyu1pJ7 User#21499 0 — 5y
0
Try now? Ashley_Phantom 372 — 5y
0
wait no Ashley_Phantom 372 — 5y
0
There Ashley_Phantom 372 — 5y
0
thanks* User#21499 0 — 5y
Ad

Answer this question