Advertisement
Guest User

Help!

a guest
Oct 20th, 2014
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. --[[Ok so we're going to use HttpService to check if said string is an id.
  2. we're going to use rproxy's getidbyusername API that returns -1 if nonexistant. So make sure httpservice is enabled.]]
  3.  
  4. local prox = game.HttpService:GetAsync("http://www.rproxy.tk/rapi/GetIdByUsername/SethDusek5
  5. function check(stringy)
  6. local prox = game.HttpService:GetAsync("http://www.rproxy.tk/rapi/GetIdByUsername/"..stringy)
  7. if prox == -1 then return nil
  8. else return prox
  9. end
  10.  
  11. Soo, now you want to know how to use an image of that person
  12. local decal = Instance.new("Decal",workspace.Part)
  13. local checker = check(name)
  14. if checker~=nil then
  15. decal.Texture = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&userid="..checker
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement