#player.UserId, player.Name, player.DisplayName sometimes only returns <Player> and <PlayerId>

1 messages · Page 1 of 1 (latest)

zinc charm
#

I have a script that will do a warn with a players name, userid, and display name but sometimes it will only return <Player> or <PlayerId> instead of the actual players data. Which is an issue because I use it to log potential exploiters in my game to add to a ban wave list to later ban.

I've attached an image of what I see in the error logs, and you'll notice that sometimes it gives me the players data and sometimes it does not.

This is the code:

local playerName = player.Name
        local playerUserId = player.UserId
        local playerDisplayName = player.DisplayName

        warn("FOUND AN EXPLOITER! Username: "..playerName.." | UserID: "..playerUserId.." | DisplayName: "..playerDisplayName)
loud tundra
#

maybe dont rely on warns for logging, find something else e.g datastore

#

do also be mindful of false positives with whatever your conditions are before this code

radiant frigate
#

u could just grab data immediately before any yield or better follow pyro

zinc charm
# radiant frigate this is the serialized outcome of when a palyer leaves the game

That wouldn’t make sense, this was never a problem in the 2 months I’ve been using this. It didn’t start until about a week ago, so I assumed maybe it had to do with some privacy update Roblox pushed out in secret.

Also, whenever I log the information anywhere for later use, it turns into <PlayerId> as I have a table that holds every single player that has joined the specific server for me to join and look at for debugging purposes. Server size is about 12, so by that logic the PlayerIds other than the 12 players still in the server would have become <PlayerId>, which is not the case.

I appreciate the attempt to help though, I’ll do pyros idea and move it to a datastore.

radiant frigate
#

was this you?

#

no slight, im just trying to research the issue

zinc charm
#

It was not but maybe i can pitch in on that forum post to see if the staff member there might have an answer

dawn tinselBOT
#

studio** You are now Level 7! **studio

zinc charm
#

Thanks for finding that 🙏

radiant frigate
#

im like 99% sure it may be what i said, also if u find a utility for the logging lmk i want one myself

zinc charm
#

I feel like more than a few would've turned into <playerId>

radiant frigate
#

its the diff of a yield, it makes sense there are so little

zinc charm
#

Was having an issue with an exploiter creating multiple alt accounts so i would compare tables to find all the players in every server that crashed to find the culprits

radiant frigate
#

i feel like at that point u should just patch what makes it crash than go for banning ppl who can get past the ban api

zinc charm
# radiant frigate i feel like at that point u should just patch what makes it crash than go for ba...

Yeah i'm currently working on that but for a quick solution I ended up creating a failsafe to auto fix the servers that were crashed as the game would no longer progress.

I would wake up to about 10-15 different servers stuck, unable to progress until I either manually shut them down or one of my moderators did. Been going on for about 2 weeks now, they've got nothing better going on than to do this for whatever reason.

But even after I solve that issue, it doesn't change the fact that the playerNames and playerIds were starting to be hidden. But for the other stuff I log the Ids for I'll move to a datastore, would be a much better way of doing it than I am now for reciepts and such

radiant frigate
#

want me to take a crack at it?