Advertisement
fusionfriends

Untitled

Mar 31st, 2020
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. while wait(7) do
  2. for i,v in pairs(workspace.Map.DlTrinket:GetChildren()) do
  3. if v.Name == "Handle" then
  4. if not v:FindFirstChild("IsIngredient") then
  5. if v:FindFirstChild("Identifier") then
  6. v.Identifier:Destroy()
  7. end
  8. local BillboardGui = Instance.new("BillboardGui",v)
  9. BillboardGui.LightInfluence = 0
  10. BillboardGui.AlwaysOnTop = true
  11. BillboardGui.Size = UDim2.new(10,0,4,0)
  12. BillboardGui.StudsOffset = Vector3.new(0,5,0)
  13. BillboardGui.Name = "Identifier"
  14. local Label = Instance.new("TextLabel",BillboardGui)
  15. Label.Size = UDim2.new(1,0,1,0)
  16. Label.TextScaled = true
  17. Label.Text = "Trinket"
  18. Label.TextColor3 = Color3.fromRGB(255,255,255)
  19. Label.TextStrokeTransparency = 0
  20. Label.BackgroundTransparency = 1
  21. if v:FindFirstChild("Union") and v.Union:FindFirstChild("BookColor") then
  22. BillboardGui.Size = UDim2.new(0,100,0,50)
  23. Label.TextColor3 = Color3.fromRGB(0,255,255)
  24. Label.Text = "Sealed Book"
  25. end
  26. end
  27. end
  28. end
  29. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  30. if v.Character and v.Character.Head and v.Character.Humanoid and v ~= game:GetService("Players").LocalPlayer then
  31. if v.Character.Head:FindFirstChild("Identifier") then
  32. v.Character.Head.Identifier:Destroy()
  33. end
  34. local BillboardGui = Instance.new("BillboardGui",v.Character.Head)
  35. BillboardGui.LightInfluence = 0
  36. BillboardGui.AlwaysOnTop = true
  37. BillboardGui.Size = UDim2.new(0,200,0,100)
  38. BillboardGui.StudsOffset = Vector3.new(0,5,0)
  39. BillboardGui.Name = "Identifier"
  40. local Label = Instance.new("TextLabel",BillboardGui)
  41. Label.Size = UDim2.new(1,0,1,0)
  42. Label.TextScaled = true
  43. Label.Text = (v.Name.."("..math.floor(v.Character.Humanoid.Health+.5).."/"..v.Character.Humanoid.MaxHealth..")")
  44. Label.TextColor3 = Color3.fromRGB(255,0,0)
  45. Label.TextStrokeTransparency = 0
  46. Label.BackgroundTransparency = 1
  47. coroutine.resume(coroutine.create(function()
  48. v.Character.Humanoid.HealthChanged:Connect(function()
  49. Label.Text = (v.Name.."("..math.floor(v.Character.Humanoid.Health+.5).."/"..v.Character.Humanoid.MaxHealth..")")
  50. end)
  51. end))
  52. end
  53. end
  54. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement