I'm trying to make it where, when someone clicks a brick, the brick makes another brick turn. But the output is saying 'Rotation' isn't right and the actual rotation.
function onClicked() script.Parent.Rotation.new = {0,3,3} --the actual rotation. end script.Parent.ClickDetector.MouseClick:connect(onClicked)
function Clicked() script.Parent.CFrame = CFrame.new(POSITION OF BRICK))*CFrame.Angles(script.Parent.CFrame.r+Vector3.new(HOW MUCH YOU WANT IT TO ROTATE) end script.Parent.ClickDetector.Clicked:connect(Clicked)
Try
function onClicked() script.Parent.Rotation = Vector3.new(0, 3, 3) end script.Parent.ClickDetector.MouseClick:connect(onClicked)