I’m not really good at scripting so I’ll need some help with this one.
Basically I’m trying to destroy the parent of the script after its died
Local Humanoid.Died:connect(OnDeath)
wait(10)
script.Parent:Destroy()
end
I’m not really good at scripting so I’ll need some help with this one.
Basically I’m trying to destroy the parent of the script after its died
Local Humanoid.Died:connect(OnDeath)
wait(10)
script.Parent:Destroy()
end
local Humanoid = -- humanoid location
Humanoid.Died:Connect(function()
wait(10)
script.Parent:Destroy()
end)
local Humanoid = --path to Humanoid
Died event:Humanoid.Died:Connect(function()
task.wait(10)
script.Parent:Destroy()
end)
wait anymore. Use task.wait. It’s better.I already said that with maybe less info but okay