Upscalefanatic3

Murder mystery 2 bubble's gui ( Use god mode in a round )

Jan 26th, 2018
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.72 KB | None | 0 0
  1. --Made by Bubbles!
  2. --Please do not steal this, be courteus. This took a while for me to make, and I'm sharing it for free
  3. --Vouch if you can, don't just take and leave :(
  4.  
  5. -- Objects
  6.  
  7. local MM2 = Instance.new("ScreenGui")
  8. local Main = Instance.new("Frame")
  9. local Piplup = Instance.new("ImageLabel")
  10. local MadeByMe = Instance.new("TextLabel")
  11. local isOn2 = Instance.new("TextLabel")
  12. local mCheck = Instance.new("TextLabel")
  13. local mSum = Instance.new("TextLabel")
  14. local sCheck = Instance.new("TextLabel")
  15. local sSum = Instance.new("TextLabel")
  16. local Hide = Instance.new("TextButton")
  17. local Shift = Instance.new("TextLabel")
  18. local Coin = Instance.new("TextLabel")
  19. local isOn1 = Instance.new("TextLabel")
  20. local KeyBind = Instance.new("TextLabel")
  21. local isOn3 = Instance.new("TextLabel")
  22. local isOn4 = Instance.new("TextLabel")
  23. local God = Instance.new("TextLabel")
  24. local Show = Instance.new("TextButton")
  25.  
  26. -- Properties
  27.  
  28. MM2.Name = "MM2"
  29. MM2.Parent = game.CoreGui
  30. MM2.ResetOnSpawn = false
  31.  
  32. Main.Name = "Main"
  33. Main.Parent = MM2
  34. Main.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  35. Main.BorderColor3 = Color3.new(0, 0.607843, 1)
  36. Main.BorderSizePixel = 5
  37. Main.Draggable = true
  38. Main.Position = UDim2.new(0.574999988, 0, 0.349999994, 0)
  39. Main.Size = UDim2.new(0.300000012, 0, 0.550000012, 0)
  40. Main.Visible = false
  41.  
  42. Piplup.Name = "Piplup"
  43. Piplup.Parent = Main
  44. Piplup.BackgroundColor3 = Color3.new(1, 1, 1)
  45. Piplup.BorderColor3 = Color3.new(0.129412, 0.54902, 1)
  46. Piplup.BorderSizePixel = 5
  47. Piplup.Draggable = true
  48. Piplup.Position = UDim2.new(0.600000024, 0, 0, 0)
  49. Piplup.Size = UDim2.new(0.400000006, 0, 0.200000003, 0)
  50. Piplup.ZIndex = 2
  51. Piplup.Image = "rbxassetid://885684262"
  52.  
  53. MadeByMe.Name = "MadeByMe"
  54. MadeByMe.Parent = Main
  55. MadeByMe.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  56. MadeByMe.BorderColor3 = Color3.new(0, 0.607843, 1)
  57. MadeByMe.BorderSizePixel = 5
  58. MadeByMe.Draggable = true
  59. MadeByMe.Size = UDim2.new(0.600000024, 0, 0.200000003, 0)
  60. MadeByMe.ZIndex = 3
  61. MadeByMe.Font = Enum.Font.SciFi
  62. MadeByMe.FontSize = Enum.FontSize.Size24
  63. MadeByMe.Text = "Made by Bubbles"
  64. MadeByMe.TextColor3 = Color3.new(0, 0.607843, 1)
  65. MadeByMe.TextScaled = true
  66. MadeByMe.TextSize = 20
  67. MadeByMe.TextStrokeColor3 = Color3.new(0.129412, 0.54902, 1)
  68. MadeByMe.TextWrapped = true
  69.  
  70. isOn2.Name = "isOn2"
  71. isOn2.Parent = Main
  72. isOn2.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  73. isOn2.BorderColor3 = Color3.new(0, 0.607843, 1)
  74. isOn2.BorderSizePixel = 5
  75. isOn2.Position = UDim2.new(0.714999974, 0, 0.600000024, 0)
  76. isOn2.Size = UDim2.new(0.280000001, 0, 0.100000001, 0)
  77. isOn2.ZIndex = 5
  78. isOn2.Font = Enum.Font.SciFi
  79. isOn2.FontSize = Enum.FontSize.Size18
  80. isOn2.Text = "Inactive"
  81. isOn2.TextColor3 = Color3.new(1, 0, 1)
  82. isOn2.TextSize = 18
  83. isOn2.TextStrokeColor3 = Color3.new(1, 0, 1)
  84. isOn2.TextStrokeTransparency = 0.69999998807907
  85. isOn2.TextWrapped = true
  86.  
  87. mCheck.Name = "mCheck"
  88. mCheck.Parent = Main
  89. mCheck.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  90. mCheck.BorderColor3 = Color3.new(0, 0.607843, 1)
  91. mCheck.BorderSizePixel = 5
  92. mCheck.Position = UDim2.new(0, 0, 0.36500001, 0)
  93. mCheck.Size = UDim2.new(0.5, 0, 0.115000002, 0)
  94. mCheck.ZIndex = 4
  95. mCheck.Font = Enum.Font.SciFi
  96. mCheck.FontSize = Enum.FontSize.Size24
  97. mCheck.Text = "Murderer [F]"
  98. mCheck.TextColor3 = Color3.new(1, 0, 0)
  99. mCheck.TextSize = 20
  100. mCheck.TextWrapped = true
  101.  
  102. mSum.Name = "mSum"
  103. mSum.Parent = Main
  104. mSum.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  105. mSum.BorderColor3 = Color3.new(0, 0.607843, 1)
  106. mSum.BorderSizePixel = 5
  107. mSum.Position = UDim2.new(0, 0, 0.485000014, 0)
  108. mSum.Size = UDim2.new(0.5, 0, 0.100000001, 0)
  109. mSum.ZIndex = 4
  110. mSum.Font = Enum.Font.SciFi
  111. mSum.FontSize = Enum.FontSize.Size24
  112. mSum.Text = "Name"
  113. mSum.TextColor3 = Color3.new(1, 0.607843, 0)
  114. mSum.TextSize = 20
  115. mSum.TextWrapped = true
  116.  
  117. sCheck.Name = "sCheck"
  118. sCheck.Parent = Main
  119. sCheck.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  120. sCheck.BorderColor3 = Color3.new(0, 0.607843, 1)
  121. sCheck.BorderSizePixel = 5
  122. sCheck.Position = UDim2.new(0.5, 0, 0.36500001, 0)
  123. sCheck.Size = UDim2.new(0.5, 0, 0.115000002, 0)
  124. sCheck.ZIndex = 3
  125. sCheck.Font = Enum.Font.SciFi
  126. sCheck.FontSize = Enum.FontSize.Size24
  127. sCheck.Text = "Sheriff [G]"
  128. sCheck.TextColor3 = Color3.new(0, 1, 1)
  129. sCheck.TextSize = 20
  130. sCheck.TextWrapped = true
  131.  
  132. sSum.Name = "sSum"
  133. sSum.Parent = Main
  134. sSum.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  135. sSum.BorderColor3 = Color3.new(0, 0.607843, 1)
  136. sSum.BorderSizePixel = 5
  137. sSum.Position = UDim2.new(0.5, 0, 0.485000014, 0)
  138. sSum.Size = UDim2.new(0.5, 0, 0.100000001, 0)
  139. sSum.ZIndex = 3
  140. sSum.Font = Enum.Font.SciFi
  141. sSum.FontSize = Enum.FontSize.Size24
  142. sSum.Text = "Name"
  143. sSum.TextColor3 = Color3.new(0, 1, 0.607843)
  144. sSum.TextSize = 20
  145. sSum.TextWrapped = true
  146.  
  147. Hide.Name = "Hide"
  148. Hide.Parent = Main
  149. Hide.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  150. Hide.BorderColor3 = Color3.new(0, 0.607843, 1)
  151. Hide.BorderSizePixel = 5
  152. Hide.Position = UDim2.new(0, 0, 0.925000012, 0)
  153. Hide.Size = UDim2.new(1, 0, 0.075000003, 0)
  154. Hide.ZIndex = 3
  155. Hide.Font = Enum.Font.SourceSans
  156. Hide.FontSize = Enum.FontSize.Size24
  157. Hide.Text = "Hide [X]"
  158. Hide.TextColor3 = Color3.new(0.470588, 0.333333, 1)
  159. Hide.TextScaled = true
  160. Hide.TextSize = 20
  161. Hide.TextWrapped = true
  162.  
  163. Shift.Name = "Shift"
  164. Shift.Parent = Main
  165. Shift.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  166. Shift.BorderColor3 = Color3.new(0, 0.607843, 1)
  167. Shift.BorderSizePixel = 5
  168. Shift.Position = UDim2.new(0, 0, 0.600000024, 0)
  169. Shift.Size = UDim2.new(0.699999988, 0, 0.100000001, 0)
  170. Shift.ZIndex = 4
  171. Shift.Font = Enum.Font.SciFi
  172. Shift.FontSize = Enum.FontSize.Size24
  173. Shift.Text = "Run [Shift]"
  174. Shift.TextColor3 = Color3.new(1, 1, 0)
  175. Shift.TextSize = 20
  176. Shift.TextWrapped = true
  177.  
  178. Coin.Name = "Coin"
  179. Coin.Parent = Main
  180. Coin.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  181. Coin.BorderColor3 = Color3.new(0, 0.607843, 1)
  182. Coin.BorderSizePixel = 5
  183. Coin.Position = UDim2.new(0, 0, 0.215000004, 0)
  184. Coin.Size = UDim2.new(0.699999988, 0, 0.135000005, 0)
  185. Coin.ZIndex = 4
  186. Coin.Font = Enum.Font.SciFi
  187. Coin.FontSize = Enum.FontSize.Size24
  188. Coin.Text = "Coin Grabber [C]"
  189. Coin.TextColor3 = Color3.new(0, 0.333333, 1)
  190. Coin.TextSize = 20
  191. Coin.TextWrapped = true
  192.  
  193. isOn1.Name = "isOn1"
  194. isOn1.Parent = Main
  195. isOn1.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  196. isOn1.BorderColor3 = Color3.new(0, 0.607843, 1)
  197. isOn1.BorderSizePixel = 5
  198. isOn1.Position = UDim2.new(0.720000029, 0, 0.215000004, 0)
  199. isOn1.Size = UDim2.new(0.280000001, 0, 0.135000005, 0)
  200. isOn1.ZIndex = 5
  201. isOn1.Font = Enum.Font.SciFi
  202. isOn1.FontSize = Enum.FontSize.Size18
  203. isOn1.Text = "Inactive"
  204. isOn1.TextColor3 = Color3.new(1, 0, 1)
  205. isOn1.TextSize = 18
  206. isOn1.TextStrokeColor3 = Color3.new(1, 0, 1)
  207. isOn1.TextStrokeTransparency = 0.69999998807907
  208. isOn1.TextWrapped = true
  209.  
  210. KeyBind.Name = "KeyBind"
  211. KeyBind.Parent = Main
  212. KeyBind.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  213. KeyBind.BorderColor3 = Color3.new(0, 0.607843, 1)
  214. KeyBind.BorderSizePixel = 5
  215. KeyBind.Position = UDim2.new(0, 0, 0.814999998, 0)
  216. KeyBind.Size = UDim2.new(0.699999988, 0, 0.0970000029, 0)
  217. KeyBind.ZIndex = 3
  218. KeyBind.Font = Enum.Font.SciFi
  219. KeyBind.FontSize = Enum.FontSize.Size18
  220. KeyBind.Text = "Key Binds [CTRL]"
  221. KeyBind.TextColor3 = Color3.new(1, 1, 1)
  222. KeyBind.TextSize = 15
  223. KeyBind.TextWrapped = true
  224.  
  225. isOn3.Name = "isOn3"
  226. isOn3.Parent = Main
  227. isOn3.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  228. isOn3.BorderColor3 = Color3.new(0, 0.607843, 1)
  229. isOn3.BorderSizePixel = 5
  230. isOn3.Position = UDim2.new(0.714999974, 0, 0.704999983, 0)
  231. isOn3.Size = UDim2.new(0.280000001, 0, 0.100000001, 0)
  232. isOn3.ZIndex = 4
  233. isOn3.Font = Enum.Font.SciFi
  234. isOn3.FontSize = Enum.FontSize.Size18
  235. isOn3.Text = "Inactive"
  236. isOn3.TextColor3 = Color3.new(1, 0, 1)
  237. isOn3.TextSize = 18
  238. isOn3.TextStrokeColor3 = Color3.new(1, 0, 1)
  239. isOn3.TextStrokeTransparency = 0.69999998807907
  240. isOn3.TextWrapped = true
  241.  
  242. isOn4.Name = "isOn4"
  243. isOn4.Parent = Main
  244. isOn4.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  245. isOn4.BorderColor3 = Color3.new(0, 0.607843, 1)
  246. isOn4.BorderSizePixel = 5
  247. isOn4.Position = UDim2.new(0.714999974, 0, 0.814999998, 0)
  248. isOn4.Size = UDim2.new(0.280000001, 0, 0.0970000029, 0)
  249. isOn4.ZIndex = 5
  250. isOn4.Font = Enum.Font.SciFi
  251. isOn4.FontSize = Enum.FontSize.Size14
  252. isOn4.Text = "Active"
  253. isOn4.TextColor3 = Color3.new(0, 1, 0)
  254. isOn4.TextSize = 14
  255. isOn4.TextStrokeColor3 = Color3.new(0, 1, 0)
  256. isOn4.TextStrokeTransparency = 0.69999998807907
  257. isOn4.TextWrapped = true
  258.  
  259. God.Name = "God"
  260. God.Parent = Main
  261. God.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  262. God.BorderColor3 = Color3.new(0, 0.607843, 1)
  263. God.BorderSizePixel = 5
  264. God.Position = UDim2.new(0, 0, 0.704999983, 0)
  265. God.Size = UDim2.new(0.699999988, 0, 0.100000001, 0)
  266. God.ZIndex = 3
  267. God.Font = Enum.Font.SciFi
  268. God.FontSize = Enum.FontSize.Size24
  269. God.Text = "God Mode [R]"
  270. God.TextColor3 = Color3.new(0, 1, 0.0313726)
  271. God.TextSize = 20
  272. God.TextWrapped = true
  273.  
  274. Show.Name = "Show"
  275. Show.Parent = MM2
  276. Show.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  277. Show.BorderColor3 = Color3.new(0, 0.607843, 1)
  278. Show.BorderSizePixel = 5
  279. Show.Position = UDim2.new(0.574999988, 0, 0.85799998, 0)
  280. Show.Size = UDim2.new(0.300000012, 0, 0.0399999991, 0)
  281. Show.Font = Enum.Font.SourceSans
  282. Show.FontSize = Enum.FontSize.Size24
  283. Show.Text = "Show [X]"
  284. Show.TextColor3 = Color3.new(0, 0.607843, 1)
  285. Show.TextScaled = true
  286. Show.TextSize = 20
  287. Show.TextWrapped = true
  288.  
  289.  
  290. --Variables
  291. local uis = game:GetService("UserInputService")
  292. local player = game.Players.LocalPlayer
  293. local mouse = game.Players.LocalPlayer:GetMouse()
  294. local insidePlayer = game.Players:GetChildren()
  295. local mouse = game.Players.LocalPlayer:GetMouse()
  296. local coinActive = false
  297. local runActive = false
  298. local godActive = false
  299. local keyOff = false
  300. --Hide / Show keybind [X]
  301.  
  302. Show.MouseButton1Click:connect(function()
  303. if Main.Visible == false then
  304. Main.Visible = true
  305. Show.Visible = false
  306. end
  307.  
  308. end)
  309.  
  310. Hide.MouseButton1Click:connect(function()
  311. if Main.Visible == true then
  312. Main.Visible = false
  313. Show.Visible = true
  314. end
  315.  
  316. end)
  317.  
  318. uis.InputBegan:connect(function(input, gpe)
  319. if input.KeyCode == Enum.KeyCode.X then
  320. if Main.Visible == false then
  321. Main.Visible = true
  322. Show.Visible = false
  323. else
  324. Main.Visible = false
  325. Show.Visible = true
  326. end
  327. end
  328. end)
  329. ------------------------Turn off keybinds [CTRL]
  330.  
  331. uis.InputBegan:connect(function(input, gpe)
  332. if input.KeyCode == Enum.KeyCode.LeftControl then
  333. if keyOff == false then
  334. keyOff = true
  335. isOn4.TextColor3 = Color3.new(255, 0, 255)
  336. isOn4.TextStrokeColor3 = isOn4.TextColor3
  337. isOn4.Text = "Inactive"
  338. else
  339. keyOff = false
  340. isOn4.TextColor3 = Color3.new(0, 255, 0)
  341. isOn4.TextStrokeColor3 = isOn4.TextColor3
  342. isOn4.Text = "Active"
  343. end
  344. end
  345. end)
  346.  
  347. ------------------------Find Murderer / Sheriff Function [F and G]
  348.  
  349. local function getMurderer()
  350. local allPlayers = game.Players:GetChildren()
  351. for i,v in pairs(allPlayers) do
  352. print'Step 1: Murderer'
  353. if v:FindFirstChild("Backpack") or v:FindFirstChild("Character")then
  354. print'Step 2: Murderer'
  355. if v.Backpack:FindFirstChild("Knife") or v.Character:FindFirstChild("Knife") then
  356. print'Knife has been found'
  357. local name = v.Name
  358. print("The Murderer is...", name)
  359. mSum.Text = name
  360. mSum.TextColor = v.Character.Torso.BrickColor
  361. end
  362. end
  363. end
  364. end
  365.  
  366. local function getSheriff()
  367. local allPlayers = game.Players:GetChildren()
  368. for i,v in pairs(allPlayers) do
  369. print'Step 1: Sheriff'
  370. if v:FindFirstChild("Backpack") or v:FindFirstChild("Character")then
  371. print'Step 2: Sheriff'
  372. if v.Backpack:FindFirstChild("Gun") or v.Character:FindFirstChild("Gun") then
  373. print'Gun has been found'
  374. local name = v.Name
  375. print("The Murderer is...", name)
  376. sSum.Text = name
  377. sSum.TextColor = v.Character.Torso.BrickColor
  378. end
  379. end
  380. end
  381. end
  382.  
  383. uis.InputBegan:connect(function(input,gpe)
  384. if input.KeyCode == Enum.KeyCode.F and keyOff == false then
  385. print'F has been counted'
  386. getMurderer()
  387. end
  388. end)
  389.  
  390.  
  391. uis.InputBegan:connect(function(input,gpe)
  392. if input.KeyCode == Enum.KeyCode.G and keyOff == false then
  393. print'G has been counted'
  394. getSheriff()
  395. end
  396. end)
  397.  
  398. ------------------------Coin Grabber Function [C]
  399.  
  400.  
  401. mouse.KeyDown:connect(function(key)
  402. if key == "c" and coinActive == false and keyOff == false then
  403. coinActive = true
  404. isOn1.TextColor3 = Color3.new(0, 255, 0)
  405. isOn1.TextStrokeColor3 = isOn1.TextColor3
  406. isOn1.Text = "Active"
  407.  
  408. local children = game.Workspace:GetChildren()
  409. for _, child in pairs(children) do
  410. for _, child in pairs(child:GetChildren()) do
  411. table.insert(children, child)
  412. end
  413.  
  414. if child:IsA("BasePart") and child.Name == "Coin" then
  415. child.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  416. end
  417. end
  418. end
  419. end)
  420.  
  421.  
  422. mouse.KeyUp:connect(function(key)
  423. if key == "c" and coinActive == true and keyOff == false then
  424. isOn1.TextColor3 = Color3.new(255, 0, 255)
  425. isOn1.TextStrokeColor3 = isOn1.TextColor3
  426. isOn1.Text = "Inactive"
  427. coinActive = false
  428. end
  429.  
  430. end)
  431.  
  432. ----------------------Shift to run script [Shift]
  433.  
  434. mouse.KeyDown:connect(function(KeyDown)
  435. if KeyDown == "0" and runActive == false and keyOff == false then
  436. runActive = true
  437. player.Character.Humanoid.WalkSpeed = 32
  438.  
  439. isOn2.TextColor3 = Color3.new(0, 255, 0)
  440. isOn2.TextStrokeColor3 = isOn2.TextColor3
  441. isOn2.Text = "Active"
  442. end
  443. end)
  444.  
  445. mouse.KeyUp:connect(function(KeyUp)
  446. if KeyUp == "0" and runActive == true and keyOff == false then
  447. runActive = false
  448. player.Character.Humanoid.WalkSpeed = 16
  449.  
  450. isOn2.TextColor3 = Color3.new(255, 0, 255)
  451. isOn2.TextStrokeColor3 = isOn2.TextColor3
  452. isOn2.Text = "Inactive"
  453. end
  454. end)
  455.  
  456. ----------------------God mode function [R]
  457. uis.InputBegan:connect(function(input, gpe)
  458. if input.KeyCode == Enum.KeyCode.R and player.Character and godActive == false and keyOff == false then
  459. if player.Character:FindFirstChild("Humanoid") then
  460. godActive = true
  461. player.Character.Humanoid.Name = "1"
  462. end
  463. isOn3.TextColor3 = Color3.new(0, 255, 0)
  464. isOn3.TextStrokeColor3 = isOn3.TextColor3
  465. isOn3.Text = "Active"
  466.  
  467. local l = player.Character["1"]:Clone()
  468. l.Parent = player.Character
  469. l.Name = "Humanoid"; wait(0.1)
  470. player.Character["1"]:Destroy()
  471. workspace.CurrentCamera.CameraSubject = player.Character.Humanoid
  472. player.Character.Animate.Disabled = true; wait(0.1)
  473. player.Character.Animate.Disabled = false
  474.  
  475. local Debounce = Instance.new("BoolValue")
  476. Debounce.Name = "Debounce"
  477. Debounce.Parent = player.Character
  478. local findDebounce = player.Character:FindFirstChild('Debounce')
  479.  
  480. repeat
  481. player.Character:FindFirstChild('Debounce')
  482. wait(5)
  483. until not player.Character:FindFirstChild('Debounce')
  484.  
  485. isOn3.TextColor3 = Color3.new(255, 0, 255)
  486. isOn3.TextStrokeColor3 = isOn3.TextColor3
  487. isOn3.Text = "Inactive"
  488. godActive = false
  489. end
  490. end)
  491.  
  492. --[Made by BUBBLES]--
Add Comment
Please, Sign In to add comment