✓ Accepted answer
You have to use HTTPService, so make sure HttpEnabled for the HttpService is enabled, then you can use this code as a script in ServerScriptStorage to print the online status of player's IDs that you chat when you say "status/" then the ID.
local http = game:GetService("HttpService")
game.Players.PlayerAdded:connect(function(plr)
plr.Chatted:connect(function(msg)
if msg:lower():sub(1,7) == "status/" then
local id = tonumber(msg:sub(8))
if id ~= nil then
local status = http:GetAsync("http://apiroblox.netne.net/GetUserStatus.php?id="..id)
local m = Instance.new("Message", game.Workspace)
m.Text = "Status of player ID "..id..": "..tostring(status)
wait(3)
m:Destroy()
end
end
end)
end)
NOTE: This will print the entire status of the player, so if they're online, it tells you what the player is doing, same as how it appears on people's profiles.
1 comment
As far as I'm aware this is impossible without HTTP services, which I know nothing about.