Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Created by [The Player#3855]
- --[[ Customization options ]]
- DisableLoop = (false) -- Whoop dee doo!
- print(game.Lighting:GetMinutesAfterMidnight()/60)
- --[[ 'true' = Disable Loop & 'false' = Enable Loop ]]
- --[[
- More about DisableLoop = 'True':
- Pros:
- - Less processing power.
- - Great for server hopping.
- Cons:
- - Cannot see the distance between you and your target.
- --]]
- Game = game:FindService("Workspace")
- CurrentCrates = {}
- PLAYER = game.Players.LocalPlayer
- MOUSE = PLAYER:GetMouse()
- CC = game.Workspace.CurrentCamera
- if game.CoreGui:FindFirstChildOfClass("ESP4C") then
- game.CoreGui.ESP4C:Destroy()-- delete that shit
- end
- GUI_MAIN = Instance.new('ScreenGui', game.CoreGui)
- GUI_MAIN.Name = 'ESP4C'
- function CrateESP()
- for i,v in pairs(PLAYER.PlayerGui:GetChildren()) do
- if v.Name == 'ESP4Crates' and v:IsA('BillboardGui') then
- v:Destroy()
- end
- end
- CurrentCrates = {}
- --print(table.concat(CurrentCrates))
- repeat
- for i,v in pairs(Game:GetChildren()) do
- if i > 0 then
- else
- wait()
- end
- --print(v.Name)
- if v:FindFirstChild("Crate") then
- if v.Crate:FindFirstChild("Crate"):IsA("MeshPart") or v.Crate:FindFirstChildOfClass("Model") then
- --print(v.Crate.Name)
- table.insert(CurrentCrates,v.Crate.Crate)
- end
- end
- end
- until #CurrentCrates > 0
- for i = 1,#CurrentCrates do
- local ESP_MAIN = Instance.new('BillboardGui', PLAYER.PlayerGui)
- ESP_MAIN.Name = 'ESP4Crates'
- local ESP_DOT = Instance.new('TextLabel', ESP_MAIN)
- if game.Lighting:GetMinutesAfterMidnight()/60 > 6.16 and game.Lighting:GetMinutesAfterMidnight()/60 < 17.83 then
- ESP_DOT.TextColor3 = Color3.fromRGB(0, 0, 0)
- else
- ESP_DOT.TextColor3 = Color3.fromRGB(255, 255, 255)
- end
- ESP_DOT.Font = "Code"
- ESP_DOT.TextSize = 20 -- 14 defualt
- local ESP_NAME = Instance.new('TextLabel', ESP_MAIN)
- ESP_MAIN.Adornee = CurrentCrates[i]
- ESP_MAIN.AlwaysOnTop = true
- ESP_MAIN.ExtentsOffset = Vector3.new(0, 1, 0)
- ESP_MAIN.Size = UDim2.new(0, 5, 0, 5)
- ESP_DOT.Name = 'DOT'
- if DisableLoop == false then
- ESP_DOT.Text = math.floor(PLAYER:DistanceFromCharacter(CurrentCrates[i].Position)+.5)
- else
- ESP_DOT.Text = ''
- end
- if CurrentCrates[i].TextureID == "rbxassetid://1041141972" or CurrentCrates[i].TextureID == "http://www.roblox.com/asset/?id=1041141972"then --DarkGreenCrate
- ESP_DOT.BackgroundColor = BrickColor.new('Earth green')
- elseif CurrentCrates[i].TextureID == "rbxassetid://1041142244" or CurrentCrates[i].TextureID == "http://www.roblox.com/asset/?id=1041142244" then --DarkBrownCrate
- ESP_DOT.BackgroundColor = BrickColor.new('Dirt brown')
- elseif CurrentCrates[i].TextureID == "rbxassetid://1041142963" or CurrentCrates[i].TextureID == "http://www.roblox.com/asset/?id=1041142963" then --Lightbrown/yellowCrate
- ESP_DOT.BackgroundColor = BrickColor.new('Cashmere')
- elseif CurrentCrates[i].TextureID == "rbxassetid://1041142954" or CurrentCrates[i].TextureID == "http://www.roblox.com/asset/?id=1041142954" then --NotfullyWhiteCrate
- ESP_DOT.BackgroundColor = BrickColor.new('Ghosty Grey')
- elseif CurrentCrates[i].TextureID == "rbxassetid://1041143009" or CurrentCrates[i].TextureID == "http://www.roblox.com/asset/?id=1041143009" then --DarkblueCrate
- ESP_DOT.BackgroundColor = BrickColor.new('Navy blue')
- elseif CurrentCrates[i].TextureID == "rbxassetid://1041212811" or CurrentCrates[i].TextureID == "http://www.roblox.com/asset/?id=1041212811" then --PurpleCrate
- ESP_DOT.BackgroundColor = BrickColor.new('Magenta')
- elseif CurrentCrates[i].TextureID == "rbxassetid://1041212815" or CurrentCrates[i].TextureID == "http://www.roblox.com/asset/?id=1041212815" then --YellowCrate
- ESP_DOT.BackgroundColor = BrickColor.new('New Yeller')
- elseif CurrentCrates[i].TextureID == "rbxassetid://1041212813" or CurrentCrates[i].TextureID == "http://www.roblox.com/asset/?id=1041212813" then --RedCrate
- ESP_DOT.BackgroundColor = BrickColor.new('Bright red')
- end
- ESP_DOT.BackgroundTransparency = 0
- ESP_DOT.BorderSizePixel = 0
- ESP_DOT.Position = UDim2.new(-0.5, 0, -0.5, 0)
- ESP_DOT.Size = UDim2.new(2, 0, 2, 0)
- ESP_DOT.Visible = true
- ESP_DOT.ZIndex = 10
- --[[ no need for this for now...
- ESP_NAME.Name = 'NAME'
- ESP_NAME.BackgroundColor3 = Color3.new(255, 255, 255)
- ESP_NAME.BackgroundTransparency = 1
- ESP_NAME.BorderSizePixel = 0
- ESP_NAME.Position = UDim2.new(0, 0, 0, -40)
- ESP_NAME.Size = UDim2.new(1, 0, 10, 0)
- ESP_NAME.Visible = true
- ESP_NAME.ZIndex = 10
- ESP_NAME.Font = 'ArialBold'
- ESP_NAME.FontSize = 'Size14'
- ESP_NAME.Text = CurrentCrates[i].Parent.Name
- ESP_NAME.TextColor = BrickColor.new('Bright red')
- --]]
- end
- end
- if DisableLoop == false then
- while wait() do
- CrateESP()
- end
- else
- CrateESP()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement