of     1   

DJSasuke1963
#140345125Monday, July 14, 2014 10:31 PM GMT

How would I rotate a brick 90 degrees in script?
Accedo
#140347023Monday, July 14, 2014 10:48 PM GMT

while true do wait() script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0,0.01,0) --[[ Change (0,0.01,0) to whatever number is needed to make it rotate 90 degrees. Don't change the ones that are 0, those are different axises or whatever. Just change the 0.01 to whatever number ya need]] end
thejonathann
#140500261Wednesday, July 16, 2014 7:50 AM GMT

brick.CFrame = brick.CFrame * CFrame.Angles(0, math.rad(90), 0)
luigi01302
#140503417Wednesday, July 16, 2014 9:02 AM GMT

theJonathann's one can only be used in Command Bar. for i = 1, 90, 1 do wait() brickCFrame = game.Workspace.brick.CFrame brickCFrame = brickCFrame.Angles(0, math.rad(i),0) end
luigi01302
#140503588Wednesday, July 16, 2014 9:07 AM GMT

Hang on, error done here. brick = game.Workspace.brick repeat wait() brickCFrame = game.Workspace.brick.CFrame brickCFrame = brickCFrame + brickCFrame.Angles(0, math.rad(1),0) until brickCFrame == brickCFrame.Angles(whatevernumber) end

    of     1