RML

Your Bizzare Trash

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