local handle = script.Parent.Door.Handle
local door = script.Parent.Door.Model
handle.ClickDetector.MouseClick:Connect(function()
handle:SetPrimaryPartCFrame(handle:GetPrimaryPartCFrame() * CFrame.fromEulerAngles(0,math.rad(90), 0)
end)
This code is supposed to make a handle for a door rotate when "Mouseclick" Fires I cannot figure out the error
Script analysis states errors as being
(6,1) Expected ')' (to close '(' at line 5), got 'end'
(5,103) Expected 'end' (to close 'function' at line 4), got <eof>