Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = peripheral.find("playerSensor") --Wrapping the peripheral
- if p then
- data = p.getAllPlayers() --Getting all the players currently online
- for k,v in pairs(data) do
- print(tostring(k)..": "..tostring(v))
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment