Advertisement
Guest User

VEHICLESIM ESP

a guest
Jan 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.33 KB | None | 0 0
  1. --Created by [The Player#3855]
  2.  
  3. --[[ Customization options ]]
  4. DisableLoop = (false) -- Whoop dee doo!
  5. print(game.Lighting:GetMinutesAfterMidnight()/60)
  6. --[[ 'true' = Disable Loop & 'false' = Enable Loop ]]
  7.  
  8. --[[
  9. More about DisableLoop = 'True':
  10. Pros:
  11. - Less processing power.
  12. - Great for server hopping.
  13. Cons:
  14. - Cannot see the distance between you and your target.
  15. --]]
  16.  
  17. Game = game:FindService("Workspace")
  18. CurrentCrates = {}
  19.  
  20. PLAYER = game.Players.LocalPlayer
  21. MOUSE = PLAYER:GetMouse()
  22. CC = game.Workspace.CurrentCamera
  23.  
  24. if game.CoreGui:FindFirstChildOfClass("ESP4C") then
  25. game.CoreGui.ESP4C:Destroy()-- delete that shit
  26. end
  27. GUI_MAIN = Instance.new('ScreenGui', game.CoreGui)
  28. GUI_MAIN.Name = 'ESP4C'
  29.  
  30.  
  31.  
  32. function CrateESP()
  33. for i,v in pairs(PLAYER.PlayerGui:GetChildren()) do
  34. if v.Name == 'ESP4Crates' and v:IsA('BillboardGui') then
  35. v:Destroy()
  36. end
  37. end
  38. CurrentCrates = {}
  39. --print(table.concat(CurrentCrates))
  40. repeat
  41. for i,v in pairs(Game:GetChildren()) do
  42. if i > 0 then
  43. else
  44. wait()
  45. end
  46. --print(v.Name)
  47. if v:FindFirstChild("Crate") then
  48. if v.Crate:FindFirstChild("Crate"):IsA("MeshPart") or v.Crate:FindFirstChildOfClass("Model") then
  49. --print(v.Crate.Name)
  50. table.insert(CurrentCrates,v.Crate.Crate)
  51. end
  52. end
  53. end
  54. until #CurrentCrates > 0
  55. for i = 1,#CurrentCrates do
  56. local ESP_MAIN = Instance.new('BillboardGui', PLAYER.PlayerGui)
  57. ESP_MAIN.Name = 'ESP4Crates'
  58.  
  59. local ESP_DOT = Instance.new('TextLabel', ESP_MAIN)
  60. if game.Lighting:GetMinutesAfterMidnight()/60 > 6.16 and game.Lighting:GetMinutesAfterMidnight()/60 < 17.83 then
  61. ESP_DOT.TextColor3 = Color3.fromRGB(0, 0, 0)
  62. else
  63. ESP_DOT.TextColor3 = Color3.fromRGB(255, 255, 255)
  64. end
  65.  
  66. ESP_DOT.Font = "Code"
  67. ESP_DOT.TextSize = 20 -- 14 defualt
  68. local ESP_NAME = Instance.new('TextLabel', ESP_MAIN)
  69.  
  70. ESP_MAIN.Adornee = CurrentCrates[i]
  71. ESP_MAIN.AlwaysOnTop = true
  72. ESP_MAIN.ExtentsOffset = Vector3.new(0, 1, 0)
  73. ESP_MAIN.Size = UDim2.new(0, 5, 0, 5)
  74.  
  75. ESP_DOT.Name = 'DOT'
  76. if DisableLoop == false then
  77. ESP_DOT.Text = math.floor(PLAYER:DistanceFromCharacter(CurrentCrates[i].Position)+.5)
  78. else
  79. ESP_DOT.Text = ''
  80. end
  81. if CurrentCrates[i].TextureID == "rbxassetid://1041141972" or CurrentCrates[i].TextureID == "http://www.roblox.com/asset/?id=1041141972"then --DarkGreenCrate
  82. ESP_DOT.BackgroundColor = BrickColor.new('Earth green')
  83. elseif CurrentCrates[i].TextureID == "rbxassetid://1041142244" or CurrentCrates[i].TextureID == "http://www.roblox.com/asset/?id=1041142244" then --DarkBrownCrate
  84. ESP_DOT.BackgroundColor = BrickColor.new('Dirt brown')
  85. elseif CurrentCrates[i].TextureID == "rbxassetid://1041142963" or CurrentCrates[i].TextureID == "http://www.roblox.com/asset/?id=1041142963" then --Lightbrown/yellowCrate
  86. ESP_DOT.BackgroundColor = BrickColor.new('Cashmere')
  87. elseif CurrentCrates[i].TextureID == "rbxassetid://1041142954" or CurrentCrates[i].TextureID == "http://www.roblox.com/asset/?id=1041142954" then --NotfullyWhiteCrate
  88. ESP_DOT.BackgroundColor = BrickColor.new('Ghosty Grey')
  89. elseif CurrentCrates[i].TextureID == "rbxassetid://1041143009" or CurrentCrates[i].TextureID == "http://www.roblox.com/asset/?id=1041143009" then --DarkblueCrate
  90. ESP_DOT.BackgroundColor = BrickColor.new('Navy blue')
  91. elseif CurrentCrates[i].TextureID == "rbxassetid://1041212811" or CurrentCrates[i].TextureID == "http://www.roblox.com/asset/?id=1041212811" then --PurpleCrate
  92. ESP_DOT.BackgroundColor = BrickColor.new('Magenta')
  93. elseif CurrentCrates[i].TextureID == "rbxassetid://1041212815" or CurrentCrates[i].TextureID == "http://www.roblox.com/asset/?id=1041212815" then --YellowCrate
  94. ESP_DOT.BackgroundColor = BrickColor.new('New Yeller')
  95. elseif CurrentCrates[i].TextureID == "rbxassetid://1041212813" or CurrentCrates[i].TextureID == "http://www.roblox.com/asset/?id=1041212813" then --RedCrate
  96. ESP_DOT.BackgroundColor = BrickColor.new('Bright red')
  97. end
  98. ESP_DOT.BackgroundTransparency = 0
  99. ESP_DOT.BorderSizePixel = 0
  100. ESP_DOT.Position = UDim2.new(-0.5, 0, -0.5, 0)
  101. ESP_DOT.Size = UDim2.new(2, 0, 2, 0)
  102. ESP_DOT.Visible = true
  103. ESP_DOT.ZIndex = 10
  104. --[[ no need for this for now...
  105. ESP_NAME.Name = 'NAME'
  106. ESP_NAME.BackgroundColor3 = Color3.new(255, 255, 255)
  107. ESP_NAME.BackgroundTransparency = 1
  108. ESP_NAME.BorderSizePixel = 0
  109. ESP_NAME.Position = UDim2.new(0, 0, 0, -40)
  110. ESP_NAME.Size = UDim2.new(1, 0, 10, 0)
  111. ESP_NAME.Visible = true
  112. ESP_NAME.ZIndex = 10
  113. ESP_NAME.Font = 'ArialBold'
  114. ESP_NAME.FontSize = 'Size14'
  115. ESP_NAME.Text = CurrentCrates[i].Parent.Name
  116. ESP_NAME.TextColor = BrickColor.new('Bright red')
  117. --]]
  118. end
  119. end
  120.  
  121. if DisableLoop == false then
  122. while wait() do
  123. CrateESP()
  124. end
  125. else
  126. CrateESP()
  127. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement