Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ProxyService = require(script.Parent.ProxyService)
- local HttpService = game:GetService("HttpService")
- local InsertService = game:GetService("InsertService")
- local Proxy = ProxyService:New('https://quatcatalog.herokuapp.com/', '62bef16c9ef8693271d5f6191340f23bfb57dbf5fcdba6a03d8f3dec9bd52af4')
- local playerService = game.Players
- local function dothething(id,name)
- local json = Proxy:Get('https://api.roblox.com/users/'..tostring(id)..'/onlinestatus').body
- local json = HttpService:JSONDecode(json)
- local lastonline = json.LastOnline
- lastonline = lastonline:sub(1,lastonline:find("T")-1)
- print(name.." was last online at date: "..lastonline)
- end
- playerService.PlayerAdded:connect(function(plr)
- plr.Chatted:connect(function(text)
- local userId = playerService:GetUserIdFromNameAsync(text)
- if userId ~= nil then
- dothething(userId,text)
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement