I am making a pet system, but I need the pets to still follow the "New" character after they reset, instead of the "Old" character. It only works once, then the pet only follows the old character. Here is the script (It is FilteringEnabled also)
game.Players.PlayerAdded:connect(function(Player)
local character = Player.Character or Player.CharacterAdded:wait()
character:WaitForChild("Humanoid").Died:connect(function()
local Doge = game.workspace:FindFirstChild(Player.Name.."Dog")
wait(6)
Doge.RocketPropulsion:Abort()
Doge.RocketPropulsion.Target = Player.character.Torso
Doge.RocketPropulsion:Fire()
end)
end)

1 comment
Thanks soooo much! It helped alot and works in multiplayer too!