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

why wont this cframe work?

Asked by
lukeb50 631 Moderation Voter
9 years ago

why wont this move?

game.Workspace.DoorParts.MainDoor.Cframe=1,30,0

hope you guys can figure this out

1 answer

Log in to vote
0
Answered by 9 years ago

Thats because you cannot directly assign the CFrame of a part to a bunch of numbers. You have to make the cframe equal another cframe. (also, the f in CFrame is capitalized.) To make this work, you would do:

game.Workspace.DoorParts.MainDoor.CFrame = CFrame.new(1, 30, 0)

Ad

Answer this question