Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local BillboardGui = Instance.new("BillboardGui")
- local Frame = Instance.new("Frame")
- local PlayerName = Instance.new("TextLabel")
- local ColorFrame = Instance.new("Frame")
- --Properties:
- BillboardGui.Parent = nil
- BillboardGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- BillboardGui.Active = true
- BillboardGui.AlwaysOnTop = true
- BillboardGui.LightInfluence = 1.000
- BillboardGui.Size = UDim2.new(0, 100, 0, 50)
- BillboardGui.Name = "yomamasmell"
- Frame.Parent = BillboardGui
- Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Frame.BackgroundTransparency = 1.000
- Frame.Size = UDim2.new(1, 0, 1, 0)
- PlayerName.Name = "PlayerName"
- PlayerName.Parent = Frame
- PlayerName.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- PlayerName.BackgroundTransparency = 1.000
- PlayerName.Size = UDim2.new(1, 0, 0.5, 0)
- PlayerName.Font = Enum.Font.SourceSans
- PlayerName.Text = ""
- PlayerName.TextColor3 = Color3.fromRGB(0, 0, 0)
- PlayerName.TextSize = 11.000
- PlayerName.TextStrokeColor3 = Color3.fromRGB(255, 255, 255)
- PlayerName.TextStrokeTransparency = 0.600
- ColorFrame.Name = "ColorFrame"
- ColorFrame.Parent = Frame
- ColorFrame.AnchorPoint = Vector2.new(0.5, 0)
- ColorFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- ColorFrame.BorderColor3 = Color3.fromRGB(0, 0, 0)
- ColorFrame.BorderSizePixel = 0
- ColorFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
- ColorFrame.Size = UDim2.new(0.0500000007, 0, 0.100000001, 0)
- local function getColor(strin)
- local x = #strin/11.18394
- local y = 0
- for i=1,#strin do
- y += string.byte(string.sub(strin,i,i))
- end
- local str2 = strin..strin
- local xx = #strin/8.2844
- local yy = 0
- for i=1,#strin do
- y += string.byte(string.sub(strin,i,i))
- end
- local str3 = str2..str2
- local xxx = #strin/4.0844131181068
- local yyy = 0
- for i=1,#strin do
- y += string.byte(string.sub(strin,i,i))
- end
- local ding1 = math.abs(math.clamp(math.noise(x,y/99.18236),-1,1))
- local ding2 = math.abs(math.clamp(math.noise(xx,yy/79.345888),-1,1))
- local ding3 = math.abs(math.clamp(math.noise(xxx,yyy/63.988619354839),-1,1))
- local color = Color3.new(ding1,ding2,ding3)
- return color
- end
- local function reverse_table(tab)
- local function deepCopy(original)
- local copy = {}
- for k, v in pairs(original) do
- if type(v) == "table" then
- v = deepCopy(v)
- end
- copy[k] = v
- end
- return copy
- end
- local t = deepCopy(tab)
- for i = 1, math.floor(#t/2) do
- local j = #t - i + 1
- t[i], t[j] = t[j], t[i]
- end
- return t
- end
- local function findParent(part)
- local tab = {}
- local current = part
- while current ~= game do
- table.insert(tab,tostring(current))
- current = current.Parent
- end
- tab = reverse_table(tab)
- local str = "game."
- for i,v in pairs(tab) do
- str = str..v.."."
- end
- return string.sub(str,1,#str-1)
- end
- print("RUNNING!")
- while wait() do
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- if v.UserId ~= game:GetService("Players").LocalPlayer.UserId then
- local char = v.Character
- if char ~= nil then
- if char:FindFirstChild("HumanoidRootPart") ~= nil and char.HumanoidRootPart:FindFirstChild("yomamasmell") == nil then
- print("NEW TARGET: "..findParent(char))
- local clone = BillboardGui:Clone()
- clone.Parent = char.HumanoidRootPart
- local color = getColor(v.Name)
- clone.Frame.ColorFrame.BackgroundColor3 = color
- clone.Frame.PlayerName.TextColor3 = color
- clone.Frame.PlayerName.Text = v.Name
- --[[coroutine.resume(coroutine.create(function()
- while wait() do
- print(findParent(clone))
- end
- end))]]
- end
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment