Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

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

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

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'.

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

2 comments

0

It's .Died, not .Die.

0

oops, my bad

This discussion is preserved as it was. New answers, comments, and votes are closed.