wait ()
local X = script.Parent.Orientation.X
local Y = script.Parent.Orientation.Y
local Z = script.Parent.Orientation.Z
while true do
	wait (1)
	script.Parent.TestPart = Vector3.new(X, Y, Z)
	Y = Y + 90
end

This works for a Part but how would i do this for a whole model?.

6 comments

0

just use SetPrimaryPartCFrame and use CFrame.Angles

0

which axis should i have to use to rotate the model 90 degrees?

0

This isnt right: CFrame.Angles(0, 90, 0))

0

CFrame.Angles(0,math.rad(90),0)

0

Yeah CFrame.Angles takes radians. And pi is 180 radians. You can also do CFrame.Angles(0, math.pi/2, 0)

0

incapaz, sorry to say but pi isnt 180 radians, its 180 degrees. pi is pi radians.