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

Zombie models spawn without arms?

Asked by 10 years ago

In my game that I am working on I am trying to load zombies from server storage into workspace through scripts, but when it gets loaded in they will spawn with their arms falling off. Is there any way to counter this? I have tried anchoring the zombie then running a weld script for their arms but the arms end up inside the torso giving them a funny wobble.

Weld script:

local zombie = script.Parent
local rightArm = zombie:WaitForChild("Right Arm")
local leftArm = zombie:WaitForChild("Left Arm")
local torso = zombie:WaitForChild("Torso")

function armWeld(arm,name)
    local weld = Instance.new("Motor6D",torso)
    weld.Name = name
    weld.Part0 = torso
    weld.Part1 = arm
end

armWeld(rightArm,"Right Shoulder")
armWeld(leftArm,"Left Shoulder")

1 answer

Log in to vote
0
Answered by
Thetacah 712 Moderation Voter
10 years ago

Weld their arms with the Instance weld.

0
Or use Motor6Ds if you ever wish to animate them BlackJPI 2658 — 10y
0
I do use motor6Ds CaptainRuno 40 — 10y
Ad

Answer this question