So I have a MODEL I need to be rotated when you press R. The script I'm using below won't work because you can't CFrame a model, correct? Well, it was brought to me I should use SetPrimaryPartCFrame. I'm not to sure how to use it though.
What should I replace, or how should I add SetPrimaryPartCFrame functions instead of CFrame to the code below?
model = game.Lighting.Chair.ChairSeat function onKeyPress(inputObject, gameProcessedEvent) if inputObject.KeyCode == Enum.KeyCode.R then model.PrimaryPart.CFrame = model.PrimaryPart.CFrame*CFrame.fromEulerAnglesXYZ(0,math.pi/5,0) end end