dannthebesttt

Untitled

Jan 13th, 2020
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. -- SYNR+
  2. --[[ CHANGELOG
  3. 1.0 : release.
  4.  
  5. --]]
  6. me = game.Players.LocalPlayer
  7.  
  8. mobs = workspace.NPCs:GetChildren()
  9. for i=1,#mobs do
  10. local lol = Instance.new("BillboardGui")
  11. lol.Parent = mobs[i].Head
  12. lol.AlwaysOnTop = true
  13. lol.Name = "what"
  14. lol.Size = UDim2.new(5.5,0,1.75,0)
  15. lol.ExtentsOffset = Vector3.new(0,2.5,0)
  16. local oof = Instance.new("TextLabel")
  17. oof.Parent = lol
  18. oof.BackgroundTransparency = 1
  19. oof.TextTransparency = 0.2
  20. oof.TextSize = 30
  21. oof.TextScaled = false
  22. oof.TextColor3 = Color3.new(255, 0, 0)
  23. oof.TextStrokeTransparency = 1
  24. oof.Size = UDim2.new(1,0,1,0)
  25. oof.Text = "".. mobs[i].Name..""
  26. end
  27.  
  28. while true do
  29. for i=1,#mobs do
  30. hea = me.Character.HumanoidRootPart
  31. ehea = mobs[i].Head
  32. dist = math.floor((ehea.Position-hea.Position).magnitude)
  33. mobs[i].Head.what.TextLabel.Text = "".. mobs[i].Name.."("..dist..")"
  34. if dist <= 100 then
  35. mobs[i].Head.what.TextLabel.TextColor3 = Color3.new(255, 0, 0)
  36. end
  37. if dist <= 200 then
  38. mobs[i].Head.what.TextLabel.TextColor3 = Color3.new(255, 255, 0)
  39. end
  40. if dist <= 250 then
  41. mobs[i].Head.what.TextLabel.TextColor3 = Color3.new(0, 255, 0)
  42. end
  43. if dist >= 251 then
  44. mobs[i].Head.what.TextLabel.TextColor3 = Color3.new(128, 187, 219)
  45. end
  46. end
  47. wait(0.1)
  48. end
Add Comment
Please, Sign In to add comment