Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
0

How do i make a part/parts rotate in local space?

Asked by 7 days ago

I am trying to rotate car wheels but whenever its turned on one axis and then turns on another it completely messes it up.

script:

game:GetService("RunService").Heartbeat:Connect(function()
    for i,v in pairs(script.Parent.Parent.Parent.FLSS:GetChildren()) do
        if v:IsA("Weld") then
            v.C1 = v.C1 * CFrame.Angles(0,0,-script.Parent.Parent.Speed.Value)
        end
    end
end)

thx

Answer this question