local time = 10
game.Players.CharacterAutoLoads = false
game.Players.PlayerAdded:connect(function(player)
game.Players.CharacterAutoLoads = true
repeat wait() until player.Character
game.Players.CharacterAutoLoads = false
player.Character.Humanoid.Died:connect(function()
wait(time)
player:LoadCharacter()
end)
end)

I want to use this script for an ai humanoid, which is grouped and named Zombie. It works fine, but its for all the players. How do i make it so that this script is set for the Zombie that this script is in. So if this is inside the model "Zombie", i want it to work just for the Zombie.

1 comment

0

Put your script in a code block.