I used this script to set a parts Orientation when it's clicked, but it says "Cframe is not a valid member of part". Why won't this script work?
local clickdetector = game.Workspace.trap.ClickDetector
clickdetector.MouseClick:Connect(function()
trap.Orientation = CFrame.Angles(0,0,-90)

1 comment
Orientation is a Vector3, not a CFrame.