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.
game.Workspace.Plane.Cframe = Cframe.new(0, 10, 0)
Plane is a model in workspace
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.
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:
Workspace.Plane:MoveTo(Vector3.new(0, 10, 0))
This is the Moveto wiki page in case you want more information.
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
Thanks
does this work with union parts
Plus.. Adding on, The F in CFrame is supposed to be capital.