I am basically trying to get a brick inside a model called Door1 to Rotate using a click detector, but I continuously mess up on the actual Function(For reasons I do not know). I don't know what the problem is; hopefully you guys can help me out.
function onClicked() script.Parent.Parent.Door1.Rotation=90, -0, 185
end script.Parent.ClickDetector.MouseClick:connect(onClicked)

2 comments
Isn't math.rad suppost to be math.random?
No, math.rad is different to math.random. Math.rad converts degrees into radians, which are used in CFrame angles. Math.random generates a random integer between one point and another.