game:BindToClose(function()
print(0)
for _,player in pairs(game.Players:GetPlayers()) do
print(1)
if player.Character.Name == "Tiger1" then
print(2)
game.ReplicatedStorage.Saves.Tiger:Clone().Parent = workspace
end
end
end)
If the PlayerRemoving event is fired, there is no need to check if the Player’s Character is being removed, because the character doesn’t matter if the player leaves the game.
Do you want it to only clone the thing when the player leaves, or do you also want it to run if the Player dies? If you just care about when the Character disappears, you can use this code:
Clone it when the player leaves and then when the character is being removed like you scripted the script but I want to check if the character name is tiger 1 then I want to copy it into the workspace!