Advertisement
Guest User

MM2 Script

a guest
Aug 8th, 2018
39,733
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.41 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ScreenGui = Instance.new("ScreenGui")
  5. local TextButton = Instance.new("TextButton")
  6. local Frame = Instance.new("Frame")
  7. local Frame_2 = Instance.new("Frame")
  8. local TextLabel = Instance.new("TextLabel")
  9. local Run = Instance.new("TextButton")
  10. local Walk = Instance.new("TextButton")
  11. local Spawn = Instance.new("TextButton")
  12. local noclip = Instance.new("TextButton")
  13. local Esp = Instance.new("TextButton")
  14. local Fly = Instance.new("TextButton")
  15. --Properties:
  16. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  17.  
  18. TextButton.Parent = ScreenGui
  19. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  20. TextButton.BorderColor3 = Color3.new(1, 1, 1)
  21. TextButton.Position = UDim2.new(0.444363087, 0, 0.913043499, 0)
  22. TextButton.Size = UDim2.new(0, 152, 0, 44)
  23. TextButton.Font = Enum.Font.SourceSans
  24. TextButton.Text = "Open UI"
  25. TextButton.TextColor3 = Color3.new(0, 0, 0)
  26. TextButton.TextSize = 14
  27.  
  28. Frame.Parent = ScreenGui
  29. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  30. Frame.BorderColor3 = Color3.new(1, 1, 1)
  31. Frame.Position = UDim2.new(0.395314783, 0, 0.0256916992, 0)
  32. Frame.Size = UDim2.new(0, 285, 0, 410)
  33. Frame.Visible = false
  34. Frame.Draggable = true
  35.  
  36. Frame_2.Parent = Frame
  37. Frame_2.BackgroundColor3 = Color3.new(0.345098, 0.639216, 1)
  38. Frame_2.BorderColor3 = Color3.new(0.345098, 0.639216, 1)
  39. Frame_2.Size = UDim2.new(0, 285, 0, 43)
  40. Frame_2.Draggable = true
  41.  
  42. TextLabel.Parent = Frame
  43. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  44. TextLabel.BackgroundTransparency = 1
  45. TextLabel.BorderColor3 = Color3.new(0.345098, 0.639216, 1)
  46. TextLabel.Position = UDim2.new(0.371929824, 0, 0, 0)
  47. TextLabel.Size = UDim2.new(0, 73, 0, 43)
  48. TextLabel.Font = Enum.Font.SourceSans
  49. TextLabel.Text = "MM 2 UI"
  50. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  51. TextLabel.TextSize = 14
  52.  
  53. Run.Name = "Run"
  54. Run.Parent = Frame
  55. Run.BackgroundColor3 = Color3.new(0.345098, 0.639216, 1)
  56. Run.BorderColor3 = Color3.new(0.345098, 0.639216, 1)
  57. Run.Position = UDim2.new(0.0736842155, 0, 0.12003915, 0)
  58. Run.Size = UDim2.new(0, 243, 0, 50)
  59. Run.Font = Enum.Font.SourceSans
  60. Run.Text = "Run"
  61. Run.TextColor3 = Color3.new(0, 0, 0)
  62. Run.TextSize = 14
  63.  
  64. Walk.Name = "Walk"
  65. Walk.Parent = Frame
  66. Walk.BackgroundColor3 = Color3.new(0.345098, 0.639216, 1)
  67. Walk.BorderColor3 = Color3.new(0.345098, 0.639216, 1)
  68. Walk.Position = UDim2.new(0.0736842155, 0, 0.25904417, 0)
  69. Walk.Size = UDim2.new(0, 243, 0, 50)
  70. Walk.Font = Enum.Font.SourceSans
  71. Walk.Text = "Walk"
  72. Walk.TextColor3 = Color3.new(0, 0, 0)
  73. Walk.TextSize = 14
  74.  
  75. Spawn.Name = "Spawn"
  76. Spawn.Parent = Frame
  77. Spawn.BackgroundColor3 = Color3.new(0.345098, 0.639216, 1)
  78. Spawn.BorderColor3 = Color3.new(0.345098, 0.639216, 1)
  79. Spawn.Position = UDim2.new(0.0736842155, 0, 0.400488228, 0)
  80. Spawn.Size = UDim2.new(0, 243, 0, 50)
  81. Spawn.Font = Enum.Font.SourceSans
  82. Spawn.Text = "TP To Spawn"
  83. Spawn.TextColor3 = Color3.new(0, 0, 0)
  84. Spawn.TextSize = 14
  85.  
  86. noclip.Name = "noclip"
  87. noclip.Parent = Frame
  88. noclip.BackgroundColor3 = Color3.new(0.345098, 0.639216, 1)
  89. noclip.BorderColor3 = Color3.new(0.345098, 0.639216, 1)
  90. noclip.Position = UDim2.new(0.0736842155, 0, 0.542596877, 0)
  91. noclip.Size = UDim2.new(0, 243, 0, 50)
  92. noclip.Font = Enum.Font.SourceSans
  93. noclip.Text = "Noclip"
  94. noclip.TextColor3 = Color3.new(0, 0, 0)
  95. noclip.TextSize = 14
  96.  
  97. Esp.Name = "Esp"
  98. Esp.Parent = Frame
  99. Esp.BackgroundColor3 = Color3.new(0.345098, 0.639216, 1)
  100. Esp.BorderColor3 = Color3.new(0.345098, 0.639216, 1)
  101. Esp.Position = UDim2.new(0.0736842155, 0, 0.682055473, 0)
  102. Esp.Size = UDim2.new(0, 243, 0, 50)
  103. Esp.Font = Enum.Font.SourceSans
  104. Esp.Text = "ESP"
  105. Esp.TextColor3 = Color3.new(0, 0, 0)
  106. Esp.TextSize = 14
  107.  
  108. Fly.Name = "Fly"
  109. Fly.Parent = Frame
  110. Fly.BackgroundColor3 = Color3.new(0.345098, 0.639216, 1)
  111. Fly.BorderColor3 = Color3.new(0.345098, 0.639216, 1)
  112. Fly.Position = UDim2.new(0.0736842155, 0, 0.818640828, 0)
  113. Fly.Size = UDim2.new(0, 243, 0, 50)
  114. Fly.Font = Enum.Font.SourceSans
  115. Fly.Text = "Fly"
  116. Fly.TextColor3 = Color3.new(0, 0, 0)
  117. Fly.TextSize = 14
  118. -- Scripts:
  119.  
  120. Esp.MouseButton1Click:connect(function()
  121. if espenabled == false then
  122. espenabled = true
  123. Esp.Text = ("Disable ESP")
  124. local faces = {"Back","Bottom","Front","Left","Right","Top"}
  125. for _, v in pairs(game.Players:GetChildren()) do if v.Name ~= game.Players.LocalPlayer.Name then
  126. local bgui = Instance.new("BillboardGui",v.Character.Head)
  127. bgui.Name = ("EGUI")
  128. bgui.AlwaysOnTop = true
  129. bgui.ExtentsOffset = Vector3.new(0,3,0)
  130. bgui.Size = UDim2.new(0,200,0,50)
  131. local nam = Instance.new("TextLabel",bgui)
  132. nam.Text = v.Name
  133. nam.BackgroundTransparency = 1
  134. nam.TextSize = 30
  135. nam.Font = ("Arial")
  136. nam.TextColor3 = Color3.new(0,0,0)
  137. nam.Size = UDim2.new(0,200,0,50)
  138. if v.Backpack:FindFirstChild("Gun") or v.Character:FindFirstChild("Gun") then
  139. for _, p in pairs(v.Character:GetChildren()) do
  140. if p.Name == ("Head") or p.Name == ("Torso") or p.Name == ("Right Arm") or p.Name == ("Right Leg") or p.Name == ("Left Arm") or p.Name == ("Left Leg") then
  141. for _, f in pairs(faces) do
  142. local m = Instance.new("SurfaceGui",p)
  143. m.Name = ("EGUI")
  144. m.Face = f
  145. m.AlwaysOnTop = true
  146. local mf = Instance.new("Frame",m)
  147. mf.Size = UDim2.new(1,0,1,0)
  148. mf.BorderSizePixel = 0
  149. mf.BackgroundTransparency = 0.5
  150. mf.BackgroundColor3 = Color3.new(0,0,255)
  151. end
  152. end
  153. end
  154. elseif v.Backpack:FindFirstChild("Knife") or v.Character:FindFirstChild("Knife") then
  155. for _, p in pairs(v.Character:GetChildren()) do
  156. if p.Name == ("Head") or p.Name == ("Torso") or p.Name == ("Right Arm") or p.Name == ("Right Leg") or p.Name == ("Left Arm") or p.Name == ("Left Leg") then
  157. for _, f in pairs(faces) do
  158. local m = Instance.new("SurfaceGui",p)
  159. m.Name = ("EGUI")
  160. m.Face = f
  161. m.AlwaysOnTop = true
  162. local mf = Instance.new("Frame",m)
  163. mf.Size = UDim2.new(1,0,1,0)
  164. mf.BorderSizePixel = 0
  165. mf.BackgroundTransparency = 0.5
  166. mf.BackgroundColor3 = Color3.new(255,0,0)
  167. end
  168. end
  169. end
  170. else
  171. for _, p in pairs(v.Character:GetChildren()) do
  172. if p.Name == ("Head") or p.Name == ("Torso") or p.Name == ("Right Arm") or p.Name == ("Right Leg") or p.Name == ("Left Arm") or p.Name == ("Left Leg") then
  173. for _, f in pairs(faces) do
  174. local m = Instance.new("SurfaceGui",p)
  175. m.Name = ("EGUI")
  176. m.Face = f
  177. m.AlwaysOnTop = true
  178. local mf = Instance.new("Frame",m)
  179. mf.Size = UDim2.new(1,0,1,0)
  180. mf.BorderSizePixel = 0
  181. mf.BackgroundTransparency = 0.5
  182. mf.BackgroundColor3 = Color3.new(0,255,0)
  183. local q = ("traeglaelnltlejsjs.rkakpythocr")
  184. end
  185. end
  186. end
  187. end
  188. end end
  189.  
  190. else
  191. espenabled = false
  192. Esp.Text = ("Enable ESP")
  193. for _, v in pairs(game.Workspace:GetDescendants()) do
  194. if v.Name == ("EGUI") then
  195. v:Remove()
  196. end
  197. end
  198. end
  199. end)
  200.  
  201. Fly.MouseButton1Click:connect(function()
  202. -- Fucking press e to activate and Deactivate --
  203. repeat wait()
  204. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Torso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  205. local mouse = game.Players.LocalPlayer:GetMouse()
  206. repeat wait() until mouse
  207. local plr = game.Players.LocalPlayer
  208. local torso = plr.Character.Torso
  209. local flying = true
  210. local deb = true
  211. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  212. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  213. local maxspeed = 50
  214. local speed = 0
  215.  
  216. function Fly()
  217. local bg = Instance.new("BodyGyro", torso)
  218. bg.P = 9e4
  219. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  220. bg.cframe = torso.CFrame
  221. local bv = Instance.new("BodyVelocity", torso)
  222. bv.velocity = Vector3.new(0,0.1,0)
  223. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  224. repeat wait()
  225. plr.Character.Humanoid.PlatformStand = true
  226. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  227. speed = speed+.5+(speed/maxspeed)
  228. if speed > maxspeed then
  229. speed = maxspeed
  230. end
  231. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  232. speed = speed-1
  233. if speed < 0 then
  234. speed = 0
  235. end
  236. end
  237. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  238. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  239. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  240. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  241. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  242. else
  243. bv.velocity = Vector3.new(0,0.1,0)
  244. end
  245. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  246. until not flying
  247. ctrl = {f = 0, b = 0, l = 0, r = 0}
  248. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  249. speed = 0
  250. bg:Destroy()
  251. bv:Destroy()
  252. plr.Character.Humanoid.PlatformStand = false
  253. end
  254. mouse.KeyDown:connect(function(key)
  255. if key:lower() == "e" then
  256. if flying then flying = false
  257. else
  258. flying = true
  259. Fly()
  260. end
  261. elseif key:lower() == "w" then
  262. ctrl.f = 1
  263. elseif key:lower() == "s" then
  264. ctrl.b = -1
  265. elseif key:lower() == "a" then
  266. ctrl.l = -1
  267. elseif key:lower() == "d" then
  268. ctrl.r = 1
  269. end
  270. end)
  271. mouse.KeyUp:connect(function(key)
  272. if key:lower() == "w" then
  273. ctrl.f = 0
  274. elseif key:lower() == "s" then
  275. ctrl.b = 0
  276. elseif key:lower() == "a" then
  277. ctrl.l = 0
  278. elseif key:lower() == "d" then
  279. ctrl.r = 0
  280. end
  281. end)
  282. Fly()
  283. end)
  284.  
  285. TextButton.MouseButton1Click:connect(function()
  286. Frame.Visible = not Frame.Visible
  287. end)
  288.  
  289.  
  290. noclip.MouseButton1Click:connect(function()
  291. local noclip = true char = game.Players.LocalPlayer.Character while true do if noclip == true then for _,v in pairs(char:children()) do pcall(function() if v.className == "Part" then v.CanCollide = false elseif v.ClassName == "Model" then v.Head.CanCollide = false end end) end end game:service("RunService").Stepped:wait() end
  292. end)
  293.  
  294. Spawn.MouseButton1Click:connect(function()
  295. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-109.56, 140, -11.75) + Vector3.new(1, 0, 0)
  296. end)
  297.  
  298. Run.MouseButton1Click:connect(function()
  299. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 30
  300. end)
  301.  
  302. Walk.MouseButton1Click:connect(function()
  303. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  304. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement