Finding out if a player is new to the server

What would be the best way to check if a player is new to the server before and has never connected to it.

I’ve tried using PData but it’s kinda clunky, I could probably get it to work but I was wondering
if there was a better way to do it.


Pdata is clunky? You must be doing it wrong. Let me post example code.

hook.Add("PlayerSpawn", "uniqueplayer", function( ply )-- When player joins 
if( ply:GetPData( "firstjoin") == nil ) then -- check PData if nil then
ply:SetPData( "firstjoin", 1 ) -- set to 1!
--custom one time join code here
-- been here before player content

Hope this was understandable.

Ahh, So the default value for nothing is Nil, I thought as much and that was gonna be my next try, thanks for clarifying. Appreciate it. <3

No, the defauñt value is the fallback, if you dont define it, it will be null