while true do
wait(1)
g = game.players:GetChildren()
for i = 1,#g do 
print(g[i].Name) -- g[i].Name is the ip... this is good for banning people by ip.
end 
end

2 comments

0

g isn't the ip.. .g = game.Player:GetChildren() is what g is.

0

g[i].Name is the name of the Player in your script. And you didn't even capitalize the Players service. I'm not sure if to mark this question as Not Constructive as you had no effort in actually getting an IP. Or for spam since this script appears to be so far fetched from getting the IP. With ROBLOX, you can't get IPs through user made scripts.