Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- workspace.ChildAdded:connect(function()
- local a = workspace:getDescendants()
- for i=1,#a do
- if a[i].ClassName == "Tool" or a[i].Name == "Mask" then
- if not a[i]:findFirstChild("BillboardGui") then
- local BillboardGui = Instance.new("BillboardGui")
- local TextLabel = Instance.new("TextLabel")
- BillboardGui.Parent = a[i]
- BillboardGui.Active = true
- BillboardGui.AlwaysOnTop = true
- BillboardGui.Size = UDim2.new(0, 200, 0, 50)
- if a[i]:findFirstChild("Handle") then
- BillboardGui.Adornee = a[i].Handle
- end
- if a[i]:findFirstChild(a[i]) then
- BillboardGui.Adornee = a[i]:findFirstChild(a[i])
- end
- TextLabel.Parent = BillboardGui
- TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel.BackgroundTransparency = 1
- TextLabel.BorderSizePixel = 0
- TextLabel.Size = UDim2.new(0, 200, 0, 50)
- TextLabel.Font = Enum.Font.GothamBold
- TextLabel.FontSize = Enum.FontSize.Size14
- TextLabel.Text = a[i].Name
- if a[i]:findFirstChild("Handle") then
- TextLabel.TextColor3 = a[i].Handle.Color
- end
- if a[i]:findFirstChild(a[i]) then
- TextLabel.TextColor3 = a[i]:findFirstChild(a[i]).Color
- end
- TextLabel.TextSize = 14
- TextLabel.TextStrokeColor3 = Color3.new(1, 1, 1)
- TextLabel.TextStrokeTransparency = 0
- end
- end
- end
- end)
Add Comment
Please, Sign In to add comment