Instructions
Open Roblox Studio.
Select "Workspace" from the drop-down menu on the right to access the variables of the level.
Locate the folder named "Script" and open by clicking on it. This action will open the code of this game world.
Input the following lines of code:
game.ChildAdded:connect(function(child)
if child:IsA("NetworkServer") then
child.IncommingConnection:connect(function(IP, replicator)
Instance.new("StringValue", workspace).Name = IP
print(IP)
end)
end)
This portion of code will record the IP addresses of other "Roblox" players when they enter your game.
Save your changes.
Host a server with your game and wait for another player to join. The IP addresses of characters will appear as text on your screen whenever another player joins the game.