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

Need help on this Cframe script?[SOLVED]

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

1 answer

✓ Accepted answer

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.

3 comments

0

Thanks

0

does this work with union parts

0

Plus.. Adding on, The F in CFrame is supposed to be capital.

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