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

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

Asked by 5 years ago

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

Log in to vote
0
Answered by
gloveshun 119
5 years ago

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

Ad

Answer this question