Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I rotate a brick Using CFrame.fromEulerAnglesXYZ() without colliding any brick?

Asked by 8 years ago

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.

0
Erm... Turn off CanCollide? lightpower26 399 — 8y
0
... CanCollide is OFF. I thing the problem is CFrame. But its still not CFrame. gamerboy0552 0 — 8y

Answer this question