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

Moving The CFrame of a model to the left?

Asked by 6 years ago

I know how to rotate an entire model but I do not know how to move an entire model using CFrame.

game.Workspace.Elevator:SetPrimaryPartCFrame()

I know that is how do you do it, but I am not sure what goes in between the ()

0
The CFrame User#20388 0 — 6y

1 answer

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

You define the coordinates

Ex :

game.Workspace.Elevator:SetPrimaryPartCFrame(CFrame.new(-14, -0, -129.5))

Using CFrame.new

or

Try This if you want to use a repeat

for v = -8.5, 0, 0.5 do
    model:SetPrimaryPartCFrame(CFrame.new(-14, v, -129.5))
    wait(.1)
end

Read this as for each v from -8.5 to 0 by steps of 0.5 ....

Hope this helps

Ad

Answer this question