Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local id = game.Players.LocalPlayer.UserId
- local plr = game.Players.LocalPlayer
- local http = game:GetService("HttpService")
- local frends = game:HttpGet(('https://friends.roblox.com/v1/users/'..id..'/friends'),true)
- --[[
- local txt = frends
- for i=1,10 do
- local i,n = string.find(txt, '{"id":')
- print(i,n) --> 1 5
- print(string.sub(txt, n+1, n+10)) --> hello
- local len = txt:len()
- txt = string.sub(txt,n+10,len)
- --print(tonumber(string.sub(txt, n+1, n+10)))
- end--]]
- --Was trying to make a list of user ids but remember GetFriendsOnline() existed xd
- local e = plr:GetFriendsOnline(200)
- print(tostring(e))
- for i,friend in pairs(e) do
- print(friend.UserName)
- print(' ... ')
- local unf = 'https://friends.roblox.com/v1/users/'..friend.VisitorId..'/unfriend'
- game:HttpPost(unf,'{}')
- print(friend.UserName.." got yeeted")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement