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?
XSiggeManx
(GreenGuyGaming)
July 25, 2023, 10:19am
#23
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
system
(system)
Closed
August 8, 2023, 12:41pm
#26
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.