numberHolder = 999999
local base = game.Workspace.BackofWindmill
local part = game.Workspace.Windill
local motor = Instance.new("Motor", game.JointsService)
motor.Part0 = base
motor.Part1 = part
motor.C0 = CFrame.new(0,0,1)
motor.C1 = CFrame.new(0,0,-1)
motor.MaxVelocity = math.rad(2)
motor.DesiredAngle = math.rad(-numberHolder)
This script worked before but it is rotating on the wrong axis and flips the model face down.

1 comment
Please put the script inside a code block. It's the button that looks like a blue Lua bubble