I'm making an elevator game and for one of the floors I want to make a script to spin the elevator and I tried using fromEulerAnglesXYZ but it says Workspace.Elevator.Elevator.SpinScript:2: invalid argument #1 (CFrame expected, got nil), Can anyone help?
Here's my code
while true do
script.Parent:GetChildren().CFrame = script.Parent:GetChildren().CFrame * CFrame.fromEulerAnglesXYZ(0.0,0.1,0.0)
wait()
end

2 comments
What do I use as a primary part?
You can use any part that is part of the model as the primary part.