BobMe

Roblox3008

Sep 16th, 2021 (edited)
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1. local BillboardGui = Instance.new("BillboardGui")
  2. local Frame = Instance.new("Frame")
  3. local PlayerName = Instance.new("TextLabel")
  4. local ColorFrame = Instance.new("Frame")
  5.  
  6. --Properties:
  7.  
  8. BillboardGui.Parent = nil
  9. BillboardGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  10. BillboardGui.Active = true
  11. BillboardGui.AlwaysOnTop = true
  12. BillboardGui.LightInfluence = 1.000
  13. BillboardGui.Size = UDim2.new(0, 100, 0, 50)
  14. BillboardGui.Name = "yomamasmell"
  15.  
  16. Frame.Parent = BillboardGui
  17. Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  18. Frame.BackgroundTransparency = 1.000
  19. Frame.Size = UDim2.new(1, 0, 1, 0)
  20.  
  21. PlayerName.Name = "PlayerName"
  22. PlayerName.Parent = Frame
  23. PlayerName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  24. PlayerName.BackgroundTransparency = 1.000
  25. PlayerName.Size = UDim2.new(1, 0, 0.5, 0)
  26. PlayerName.Font = Enum.Font.SourceSans
  27. PlayerName.Text = ""
  28. PlayerName.TextColor3 = Color3.fromRGB(0, 0, 0)
  29. PlayerName.TextSize = 11.000
  30. PlayerName.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
  31. PlayerName.TextStrokeTransparency = 0.600
  32.  
  33. ColorFrame.Name = "ColorFrame"
  34. ColorFrame.Parent = Frame
  35. ColorFrame.AnchorPoint = Vector2.new(0.5, 0)
  36. ColorFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  37. ColorFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  38. ColorFrame.BorderSizePixel = 0
  39. ColorFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  40. ColorFrame.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
  41.  
  42. local function getColor(strin)
  43. local x = #strin/11.18394
  44. local y = 0
  45. for i=1,#strin do
  46. y += string.byte(string.sub(strin,i,i))
  47. end
  48. local str2 = strin..strin
  49. local xx = #strin/8.2844
  50. local yy = 0
  51. for i=1,#strin do
  52. y += string.byte(string.sub(strin,i,i))
  53. end
  54. local str3 = str2..str2
  55. local xxx = #strin/4.0844131181068
  56. local yyy = 0
  57. for i=1,#strin do
  58. y += string.byte(string.sub(strin,i,i))
  59. end
  60. local ding1 = math.abs(math.clamp(math.noise(x,y/99.18236),-1,1))
  61. local ding2 = math.abs(math.clamp(math.noise(xx,yy/79.345888),-1,1))
  62. local ding3 = math.abs(math.clamp(math.noise(xxx,yyy/63.988619354839),-1,1))
  63. local color = Color3.new(ding1,ding2,ding3)
  64. return color
  65. end
  66.  
  67. local function reverse_table(tab)
  68. local function deepCopy(original)
  69. local copy = {}
  70. for k, v in pairs(original) do
  71. if type(v) == "table" then
  72. v = deepCopy(v)
  73. end
  74. copy[k] = v
  75. end
  76. return copy
  77. end
  78. local t = deepCopy(tab)
  79. for i = 1, math.floor(#t/2) do
  80. local j = #t - i + 1
  81. t[i], t[j] = t[j], t[i]
  82. end
  83. return t
  84. end
  85.  
  86. local function findParent(part)
  87. local tab = {}
  88. local current = part
  89. while current ~= game do
  90. table.insert(tab,tostring(current))
  91. current = current.Parent
  92. end
  93. tab = reverse_table(tab)
  94. local str = "game."
  95. for i,v in pairs(tab) do
  96. str = str..v.."."
  97. end
  98. return string.sub(str,1,#str-1)
  99. end
  100.  
  101. print("RUNNING!")
  102. while wait() do
  103. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  104. if v.UserId ~= game:GetService("Players").LocalPlayer.UserId then
  105. local char = v.Character
  106. if char ~= nil then
  107. if char:FindFirstChild("HumanoidRootPart") ~= nil and char.HumanoidRootPart:FindFirstChild("yomamasmell") == nil then
  108. print("NEW TARGET: "..findParent(char))
  109. local clone = BillboardGui:Clone()
  110. clone.Parent = char.HumanoidRootPart
  111. local color = getColor(v.Name)
  112. clone.Frame.ColorFrame.BackgroundColor3 = color
  113. clone.Frame.PlayerName.TextColor3 = color
  114. clone.Frame.PlayerName.Text = v.Name
  115. --[[coroutine.resume(coroutine.create(function()
  116. while wait() do
  117. print(findParent(clone))
  118. end
  119. end))]]
  120. end
  121. end
  122. end
  123. end
  124. end
Add Comment
Please, Sign In to add comment