I Need Some One To Help Me, I'm Making A Zombie Game And Every Time One Of The Zombies Die I Want Them To Regen, I'm New To Coding So I Don't Know Every Thing But I Have This So Far:
local regenTime = 60
local messageTime = 2.5
local model = script.Parent
local message = Instance.new("Message")
if model ~= workspace then
local backup = model:clone()
while true do
wait(60)
message.Parent = game.Workspace
wait(messageTime)
message.Parent = nil
--Copy the backup
model = backup:clone()
model.Parent = game.Workspace
model:makeJoints()
end
else
error("Script not put in a model! Nothing to regenerate!")
end
Can Some One Edit This So It Only Regens Upon Death Of The Humanoid?

3 comments
Use the Died event. Look it up in the wiki
Thanks For That Tip, But How Do I Make It Do The Clone With The Example It Gives?
mario i already answered your question