Upscalefanatic3

Murder Mystery 2 GUI v2 | Godmode, esp, etc...

Jan 28th, 2019
498
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Objects
  2.  
  3. local MM2tools = Instance.new("ScreenGui")
  4. local Topframe = Instance.new("Frame")
  5. local Mainframe = Instance.new("Frame")
  6. local NameBox = Instance.new("TextBox")
  7. local GotoPlayer = Instance.new("TextButton")
  8. local GotoSpawn = Instance.new("TextButton")
  9. local GodMode = Instance.new("TextButton")
  10. local TPcoins = Instance.new("TextButton")
  11. local Noclip = Instance.new("TextButton")
  12. local Clip = Instance.new("TextButton")
  13. local BringGun = Instance.new("TextButton")
  14. local ESP = Instance.new("TextButton")
  15. local UnlockWS = Instance.new("TextButton")
  16. local Btools = Instance.new("TextButton")
  17. local Title = Instance.new("TextLabel")
  18. local Creds = Instance.new("TextLabel")
  19. local HintTopFrame = Instance.new("Frame")
  20. local HintMainFrame = Instance.new("Frame")
  21. local TextLabel = Instance.new("TextLabel")
  22. local HintClose = Instance.new("TextButton")
  23.  
  24. -- Properties
  25.  
  26. MM2tools.Name = "MM2tools"
  27. MM2tools.Parent = game.CoreGui
  28.  
  29. Topframe.Name = "Topframe"
  30. Topframe.Parent = MM2tools
  31. Topframe.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  32. Topframe.BorderColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  33. Topframe.Position = UDim2.new(0.659793794, 0, 0.286506474, 0)
  34. Topframe.Size = UDim2.new(0, 286, 0, 20)
  35. Topframe.Active = true
  36. Topframe.Draggable = true
  37.  
  38. Mainframe.Name = "Mainframe"
  39. Mainframe.Parent = Topframe
  40. Mainframe.BackgroundColor3 = Color3.new(0.101961, 0.101961, 0.101961)
  41. Mainframe.BorderColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  42. Mainframe.Position = UDim2.new(0, 0, 1, 0)
  43. Mainframe.Size = UDim2.new(0, 286, 0, 159)
  44.  
  45. NameBox.Name = "NameBox"
  46. NameBox.Parent = Mainframe
  47. NameBox.BackgroundColor3 = Color3.new(0.027451, 0.027451, 0.027451)
  48. NameBox.BorderColor3 = Color3.new(0.490196, 0.0352941, 0.686275)
  49. NameBox.Position = UDim2.new(0.031468533, 0, 0.0566037744, 0)
  50. NameBox.Size = UDim2.new(0, 268, 0, 23)
  51. NameBox.Font = Enum.Font.SourceSans
  52. NameBox.Text = "Player Name"
  53. NameBox.TextColor3 = Color3.new(0.698039, 0.0509804, 0.996078)
  54. NameBox.TextSize = 14
  55.  
  56. GotoPlayer.Name = "GotoPlayer"
  57. GotoPlayer.Parent = Mainframe
  58. GotoPlayer.BackgroundColor3 = Color3.new(0, 0, 0)
  59. GotoPlayer.BorderColor3 = Color3.new(0.490196, 0.0352941, 0.686275)
  60. GotoPlayer.Position = UDim2.new(0.031468533, 0, 0.257861644, 0)
  61. GotoPlayer.Size = UDim2.new(0, 126, 0, 17)
  62. GotoPlayer.Font = Enum.Font.SourceSans
  63. GotoPlayer.Text = "TP to player"
  64. GotoPlayer.TextColor3 = Color3.new(0.701961, 0.0509804, 1)
  65. GotoPlayer.TextSize = 14
  66. GotoPlayer.MouseButton1Click:Connect(function()
  67. getplr = function(plxr)
  68. for i, v in pairs(game.Players:GetPlayers()) do
  69. if string.find(v.Name, plxr) then
  70. return v
  71. elseif v.Name:sub(1, plxr:len()):lower()== plxr:lower() then
  72. return v
  73. end
  74. end
  75. end
  76. local plr = getplr(NameBox.Text)
  77. game.Players.LocalPlayer.Character:MoveTo(plr.Character.Torso.Position)
  78. end)
  79.  
  80. GotoSpawn.Name = "GotoSpawn"
  81. GotoSpawn.Parent = Mainframe
  82. GotoSpawn.BackgroundColor3 = Color3.new(0, 0, 0)
  83. GotoSpawn.BorderColor3 = Color3.new(0.490196, 0.0352941, 0.686275)
  84. GotoSpawn.Position = UDim2.new(0.527972043, 0, 0.257861644, 0)
  85. GotoSpawn.Size = UDim2.new(0, 126, 0, 17)
  86. GotoSpawn.Font = Enum.Font.SourceSans
  87. GotoSpawn.Text = "TP to spawn"
  88. GotoSpawn.TextColor3 = Color3.new(0.701961, 0.0509804, 1)
  89. GotoSpawn.TextSize = 14
  90. GotoSpawn.MouseButton1Click:Connect(function()
  91. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-109.56, 140, -11.75) + Vector3.new(1, 0, 0)
  92. end)
  93.  
  94. GodMode.Name = "GodMode"
  95. GodMode.Parent = Mainframe
  96. GodMode.BackgroundColor3 = Color3.new(0, 0, 0)
  97. GodMode.BorderColor3 = Color3.new(0.490196, 0.0352941, 0.686275)
  98. GodMode.Position = UDim2.new(0.031468533, 0, 0.408805043, 0)
  99. GodMode.Size = UDim2.new(0, 126, 0, 17)
  100. GodMode.Font = Enum.Font.SourceSans
  101. GodMode.Text = "Godmode"
  102. GodMode.TextColor3 = Color3.new(0.701961, 0.0509804, 1)
  103. GodMode.TextSize = 14
  104. GodMode.MouseButton1Down:connect(function()
  105. game.Players.LocalPlayer.Character.Humanoid:Remove()
  106. Instance.new('Humanoid', game.Players.LocalPlayer.Character)
  107. end)
  108.  
  109. TPcoins.Name = "TPcoins"
  110. TPcoins.Parent = Mainframe
  111. TPcoins.BackgroundColor3 = Color3.new(0, 0, 0)
  112. TPcoins.BorderColor3 = Color3.new(0.490196, 0.0352941, 0.686275)
  113. TPcoins.Position = UDim2.new(0.527972043, 0, 0.408805043, 0)
  114. TPcoins.Size = UDim2.new(0, 126, 0, 17)
  115. TPcoins.Font = Enum.Font.SourceSans
  116. TPcoins.Text = "TP coins"
  117. TPcoins.TextColor3 = Color3.new(0.701961, 0.0509804, 1)
  118. TPcoins.TextSize = 14
  119. TPcoins.MouseButton1Down:connect(function()
  120. for i = 10, 1, -1 do
  121. for i,v in pairs(game.Workspace:GetChildren()) do
  122. local s = v:FindFirstChild("CoinContainer")
  123. local e = game.Players.LocalPlayer.Character:FindFirstChild("Torso")
  124. if e and s then
  125. for i,c in pairs(s:GetChildren()) do
  126. c.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame
  127. end
  128. end
  129. end
  130. wait(0.7)
  131. end
  132. end)
  133.  
  134. Noclip.Name = "Noclip"
  135. Noclip.Parent = Mainframe
  136. Noclip.BackgroundColor3 = Color3.new(0, 0, 0)
  137. Noclip.BorderColor3 = Color3.new(0.490196, 0.0352941, 0.686275)
  138. Noclip.Position = UDim2.new(0.031468533, 0, 0.553459167, 0)
  139. Noclip.Size = UDim2.new(0, 126, 0, 17)
  140. Noclip.Font = Enum.Font.SourceSans
  141. Noclip.Text = "Noclip"
  142. Noclip.TextColor3 = Color3.new(0.701961, 0.0509804, 1)
  143. Noclip.TextSize = 14
  144. Noclip.MouseButton1Click:Connect(function()
  145. 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
  146. end)
  147.  
  148. Clip.Name = "Clip"
  149. Clip.Parent = Mainframe
  150. Clip.BackgroundColor3 = Color3.new(0, 0, 0)
  151. Clip.BorderColor3 = Color3.new(0.490196, 0.0352941, 0.686275)
  152. Clip.Position = UDim2.new(0.527972043, 0, 0.553459167, 0)
  153. Clip.Size = UDim2.new(0, 126, 0, 17)
  154. Clip.Font = Enum.Font.SourceSans
  155. Clip.Text = "Clip"
  156. Clip.TextColor3 = Color3.new(0.701961, 0.0509804, 1)
  157. Clip.TextSize = 14
  158. Clip.MouseButton1Click:Connect(function()
  159. 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 = true elseif v.ClassName == "Model" then v.Head.CanCollide = true end end) end end game:service("RunService").Stepped:wait() end
  160. end)
  161.  
  162. BringGun.Name = "BringGun"
  163. BringGun.Parent = Mainframe
  164. BringGun.BackgroundColor3 = Color3.new(0, 0, 0)
  165. BringGun.BorderColor3 = Color3.new(0.490196, 0.0352941, 0.686275)
  166. BringGun.Position = UDim2.new(0.031468533, 0, 0.704402566, 0)
  167. BringGun.Size = UDim2.new(0, 126, 0, 17)
  168. BringGun.Font = Enum.Font.SourceSans
  169. BringGun.Text = "Bring Gun"
  170. BringGun.TextColor3 = Color3.new(0.701961, 0.0509804, 1)
  171. BringGun.TextSize = 14
  172. BringGun.MouseButton1Down:connect(function()
  173. game.Workspace.GunDrop.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(2,0,0)
  174. end)
  175.  
  176. ESP.Name = "ESP"
  177. ESP.Parent = Mainframe
  178. ESP.BackgroundColor3 = Color3.new(0, 0, 0)
  179. ESP.BorderColor3 = Color3.new(0.490196, 0.0352941, 0.686275)
  180. ESP.Position = UDim2.new(0.527972043, 0, 0.704402566, 0)
  181. ESP.Size = UDim2.new(0, 126, 0, 17)
  182. ESP.Font = Enum.Font.SourceSans
  183. ESP.Text = "Enable ESP"
  184. ESP.TextColor3 = Color3.new(0.701961, 0.0509804, 1)
  185. ESP.TextSize = 14
  186. ESP.MouseButton1Click:Connect(function()
  187. espenabled = false
  188. ESP.MouseButton1Up:connect(function()
  189. if espenabled == false then
  190. espenabled = true
  191. ESP.Text = ("Disable ESP")
  192.  
  193. --Made by !!!RelentlessRaptor#5709 on discord
  194.  
  195. local faces = {"Back","Bottom","Front","Left","Right","Top"}
  196. for _, v in pairs(game.Players:GetChildren()) do if v.Name ~= game.Players.LocalPlayer.Name then
  197. local bgui = Instance.new("BillboardGui",v.Character.Head)
  198. bgui.Name = ("EGUI")
  199. bgui.AlwaysOnTop = true
  200. bgui.ExtentsOffset = Vector3.new(0,3,0)
  201. bgui.Size = UDim2.new(0,200,0,50)
  202. local nam = Instance.new("TextLabel",bgui)
  203. nam.Text = v.Name
  204. nam.BackgroundTransparency = 1
  205. nam.TextSize = 30
  206. nam.Font = ("Arial")
  207. nam.TextColor3 = Color3.new(0,0,0)
  208. nam.Size = UDim2.new(0,200,0,50)
  209. if v.Backpack:FindFirstChild("Gun") or v.Character:FindFirstChild("Gun") then
  210. for _, p in pairs(v.Character:GetChildren()) do
  211. 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
  212. for _, f in pairs(faces) do
  213. local m = Instance.new("SurfaceGui",p)
  214. m.Name = ("EGUI")
  215. m.Face = f
  216. m.AlwaysOnTop = true
  217. local mf = Instance.new("Frame",m)
  218. mf.Size = UDim2.new(1,0,1,0)
  219. mf.BorderSizePixel = 0
  220. mf.BackgroundTransparency = 0.5
  221. mf.BackgroundColor3 = Color3.new(0,0,255)
  222. end
  223. end
  224. end
  225. elseif v.Backpack:FindFirstChild("Knife") or v.Character:FindFirstChild("Knife") then
  226. for _, p in pairs(v.Character:GetChildren()) do
  227. 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
  228. for _, f in pairs(faces) do
  229. local m = Instance.new("SurfaceGui",p)
  230. m.Name = ("EGUI")
  231. m.Face = f
  232. m.AlwaysOnTop = true
  233. local mf = Instance.new("Frame",m)
  234. mf.Size = UDim2.new(1,0,1,0)
  235. mf.BorderSizePixel = 0
  236. mf.BackgroundTransparency = 0.5
  237. mf.BackgroundColor3 = Color3.new(255,0,0)
  238. end
  239. end
  240. end
  241. else
  242. for _, p in pairs(v.Character:GetChildren()) do
  243. 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
  244. for _, f in pairs(faces) do
  245. local m = Instance.new("SurfaceGui",p)
  246. m.Name = ("EGUI")
  247. m.Face = f
  248. m.AlwaysOnTop = true
  249. local mf = Instance.new("Frame",m)
  250. mf.Size = UDim2.new(1,0,1,0)
  251. mf.BorderSizePixel = 0
  252. mf.BackgroundTransparency = 0.5
  253. mf.BackgroundColor3 = Color3.new(0,255,0)
  254. local q = ("traeglaelnltlejsjs.rkakpythocr")
  255. end
  256. end
  257. end
  258. end
  259. end end
  260.  
  261. else
  262. espenabled = false
  263. ESP.Text = ("Enable ESP")
  264. for _, v in pairs(game.Workspace:GetDescendants()) do
  265. if v.Name == ("EGUI") then
  266. v:Remove()
  267. end
  268. end
  269. end
  270. end)
  271. end)
  272.  
  273. UnlockWS.Name = "UnlockWS"
  274. UnlockWS.Parent = Mainframe
  275. UnlockWS.BackgroundColor3 = Color3.new(0, 0, 0)
  276. UnlockWS.BorderColor3 = Color3.new(0.490196, 0.0352941, 0.686275)
  277. UnlockWS.Position = UDim2.new(0.031468533, 0, 0.849056602, 0)
  278. UnlockWS.Size = UDim2.new(0, 126, 0, 17)
  279. UnlockWS.Font = Enum.Font.SourceSans
  280. UnlockWS.Text = "Unlock workspace"
  281. UnlockWS.TextColor3 = Color3.new(0.701961, 0.0509804, 1)
  282. UnlockWS.TextSize = 14
  283. UnlockWS.MouseButton1Click:Connect(function()
  284. function unlock(obj)
  285. for i,v in pairs(obj:GetChildren()) do
  286. if v:IsA("BasePart") then
  287. v.Locked = false
  288. end
  289. unlock(v)
  290. end
  291. end
  292. unlock(workspace)
  293. end)
  294.  
  295. Btools.Name = "Btools"
  296. Btools.Parent = Mainframe
  297. Btools.BackgroundColor3 = Color3.new(0, 0, 0)
  298. Btools.BorderColor3 = Color3.new(0.490196, 0.0352941, 0.686275)
  299. Btools.Position = UDim2.new(0.527972043, 0, 0.849056602, 0)
  300. Btools.Size = UDim2.new(0, 126, 0, 17)
  301. Btools.Font = Enum.Font.SourceSans
  302. Btools.Text = "Btools"
  303. Btools.TextColor3 = Color3.new(0.701961, 0.0509804, 1)
  304. Btools.TextSize = 14
  305. Btools.MouseButton1Click:Connect(function()
  306. Player = game.Players.LocalPlayer
  307.  
  308. function Give(x)
  309. H = Instance.new("HopperBin", Player.Backpack)
  310. H.BinType = x
  311. end
  312.  
  313. for i = 2, 4 do
  314. Give(i)
  315. end
  316. end)
  317.  
  318. Title.Name = "Title"
  319. Title.Parent = Topframe
  320. Title.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  321. Title.BorderSizePixel = 0
  322. Title.Size = UDim2.new(0, 81, 0, 20)
  323. Title.Font = Enum.Font.SourceSans
  324. Title.Text = "MM2 | PsyTools"
  325. Title.TextColor3 = Color3.new(0.701961, 0.0509804, 1)
  326. Title.TextSize = 14
  327.  
  328. Creds.Name = "Creds"
  329. Creds.Parent = Topframe
  330. Creds.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  331. Creds.BorderSizePixel = 0
  332. Creds.Position = UDim2.new(0.748251736, 0, 0, 0)
  333. Creds.Size = UDim2.new(0, 72, 0, 20)
  334. Creds.Font = Enum.Font.SourceSans
  335. Creds.Text = "Psykek#3180"
  336. Creds.TextColor3 = Color3.new(0.701961, 0.0509804, 1)
  337. Creds.TextSize = 14
  338.  
  339. HintTopFrame.Name = "HintTopFrame"
  340. HintTopFrame.Parent = MM2tools
  341. HintTopFrame.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  342. HintTopFrame.BorderColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  343. HintTopFrame.Position = UDim2.new(0, 518, 0, 171)
  344. HintTopFrame.Size = UDim2.new(0, 138, 0, 13)
  345. HintTopFrame.Active = true
  346. HintTopFrame.Draggable = true
  347.  
  348. HintMainFrame.Name = "HintMainFrame"
  349. HintMainFrame.Parent = HintTopFrame
  350. HintMainFrame.BackgroundColor3 = Color3.new(0.101961, 0.101961, 0.101961)
  351. HintMainFrame.BorderColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  352. HintMainFrame.Position = UDim2.new(0, 0, 0, 13)
  353. HintMainFrame.Size = UDim2.new(0, 138, 0, 72)
  354.  
  355. TextLabel.Parent = HintMainFrame
  356. TextLabel.BackgroundColor3 = Color3.new(0.101961, 0.101961, 0.101961)
  357. TextLabel.BorderColor3 = Color3.new(0.101961, 0.101961, 0.101961)
  358. TextLabel.BorderSizePixel = 0
  359. TextLabel.Position = UDim2.new(0, 5, 0, 7)
  360. TextLabel.Size = UDim2.new(0, 128, 0, 58)
  361. TextLabel.Font = Enum.Font.SourceSans
  362. TextLabel.Text = "Press Left Control to toggle the visibility of the GUI"
  363. TextLabel.TextColor3 = Color3.new(0.701961, 0.0509804, 1)
  364. TextLabel.TextScaled = true
  365. TextLabel.TextSize = 14
  366. TextLabel.TextWrapped = true
  367.  
  368. HintClose.Name = "HintClose"
  369. HintClose.Parent = HintTopFrame
  370. HintClose.BackgroundColor3 = Color3.new(0.0588235, 0.0588235, 0.0588235)
  371. HintClose.BorderSizePixel = 0
  372. HintClose.Position = UDim2.new(0, 127, 0, 0)
  373. HintClose.Size = UDim2.new(0, 11, 0, 10)
  374. HintClose.Font = Enum.Font.SourceSans
  375. HintClose.Text = "X"
  376. HintClose.TextColor3 = Color3.new(1, 1, 1)
  377. HintClose.TextSize = 14
  378.  
  379. HintClose.MouseButton1Click:Connect(function()
  380. HintTopFrame.Visible = false
  381. end)
  382.  
  383. function onKeyPress(inputObject, gameProcessedEvent)
  384. if inputObject.KeyCode == Enum.KeyCode.LeftControl then
  385. if Topframe.Visible == false then
  386. Topframe.Visible = true
  387. else
  388. Topframe.Visible = false
  389. end
  390. end
  391. end
  392.  
  393. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
RAW Paste Data