Advertisement
Guest User

Untitled

a guest
Dec 8th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. for i,v in pairs(game.Workspace.Item_Spawns.Items:GetDescendants()) do
  2. if v:IsA("ClickDetector") 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, 50, 0, 50)
  10. BillboardGui.StudsOffset = Vector3.new(0, 2, 0)
  11.  
  12. TextLabel.Parent = BillboardGui
  13. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  14. TextLabel.BackgroundTransparency = 1
  15. TextLabel.Size = UDim2.new(1, 0, 1, 0)
  16. TextLabel.Text = "items"
  17. TextLabel.TextColor3 = Color3.new(1, 0, 0)
  18. TextLabel.TextScaled = true
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement