Hello, how would I use the X property of Orientation with a script? Thanks.
local part = script.Parent
local incr = 360/20
-- Rotate the part continually
while true do
for deg = 0, 360, incr do
-- Set only the Y axis rotation
part.Rotation = Vector3.new(0, deg, 0)
-- A better way to do this would be setting CFrame
--part.CFrame = CFrame.new(part.Position) * CFrame.Angles(0, math.rad(deg), 0)
wait()
end
end

1 comment
Solved, just had to change deg to the first 0.