So this function is run when a player leaves
function module.RemoveTable(Player)
wait(30)
if game.Players:FindFirstChild(tostring(Player)) then
print(Player,' Is In The')
else
Mod[Player.UserId] = nil
print('Was Destroyed')
end
end
game.Players.PlayerRemoving:Connect(function(Player)
module.RemoveTable(Player)
but it keeps destroying the table even with the player in the game which means the game thinks hes not in the game
end)

1 comment
if Player is an object then use Player.Name I saw you using Player.UserId, tostringing the Player is like making a part a string...