Why am I getting this error?
Workspace.Oven.OvenDoor.Handle.Script:7: attempt to index field 'PrimaryPart' (a nil value)
local Handle = script.Parent
local OvenDoor = Handle.Parent.OvenDoor
function openOven()
for i = 1, 12 do
print("Opening...")
OvenDoor:SetPrimaryPartCFrame(script.Parent.Parent.PrimaryPart.CFrame * CFrame.Angles(0, 0, math.rad(5)))
wait()
end
end
Handle.ClickDetector.MouseClick:connect(openOven)

3 comments
The primary part isn't set
And how might I set it?
set the primary part, by going to explorer, clicking on model, go to properties, click primary part, and then click a part in the model (in explorer)