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)
** You are now Level 7! **