Advertisement
Guest User

MasterPlayz Murder Mystery x Gui

a guest
Dec 9th, 2017
12,505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.26 KB | None | 0 0
  1. --Hello thanks for using my GUI! This is made by : MasterPlayz (YT)#9083
  2. --On discord i made it for all Exploiters there want get many of money in it and Teleports!
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9. -- Objects
  10.  
  11. local ScreenGui = Instance.new("ScreenGui")
  12. local Frame = Instance.new("Frame")
  13. local aimbot = Instance.new("TextButton")
  14. local coin = Instance.new("TextButton")
  15. local hunter = Instance.new("TextButton")
  16. local tp = Instance.new("TextButton")
  17. local noclip = Instance.new("TextButton")
  18. local TextLabel = Instance.new("TextLabel")
  19.  
  20. -- Properties
  21.  
  22. ScreenGui.Parent = game.CoreGui
  23.  
  24. Frame.Parent = ScreenGui
  25. Frame.Active = true
  26. Frame.BackgroundColor3 = Color3.new(0.105882, 0.164706, 0.207843)
  27. Frame.Draggable = true
  28. Frame.Position = UDim2.new(0, 35, 0, 546)
  29. Frame.Size = UDim2.new(0, 538, 0, 272)
  30. Frame.Style = Enum.FrameStyle.DropShadow
  31.  
  32. aimbot.Name = "aimbot"
  33. aimbot.Parent = Frame
  34. aimbot.BackgroundColor3 = Color3.new(1, 1, 1)
  35. aimbot.Size = UDim2.new(0, 520, 0, 50)
  36. aimbot.Font = Enum.Font.SourceSans
  37. aimbot.FontSize = Enum.FontSize.Size14
  38. aimbot.Text = "AimBot Ctrl :)"
  39. aimbot.TextScaled = true
  40. aimbot.TextSize = 14
  41. aimbot.TextWrapped = true
  42. aimbot.MouseButton1Down:connect(function()
  43. PLAYER = game.Players.LocalPlayer
  44. MOUSE = PLAYER:GetMouse()
  45. CC = game.Workspace.CurrentCamera
  46.  
  47. ENABLED = false
  48. ESP_ENABLED = false
  49.  
  50. _G.FREE_FOR_ALL = true
  51.  
  52. _G.BIND = 50
  53. _G.ESP_BIND = 52
  54. _G.CHANGE_AIM = 'q'
  55.  
  56. _G.AIM_AT = 'Head'
  57.  
  58. wait(1)
  59.  
  60. function GetNearestPlayerToMouse()
  61. local PLAYERS = {}
  62. local PLAYER_HOLD = {}
  63. local DISTANCES = {}
  64. for i, v in pairs(game.Players:GetPlayers()) do
  65. if v ~= PLAYER then
  66. table.insert(PLAYERS, v)
  67. end
  68. end
  69. for i, v in pairs(PLAYERS) do
  70. if _G.FREE_FOR_ALL == false then
  71. if v and (v.Character) ~= nil and v.TeamColor ~= PLAYER.TeamColor then
  72. local AIM = v.Character:FindFirstChild(_G.AIM_AT)
  73. if AIM ~= nil then
  74. local DISTANCE = (AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
  75. local RAY = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p, (MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
  76. local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  77. local DIFF = math.floor((POS - AIM.Position).magnitude)
  78. PLAYER_HOLD[v.Name .. i] = {}
  79. PLAYER_HOLD[v.Name .. i].dist = DISTANCE
  80. PLAYER_HOLD[v.Name .. i].plr = v
  81. PLAYER_HOLD[v.Name .. i].diff = DIFF
  82. table.insert(DISTANCES, DIFF)
  83. end
  84. end
  85. elseif _G.FREE_FOR_ALL == true then
  86. local AIM = v.Character:FindFirstChild(_G.AIM_AT)
  87. if AIM ~= nil then
  88. local DISTANCE = (AIM.Position - game.Workspace.CurrentCamera.CoordinateFrame.p).magnitude
  89. local RAY = Ray.new(game.Workspace.CurrentCamera.CoordinateFrame.p, (MOUSE.Hit.p - CC.CoordinateFrame.p).unit * DISTANCE)
  90. local HIT,POS = game.Workspace:FindPartOnRay(RAY, game.Workspace)
  91. local DIFF = math.floor((POS - AIM.Position).magnitude)
  92. PLAYER_HOLD[v.Name .. i] = {}
  93. PLAYER_HOLD[v.Name .. i].dist = DISTANCE
  94. PLAYER_HOLD[v.Name .. i].plr = v
  95. PLAYER_HOLD[v.Name .. i].diff = DIFF
  96. table.insert(DISTANCES, DIFF)
  97. end
  98. end
  99. end
  100.  
  101. if unpack(DISTANCES) == nil then
  102. return false
  103. end
  104.  
  105. local L_DISTANCE = math.floor(math.min(unpack(DISTANCES)))
  106. if L_DISTANCE > 20 then
  107. return false
  108. end
  109.  
  110. for i, v in pairs(PLAYER_HOLD) do
  111. if v.diff == L_DISTANCE then
  112. return v.plr
  113. end
  114. end
  115. return false
  116. end
  117.  
  118. GUI_MAIN = Instance.new('ScreenGui', game.CoreGui)
  119. GUI_TARGET = Instance.new('TextLabel', GUI_MAIN)
  120. GUI_AIM_AT = Instance.new('TextLabel', GUI_MAIN)
  121.  
  122. GUI_MAIN.Name = 'AIMBOT'
  123.  
  124. GUI_TARGET.Size = UDim2.new(0,200,0,30)
  125. GUI_TARGET.BackgroundTransparency = 0.5
  126. GUI_TARGET.BackgroundColor = BrickColor.new('Fossil')
  127. GUI_TARGET.BorderSizePixel = 0
  128. GUI_TARGET.Position = UDim2.new(0.5,-100,0,0)
  129. GUI_TARGET.Text = 'AIMBOT : OFF'
  130. GUI_TARGET.TextColor3 = Color3.new(1,1,1)
  131. GUI_TARGET.TextStrokeTransparency = 1
  132. GUI_TARGET.TextWrapped = true
  133. GUI_TARGET.FontSize = 'Size24'
  134. GUI_TARGET.Font = 'SourceSansBold'
  135.  
  136. GUI_AIM_AT.Size = UDim2.new(0,200,0,20)
  137. GUI_AIM_AT.BackgroundTransparency = 0.5
  138. GUI_AIM_AT.BackgroundColor = BrickColor.new('Fossil')
  139. GUI_AIM_AT.BorderSizePixel = 0
  140. GUI_AIM_AT.Position = UDim2.new(0.5,-100,0,30)
  141. GUI_AIM_AT.Text = 'AIMING : HEAD'
  142. GUI_AIM_AT.TextColor3 = Color3.new(1,1,1)
  143. GUI_AIM_AT.TextStrokeTransparency = 1
  144. GUI_AIM_AT.TextWrapped = true
  145. GUI_AIM_AT.FontSize = 'Size18'
  146. GUI_AIM_AT.Font = 'SourceSansBold'
  147.  
  148. local TRACK = false
  149.  
  150. function CREATE(BASE, TEAM)
  151. local ESP_MAIN = Instance.new('BillboardGui', PLAYER.PlayerGui)
  152. local ESP_DOT = Instance.new('Frame', ESP_MAIN)
  153. local ESP_NAME = Instance.new('TextLabel', ESP_MAIN)
  154.  
  155. ESP_MAIN.Name = 'ESP'
  156. ESP_MAIN.Adornee = BASE
  157. ESP_MAIN.AlwaysOnTop = true
  158. ESP_MAIN.ExtentsOffset = Vector3.new(0, 1, 0)
  159. ESP_MAIN.Size = UDim2.new(0, 5, 0, 5)
  160.  
  161. ESP_DOT.Name = 'DOT'
  162. ESP_DOT.BackgroundColor = BrickColor.new('Bright red')
  163. ESP_DOT.BackgroundTransparency = 0.3
  164. ESP_DOT.BorderSizePixel = 0
  165. ESP_DOT.Position = UDim2.new(-0.5, 0, -0.5, 0)
  166. ESP_DOT.Size = UDim2.new(2, 0, 2, 0)
  167. ESP_DOT.Visible = true
  168. ESP_DOT.ZIndex = 10
  169.  
  170. ESP_NAME.Name = 'NAME'
  171. ESP_NAME.BackgroundColor3 = Color3.new(255, 255, 255)
  172. ESP_NAME.BackgroundTransparency = 1
  173. ESP_NAME.BorderSizePixel = 0
  174. ESP_NAME.Position = UDim2.new(0, 0, 0, -40)
  175. ESP_NAME.Size = UDim2.new(1, 0, 10, 0)
  176. ESP_NAME.Visible = true
  177. ESP_NAME.ZIndex = 10
  178. ESP_NAME.Font = 'ArialBold'
  179. ESP_NAME.FontSize = 'Size14'
  180. ESP_NAME.Text = BASE.Parent.Name:upper()
  181. ESP_NAME.TextColor = BrickColor.new('Bright red')
  182. end
  183.  
  184. function CLEAR()
  185. for _,v in pairs(PLAYER.PlayerGui:children()) do
  186. if v.Name == 'ESP' and v:IsA('BillboardGui') then
  187. v:Destroy()
  188. end
  189. end
  190. end
  191.  
  192. function FIND()
  193. CLEAR()
  194. TRACK = true
  195. spawn(function()
  196. while wait() do
  197. if TRACK then
  198. CLEAR()
  199. for i,v in pairs(game.Players:GetChildren()) do
  200. if v.Character and v.Character:FindFirstChild('Head') then
  201. if _G.FREE_FOR_ALL == false then
  202. if v.TeamColor ~= PLAYER.TeamColor then
  203. if v.Character:FindFirstChild('Head') then
  204. CREATE(v.Character.Head, true)
  205. end
  206. end
  207. else
  208. if v.Character:FindFirstChild('Head') then
  209. CREATE(v.Character.Head, true)
  210. end
  211. end
  212. end
  213. end
  214. end
  215. end
  216. wait(1)
  217. end)
  218. end
  219.  
  220. MOUSE.KeyDown:connect(function(KEY)
  221. KEY = KEY:lower():byte()
  222. if KEY == _G.BIND then
  223. ENABLED = true
  224. end
  225. end)
  226.  
  227. MOUSE.KeyUp:connect(function(KEY)
  228. KEY = KEY:lower():byte()
  229. if KEY == _G.BIND then
  230. ENABLED = false
  231. end
  232. end)
  233.  
  234. MOUSE.KeyDown:connect(function(KEY)
  235. KEY = KEY:lower():byte()
  236. if KEY == _G.ESP_BIND then
  237. if ESP_ENABLED == false then
  238. FIND()
  239. ESP_ENABLED = true
  240. print('ESP : ON')
  241. elseif ESP_ENABLED == true then
  242. wait()
  243. CLEAR()
  244. TRACK = false
  245. ESP_ENABLED = false
  246. print('ESP : OFF')
  247. end
  248. end
  249. end)
  250.  
  251. MOUSE.KeyDown:connect(function(KEY)
  252. if KEY == _G.CHANGE_AIM then
  253. if _G.AIM_AT == 'Head' then
  254. _G.AIM_AT = 'Torso'
  255. GUI_AIM_AT.Text = 'AIMING : TORSO'
  256. elseif _G.AIM_AT == 'Torso' then
  257. _G.AIM_AT = 'Head'
  258. GUI_AIM_AT.Text = 'AIMING : HEAD'
  259. end
  260. end
  261. end)
  262.  
  263. game:GetService('RunService').RenderStepped:connect(function()
  264. if ENABLED then
  265. local TARGET = GetNearestPlayerToMouse()
  266. if (TARGET ~= false) then
  267. local AIM = TARGET.Character:FindFirstChild(_G.AIM_AT)
  268. if AIM then
  269. CC.CoordinateFrame = CFrame.new(CC.CoordinateFrame.p, AIM.CFrame.p)
  270. end
  271. GUI_TARGET.Text = 'AIMBOT : '.. TARGET.Name:sub(1, 5)
  272. else
  273. GUI_TARGET.Text = 'AIMBOT : OFF'
  274. end
  275. end
  276. end)
  277.  
  278. repeat
  279. wait()
  280. if ESP_ENABLED == true then
  281. FIND()
  282. end
  283. until ESP_ENABLED == false
  284.  
  285.  
  286. wait()
  287.  
  288. _G.FREE_FOR_ALL = true
  289.  
  290. _G.BIND = 50 -- LEFT CTRL
  291. _G.ESP_BIND = 52 -- LEFT ALT
  292. end)
  293.  
  294. coin.Name = "coin"
  295. coin.Parent = Frame
  296. coin.BackgroundColor3 = Color3.new(1, 1, 1)
  297. coin.Position = UDim2.new(0, 0, 0, 52)
  298. coin.Size = UDim2.new(0, 520, 0, 50)
  299. coin.Font = Enum.Font.SourceSans
  300. coin.FontSize = Enum.FontSize.Size14
  301. coin.Text = "CoinGrabber"
  302. coin.TextScaled = true
  303. coin.TextSize = 14
  304. coin.TextWrapped = true
  305. coin.MouseButton1Down:connect(function()
  306. --Improved by Lelouch vi Britannia#4132(BlackHatHelper)
  307. local Workspace = game:GetService("Workspace")
  308. local Players = game:GetService("Players")
  309. local RunService = game:GetService("RunService")
  310.  
  311. RunService.RenderStepped:connect(function()
  312. for i,v in pairs(Workspace:GetChildren()) do
  313. if v.Name == "Coin" then
  314. v.CFrame = Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  315. end
  316. end
  317. end)
  318.  
  319. end)
  320.  
  321. hunter.Name = "hunter"
  322. hunter.Parent = Frame
  323. hunter.BackgroundColor3 = Color3.new(1, 1, 1)
  324. hunter.Position = UDim2.new(0, 0, 0, 108)
  325. hunter.Size = UDim2.new(0, 520, 0, 50)
  326. hunter.Font = Enum.Font.SourceSans
  327. hunter.FontSize = Enum.FontSize.Size14
  328. hunter.Text = "teleport in HUNTER"
  329. hunter.TextScaled = true
  330. hunter.TextSize = 14
  331. hunter.TextWrapped = true
  332. hunter.MouseButton1Down:connect(function()
  333. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-170.559097, 207.462799, -87.217))
  334. end)
  335.  
  336. tp.Name = "tp"
  337. tp.Parent = Frame
  338. tp.BackgroundColor3 = Color3.new(1, 1, 1)
  339. tp.Position = UDim2.new(0, 0, 0, 157)
  340. tp.Size = UDim2.new(0, 520, 0, 49)
  341. tp.Font = Enum.Font.SourceSans
  342. tp.FontSize = Enum.FontSize.Size14
  343. tp.Text = "e to Teleport"
  344. tp.TextScaled = true
  345. tp.TextSize = 14
  346. tp.TextWrapped = true
  347. tp.MouseButton1Down:connect(function()
  348. plr = game.Players.LocalPlayer
  349.  
  350. hum = plr.Character.HumanoidRootPart
  351.  
  352. mouse = plr:GetMouse()
  353.  
  354.  
  355.  
  356. mouse.KeyDown:connect(function(key)
  357.  
  358. if key == "e" then
  359.  
  360. if mouse.Target then
  361.  
  362. hum.CFrame = CFrame.new(mouse.Hit.x, mouse.Hit.y + 5, mouse.Hit.z)
  363.  
  364. end
  365.  
  366. end
  367. end)
  368. end)
  369.  
  370. noclip.Name = "noclip"
  371. noclip.Parent = Frame
  372. noclip.BackgroundColor3 = Color3.new(1, 1, 1)
  373. noclip.Position = UDim2.new(0, 0, 0, 207)
  374. noclip.Size = UDim2.new(0, 520, 0, 49)
  375. noclip.Font = Enum.Font.SourceSans
  376. noclip.FontSize = Enum.FontSize.Size14
  377. noclip.Text = "noclip"
  378. noclip.TextScaled = true
  379. noclip.TextSize = 14
  380. noclip.TextWrapped = true
  381. noclip.MouseButton1Down:connect(function()
  382. 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
  383. end)
  384.  
  385. TextLabel.Parent = Frame
  386. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  387. TextLabel.Position = UDim2.new(0, 0, 0, -72)
  388. TextLabel.Size = UDim2.new(0, 522, 0, 50)
  389. TextLabel.Font = Enum.Font.SourceSans
  390. TextLabel.FontSize = Enum.FontSize.Size14
  391. TextLabel.Text = "Made By MasterPlayzDK!"
  392. TextLabel.TextScaled = true
  393. TextLabel.TextSize = 14
  394. TextLabel.TextWrapped = true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement