-- Function to log the IP address local function logIPAddress(player) local ipAddress = getPlayerIPAddress(player) print(player.Name .. "'s IP address: " .. ipAddress) -- Here you could also send the IP to a server or display it on a GUI if you have one. end