SHARE
TWEET

Untitled

a guest Apr 21st, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. pcall(function()
  2. local camera = workspace.CurrentCamera;
  3. local toUpdate = {}
  4. function newSquare(part)
  5. local pos = camera:WorldToViewportPoint(part.Position)
  6. local inst = Drawing.new('Square');
  7. inst.Position = Vector2.new(pos.X, pos.Y)
  8. inst.Size = Vector2.new(5, 5)
  9. inst.Visible = true
  10. inst.Filled = true;
  11. inst.Color = Color3.new(1, 0, 0)
  12.  
  13. local inst2 = Drawing.new('Text');
  14. inst2.Position = inst.Position + Vector2.new(0, 10);
  15. inst2.Visible = true;
  16. inst2.Color = Color3.new(1, 1, 1)
  17.  
  18. table.insert(toUpdate, {inst, part, inst2})
  19. end
  20.  
  21. for i, v in next, workspace.Trinkets:children() do
  22. if v:IsA("BasePart") and (v.Name == "RareSpawn" or (v.ItemName.Value:match'Scroll' and v.Name == "Spawn")) then
  23. newSquare(v)
  24. end
  25. end
  26.  
  27. while true do
  28. for i, v in next, toUpdate do
  29. local pos, visi = camera:WorldToViewportPoint(v[2].Position)
  30. if visi and v[2].ItemName.Value ~= "" then
  31. v[1].Visible = true;
  32. v[1].Position = Vector2.new(pos.X, pos.Y)
  33. v[3].Text = v[2].ItemName.Value
  34. v[3].Visible = true;
  35. v[3].Position = v[1].Position + Vector2.new(0, 10)
  36. else
  37. v[1].Visible = false
  38. v[3].Visible = false
  39. end
  40. end
  41.  
  42. wait()
  43. end
  44. end)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top