Advertisement
YoshiScript

MM2 Auto-Farm script

Apr 23rd, 2022
1,847
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.12 KB | None | 0 0
  1. local ScreenGui = Instance.new("ScreenGui") local Frame = Instance.new("Frame") local ScrollingFrame1 = Instance.new("ScrollingFrame") local TextButton1 = Instance.new("TextButton") local TextButton2 = Instance.new("TextButton") local TextButton3 = Instance.new("TextButton") local Exit = Instance.new("TextButton") ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling Frame.Parent = ScreenGui Frame.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Frame.Size = UDim2.new(0.5, 0, 0.5, 0) Frame.Active = true Frame.Selectable = true Frame.Draggable = true ScrollingFrame1.Parent = Frame ScrollingFrame1.Size = UDim2.new(1,0,1,0) TextButton1.Text = "✅ MM2 Auto-Farm" TextButton1.Parent = ScrollingFrame1 TextButton1.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextButton1.Size = UDim2.new(1,0,0,50) TextButton1.TextColor3 = Color3.fromRGB(0, 0, 0) TextButton1.TextSize = 14.000 TextButton2.Text = "Anti-Lag 😎(kinda broken)" TextButton2.Parent = ScrollingFrame1 TextButton2.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextButton2.Position = UDim2.new(0,0,0,50) TextButton2.Size = UDim2.new(1,0,0,50) TextButton2.TextColor3 = Color3.fromRGB(0, 0, 0) TextButton2.TextSize = 14.000 TextButton3.Text = "God Mode 🔥" TextButton3.Parent = ScrollingFrame1 TextButton3.BackgroundColor3 = Color3.fromRGB(255, 255, 255) TextButton3.Position = UDim2.new(0,0,0,100) TextButton3.Size = UDim2.new(1,0,0,50) TextButton3.TextColor3 = Color3.fromRGB(0, 0, 0) TextButton3.TextSize = 14.000 Exit.Text = "X" Exit.Parent = Frame Exit.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Exit.Position = UDim2.new(1,-30,0,10) Exit.Size = UDim2.new(0,20,0,20) Exit.TextColor3 = Color3.fromRGB(0, 0, 0) Exit.TextSize = 14.000 local function button1() local script = Instance.new('LocalScript', TextButton1) script.Parent.MouseButton1Click:Connect(function() game:GetService("StarterGui"):SetCore("SendNotification", {Title = "Murder Mystery 2", Text = "✅ Subscribe To Yoshi_Blox On YouTube 🔥"}) local antiafk = false local AntiAFKKickGUI = Instance.new("ScreenGui") local MainFrame = Instance.new("Frame") local Button = Instance.new("TextButton") local Deco = Instance.new("TextLabel") AntiAFKKickGUI.Name = "AntiAFKKickGUI" AntiAFKKickGUI.Parent = game.CoreGui MainFrame.Name = "MainFrame" MainFrame.Parent = AntiAFKKickGUI MainFrame.Active = true MainFrame.BackgroundColor3 = Color3.new(0.196078, 0.196078, 0.196078) MainFrame.BorderSizePixel = 0 MainFrame.Draggable = true MainFrame.Position = UDim2.new(0.25, 0, 0.25, 0) MainFrame.Size = UDim2.new(0.150000006, 0, 0.100000001, 0) Button.Name = "Button" Button.Parent = MainFrame Button.BackgroundColor3 = Color3.new(0, 0, 0) Button.BorderSizePixel = 0 Button.Position = UDim2.new(0.25, 0, 0.400000006, 0) Button.Size = UDim2.new(0.5, 0, 0.400000006, 0) Button.Font = Enum.Font.SourceSans Button.FontSize = Enum.FontSize.Size14 Button.Text = "OFF" Button.TextColor3 = Color3.new(1, 0, 0) Button.TextScaled = true Button.TextSize = 14 Button.TextWrapped = true Deco.Name = "Deco" Deco.Parent = MainFrame Deco.BackgroundColor3 = Color3.new(1, 1, 1) Deco.BackgroundTransparency = 0.89999997615814 Deco.BorderSizePixel = 0 Deco.Size = UDim2.new(1, 0, 0.300000012, 0) Deco.Font = Enum.Font.SourceSansBold Deco.FontSize = Enum.FontSize.Size14 Deco.Text = "AFK" Deco.TextColor3 = Color3.new(1, 1, 1) Deco.TextScaled = true Deco.TextSize = 14 Deco.TextWrapped = true Button.MouseButton1Down:connect(function() if antiafk == false then antiafk = true Button.TextColor3 = Color3.new(0, 1, 0) Button.Text = "ON" else antiafk = false Button.TextColor3 = Color3.new(1, 0, 0) Button.Text = "OFF" end end) spawn(function() while true do wait() if antiafk == true then wait(math.random(0.3,1)) local a = math.random(1,5) if a == 1 then keypress(0x57) keyup(0x57) end if a == 2 then keypress(0x53) end if a == 3 then keypress(0x44) end if a == 4 then keypress(0x41) end if a == 5 then keypress(0x20) end end end end) power = 5 game:GetService('RunService').Stepped:connect(function() game.Players.LocalPlayer.Character.Head.CanCollide = false game.Players.LocalPlayer.Character.UpperTorso.CanCollide = false game.Players.LocalPlayer.Character.LowerTorso.CanCollide = false game.Players.LocalPlayer.Character.HumanoidRootPart.CanCollide = false end) wait(.1) local bambam = Instance.new("BodyThrust") bambam.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart bambam.Force = Vector3.new(power,0,power) bambam.Location = game.Players.LocalPlayer.Character.HumanoidRootPart.Position while true do wait() local children = game.Workspace:GetChildren() for _, child in pairs(children) do for _, child in pairs(child:GetChildren()) do table.insert(children, child) end if child:IsA("BasePart") and child.Name == "Coin_Server" then game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = child.CFrame wait(2.5) end end end end) end coroutine.wrap(button1)() local function button2() local script = Instance.new('LocalScript', TextButton2) script.Parent.MouseButton1Click:Connect(function() local decalsyeeted = true -- Leaving this on makes games look shitty but the fps goes up by at least 20. local g = game local w = g.Workspace local l = g.Lighting local t = w.Terrain t.WaterWaveSize = 0 t.WaterWaveSpeed = 0 t.WaterReflectance = 0 t.WaterTransparency = 0 l.GlobalShadows = false l.FogEnd = 9e9 l.Brightness = 0 settings().Rendering.QualityLevel = "Level01" for i, v in pairs(g:GetDescendants()) do if v:IsA("Part") or v:IsA("Union") or v:IsA("CornerWedgePart") or v:IsA("TrussPart") then v.Material = "Plastic" v.Reflectance = 0 elseif v:IsA("Decal") or v:IsA("Texture") and decalsyeeted then v.Transparency = 1 elseif v:IsA("ParticleEmitter") or v:IsA("Trail") then v.Lifetime = NumberRange.new(0) elseif v:IsA("Explosion") then v.BlastPressure = 1 v.BlastRadius = 1 elseif v:IsA("Fire") or v:IsA("SpotLight") or v:IsA("Smoke") then v.Enabled = false elseif v:IsA("MeshPart") then v.Material = "Plastic" v.Reflectance = 0 v.TextureID = 10385902758728957 end end for i, e in pairs(l:GetChildren()) do if e:IsA("BlurEffect") or e:IsA("SunRaysEffect") or e:IsA("ColorCorrectionEffect") or e:IsA("BloomEffect") or e:IsA("DepthOfFieldEffect") then e.Enabled = false end end end) end coroutine.wrap(button2)() local function button3() local script = Instance.new('LocalScript', TextButton3) script.Parent.MouseButton1Click:Connect(function() local player = game.Players.LocalPlayer if player.Character then if player.Character:FindFirstChild("Humanoid") then player.Character.Humanoid.Name = "1" end local l = player.Character["1"]:Clone() l.Parent = player.Character l.Name = "Humanoid"; wait(0.1) player.Character["1"]:Destroy() workspace.CurrentCamera.CameraSubject = player.Character.Humanoid player.Character.Animate.Disabled = true; wait(0.1) player.Character.Animate.Disabled = false end print("finished.") game:GetService("StarterGui"):SetCore("SendNotification", {Title = "Murder Mystery 2", Text = "✅ Subscribe To Yoshi_Blox On YouTube 🔥"}) end) end coroutine.wrap(button3)() local function exit() local script = Instance.new('LocalScript', Exit) script.Parent.MouseButton1Click:Connect(function() ScreenGui:Destroy() end) end coroutine.wrap(exit)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement