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

why wont this cframe work?

why wont this move?

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

hope you guys can figure this out

1 answer

✓ Accepted answer

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)

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