Advertisement
kipr987

MM2

Oct 21st, 2024 (edited)
192
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.63 KB | None | 0 0
  1. for i, v in pairs(game:GetService("CoreGui"):GetChildren()) do
  2.     if v.Name == "ui" then
  3.         v:Destroy()
  4.     end
  5. end
  6. local UI = loadstring(game:HttpGetAsync("https://pastebin.com/raw/0589YkmB"))()
  7.  
  8. local window = UI:Window("Premium")
  9. local nif = UI:Notification("Welcome to", game:GetService("Players").LocalPlayer.Name, "Okay!")
  10. local farm = window:Tab("AutoFarm")
  11. local main = window:Tab("Main")
  12. local player = window:Tab("LocalPlayer")
  13. _G.farm = false
  14. farm:Toggle("AutoFarm Candy", false, function(value)
  15.     _G.farm = value
  16. end)
  17. _G.Espm = false
  18. main:Toggle("Esp", false, function(value)
  19.     _G.Espm = value
  20. end)
  21. _G.Gunesp = false
  22. main:Toggle("Gun Esp", false, function(value)
  23.     _G.Gunesp = value
  24. end)
  25. _G.Gun = false
  26. main:Toggle("Teleport to Gun", false, function(value)
  27.     _G.Gun = value
  28. end)
  29.  
  30. _G.Speed = 16
  31. local speed = player:Slider("WalkSpeed", 0, 40, 16, function(value)
  32.     _G.Speed = value
  33. end)
  34.  
  35. _G.Noclip = false
  36. player:Toggle("Noclip", false, function(value)
  37.     _G.Noclip = value
  38. end)
  39.  
  40. game:GetService("RunService").RenderStepped:Connect(function()
  41.     pcall(function()
  42.         game:GetService("Players").LocalPlayer.Character.Humanoid.WalkSpeed = _G.Speed
  43.     end)
  44. end)
  45.  
  46. game:GetService("RunService").RenderStepped:Connect(function()
  47.     if _G.farm or _G.Noclip then
  48.         for i, v in game.Players.LocalPlayer.Character:GetChildren() do
  49.             if v:IsA("BasePart") then
  50.                 v.CanCollide = false
  51.             end
  52.         end
  53.     end
  54. end)
  55. spawn(function()
  56. while wait() do
  57.     pcall(function()
  58.         if _G.farm and game:GetService("Players").LocalPlayer.PlayerGui.MainGUI.Game.CoinBags.Container.Candy.CurrencyFrame.Icon.Coins.Text ~= "40" then
  59.             repeat wait() until game:GetService("Players").LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  60.  
  61.             for i, v in workspace:GetChildren() do
  62.                 if v:FindFirstChild("CoinContainer") then
  63.                     dis = {}
  64.                     for g, f in v:FindFirstChild("CoinContainer"):GetChildren() do
  65.                         dis[g] = (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - f.Position).magnitude
  66.                     end
  67.                     table.sort(dis,function(a,b)
  68.                         return a < b
  69.                     end)
  70.                 end
  71.             end
  72.  
  73.             if not game:GetService("Players").LocalPlayer.Character.HumanoidRootPart:FindFirstChild("Vel") then
  74.                 local vel = Instance.new("BodyVelocity")
  75.                 vel.Name = "Vel"
  76.                 vel.Parent = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart
  77.                 vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  78.                 vel.Velocity = Vector3.new(0,0,0)
  79.             end
  80.             for _, v in workspace:GetChildren() do
  81.                 if v:FindFirstChild("CoinContainer") then
  82.                     for _, f in v:FindFirstChild("CoinContainer"):GetChildren() do
  83.                         if (game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position - f.Position).magnitude == dis[1] and dis[1] < 500 then
  84.                             repeat
  85.                                 wait()
  86.                                 if not f or _G.farm == false then
  87.                                     break
  88.                                 end
  89.                                 game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Vel.Velocity = CFrame.lookAt(game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position,f.Position).LookVector * dis[1] / dis[1] * 27
  90.                             until (f.Position - game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Position).magnitude < 2
  91.                             wait(.1)
  92.                             f:Destroy()
  93.                             break
  94.                         end
  95.                     end
  96.                 end
  97.             end
  98.         else
  99.             repeat wait() until game:GetService("Players").LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  100.             if game:GetService("Players").LocalPlayer.Character.HumanoidRootPart:FindFirstChild("Vel") then
  101.                 game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.Vel:Destroy()
  102.             end
  103.         end
  104.     end)
  105. end
  106. end)
  107.  
  108. spawn(function()
  109. while wait() do
  110.     pcall(function()
  111.         if _G.Espm then
  112.             for i, v in game:GetService("Players"):GetChildren() do
  113.                 if v.Name ~= game:GetService("Players").LocalPlayer.Name then
  114.                     if not v.Character:FindFirstChild("Highlight") then
  115.                         hight = Instance.new("Highlight", v.Character)
  116.                         hight.FillTransparency = 1
  117.                     end
  118.                     if not v.Character:FindFirstChild("BillboardGui") then
  119.                         local bill = Instance.new("BillboardGui", v.Character)
  120.                         bill.Adornee = v.Character
  121.                         bill.Size = UDim2.new(0, 200,0, 50)
  122.                         bill.StudsOffset = Vector3.new(0,4,0)
  123.                         bill.AlwaysOnTop = true
  124.  
  125.                         local textlabel = Instance.new("TextLabel", bill)
  126.                         textlabel.Size = UDim2.new(1,0,1,0)
  127.                         textlabel.Position = UDim2.new(0,0,0,0)
  128.                         textlabel.Name = "TextLabelTitle"
  129.                         textlabel.Text = v.DisplayName
  130.                         textlabel.BackgroundTransparency = 1
  131.                         textlabel.TextSize = 17
  132.                         textlabel.FontFace = Font.new("rbxasset://fonts/families/SourceSansPro.json", Enum.FontWeight.Bold, Enum.FontStyle.Normal)
  133.                         local stroke = Instance.new("UIStroke", textlabel)
  134.                         textlabel.TextColor3 = Color3.new(1, 1, 1)
  135.                     end
  136.                     if v.Backpack:FindFirstChild("Gun") or v.Character:FindFirstChild("Gun") then
  137.                         v.Character.BillboardGui.TextLabelTitle.TextColor3 = Color3.new(0, 0.431373, 1)
  138.                         v.Character.Highlight.OutlineColor = Color3.new(0, 0.431373, 1)
  139.                     elseif v.Backpack:FindFirstChild("Knife") or v.Character:FindFirstChild("Knife") then
  140.                         v.Character.BillboardGui.TextLabelTitle.TextColor3 = Color3.new(1, 0.0117647, 0.0117647)
  141.                         v.Character.Highlight.OutlineColor = Color3.new(1, 0.0117647, 0.0117647)
  142.                     end
  143.                 end
  144.             end
  145.         else
  146.             for i, v in game:GetService("Players"):GetChildren() do
  147.                 if v.Name ~= game:GetService("Players").LocalPlayer.Name then
  148.                     if v.Character:FindFirstChild("Highlight") then
  149.                         v.Character.Highlight:Destroy()
  150.                     end
  151.                     if v.Character:FindFirstChild("BillboardGui") then
  152.                         v.Character.BillboardGui:Destroy()
  153.                     end
  154.                 end
  155.             end
  156.         end
  157.     end)
  158.     wait(1)
  159. end
  160. end)
  161.  
  162. while wait() do
  163.     if _G.Gunesp then
  164.         for i, v in workspace:GetChildren() do
  165.             if v:FindFirstChild("GunDrop") then
  166.                 if not v:FindFirstChild("Highlight") then
  167.                     local hight = Instance.new("Highlight")
  168.                     hight.Parent = v:FindFirstChild("GunDrop")
  169.                     hight.FillTransparency = 1
  170.                     hight.OutlineColor = Color3.fromRGB(255, 170, 0)
  171.                 end
  172.             end
  173.         end
  174.     end
  175.     if _G.Gun then
  176.         for i, v in workspace:GetChildren() do
  177.             if v:FindFirstChild("GunDrop") then
  178.                 repeat wait() until game:GetService("Players").LocalPlayer.Character:FindFirstChild("HumanoidRootPart")
  179.                 local pos = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame
  180.                 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(v:FindFirstChild("GunDrop").Position)
  181.                 wait(.2)
  182.                 game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = pos
  183.             end
  184.         end
  185.     end
  186.     wait(.2)
  187. end
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement