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

my rotation script tilting model on the wrong axis?

Asked by 8 years ago
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.

0
Please put the script inside a code block. It's the button that looks like a blue Lua bubble Validark 1580 — 8y

Answer this question