I need help on my cframe script i want to move something up a certain height using a while loop but the output says that cframe is a nil value.
1 | game.Workspace.Plane.Cframe = Cframe.new( 0 , 10 , 0 ) |
Plane is a model in workspace
Models don't have a CFrame, only parts do. (You also need to capitalize the "f" in CFrame by the way) In order to move a model without moving all of the parts in the model you can use Moveto which would be implemented like this:
1 | Workspace.Plane:MoveTo(Vector 3. new( 0 , 10 , 0 )) |
This is the Moveto wiki page in case you want more information.