I am trying to script a brick that rotates with a click of a brick.
function onClicked()
for i=1, 31 do
wait(0.01)
script.Parent.Parent.TopTwo.CFrame=script.Parent.Parent.TopTwo.CFrame*CFrame.fromEulerAnglesXYZ()
end
end
script.Parent.ClickDetector.MouseClick:connect(onClicked)
That's the script. But when I set a number on the XYZ axis, executed the command, the brick with that script collides the brick that has the same script. I don't know if you understand that because I'm not good at english but please try to help me. BTW, it must rotate at the X Axis.

2 comments
Erm... Turn off CanCollide?
... CanCollide is OFF. I thing the problem is CFrame. But its still not CFrame.