How to change CFrame of a model

The script:

local Rocket = game.Workspace.Rocket – this is a model
local orientation, size = Rocket:GetBoundingBox()
for i = 1, 1000 do
wait(0.05)
orientation = orientation * CFrame.new(0,0.1,0)
print(“works”)
end

I need this Rocket to fly up, but it doesn’t. It doesn’t even print something in the output, except for “print(“works”)”.

use the :PivotTo(cframe) function.

3 Likes

This idea would come weird.
Weld every parts to the mainpart of the model and unacnhor them(expect mainpart).then when you set the mainpart position anywhere it will work.