Doesn't check the players character(BindToClose)

ok I am giving you the new script

game.Players.PlayerAdded:Connect(function(player)
	print("0")
	player.CharacterRemoving:Connect(function(character)
		print(1)
		if character.Name == "Tiger1" then
			print(2)
			game.ReplicatedStorage.Saves.Tiger:Clone().Parent = workspace
		end
	end)
end)

like that?

Yeah. It should work.
If you only want it to check when the player leaves(not check if the player just dies) you can run the code like this nvm the code is really inconsistent.

2 Likes
game.Players.PlayerRemoving:Connect(function(plr)
	print(0)
	if tostring(plr.Character) == "Tiger1" then
		print(1)
	end
end)

this might work but I don’t think it’s possible to change a character’s name.

Instead of doing this u can store the name of the player who is the tiger and when a player leaves check if the name matches.

1 Like

It worked you are a legend, thank you very much!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.