Try this function I made.
Make sure httpservice is enabled in settings.
it will return the date they were last online.
function LastOnlineDate(userId)
local http = game:GetService("HttpService")
local result
local url = "https://api.rprxy.xyz/users/"..tostring(userId).."/onlinestatus/"
local good, bad = pcall(function()
result = http:JSONDecode(http:GetAsync(url))
end)
if good and result.LastOnline then
return result.LastOnline
else
wait("error fetching data for".. tostring(userId))
return false
end
end