Advertisement
CaliberMag

Untitled

Jan 23rd, 2020
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. for i,v in pairs(game.Workspace:GetDescendants()) do
  2. if v.Name == "Collectable" then
  3. local BillboardGui = Instance.new("BillboardGui")
  4. local TextLabel = Instance.new("TextLabel")
  5.  
  6. BillboardGui.Parent = v.Parent
  7. BillboardGui.AlwaysOnTop = true
  8. BillboardGui.LightInfluence = 1
  9. BillboardGui.Size = UDim2.new(0, 100, 0, 100)
  10. BillboardGui.StudsOffset = Vector3.new(0, 2, 0)
  11. BillboardGui.Adornee = v.Base
  12.  
  13. TextLabel.Parent = BillboardGui
  14. TextLabel.BackgroundColor3 = Color3.new(245, 205, 48)
  15. TextLabel.BackgroundTransparency = 1
  16. TextLabel.Size = UDim2.new(0.5, 0, 0.5, 0)
  17. TextLabel.Text = "Collectable"
  18. TextLabel.TextColor3 = Color3.new(128, 0, 255)
  19. TextLabel.TextScaled = true
  20. end
  21. end
  22.  
  23. for i,v in pairs(game.Workspace:GetDescendants()) do
  24. if v.Name == "TraitorEvidence" then
  25. local BillboardGui = Instance.new("BillboardGui")
  26. local TextLabel = Instance.new("TextLabel")
  27.  
  28. BillboardGui.Parent = v.Parent
  29. BillboardGui.AlwaysOnTop = true
  30. BillboardGui.LightInfluence = 1
  31. BillboardGui.Size = UDim2.new(0, 100, 0, 100)
  32. BillboardGui.StudsOffset = Vector3.new(0, 2, 0)
  33. BillboardGui.Adornee = v.Base
  34.  
  35. TextLabel.Parent = BillboardGui
  36. TextLabel.BackgroundColor3 = Color3.new(245, 205, 48)
  37. TextLabel.BackgroundTransparency = 1
  38. TextLabel.Size = UDim2.new(0.5, 0, 0.5, 0)
  39. TextLabel.Text = "Trace"
  40. TextLabel.TextColor3 = Color3.new(148, 0, 255)
  41. TextLabel.TextScaled = true
  42. end
  43. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement