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

Motor6D not connecting parts correctly?

Asked by 5 years ago
Edited 5 years ago

I made a custom rig it looks like a normal player just a lot smaller I'm am aiming to make an animated NPC for an RTS game I can't find many Motor6D references and I'm kind of winging it at this point and requesting a temp wingman.

local hrp = script.Parent:WaitForChild("HumanoidRootPart")

for i,child in pairs(script.Parent:GetChildren()) do
    if child:IsA("BasePart") and child ~= hrp then
        local motor = Instance.new("Motor6D")
        motor.Part0 = child
        motor.Part1 = hrp
        motor.Name = child.Name.."Motor6D"
        motor.Parent = hrp

        child.Anchored = false
    end
end

hrp.Anchored = false
script:Destroy()

This link shows the problem

https://gyazo.com/24c5bfa126c292bd3ec837f9e468879f

This link shows the model

https://gyazo.com/d7cf341a217593089468e277e243bacf

I don't want to use any plugins.

0
If the gyazo link is blocked for you for some odd reason jsut copy and paste it johndeer2233 439 — 5y

1 answer

Log in to vote
1
Answered by
IrishFix 124
5 years ago

Might be a bit late, but i have found an article which could help you figure your way around this issue here Sorry for the late ness! - Regards Irish

0
I figured this out a while ago. But I'll solve it for trying thanks! johndeer2233 439 — 5y
Ad

Answer this question