For some reason, this script doesn't work. I need help. The first script is the parent of the second script and the second script is supposed to be the UpperTorso's child.
local anim = script:FindFirstChild("Death Animation")
anim:Clone().Parent = script.Parent.UpperTorso
First script above.. Second script below..
if script.Parent.Parent.Humanoid.Health == 0 then
wait(3)
script.Parent.Anchored = true
script.Parent.CanCollide = false
repeat until script.Parent.Transparency == 1 do
script.Parent.Position.Y = script.Parent.Position.Y + .1
script.Parent.Transparency = script.Parent.Transparency + .01
wait(0.1)
print("Transparency went up by 0.01")
end
if script.Parent.Transparency == 1 then
script.Parent.Parent:Destroy()
end
end
