Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Moving The CFrame of a model to the left?

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 ()

1 comment

0

The CFrame

1 answer

✓ Accepted answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.