Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for i,v in pairs(game.Workspace.Item_Spawns.Items:GetDescendants()) do
- if v:IsA("ClickDetector") then
- local BillboardGui = Instance.new("BillboardGui")
- local TextLabel = Instance.new("TextLabel")
- BillboardGui.Parent = v.Parent
- BillboardGui.AlwaysOnTop = true
- BillboardGui.LightInfluence = 1
- BillboardGui.Size = UDim2.new(0, 50, 0, 50)
- BillboardGui.StudsOffset = Vector3.new(0, 2, 0)
- TextLabel.Parent = BillboardGui
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.Size = UDim2.new(1, 0, 1, 0)
- TextLabel.Text = "items"
- TextLabel.TextColor3 = Color3.new(1, 0, 0)
- TextLabel.TextScaled = true
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement