Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Need help on this Cframe script?[SOLVED]

Asked by 9 years ago

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

Log in to vote
3
Answered by 9 years ago

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.

0
Thanks rabidhalofan12345 55 — 9y
0
does this work with union parts rabidhalofan12345 55 — 9y
0
Plus.. Adding on, The F in CFrame is supposed to be capital. Grenaderade 525 — 9y
Ad

Answer this question