Advertisement
fusionfriends

Untitled

Mar 31st, 2020
207
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" and v:FindFirstChild("TrinketName") 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 = v.TrinketName.Value
  18. Label.TextColor3 = Color3.fromRGB(255,255,255)
  19. Label.TextStrokeTransparency = 0
  20. Label.BackgroundTransparency = 1
  21. if v.TrinketName.Value == "Sealed Book" or v.TrinketName.Value:sub(1,9) == "Corrupted" then
  22. BillboardGui.Size = UDim2.new(0,100,0,50)
  23. Label.TextColor3 = Color3.fromRGB(0,255,255)
  24. end
  25. end
  26. end
  27. end
  28. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  29. if v.Character and v.Character.Head and v.Character.Humanoid and v ~= game:GetService("Players").LocalPlayer then
  30. if v.Character.Head:FindFirstChild("Identifier") then
  31. v.Character.Head.Identifier:Destroy()
  32. end
  33. local BillboardGui = Instance.new("BillboardGui",v.Character.Head)
  34. BillboardGui.LightInfluence = 0
  35. BillboardGui.AlwaysOnTop = true
  36. BillboardGui.Size = UDim2.new(0,200,0,100)
  37. BillboardGui.StudsOffset = Vector3.new(0,5,0)
  38. BillboardGui.Name = "Identifier"
  39. local Label = Instance.new("TextLabel",BillboardGui)
  40. Label.Size = UDim2.new(1,0,1,0)
  41. Label.TextScaled = true
  42. Label.Text = (v.Name.."("..v.Character.Humanoid.Health.."/"..v.Character.Humanoid.MaxHealth..")")
  43. Label.TextColor3 = Color3.fromRGB(255,0,0)
  44. Label.TextStrokeTransparency = 0
  45. Label.BackgroundTransparency = 1
  46. coroutine.resume(coroutine.create(function()
  47. v.Character.Humanoid.HealthChanged:Connect(function()
  48. Label.Text = (v.Name.."("..v.Character.Humanoid.Health.."/"..v.Character.Humanoid.MaxHealth..")")
  49. end)
  50. end))
  51. end
  52. end
  53. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement