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

My zombies weld keeps breaking.. any idea how to fix?

Asked by
Prioxis 673 Moderation Voter
10 years ago

So heres my respawn script I think the problem is in here I don't exactly have a WELD script it just automatically welds when they respawn and when cloned to the workspace but players keep complaining about how they don't like it

Heres the script

robo=script.Parent:clone()

while true do
    wait()
    if script.Parent ~= nil then
    if script.Parent.Humanoid.Health <= 1  then
        wait(3)
        robot=robo:clone()
        robot.Parent=script.Parent.Parent
        robot:makeJoints()
        script.Parent:remove()
    end
    end
end




If someone doesn't mind rewriting it to just insert a weld and not make joints i'm not very skilled with inserting stuff..

2 answers

Log in to vote
0
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
10 years ago

I never use a weld script for my zombies. I think you can just do it by changing the left, right, top, and bottom faces of the torso to 'weld'.

Ad
Log in to vote
0
Answered by 10 years ago
robo=script.Parent:clone()

script.Parent.Humanoid.Died:connect(function ()
    robo.Parent = script.Parent.Parent
    robo:MakeJoints()
    wait(3)
    script.Parent:remove()
end)

try this

0
It's .Died, not .Die. Perci1 4988 — 10y
0
oops, my bad DragonOfWar900 397 — 10y

Answer this question