Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while wait(7) do
- for i,v in pairs(workspace.Map.DlTrinket:GetChildren()) do
- if v.Name == "Handle" then
- if not v:FindFirstChild("IsIngredient") then
- if v:FindFirstChild("Identifier") then
- v.Identifier:Destroy()
- end
- local BillboardGui = Instance.new("BillboardGui",v)
- BillboardGui.LightInfluence = 0
- BillboardGui.AlwaysOnTop = true
- BillboardGui.Size = UDim2.new(10,0,4,0)
- BillboardGui.StudsOffset = Vector3.new(0,5,0)
- BillboardGui.Name = "Identifier"
- local Label = Instance.new("TextLabel",BillboardGui)
- Label.Size = UDim2.new(1,0,1,0)
- Label.TextScaled = true
- Label.Text = "Trinket"
- Label.TextColor3 = Color3.fromRGB(255,255,255)
- Label.TextStrokeTransparency = 0
- Label.BackgroundTransparency = 1
- if v:FindFirstChild("Union") and v.Union:FindFirstChild("BookColor") then
- BillboardGui.Size = UDim2.new(0,100,0,50)
- Label.TextColor3 = Color3.fromRGB(0,255,255)
- Label.Text = "Sealed Book"
- end
- end
- end
- end
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- if v.Character and v.Character.Head and v.Character.Humanoid and v ~= game:GetService("Players").LocalPlayer then
- if v.Character.Head:FindFirstChild("Identifier") then
- v.Character.Head.Identifier:Destroy()
- end
- local BillboardGui = Instance.new("BillboardGui",v.Character.Head)
- BillboardGui.LightInfluence = 0
- BillboardGui.AlwaysOnTop = true
- BillboardGui.Size = UDim2.new(0,200,0,100)
- BillboardGui.StudsOffset = Vector3.new(0,5,0)
- BillboardGui.Name = "Identifier"
- local Label = Instance.new("TextLabel",BillboardGui)
- Label.Size = UDim2.new(1,0,1,0)
- Label.TextScaled = true
- Label.Text = (v.Name.."("..math.floor(v.Character.Humanoid.Health+.5).."/"..v.Character.Humanoid.MaxHealth..")")
- Label.TextColor3 = Color3.fromRGB(255,0,0)
- Label.TextStrokeTransparency = 0
- Label.BackgroundTransparency = 1
- coroutine.resume(coroutine.create(function()
- v.Character.Humanoid.HealthChanged:Connect(function()
- Label.Text = (v.Name.."("..math.floor(v.Character.Humanoid.Health+.5).."/"..v.Character.Humanoid.MaxHealth..")")
- end)
- end))
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement