Advertisement
gaoranger12345

Untitled

Nov 10th, 2020
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.10 KB | None | 0 0
  1. local player = game:GetService("Players").LocalPlayer
  2. local camera = workspace.Camera
  3. local items = workspace["Item_Spawns"].Items
  4. local runservice = game:GetService("RunService")
  5.  
  6. assert(Drawing, "Sorry, but your exploit doesn't support Drawing.new library!")
  7.  
  8. local options = { -- encoded in rgb
  9.  
  10. enabled = {
  11. arrow = true,
  12. roka = true,
  13. proka = true,
  14. diamond = true,
  15. coin = true,
  16. stonemask = true
  17. };
  18.  
  19. arrow = Color3.new(205, 133, 63);
  20. roka = Color3.new(255, 0, 85);
  21. proka = Color3.new(255, 89, 89);
  22. diamond = Color3.new(0, 190, 210);
  23. coin = Color3.new(255, 255, 0);
  24. smask = Color3.new(255, 0, 0);
  25. textsize = 16
  26. }
  27.  
  28. getgenv().options = options
  29.  
  30. local pairs = pairs
  31.  
  32. local vecTrans = function(vec) -- Vector3 to Vector2
  33. local worldP = vec
  34. local result = camera.WorldToScreenPoint(camera, worldP)
  35.  
  36. return Vector2.new(result.X, result.Y)
  37. end
  38.  
  39. function contains(tbl, k)
  40. for i,v in pairs(tbl) do
  41. if v == k then
  42. return true
  43. end
  44. end
  45. return false
  46. end
  47.  
  48. local meshes = {
  49. "rbxassetid://4496695972",
  50. "rbxassetid://3497428510",
  51. "rbxassetid://511706016",
  52. "rbxassetid://3583727108",
  53. "rbxassetid://4551120971"
  54. }
  55.  
  56. local esps = {}
  57.  
  58. local esp = function(item)
  59. local text = Drawing.new("Text")
  60. esps[#esps + 1] = {text, item}
  61.  
  62. local base = item
  63.  
  64. if base.MeshId == "rbxassetid://4496695972" and options.enabled.arrow then
  65. text.Text = "Arrow"
  66. text.Color = options.arrow
  67. elseif base.MeshId == "rbxassetid://3497428510" and options.enabled.roka then
  68. text.Text = "Rokakaka"
  69. text.Color = options.roka
  70. elseif base.MeshId == "rbxassetid://3497428510" and base.Material == Enum.Material.ForceField and options.enabled.proka then
  71. text.Text = "Pure Rokakaka"
  72. text.Color = options.proka
  73. elseif base.MeshId == "rbxassetid://511706016" and options.enabled.diamond then
  74. text.Text = "Diamond"
  75. text.Color = options.diamond
  76. elseif base.MeshId == "rbxassetid://3583727108" and options.enabled.coin then
  77. text.Text = "Gold Coin"
  78. text.Color = options.coin
  79. elseif base.MeshId == "rbxassetid://4551120971" and options.enabled.stonemask then
  80. text.Text = "Stone Mask"
  81. text.Color = options.smask
  82. elseif contains(meshes, base.MeshId) == false then -- big ugly
  83. if base.MeshId == "rbxassetid://3497428510" and base.Material == Enum.Material.ForceField then
  84. text.Text = "Pure Rokakaka"
  85. text.Color = options.proka
  86. else
  87. text.Text = "FATAL ERROR CONTACT Ceg#0550"
  88. text.Color = Color3.fromRGB(255, 0, 0)
  89. end
  90. end
  91.  
  92. text.Position = vecTrans(item.Position)
  93. text.Size = options.textsize
  94. text.Outline = true
  95. text.Visible = true
  96. end
  97.  
  98. for i,v in pairs(items:GetDescendants()) do
  99. if v.Name == "Base" then
  100. esp(v)
  101. warn(v.Parent.Name)
  102. end
  103. end
  104.  
  105. items.DescendantAdded:Connect(function(descendant)
  106. if descendant.Name == "Base" then
  107. esp(descendant)
  108. warn(descendant.Name)
  109. end
  110. end)
  111.  
  112. local update_esp = function()
  113. for i,v in pairs(esps) do
  114. local tbl = v
  115. local drawing = tbl[1]
  116. local inst = tbl[2]
  117.  
  118. if drawing and drawing.Text ~= "" then
  119. drawing.Position = vecTrans(inst.Position)
  120.  
  121. if not inst:IsDescendantOf(workspace) or inst.Parent.Parent ~= items then
  122. drawing:Remove()
  123. table.remove(esps, i)
  124. end
  125. end
  126. end
  127. end
  128.  
  129.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement