Quangdunght1

pakour esp bag

Oct 6th, 2019
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.08 KB | None | 0 0
  1. local FadeDist = 700
  2.  
  3.  
  4. wait(3)
  5. path = workspace
  6.  
  7. local function round(n)
  8. return math.floor(n + 0.5)
  9. end
  10.  
  11. Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
  12.  
  13.  
  14.  
  15. frame = Frame_Speed
  16. tf = 0
  17. allowframeloss = false
  18. tossremainder = false
  19. lastframe = tick()
  20.  
  21.  
  22.  
  23.  
  24. function Swait(NUMBER)
  25. if NUMBER == 0 or NUMBER == nil then
  26. game:GetService("RunService").RenderStepped:wait()
  27. else
  28. for i = 1, NUMBER do
  29. game:GetService("RunService").RenderStepped:wait()
  30. end
  31. end
  32. end
  33.  
  34.  
  35. local TweenService = game:GetService("TweenService")
  36.  
  37. ----------------------------------------------------------
  38. function SetTween(SPart,CFr,MoveStyle2,outorin2,AnimTime)
  39. local MoveStyle = Enum.EasingStyle[MoveStyle2]
  40. local outorin = Enum.EasingDirection[outorin2]
  41. local tweeningInformation = TweenInfo.new(
  42. AnimTime,
  43. MoveStyle,
  44. outorin,
  45. 0,
  46. false,
  47. 0
  48. )
  49. local MoveCF = CFr
  50. local tweenanim = TweenService:Create(SPart,tweeningInformation,MoveCF)
  51. tweenanim:Play()
  52. end
  53. ----------------------------------------------------------
  54.  
  55.  
  56. print("Your A")
  57. for _,v in pairs(path:GetChildren()) do
  58. if v:FindFirstChild("BagTouchScript") and v:FindFirstChild("Rarity") then
  59. print(v.Name)
  60. local distTag = Instance.new("BillboardGui")
  61. local EC = Instance.new("Frame")
  62. local EC_2 = Instance.new("Frame")
  63. local EC_3 = Instance.new("Frame")
  64. local EB = Instance.new("Frame")
  65. local EB_2 = Instance.new("Frame")
  66. local EB_3 = Instance.new("Frame")
  67. local EC_4 = Instance.new("Frame")
  68. local EC_5 = Instance.new("Frame")
  69. local EC_6 = Instance.new("Frame")
  70. local EB_4 = Instance.new("Frame")
  71. local EB_5 = Instance.new("Frame")
  72. local EB_6 = Instance.new("Frame")
  73. local Inf = Instance.new("TextLabel")
  74. local Type = Instance.new("TextLabel")
  75. local Dis = Instance.new("TextLabel")
  76. local FadeTag = Instance.new("BoolValue")
  77.  
  78. --Properties:
  79. distTag.Name = "distTag"
  80. distTag.Parent = v.Main
  81. distTag.AlwaysOnTop = true
  82. distTag.MaxDistance = 5000000
  83. distTag.Size = UDim2.new(3, 50, 3, 50)
  84. distTag.SizeOffset = Vector2.new(0, 1)
  85.  
  86. FadeTag.Parent = distTag
  87. FadeTag.Name = "FadeEnabled"
  88. FadeTag.Value = false
  89.  
  90. EC.Name = "EC"
  91. EC.Parent = distTag
  92. EC.BackgroundColor3 = v.Main.Color
  93. EC.BackgroundTransparency = 0.75
  94. EC.BorderSizePixel = 0
  95. EC.Position = UDim2.new(0.940239072, 0, 0.674449146, 0)
  96. EC.Size = UDim2.new(0.0597603284, 0, 0.260700434, 0)
  97.  
  98. EC_2.Name = "EC"
  99. EC_2.Parent = distTag
  100. EC_2.BackgroundColor3 = v.Main.Color
  101. EC_2.BackgroundTransparency = 0.75
  102. EC_2.BorderSizePixel = 0
  103. EC_2.Position = UDim2.new(0, 0, 0.674449146, 0)
  104. EC_2.Size = UDim2.new(0.0574541762, 0, 0.262996107, 0)
  105.  
  106. EC_3.Name = "EC"
  107. EC_3.Parent = distTag
  108. EC_3.BackgroundColor3 = v.Main.Color
  109. EC_3.BackgroundTransparency = 0.75
  110. EC_3.BorderSizePixel = 0
  111. EC_3.Position = UDim2.new(0, 0, 0.933852136, 0)
  112. EC_3.Size = UDim2.new(0.999999404, 0, 0.0661479309, 0)
  113.  
  114. EB.Name = "EB"
  115. EB.Parent = distTag
  116. EB.BackgroundColor3 = Color3.new(0, 0, 0)
  117. EB.BackgroundTransparency = 0.75
  118. EB.BorderSizePixel = 0
  119. EB.Position = UDim2.new(0.880477965, 0, 0.674449146, 0)
  120. EB.Size = UDim2.new(0.0597615391, 0, 0.260700434, 0)
  121.  
  122. EB_2.Name = "EB"
  123. EB_2.Parent = distTag
  124. EB_2.BackgroundColor3 = Color3.new(0, 0, 0)
  125. EB_2.BackgroundTransparency = 0.75
  126. EB_2.BorderSizePixel = 0
  127. EB_2.Position = UDim2.new(0.0574540384, 0, 0.674449146, 0)
  128. EB_2.Size = UDim2.new(0.0720281452, 0, 0.260700434, 0)
  129.  
  130. EB_3.Name = "EB"
  131. EB_3.Parent = distTag
  132. EB_3.BackgroundColor3 = Color3.new(0, 0, 0)
  133. EB_3.BackgroundTransparency = 0.75
  134. EB_3.BorderSizePixel = 0
  135. EB_3.Position = UDim2.new(0.129482061, 0, 0.870298982, 0)
  136. EB_3.Size = UDim2.new(0.750995338, 0, 0.064850837, 0)
  137.  
  138. EC_4.Name = "EC"
  139. EC_4.Parent = distTag
  140. EC_4.BackgroundColor3 = v.Main.Color
  141. EC_4.BackgroundTransparency = 0.75
  142. EC_4.BorderSizePixel = 0
  143. EC_4.Position = UDim2.new(0.940239072, 0, 0.0778212622, 0)
  144. EC_4.Size = UDim2.new(0.0597603284, 0, 0.272373527, 0)
  145.  
  146. EC_5.Name = "EC"
  147. EC_5.Parent = distTag
  148. EC_5.BackgroundColor3 = v.Main.Color
  149. EC_5.BackgroundTransparency = 0.75
  150. EC_5.BorderSizePixel = 0
  151. EC_5.Position = UDim2.new(0, 0, 0.0778212622, 0)
  152. EC_5.Size = UDim2.new(0.0574538782, 0, 0.272373527, 0)
  153.  
  154. EC_6.Name = "EC"
  155. EC_6.Parent = distTag
  156. EC_6.BackgroundColor3 = v.Main.Color
  157. EC_6.BackgroundTransparency = 0.75
  158. EC_6.BorderSizePixel = 0
  159. EC_6.Position = UDim2.new(0, 0, -2.98420062e-08, 0)
  160. EC_6.Size = UDim2.new(0.999999404, 0, 0.0778213963, 0)
  161.  
  162. EB_4.Name = "EB"
  163. EB_4.Parent = distTag
  164. EB_4.BackgroundColor3 = Color3.new(0, 0, 0)
  165. EB_4.BackgroundTransparency = 0.75
  166. EB_4.BorderSizePixel = 0
  167. EB_4.Position = UDim2.new(0.880477965, 0, 0.0778212622, 0)
  168. EB_4.Size = UDim2.new(0.0597615391, 0, 0.272373527, 0)
  169.  
  170. EB_5.Name = "EB"
  171. EB_5.Parent = distTag
  172. EB_5.BackgroundColor3 = Color3.new(0, 0, 0)
  173. EB_5.BackgroundTransparency = 0.75
  174. EB_5.BorderSizePixel = 0
  175. EB_5.Position = UDim2.new(0.0574540384, 0, 0.0778212622, 0)
  176. EB_5.Size = UDim2.new(0.0720281452, 0, 0.272373527, 0)
  177.  
  178. EB_6.Name = "EB"
  179. EB_6.Parent = distTag
  180. EB_6.BackgroundColor3 = Color3.new(0, 0, 0)
  181. EB_6.BackgroundTransparency = 0.75
  182. EB_6.BorderSizePixel = 0
  183. EB_6.Position = UDim2.new(0.129482061, 0, 0.0778212696, 0)
  184. EB_6.Size = UDim2.new(0.749402046, 0, 0.0907907709, 0)
  185.  
  186. Inf.Name = "Inf"
  187. Inf.Parent = distTag
  188. Inf.BackgroundColor3 = v.Main.Color
  189. Inf.BackgroundTransparency = 0.75
  190. Inf.BorderSizePixel = 0
  191. Inf.ClipsDescendants = true
  192. Inf.Position = UDim2.new(0.129482061, 0, 0.168612242, 0)
  193. Inf.Size = UDim2.new(0.749402046, 0, 0.181582734, 0)
  194. Inf.Font = Enum.Font.SourceSansBold
  195. Inf.Text = "Bag Type"
  196. Inf.TextColor3 = Color3.new(1, 1, 1)
  197. Inf.TextScaled = true
  198. Inf.TextSize = 18
  199. Inf.TextWrapped = true
  200.  
  201. Type.Name = "Type"
  202. Type.Parent = distTag
  203. Type.BackgroundColor3 = v.Main.Color
  204. Type.BackgroundTransparency = 0.75
  205. Type.BorderSizePixel = 0
  206. Type.ClipsDescendants = true
  207. Type.Position = UDim2.new(0, 0, 0.350194782, 0)
  208. Type.Size = UDim2.new(1, 0, 0.325551301, 0)
  209. Type.Font = Enum.Font.SourceSansBold
  210. Type.Text = v.Rarity.Value
  211. Type.TextColor3 = Color3.new(1, 1, 1)
  212. Type.TextScaled = true
  213. Type.TextSize = 18
  214.  
  215. Dis.Name = "Dis"
  216. Dis.Parent = distTag
  217. Dis.BackgroundColor3 = v.Main.Color
  218. Dis.BackgroundTransparency = 0.75
  219. Dis.BorderSizePixel = 0
  220. Dis.ClipsDescendants = true
  221. Dis.Position = UDim2.new(0.129482061, 0, 0.674449146, 0)
  222. Dis.Size = UDim2.new(0.750996053, 0, 0.195849612, 0)
  223. Dis.Font = Enum.Font.SourceSansBold
  224. Dis.Text = "AAAAAAA"--round((game.Players.LocalPlayer.Character.HumanoidRootPart.Position - v.Main.Position).magnitude).." m"
  225. Dis.TextColor3 = Color3.new(1, 1, 1)
  226. Dis.TextScaled = true
  227. Dis.TextSize = 18
  228. end
  229. end
  230. print("cute boi")
  231.  
  232. while true do Swait(10)
  233.  
  234. for _,v in pairs(path:GetChildren()) do
  235. coroutine.resume(coroutine.create(function()
  236. if v:FindFirstChild("BagTouchScript") and v:FindFirstChild("Rarity") then
  237.  
  238. if game.Players.LocalPlayer.Character ~= nil and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") then
  239. -- Swait()
  240.  
  241. v.Main.distTag.Dis.Text = round((game.Players.LocalPlayer.Character.HumanoidRootPart.Position - v.Main.Position).magnitude).." m"
  242. local dist = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - v.Main.Position).magnitude
  243. if dist < FadeDist then
  244. ----------------------------------------------------
  245. if v.Main.distTag.FadeEnabled.Value == true then
  246. v.Main.distTag.FadeEnabled.Value = false
  247. for _,v2 in next, v.Main.distTag:GetDescendants() do
  248. if v2:IsA("Frame") then
  249. SetTween(v2,{BackgroundTransparency = 0.75},"Quad","InOut",1)
  250. end
  251. if v2:IsA("TextLabel") then
  252. SetTween(v2,{BackgroundTransparency = 0.75,TextTransparency = 0},"Quad","InOut",1)
  253. end
  254. end
  255. end
  256. ----------------------------------------------------
  257. else -----------------------------------------------
  258. ----------------------------------------------------
  259. if v.Main.distTag.FadeEnabled.Value == false then
  260. v.Main.distTag.FadeEnabled.Value = true
  261. for _,v2 in next, v.Main.distTag:GetDescendants() do
  262. if v2:IsA("Frame") then
  263. SetTween(v2,{BackgroundTransparency = 0.95},"Quad","InOut",1)
  264. end
  265. if v2:IsA("TextLabel") then
  266. SetTween(v2,{BackgroundTransparency = 0.95,TextTransparency = 0.5},"Quad","InOut",1)
  267. end
  268. end
  269.  
  270. end
  271. ----------------------------------------------------
  272. end
  273.  
  274.  
  275. end
  276. end
  277.  
  278. end))
  279. end
  280. end
Add Comment
Please, Sign In to add comment