Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local FillColor = Color3.fromRGB(175,25,255)
- local DepthMode = "AlwaysOnTop"
- local FillTransparency = 0
- local OutlineColor = Color3.fromRGB(255,255,255)
- local OutlineTransparency = 0
- local CoreGui = game:FindService("CoreGui")
- local Players = game:FindService("Players")
- local lp = Players.LocalPlayer
- local connections = {}
- local Storage = Instance.new("Folder")
- Storage.Parent = CoreGui
- Storage.Name = "Highlight_Storage"
- local function Highlight(plr)
- local Highlight = Instance.new("Highlight")
- Highlight.Name = plr.Name
- Highlight.FillColor = FillColor
- Highlight.DepthMode = DepthMode
- Highlight.FillTransparency = FillTransparency
- Highlight.OutlineColor = OutlineColor
- Highlight.OutlineTransparency = 0
- Highlight.Parent = Storage
- local plrchar = plr.Character
- if plrchar then
- if plr ~= game.Players.LocalPlayer then
- Highlight.Adornee = plrchar
- end
- end
- connections[plr] = plr.CharacterAdded:Connect(function(char)
- Highlight.Adornee = char
- end)
- end
- Players.PlayerAdded:Connect(Highlight)
- for i,v in next, Players:GetPlayers() do
- if v ~= game.Players.LocalPlayer then
- Highlight(v)
- end
- end
- Players.PlayerRemoving:Connect(function(plr)
- local plrname = plr.Name
- if Storage[plrname] then
- Storage[plrname]:Destroy()
- end
- if connections[plr] then
- connections[plr]:Disconnect()
- end
- end)
- --[[
- WARNING: Heads up! This script has not been verified by ScriptBlox. Use at your own risk!
- ]]
- --//Toggle\\--
- getgenv().Toggle = true -- This toggles the esp, turning it to false will turn it off
- getgenv().TC = false -- This toggles team check, turning it on will turn on team check
- local PlayerName = "Name" -- You can decide if you want the Player's name to be a display name which is "DisplayName", or username which is "Name"
- --//Variables\\--
- local P = game:GetService("Players")
- local LP = P.LocalPlayer
- --//Debounce\\--
- local DB = false
- --//Loop\\--
- while task.wait() do
- if not getgenv().Toggle then
- break
- end
- if DB then
- return
- end
- DB = true
- pcall(function()
- for i,v in pairs(P:GetChildren()) do
- if v:IsA("Player") then
- if v ~= LP then
- if v.Character then
- local pos = math.floor(((LP.Character:FindFirstChild("HumanoidRootPart")).Position - (v.Character:FindFirstChild("HumanoidRootPart")).Position).magnitude)
- -- Credits to Infinite Yield for this part (pos) ^^^^^^
- if v.Character:FindFirstChild("Totally NOT Esp") == nil and v.Character:FindFirstChild("Icon") == nil and getgenv().TC == false then
- --//ESP-Text\\--
- local Icon = Instance.new("BillboardGui", v.Character.HumanoidRootPart)
- local ESPText = Instance.new("TextLabel")
- Icon.Name = "Icon"
- Icon.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Icon.Active = true
- Icon.AlwaysOnTop = true
- Icon.ExtentsOffset = Vector3.new(0, 1, 0)
- Icon.LightInfluence = 1.000
- Icon.Size = UDim2.new(0, 800, 0, 50)
- ESPText.Name = "ESP Text"
- ESPText.Parent = Icon
- ESPText.BackgroundColor3 = v.TeamColor.Color
- ESPText.BackgroundTransparency = 1.000
- ESPText.Size = UDim2.new(0, 800, 0, 50)
- ESPText.Font = Enum.Font.SciFi
- ESPText.Text = v[PlayerName]
- ESPText.TextColor3 = v.TeamColor.Color
- ESPText.TextSize = 20
- ESPText.TextWrapped = true
- else
- if v.TeamColor ~= LP.TeamColor and v.Character:FindFirstChild("Totally NOT Esp") == nil and v.Character:FindFirstChild("Icon") == nil and getgenv().TC == true then
- --//ESP-Text\\--
- local Icon = Instance.new("BillboardGui", v.Character.HumanoidRootPart)
- local ESPText = Instance.new("TextLabel")
- Icon.Name = "Icon"
- Icon.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Icon.Active = true
- Icon.AlwaysOnTop = true
- Icon.ExtentsOffset = Vector3.new(0, 1, 0)
- Icon.LightInfluence = 1.000
- Icon.Size = UDim2.new(0, 800, 0, 50)
- ESPText.Name = "ESP Text"
- ESPText.Parent = Icon
- ESPText.BackgroundColor3 = v.TeamColor.Color
- ESPText.BackgroundTransparency = 1.000
- ESPText.Size = UDim2.new(0, 800, 0, 50)
- ESPText.Font = Enum.Font.SciFi
- ESPText.Text = v[PlayerName]
- ESPText.TextColor3 = v.TeamColor.Color
- ESPText.TextSize = 20
- ESPText.TextWrapped = true
- else
- if not v.Character:FindFirstChild("Totally NOT Esp").FillColor == v.TeamColor.Color and not v.Character:FindFirstChild("Icon").TextColor3 == v.TeamColor.Color then
- v.Character:FindFirstChild("Totally NOT Esp").FillColor = v.TeamColor.Color
- v.Character:FindFirstChild("Icon").TextColor3 = v.TeamColor.Color
- else
- if v.Character:FindFirstChild("Totally NOT Esp").Enabled == false and v.Character:FindFirstChild("Icon").Enabled == false then
- v.Character:FindFirstChild("Totally NOT Esp").Enabled = true
- v.Character:FindFirstChild("Icon").Enabled = true
- else
- if v.Character:FindFirstChild("Icon") then
- v.Character:FindFirstChild("Icon")["ESP Text"].Text = v[PlayerName]
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end)
- wait()
- DB = false
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement