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

How do i make the scripts that deletes the script inside a Zombie after it's name is ragdoll?

So I've been trying to figure this out, but I just can't understand what is the cause of the problem The problem is when I use the script it doesn't activate, I don't know if it's because of "while true do" or I just wrote the script wrong, anyways if someone helps me I will be thankful :)

while true do
	wait(0.2)
	local DS = game.Workspace:WaitForChild("RagDoll").UpperTorso.DamageScript
	local name = game.Workspace:WaitForChild("RagDoll")
	DS:Destroy()
	name = "NDR"
end

1 answer

✓ Accepted answer

umm, Parents... positions...

if workspace:WaitForChild("RagDoll") then
    local DS = game.Workspace:WaitForChild("RagDoll").UpperTorso.DamageScript
    local name = game.Workspace:WaitForChild("RagDoll")
    DS:Destroy()
    name.Name = "NDR"
end

i think u want something.... this

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