murder mystery 2 script


SUBMITTED BY: skrix

DATE: Dec. 29, 2021, 4:58 p.m.

FORMAT: Text only

SIZE: 38.4 kB

HITS: 421

  1. if game.PlaceId == 142823291 then --Proofing just because ;)
  2. --Note: Don't reset with godmode on or you will be stuck on a black screen for a reasonable amount of time
  3. --Change to false if you dont like printing to console
  4. local printvar = true
  5. --Change to true if you want to see names instead of murderer, sheriff, and innocents with esp
  6. local espnames = true
  7. --Change keybinds to your liking
  8. local coinkey = "c" --Coin grabber keybind
  9. local MSkey = "m" --Murderer/Sheriff esp keybind
  10. local playerskey = "q" --All players esp keybind
  11. local espoffkey = "b" --Turn esp off keybind
  12. local flykey = "f" --Fly keybind
  13. local noclipkey = "r" --Noclip keybind
  14. local godmodekey = "g" --Godmode keybind
  15. local xrayonkey = "x" --Xray on keybind
  16. local xrayoffkey = "z" --Xray off keybind
  17. local bringgunkey = "t" --Teleport to gun keybind
  18. local hideshowguikey = "p" --Show/Hide gui keybind
  19. --End of easy customization options
  20. --Gui Buttons and Status--
  21. local MM2 = Instance.new("ScreenGui")
  22. local Main = Instance.new("Frame")
  23. local Title = Instance.new("TextLabel")
  24. local Coin = Instance.new("TextButton")
  25. local MSEsp = Instance.new("TextButton")
  26. local MSESPActive = Instance.new("TextLabel")
  27. local PlayersEsp = Instance.new("TextButton")
  28. local PlayersEspActive = Instance.new("TextLabel")
  29. local EspOff = Instance.new("TextButton")
  30. local EspOffActive = Instance.new("TextLabel")
  31. local Run = Instance.new("TextButton")
  32. local RunActiveGui = Instance.new("TextLabel")
  33. local Fly = Instance.new("TextButton")
  34. local FlyActive = Instance.new("TextLabel")
  35. local Noclip = Instance.new("TextButton")
  36. local NoclipActive = Instance.new("TextLabel")
  37. local GodMode = Instance.new("TextButton")
  38. local GodModeActive = Instance.new("TextLabel")
  39. local GuiXrayOn = Instance.new("TextButton")
  40. local GuiXrayOnActive = Instance.new("TextLabel")
  41. local GuiXrayOff = Instance.new("TextButton")
  42. local GuiXrayOffActive = Instance.new("TextLabel")
  43. local BringGun = Instance.new("TextButton")
  44. local Keybinds = Instance.new("TextButton")
  45. local KeybindsActive = Instance.new("TextLabel")
  46. local Hide = Instance.new("TextButton")
  47. local Show = Instance.new("TextButton")
  48. --Other Variables
  49. local runActive = false
  50. local teamname = "None"
  51. local murderer = "None"
  52. local sheriff = "None"
  53. local player = game:GetService("Players").LocalPlayer
  54. local esp = false
  55. local plresp
  56. local track = false
  57. local NClip = false
  58. local char = game.Players.LocalPlayer.Character
  59. local obj = game.workspace
  60. local mouse=game.Players.LocalPlayer:GetMouse()
  61. local LP = game:GetService("Players").LocalPlayer
  62. local flyvar = false
  63. local showvar = true
  64. local inputcode = game:GetService("UserInputService")
  65. local godmodevar = false
  66. local keyOff = false
  67. local NClip = false
  68. --Start of Gui--
  69. MM2.Name = "MM2"
  70. MM2.Parent = game.CoreGui
  71. MM2.ResetOnSpawn = false
  72. Main.Name = "Main"
  73. Main.Parent = MM2
  74. Main.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  75. Main.BorderColor3 = Color3.new(0, 0.607843, 1)
  76. Main.BorderSizePixel = 5
  77. Main.Draggable = true
  78. Main.Position = UDim2.new(0.574999988, 0, 0.349999994, 0)
  79. Main.Size = UDim2.new(0.2, 0, 0.4, 0)
  80. Main.Visible = true
  81. Main.Active = true
  82. Title.Name = "Title"
  83. Title.Parent = Main
  84. Title.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  85. Title.BorderColor3 = Color3.new(0, 0.607843, 1)
  86. Title.BorderSizePixel = 5
  87. Title.Draggable = true
  88. Title.Size = UDim2.new(1.005, 0, 0.2, 0)
  89. Title.ZIndex = 3
  90. Title.Font = Enum.Font.SciFi
  91. Title.FontSize = Enum.FontSize.Size24
  92. Title.Text = "Murder Mystery 2"
  93. Title.TextColor3 = Color3.new(0, 0.607843, 1)
  94. Title.TextScaled = true
  95. Title.TextSize = 20
  96. Title.TextStrokeColor3 = Color3.new(0.129412, 0.54902, 1)
  97. Title.TextWrapped = true
  98. --Start of functions for buttons--
  99. function Create(base, team, colors1, colors2, colors3, teamname) --For all esps
  100. local bb = Instance.new("BillboardGui",player.PlayerGui)
  101. bb.Adornee = base
  102. bb.ExtentsOffset = Vector3.new(0,1,0)
  103. bb.AlwaysOnTop = true
  104. bb.Size = UDim2.new(0,5,0,5)
  105. bb.StudsOffset = Vector3.new(0,1,0)
  106. bb.Name = "tracker"
  107. local frame = Instance.new("Frame",bb)
  108. frame.ZIndex = 10
  109. frame.BackgroundTransparency = 0.3
  110. frame.Size = UDim2.new(1,0,1,0)
  111. local txtlbl = Instance.new("TextLabel",bb)
  112. txtlbl.ZIndex = 10
  113. txtlbl.Text = teamname
  114. txtlbl.BackgroundTransparency = 1
  115. txtlbl.Position = UDim2.new(0,0,0,-35)
  116. txtlbl.Size = UDim2.new(1,0,10,0)
  117. txtlbl.Font = "ArialBold"
  118. txtlbl.FontSize = "Size12"
  119. txtlbl.TextStrokeTransparency = 0.5
  120. if team then --For teams, left over from origianl but never removed
  121. txtlbl.TextColor3 = Color3.new(0,0,255)
  122. frame.BackgroundColor3 = Color3.new(0,0,255)
  123. else
  124. txtlbl.TextColor3 = Color3.new(colors1,colors2,colors3)
  125. frame.BackgroundColor3 = Color3.new(colors1,colors2,colors3)
  126. end
  127. end
  128. function findmurderer() --Find who the murderer is
  129. local colors1 = 255
  130. local colors2 = 0
  131. local colors3 = 0
  132. for i, v in pairs(game:GetService("Players"):GetChildren()) do
  133. if v ~= game:GetService("Players").LocalPlayer then
  134. for i,v in pairs(v.Backpack:GetChildren()) do --Checks backpack for knife
  135. if v.Name == "Knife" then
  136. if espnames == true then
  137. local teamname = v.Parent.Parent.Name
  138. if v.Parent.Parent.Character.Head ~= nil then
  139. Create(v.Parent.Parent.Character.Head, false, colors1 ,colors2, colors3, teamname)
  140. else
  141. if printvar == true then
  142. print("Head missing from murderer!")
  143. end
  144. end
  145. elseif espnames == false then
  146. local teamname = "Murderer"
  147. if v.Parent.Parent.Character.Head ~= nil then
  148. Create(v.Parent.Parent.Character.Head, false, colors1 ,colors2, colors3, teamname)
  149. else
  150. if printvar == true then
  151. print("Head missing from murderer!")
  152. end
  153. end
  154. end
  155. murderer = v.Parent.Parent.Name
  156. if printvar == true then
  157. print(murderer.." is Murderer")
  158. end
  159. end
  160. end
  161. for i,v in pairs(v.Character:GetChildren()) do --Checks workspace player for knife (holding it)
  162. if v.Name == "Knife" then
  163. if espnames == true then
  164. local teamname = v.Parent.Name
  165. if v.Parent.Head ~= nil then --Tried to failproof to stop printing nil
  166. Create(v.Parent.Head, false, colors1 ,colors2, colors3, teamname)
  167. else
  168. if printvar == true then
  169. print("Head missing from murderer!")
  170. end
  171. end
  172. elseif espnames == false then
  173. local teamname = "Murderer"
  174. if v.Parent.Head ~= nil then
  175. Create(v.Parent.Head, false, colors1 ,colors2, colors3, teamname)
  176. else
  177. if printvar == true then
  178. print("Head missing from murderer!")
  179. end
  180. end
  181. end
  182. murderer = v.Parent.Name
  183. if printvar == true then --Tried to failproof to stop printing nil
  184. local murderer1 = tostring(v.Parent.Name)
  185. print(murderer1.." is Murderer")
  186. end
  187. end
  188. end
  189. end
  190. end
  191. end
  192. function findsheriff() --Find who the sheriff is
  193. local colors1 = 0
  194. local colors2 = 0
  195. local colors3 = 255
  196. for i, v in pairs(game:GetService("Players"):GetChildren()) do
  197. if v ~= game:GetService("Players").LocalPlayer then
  198. for i,v in pairs(v.Backpack:GetChildren()) do
  199. if v.Name == "Revolver" or v.Name == "Gun" then --Lazy to check if its revolver or gun and checks backpack for gun
  200. if espnames == true then
  201. local teamname = v.Parent.Parent.Name
  202. if v.Parent.Parent.Character.Head ~= nil then --Tried to failproof to stop printing nil
  203. Create(v.Parent.Parent.Character.Head, false, colors1 ,colors2, colors3, teamname)
  204. else
  205. if printvar == true then
  206. print("Head missing from sheriff!")
  207. end
  208. end
  209. elseif espnames == false then
  210. local teamname = "Sheriff"
  211. if v.Parent.Parent.Character.Head ~= nil then --Tried to failproof to stop printing nil
  212. Create(v.Parent.Parent.Character.Head, false, colors1 ,colors2, colors3, teamname)
  213. else
  214. if printvar == true then
  215. print("Head missing from sheriff!")
  216. end
  217. end
  218. end
  219. sheriff = v.Parent.Parent.Name
  220. if printvar == true then
  221. local sheriff1 = tostring(v.Parent.Parent.Name)
  222. print(sheriff1.." is Sheriff")
  223. end
  224. end
  225. end
  226. for i,v in pairs(v.Character:GetChildren()) do
  227. if v.Name == "Revolver" or v.Name == "Gun" then --Lazy to check if its revolver or gun and checks workspace player for gun (holding it)
  228. if espnames == true then
  229. local teamname = v.Parent.Name
  230. if v.Parent.Head ~= nil then --Tried to failproof to stop printing nil
  231. Create(v.Parent.Head, false, colors1 ,colors2, colors3, teamname)
  232. else
  233. if printvar == true then
  234. print("Head missing from sheriff!")
  235. end
  236. end
  237. elseif espnames == false then
  238. local teamname = "Sheriff"
  239. if v.Parent.Head ~= nil then --Tried to failproof to stop printing nil
  240. Create(v.Parent.Head, false, colors1 ,colors2, colors3, teamname)
  241. else
  242. if printvar == true then
  243. print("Head missing from sheriff!")
  244. end
  245. end
  246. end
  247. sheriff = v.Parent.Name
  248. if printvar == true then
  249. local sheriff1 = tostring(v.Parent.Name)
  250. print(sheriff1.." is Sheriff")
  251. end
  252. end
  253. end
  254. end
  255. end
  256. end
  257. function findplayers() --Find all players but local player
  258. findmurderer() --Finds murderer
  259. findsheriff() --Finds sheriff
  260. local colors1 = 0
  261. local colors2 = 255
  262. local colors3 = 0
  263. for i, v in pairs(game:GetService("Players"):GetChildren()) do
  264. if v ~= game:GetService("Players").LocalPlayer then --If not local player
  265. if v.Name ~= murderer then --If not murderer
  266. if v.Name ~= sheriff then --If not sheriff
  267. if espnames == true then
  268. local teamname = v.Name
  269. if v.Character.Head ~= nil then --Tried to failproof to stop printing nil
  270. Create(v.Character.Head, false, colors1 ,colors2, colors3, teamname)
  271. else
  272. if printvar == true then
  273. print("Head missing from sheriff!")
  274. end
  275. end
  276. elseif espnames == false then
  277. local teamname = "Innocents"
  278. if v.Parent.Head ~= nil then --Tried to failproof to stop printing nil
  279. Create(v.Character.Head, false, colors1 ,colors2, colors3, teamname)
  280. else
  281. if printvar == true then
  282. print("Head missing from sheriff!")
  283. end
  284. end
  285. end
  286. end
  287. end
  288. end
  289. end
  290. end
  291. function Clear() --Clears all the esps
  292. for _,v in pairs(player.PlayerGui:children()) do
  293. if v.Name == "tracker" and v:isA("BillboardGui") then
  294. v:Destroy()
  295. end
  296. end
  297. end
  298. function XrayOn(obj) --Enables xray
  299. for _,v in pairs(obj:GetChildren()) do
  300. if (v:IsA("BasePart")) and not v.Parent:FindFirstChild("Humanoid") then
  301. v.LocalTransparencyModifier = 0.75
  302. end
  303. XrayOn(v)
  304. end
  305. end
  306. function XrayOff(obj) --Disables xray
  307. for _,v in pairs(obj:GetChildren()) do
  308. if (v:IsA("BasePart")) and not v.Parent:FindFirstChild("Humanoid") then
  309. v.LocalTransparencyModifier = 0
  310. end XrayOff(v)
  311. end
  312. end
  313. function sFLY() --Fly function
  314. repeat wait() until LP and LP.Character and LP.Character:FindFirstChild('Torso') and LP.Character:FindFirstChild('Humanoid')
  315. repeat wait() until mouse
  316. local T = LP.Character.Torso
  317. local CONTROL = {F = 0, B = 0, L = 0, R = 0}
  318. local lCONTROL = {F = 0, B = 0, L = 0, R = 0}
  319. local SPEED = 0
  320. local function FLY()
  321. FLYING = true
  322. local BG = Instance.new('BodyGyro', T)
  323. local BV = Instance.new('BodyVelocity', T)
  324. BG.P = 9e4
  325. BG.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  326. BG.cframe = T.CFrame
  327. BV.velocity = Vector3.new(0, 0.1, 0)
  328. BV.maxForce = Vector3.new(9e9, 9e9, 9e9)
  329. spawn(function()
  330. repeat wait()
  331. LP.Character.Humanoid.PlatformStand = true
  332. if CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0 then
  333. SPEED = 50
  334. elseif not (CONTROL.L + CONTROL.R ~= 0 or CONTROL.F + CONTROL.B ~= 0) and SPEED ~= 0 then
  335. SPEED = 0
  336. end
  337. if (CONTROL.L + CONTROL.R) ~= 0 or (CONTROL.F + CONTROL.B) ~= 0 then
  338. BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (CONTROL.F + CONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(CONTROL.L + CONTROL.R, (CONTROL.F + CONTROL.B) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  339. lCONTROL = {F = CONTROL.F, B = CONTROL.B, L = CONTROL.L, R = CONTROL.R}
  340. elseif (CONTROL.L + CONTROL.R) == 0 and (CONTROL.F + CONTROL.B) == 0 and SPEED ~= 0 then
  341. BV.velocity = ((workspace.CurrentCamera.CoordinateFrame.lookVector * (lCONTROL.F + lCONTROL.B)) + ((workspace.CurrentCamera.CoordinateFrame * CFrame.new(lCONTROL.L + lCONTROL.R, (lCONTROL.F + lCONTROL.B) * 0.2, 0).p) - workspace.CurrentCamera.CoordinateFrame.p)) * SPEED
  342. else
  343. BV.velocity = Vector3.new(0, 0.1, 0)
  344. end
  345. BG.cframe = workspace.CurrentCamera.CoordinateFrame
  346. until not FLYING
  347. CONTROL = {F = 0, B = 0, L = 0, R = 0}
  348. lCONTROL = {F = 0, B = 0, L = 0, R = 0}
  349. SPEED = 0
  350. BG:destroy()
  351. BV:destroy()
  352. LP.Character.Humanoid.PlatformStand = false
  353. end)
  354. end
  355. mouse.KeyDown:connect(function(KEY)
  356. if KEY:lower() == 'w' then
  357. CONTROL.F = 1
  358. elseif KEY:lower() == 's' then
  359. CONTROL.B = -1
  360. elseif KEY:lower() == 'a' then
  361. CONTROL.L = -1
  362. elseif KEY:lower() == 'd' then
  363. CONTROL.R = 1
  364. end
  365. end)
  366. mouse.KeyUp:connect(function(KEY)
  367. if KEY:lower() == 'w' then
  368. CONTROL.F = 0
  369. elseif KEY:lower() == 's' then
  370. CONTROL.B = 0
  371. elseif KEY:lower() == 'a' then
  372. CONTROL.L = 0
  373. elseif KEY:lower() == 'd' then
  374. CONTROL.R = 0
  375. end
  376. end)
  377. FLY()
  378. end
  379. function NOFLY() --Unfly function
  380. FLYING = false
  381. LP.Character.Humanoid.PlatformStand = false
  382. end
  383. local noclipcoro = coroutine.wrap(function() --Noclip function
  384. while true do
  385. if NClip == true then
  386. if game.Players ~= nil then
  387. if game.Players.LocalPlayer ~= nil then
  388. if game.Players.LocalPlayer.Character ~= nil then
  389. if game.Players.LocalPlayer.Character:FindFirstChild("Torso") ~= nil then
  390. if game.Players.LocalPlayer.Character:FindFirstChild("Head") ~= nil then
  391. game.Players.LocalPlayer.Character.Torso.CanCollide = false
  392. game.Players.LocalPlayer.Character.Head.CanCollide = false
  393. end
  394. end
  395. end
  396. end
  397. end
  398. end
  399. game:service("RunService").Stepped:wait()
  400. end
  401. end)
  402. noclipcoro() --For noclip to work
  403. game:GetService("Players").LocalPlayer.CharacterAdded:connect(function(character) --Resets specific things for ease
  404. flyvar = false
  405. FlyActive.Text = "Inactive"
  406. FlyActive.TextColor3 = Color3.new(1, 0, 1)
  407. godmodevar = false
  408. GodModeActive.Text = "Inactive"
  409. GodModeActive.TextColor3 = Color3.new(1, 0, 1)
  410. Clear()
  411. MSESPActive.Text = "Inactive"
  412. MSESPActive.TextColor3 = Color3.new(1, 0, 1)
  413. PlayersEspActive.Text = "Inactive"
  414. PlayersEspActive.TextColor3 = Color3.new(1, 0, 1)
  415. EspOffActive.Text = "Active"
  416. EspOffActive.TextColor3 = Color3.new(0, 1, 0)
  417. end)
  418. mouse.KeyDown:connect(function(KeyDown) --If shift is held, run
  419. if KeyDown == "0" and runActive == false and keyOff == false then
  420. runActive = true
  421. player.Character.Humanoid.WalkSpeed = 32
  422. RunActiveGui.Text = "Active"
  423. RunActiveGui.TextColor3 = Color3.new(0, 1, 0)
  424. end
  425. end)
  426. mouse.KeyUp:connect(function(KeyUp) --If shift is released, walk
  427. if KeyUp == "0" and runActive == true and keyOff == false then
  428. runActive = false
  429. player.Character.Humanoid.WalkSpeed = 16
  430. RunActiveGui.Text = "Inactive"
  431. RunActiveGui.TextColor3 = Color3.new(1, 0, 1)
  432. end
  433. end)
  434. function coingrabberfunc() --Coin grabber function
  435. local children = game.Workspace:GetChildren()
  436. for _, child in pairs(children) do
  437. for _, child in pairs(child:GetChildren()) do
  438. table.insert(children, child)
  439. end
  440. if child:IsA("BasePart") and child.Name == "Coin" then
  441. child.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  442. end
  443. end
  444. end
  445. function godmodefunc() --Godmode function
  446. local player = game.Players.LocalPlayer
  447. if player.Character then
  448. if player.Character:FindFirstChild("Humanoid") then
  449. player.Character.Humanoid.Name = "1"
  450. end
  451. local l = player.Character["1"]:Clone()
  452. l.Parent = player.Character
  453. l.Name = "Humanoid"; wait(0.1)
  454. player.Character["1"]:Destroy()
  455. workspace.CurrentCamera.CameraSubject = player.Character.Humanoid
  456. player.Character.Animate.Disabled = true; wait(0.1)
  457. player.Character.Animate.Disabled = false
  458. end
  459. end
  460. --Coin Grabber--
  461. Coin.Name = "CoinGrabber"
  462. Coin.Parent = Main
  463. Coin.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  464. Coin.BorderColor3 = Color3.new(0, 0.607843, 1)
  465. Coin.BorderSizePixel = 5
  466. Coin.Position = UDim2.new(0, 0, 0.215, 0)
  467. Coin.Size = UDim2.new(1.005, 0, 0.08, 0)
  468. Coin.ZIndex = 4
  469. Coin.Font = Enum.Font.SciFi
  470. Coin.FontSize = Enum.FontSize.Size24
  471. Coin.Text = "Coin Grabber ["..string.upper(coinkey).."]"
  472. Coin.TextColor3 = Color3.fromRGB(255, 255, 26)
  473. Coin.TextSize = 20
  474. Coin.TextWrapped = true
  475. Coin.MouseButton1Down:connect(function(x, y)
  476. coingrabberfunc()
  477. end)
  478. --Murderer/Sheriff Esp--
  479. MSESPActive.Name = "MSEspActive"
  480. MSESPActive.Parent = Main
  481. MSESPActive.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  482. MSESPActive.BorderColor3 = Color3.new(0, 0.607843, 1)
  483. MSESPActive.BorderSizePixel = 5
  484. MSESPActive.Position = UDim2.new(0.755, 0, 0.315, 0)
  485. MSESPActive.Size = UDim2.new(0.25, 0, 0.08, 0)
  486. MSESPActive.ZIndex = 4
  487. MSESPActive.Font = Enum.Font.SciFi
  488. MSESPActive.FontSize = Enum.FontSize.Size24
  489. MSESPActive.Text = "Inactive"
  490. MSESPActive.TextColor3 = Color3.new(1, 0, 1)
  491. MSESPActive.TextSize = 20
  492. MSESPActive.TextWrapped = true
  493. MSEsp.Name = "MSEsp"
  494. MSEsp.Parent = Main
  495. MSEsp.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  496. MSEsp.BorderColor3 = Color3.new(0, 0.607843, 1)
  497. MSEsp.BorderSizePixel = 5
  498. MSEsp.Position = UDim2.new(0, 0, 0.315, 0)
  499. MSEsp.Size = UDim2.new(0.75, 0, 0.08, 0)
  500. MSEsp.ZIndex = 4
  501. MSEsp.Font = Enum.Font.SciFi
  502. MSEsp.FontSize = Enum.FontSize.Size24
  503. MSEsp.Text = "Murderer/Sheriff Esp ["..string.upper(MSkey).."]"
  504. MSEsp.TextColor3 = Color3.fromRGB(255, 102, 255)
  505. MSEsp.TextSize = 20
  506. MSEsp.TextWrapped = true
  507. MSEsp.MouseButton1Down:connect(function(x, y)
  508. murderer = "None"
  509. sheriff = "None"
  510. Clear()
  511. findmurderer()
  512. findsheriff()
  513. if printvar == true then
  514. print("Murderer/Sheriff")
  515. end
  516. MSESPActive.Text = "Active"
  517. MSESPActive.TextColor3 = Color3.new(0, 1, 0)
  518. PlayersEspActive.Text = "Inactive"
  519. PlayersEspActive.TextColor3 = Color3.new(1, 0, 1)
  520. EspOffActive.Text = "Inactive"
  521. EspOffActive.TextColor3 = Color3.new(1, 0, 1)
  522. end)
  523. --All Players Esp
  524. PlayersEspActive.Name = "PlayersEspActive"
  525. PlayersEspActive.Parent = Main
  526. PlayersEspActive.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  527. PlayersEspActive.BorderColor3 = Color3.new(0, 0.607843, 1)
  528. PlayersEspActive.BorderSizePixel = 5
  529. PlayersEspActive.Position = UDim2.new(0.755, 0, 0.415, 0)
  530. PlayersEspActive.Size = UDim2.new(0.25, 0, 0.08, 0)
  531. PlayersEspActive.ZIndex = 4
  532. PlayersEspActive.Font = Enum.Font.SciFi
  533. PlayersEspActive.FontSize = Enum.FontSize.Size24
  534. PlayersEspActive.Text = "Inactive"
  535. PlayersEspActive.TextColor3 = Color3.new(1, 0, 1)
  536. PlayersEspActive.TextSize = 20
  537. PlayersEspActive.TextWrapped = true
  538. PlayersEsp.Name = "PlayersEsp"
  539. PlayersEsp.Parent = Main
  540. PlayersEsp.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  541. PlayersEsp.BorderColor3 = Color3.new(0, 0.607843, 1)
  542. PlayersEsp.BorderSizePixel = 5
  543. PlayersEsp.Position = UDim2.new(0, 0, 0.415, 0)
  544. PlayersEsp.Size = UDim2.new(0.75, 0, 0.08, 0)
  545. PlayersEsp.ZIndex = 4
  546. PlayersEsp.Font = Enum.Font.SciFi
  547. PlayersEsp.FontSize = Enum.FontSize.Size24
  548. PlayersEsp.Text = "All Players Esp ["..string.upper(playerskey).."]"
  549. PlayersEsp.TextColor3 = Color3.fromRGB(102, 255, 51)
  550. PlayersEsp.TextSize = 20
  551. PlayersEsp.TextWrapped = true
  552. PlayersEsp.MouseButton1Down:connect(function(x, y)
  553. Clear()
  554. if printvar == true then
  555. print("Players Esp")
  556. end
  557. MSESPActive.Text = "Inactive"
  558. MSESPActive.TextColor3 = Color3.new(1, 0, 1)
  559. PlayersEspActive.Text = "Active"
  560. PlayersEspActive.TextColor3 = Color3.new(0, 1, 0)
  561. EspOffActive.Text = "Inactive"
  562. EspOffActive.TextColor3 = Color3.new(1, 0, 1)
  563. findplayers()
  564. end)
  565. --Esp Off
  566. EspOffActive.Name = "EspOffActive"
  567. EspOffActive.Parent = Main
  568. EspOffActive.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  569. EspOffActive.BorderColor3 = Color3.new(0, 0.607843, 1)
  570. EspOffActive.BorderSizePixel = 5
  571. EspOffActive.Position = UDim2.new(0.755, 0, 0.515, 0)
  572. EspOffActive.Size = UDim2.new(0.25, 0, 0.08, 0)
  573. EspOffActive.ZIndex = 4
  574. EspOffActive.Font = Enum.Font.SciFi
  575. EspOffActive.FontSize = Enum.FontSize.Size24
  576. EspOffActive.Text = "Active"
  577. EspOffActive.TextColor3 = Color3.new(0, 1, 0)
  578. EspOffActive.TextSize = 20
  579. EspOffActive.TextWrapped = true
  580. EspOff.Name = "EspOff"
  581. EspOff.Parent = Main
  582. EspOff.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  583. EspOff.BorderColor3 = Color3.new(0, 0.607843, 1)
  584. EspOff.BorderSizePixel = 5
  585. EspOff.Position = UDim2.new(0, 0, 0.515, 0)
  586. EspOff.Size = UDim2.new(0.75, 0, 0.08, 0)
  587. EspOff.ZIndex = 4
  588. EspOff.Font = Enum.Font.SciFi
  589. EspOff.FontSize = Enum.FontSize.Size24
  590. EspOff.Text = "Esp Off ["..string.upper(espoffkey).."]"
  591. EspOff.TextColor3 = Color3.fromRGB(255, 255, 255)
  592. EspOff.TextSize = 20
  593. EspOff.TextWrapped = true
  594. EspOff.MouseButton1Down:connect(function(x, y)
  595. Clear()
  596. if printvar == true then
  597. print("Esp Off")
  598. end
  599. MSESPActive.Text = "Inactive"
  600. MSESPActive.TextColor3 = Color3.new(1, 0, 1)
  601. PlayersEspActive.Text = "Inactive"
  602. PlayersEspActive.TextColor3 = Color3.new(1, 0, 1)
  603. EspOffActive.Text = "Active"
  604. EspOffActive.TextColor3 = Color3.new(0, 1, 0)
  605. end)
  606. --Run
  607. RunActiveGui.Name = "RunActiveGui"
  608. RunActiveGui.Parent = Main
  609. RunActiveGui.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  610. RunActiveGui.BorderColor3 = Color3.new(0, 0.607843, 1)
  611. RunActiveGui.BorderSizePixel = 5
  612. RunActiveGui.Position = UDim2.new(0.755, 0, 0.615, 0)
  613. RunActiveGui.Size = UDim2.new(0.25, 0, 0.08, 0)
  614. RunActiveGui.ZIndex = 4
  615. RunActiveGui.Font = Enum.Font.SciFi
  616. RunActiveGui.FontSize = Enum.FontSize.Size24
  617. RunActiveGui.Text = "Inactive"
  618. RunActiveGui.TextColor3 = Color3.new(1, 0, 1)
  619. RunActiveGui.TextSize = 20
  620. RunActiveGui.TextWrapped = true
  621. Run.Name = "Run"
  622. Run.Parent = Main
  623. Run.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  624. Run.BorderColor3 = Color3.new(0, 0.607843, 1)
  625. Run.BorderSizePixel = 5
  626. Run.Position = UDim2.new(0, 0, 0.615, 0)
  627. Run.Size = UDim2.new(0.75, 0, 0.08, 0)
  628. Run.ZIndex = 4
  629. Run.Font = Enum.Font.SciFi
  630. Run.FontSize = Enum.FontSize.Size24
  631. Run.Text = "Run [Shift]"
  632. Run.TextColor3 = Color3.fromRGB(255, 51, 0)
  633. Run.TextSize = 20
  634. Run.TextWrapped = true
  635. Run.MouseButton1Down:connect(function(x, y)
  636. if runActive == false then
  637. runActive = true
  638. player.Character.Humanoid.WalkSpeed = 32
  639. RunActiveGui.Text = "Active"
  640. RunActiveGui.TextColor3 = Color3.new(0, 1, 0)
  641. elseif runActive == true then
  642. runActive = false
  643. player.Character.Humanoid.WalkSpeed = 16
  644. RunActiveGui.Text = "Inactive"
  645. RunActiveGui.TextColor3 = Color3.new(1, 0, 1)
  646. end
  647. end)
  648. --Fly
  649. FlyActive.Name = "FlyActive"
  650. FlyActive.Parent = Main
  651. FlyActive.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  652. FlyActive.BorderColor3 = Color3.new(0, 0.607843, 1)
  653. FlyActive.BorderSizePixel = 5
  654. FlyActive.Position = UDim2.new(0.755, 0, 0.715, 0)
  655. FlyActive.Size = UDim2.new(0.25, 0, 0.08, 0)
  656. FlyActive.ZIndex = 4
  657. FlyActive.Font = Enum.Font.SciFi
  658. FlyActive.FontSize = Enum.FontSize.Size24
  659. FlyActive.Text = "Inactive"
  660. FlyActive.TextColor3 = Color3.new(1, 0, 1)
  661. FlyActive.TextSize = 20
  662. FlyActive.TextWrapped = true
  663. Fly.Name = "Fly"
  664. Fly.Parent = Main
  665. Fly.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  666. Fly.BorderColor3 = Color3.new(0, 0.607843, 1)
  667. Fly.BorderSizePixel = 5
  668. Fly.Position = UDim2.new(0, 0, 0.715, 0)
  669. Fly.Size = UDim2.new(0.75, 0, 0.08, 0)
  670. Fly.ZIndex = 4
  671. Fly.Font = Enum.Font.SciFi
  672. Fly.FontSize = Enum.FontSize.Size24
  673. Fly.Text = "Fly ["..string.upper(flykey).."]"
  674. Fly.TextColor3 = Color3.fromRGB(204, 255, 255)
  675. Fly.TextSize = 20
  676. Fly.TextWrapped = true
  677. Fly.MouseButton1Down:connect(function(x, y)
  678. if flyvar == false then
  679. sFLY()
  680. flyvar = true
  681. FlyActive.Text = "Active"
  682. FlyActive.TextColor3 = Color3.new(0, 1, 0)
  683. elseif flyvar == true then
  684. flyvar = false
  685. NOFLY()
  686. FlyActive.Text = "Inactive"
  687. FlyActive.TextColor3 = Color3.new(1, 0, 1)
  688. end
  689. end)
  690. --Noclip
  691. NoclipActive.Name = "NoclipActive"
  692. NoclipActive.Parent = Main
  693. NoclipActive.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  694. NoclipActive.BorderColor3 = Color3.new(0, 0.607843, 1)
  695. NoclipActive.BorderSizePixel = 5
  696. NoclipActive.Position = UDim2.new(0.755, 0, 0.815, 0)
  697. NoclipActive.Size = UDim2.new(0.25, 0, 0.08, 0)
  698. NoclipActive.ZIndex = 4
  699. NoclipActive.Font = Enum.Font.SciFi
  700. NoclipActive.FontSize = Enum.FontSize.Size24
  701. NoclipActive.Text = "Inactive"
  702. NoclipActive.TextColor3 = Color3.new(1, 0, 1)
  703. NoclipActive.TextSize = 20
  704. NoclipActive.TextWrapped = true
  705. Noclip.Name = "Noclip"
  706. Noclip.Parent = Main
  707. Noclip.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  708. Noclip.BorderColor3 = Color3.new(0, 0.607843, 1)
  709. Noclip.BorderSizePixel = 5
  710. Noclip.Position = UDim2.new(0, 0, 0.815, 0)
  711. Noclip.Size = UDim2.new(0.75, 0, 0.08, 0)
  712. Noclip.ZIndex = 4
  713. Noclip.Font = Enum.Font.SciFi
  714. Noclip.FontSize = Enum.FontSize.Size24
  715. Noclip.Text = "Noclip ["..string.upper(noclipkey).."]"
  716. Noclip.TextColor3 = Color3.fromRGB(0, 102, 255)
  717. Noclip.TextSize = 20
  718. Noclip.TextWrapped = true
  719. Noclip.MouseButton1Down:connect(function(x, y)
  720. if NClip == false then
  721. NClip = true
  722. if printvar == true then
  723. print("Noclip Enabled")
  724. end
  725. NoclipActive.Text = "Active"
  726. NoclipActive.TextColor3 = Color3.new(0, 1, 0)
  727. elseif NClip == true then
  728. NClip = false
  729. if printvar == true then
  730. print("Noclip Disabled")
  731. end
  732. NoclipActive.Text = "Inactive"
  733. NoclipActive.TextColor3 = Color3.new(1, 0, 1)
  734. end
  735. end)
  736. --GodMode
  737. GodModeActive.Name = "GodModeActive"
  738. GodModeActive.Parent = Main
  739. GodModeActive.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  740. GodModeActive.BorderColor3 = Color3.new(0, 0.607843, 1)
  741. GodModeActive.BorderSizePixel = 5
  742. GodModeActive.Position = UDim2.new(0.755, 0, 0.915, 0)
  743. GodModeActive.Size = UDim2.new(0.25, 0, 0.08, 0)
  744. GodModeActive.ZIndex = 4
  745. GodModeActive.Font = Enum.Font.SciFi
  746. GodModeActive.FontSize = Enum.FontSize.Size24
  747. GodModeActive.Text = "Inactive"
  748. GodModeActive.TextColor3 = Color3.new(1, 0, 1)
  749. GodModeActive.TextSize = 20
  750. GodModeActive.TextWrapped = true
  751. GodMode.Name = "GodMode"
  752. GodMode.Parent = Main
  753. GodMode.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  754. GodMode.BorderColor3 = Color3.new(0, 0.607843, 1)
  755. GodMode.BorderSizePixel = 5
  756. GodMode.Position = UDim2.new(0, 0, 0.915, 0)
  757. GodMode.Size = UDim2.new(0.75, 0, 0.08, 0)
  758. GodMode.ZIndex = 4
  759. GodMode.Font = Enum.Font.SciFi
  760. GodMode.FontSize = Enum.FontSize.Size24
  761. GodMode.Text = "God Mode ["..string.upper(godmodekey).."]"
  762. GodMode.TextColor3 = Color3.fromRGB(255, 255, 255)
  763. GodMode.TextSize = 20
  764. GodMode.TextWrapped = true
  765. GodMode.MouseButton1Down:connect(function(x, y)
  766. if godmodevar == false then
  767. GodModeActive.Text = "Active"
  768. GodModeActive.TextColor3 = Color3.new(0, 1, 0)
  769. godmodevar = true
  770. godmodefunc()
  771. end
  772. end)
  773. --Xray On
  774. GuiXrayOnActive.Name = "GuiXrayOnActive"
  775. GuiXrayOnActive.Parent = Main
  776. GuiXrayOnActive.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  777. GuiXrayOnActive.BorderColor3 = Color3.new(0, 0.607843, 1)
  778. GuiXrayOnActive.BorderSizePixel = 5
  779. GuiXrayOnActive.Position = UDim2.new(0.755, 0, 1.015, 0)
  780. GuiXrayOnActive.Size = UDim2.new(0.25, 0, 0.08, 0)
  781. GuiXrayOnActive.ZIndex = 4
  782. GuiXrayOnActive.Font = Enum.Font.SciFi
  783. GuiXrayOnActive.FontSize = Enum.FontSize.Size24
  784. GuiXrayOnActive.Text = "Inactive"
  785. GuiXrayOnActive.TextColor3 = Color3.new(1, 0, 1)
  786. GuiXrayOnActive.TextSize = 20
  787. GuiXrayOnActive.TextWrapped = true
  788. GuiXrayOn.Name = "XrayOn"
  789. GuiXrayOn.Parent = Main
  790. GuiXrayOn.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  791. GuiXrayOn.BorderColor3 = Color3.new(0, 0.607843, 1)
  792. GuiXrayOn.BorderSizePixel = 5
  793. GuiXrayOn.Position = UDim2.new(0, 0, 1.015, 0)
  794. GuiXrayOn.Size = UDim2.new(0.75, 0, 0.08, 0)
  795. GuiXrayOn.ZIndex = 4
  796. GuiXrayOn.Font = Enum.Font.SciFi
  797. GuiXrayOn.FontSize = Enum.FontSize.Size24
  798. GuiXrayOn.Text = "Xray On ["..string.upper(xrayonkey).."]"
  799. GuiXrayOn.TextColor3 = Color3.fromRGB(255, 204, 102)
  800. GuiXrayOn.TextSize = 20
  801. GuiXrayOn.TextWrapped = true
  802. GuiXrayOn.MouseButton1Down:connect(function(x, y)
  803. GuiXrayOnActive.Text = "Active"
  804. GuiXrayOnActive.TextColor3 = Color3.new(0, 1, 0)
  805. GuiXrayOffActive.Text = "Inactive"
  806. GuiXrayOffActive.TextColor3 = Color3.new(1, 0, 1)
  807. XrayOn(obj)
  808. end)
  809. --Xray Off
  810. GuiXrayOffActive.Name = "GuiXrayOffActive"
  811. GuiXrayOffActive.Parent = Main
  812. GuiXrayOffActive.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  813. GuiXrayOffActive.BorderColor3 = Color3.new(0, 0.607843, 1)
  814. GuiXrayOffActive.BorderSizePixel = 5
  815. GuiXrayOffActive.Position = UDim2.new(0.755, 0, 1.115, 0)
  816. GuiXrayOffActive.Size = UDim2.new(0.25, 0, 0.08, 0)
  817. GuiXrayOffActive.ZIndex = 4
  818. GuiXrayOffActive.Font = Enum.Font.SciFi
  819. GuiXrayOffActive.FontSize = Enum.FontSize.Size24
  820. GuiXrayOffActive.Text = "Active"
  821. GuiXrayOffActive.TextColor3 = Color3.new(0, 1, 0)
  822. GuiXrayOffActive.TextSize = 20
  823. GuiXrayOffActive.TextWrapped = true
  824. GuiXrayOff.Name = "XrayOff"
  825. GuiXrayOff.Parent = Main
  826. GuiXrayOff.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  827. GuiXrayOff.BorderColor3 = Color3.new(0, 0.607843, 1)
  828. GuiXrayOff.BorderSizePixel = 5
  829. GuiXrayOff.Position = UDim2.new(0, 0, 1.115, 0)
  830. GuiXrayOff.Size = UDim2.new(0.75, 0, 0.08, 0)
  831. GuiXrayOff.ZIndex = 4
  832. GuiXrayOff.Font = Enum.Font.SciFi
  833. GuiXrayOff.FontSize = Enum.FontSize.Size24
  834. GuiXrayOff.Text = "Xray Off ["..string.upper(xrayoffkey).."]"
  835. GuiXrayOff.TextColor3 = Color3.fromRGB(255, 153, 51)
  836. GuiXrayOff.TextSize = 20
  837. GuiXrayOff.TextWrapped = true
  838. GuiXrayOff.MouseButton1Down:connect(function(x, y)
  839. GuiXrayOnActive.Text = "Inactive"
  840. GuiXrayOnActive.TextColor3 = Color3.new(1, 0, 1)
  841. GuiXrayOffActive.Text = "Active"
  842. GuiXrayOffActive.TextColor3 = Color3.new(0, 1, 0)
  843. XrayOff(obj)
  844. end)
  845. --Bring Gun to You
  846. BringGun.Name = "BringGun"
  847. BringGun.Parent = Main
  848. BringGun.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  849. BringGun.BorderColor3 = Color3.new(0, 0.607843, 1)
  850. BringGun.BorderSizePixel = 5
  851. BringGun.Position = UDim2.new(0, 0, 1.215, 0)
  852. BringGun.Size = UDim2.new(1.005, 0, 0.08, 0)
  853. BringGun.ZIndex = 4
  854. BringGun.Font = Enum.Font.SciFi
  855. BringGun.FontSize = Enum.FontSize.Size24
  856. BringGun.Text = "Teleport Gun ["..string.upper(bringgunkey).."]"
  857. BringGun.TextColor3 = Color3.fromRGB(0, 255, 0)
  858. BringGun.TextSize = 20
  859. BringGun.TextWrapped = true
  860. BringGun.MouseButton1Down:connect(function(x, y)
  861. if game.Workspace.GunDrop.CFrame ~= nil then
  862. game.Workspace.GunDrop.CFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame
  863. else
  864. if printvar == true then
  865. print("Gun not currently dropped")
  866. end
  867. end
  868. end)
  869. --Keybinds
  870. KeybindsActive.Name = "KeybindsActive"
  871. KeybindsActive.Parent = Main
  872. KeybindsActive.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  873. KeybindsActive.BorderColor3 = Color3.new(0, 0.607843, 1)
  874. KeybindsActive.BorderSizePixel = 5
  875. KeybindsActive.Position = UDim2.new(0.755, 0, 1.315, 0)
  876. KeybindsActive.Size = UDim2.new(0.25, 0, 0.08, 0)
  877. KeybindsActive.ZIndex = 4
  878. KeybindsActive.Font = Enum.Font.SciFi
  879. KeybindsActive.FontSize = Enum.FontSize.Size24
  880. KeybindsActive.Text = "Active"
  881. KeybindsActive.TextColor3 = Color3.new(0, 1, 0)
  882. KeybindsActive.TextSize = 20
  883. KeybindsActive.TextWrapped = true
  884. Keybinds.Name = "Keybinds"
  885. Keybinds.Parent = Main
  886. Keybinds.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  887. Keybinds.BorderColor3 = Color3.new(0, 0.607843, 1)
  888. Keybinds.BorderSizePixel = 5
  889. Keybinds.Position = UDim2.new(0, 0, 1.315, 0)
  890. Keybinds.Size = UDim2.new(0.75, 0, 0.08, 0)
  891. Keybinds.ZIndex = 4
  892. Keybinds.Font = Enum.Font.SciFi
  893. Keybinds.FontSize = Enum.FontSize.Size24
  894. Keybinds.Text = "Keybinds [Ctrl]"
  895. Keybinds.TextColor3 = Color3.fromRGB(255, 255, 255)
  896. Keybinds.TextSize = 20
  897. Keybinds.TextWrapped = true
  898. Keybinds.MouseButton1Down:connect(function(x, y)
  899. if keyOff == true then
  900. keyOff = false
  901. KeybindsActive.Text = "Active"
  902. KeybindsActive.TextColor3 = Color3.new(0, 1, 0)
  903. elseif keyOff == false then
  904. keyOff = true
  905. KeybindsActive.Text = "Inactive"
  906. KeybindsActive.TextColor3 = Color3.new(1, 0, 1)
  907. end
  908. end)
  909. Show.Name = "Show"
  910. Show.Parent = MM2
  911. Show.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  912. Show.BorderColor3 = Color3.new(0, 0.607843, 1)
  913. Show.BorderSizePixel = 5
  914. Show.Position = UDim2.new(0, 0, 0.85799998, 0)
  915. Show.Size = UDim2.new(0.08, 0, 0.04, 0)
  916. Show.ZIndex = 4
  917. Show.Font = Enum.Font.SciFi
  918. Show.FontSize = Enum.FontSize.Size24
  919. Show.Text = "Show ["..string.upper(hideshowguikey).."]"
  920. Show.TextColor3 = Color3.new(0, 0.333333, 1)
  921. Show.TextSize = 20
  922. Show.TextWrapped = true
  923. Show.Visible = false
  924. Hide.Name = "Hide"
  925. Hide.Parent = Main
  926. Hide.BackgroundColor3 = Color3.new(0.188235, 0.188235, 0.188235)
  927. Hide.BorderColor3 = Color3.new(0, 0.607843, 1)
  928. Hide.BorderSizePixel = 5
  929. Hide.Position = UDim2.new(0, 0, 1.415, 0)
  930. Hide.Size = UDim2.new(1.005, 0, 0.08, 0)
  931. Hide.ZIndex = 4
  932. Hide.Font = Enum.Font.SciFi
  933. Hide.FontSize = Enum.FontSize.Size24
  934. Hide.Text = "Hide ["..string.upper(hideshowguikey).."]"
  935. Hide.TextColor3 = Color3.new(0, 0.333333, 1)
  936. Hide.TextSize = 20
  937. Hide.TextWrapped = true
  938. Hide.MouseButton1Down:connect(function(x, y)
  939. if showvar == true then
  940. showvar = false
  941. Main.Visible = false
  942. Show.Visible = true
  943. if printvar == true then
  944. print("Hidden")
  945. end
  946. end
  947. end)
  948. Show.MouseButton1Down:connect(function(x, y)
  949. if showvar == false then
  950. showvar = true
  951. Show.Visible = false
  952. Main.Visible = true
  953. if printvar == true then
  954. print("Shown")
  955. end
  956. end
  957. end)
  958. inputcode.InputBegan:connect(function(input)
  959. if input.KeyCode == Enum.KeyCode.LeftControl then
  960. if keyOff == true then
  961. keyOff = false
  962. KeybindsActive.Text = "Active"
  963. KeybindsActive.TextColor3 = Color3.new(0, 1, 0)
  964. elseif keyOff == false then
  965. keyOff = true
  966. KeybindsActive.Text = "Inactive"
  967. KeybindsActive.TextColor3 = Color3.new(1, 0, 1)
  968. end
  969. end
  970. end)
  971. mouse.keyDown:connect(function(key)
  972. if keyOff == false then
  973. if key == coinkey then --Coin Grabber
  974. coingrabberfunc()
  975. elseif key == MSkey then --Murderer/Sheriff Esp On
  976. murderer = "None"
  977. sheriff = "None"
  978. Clear()
  979. findmurderer()
  980. findsheriff()
  981. if printvar == true then
  982. print("Murderer/Sheriff")
  983. end
  984. MSESPActive.Text = "Active"
  985. MSESPActive.TextColor3 = Color3.new(0, 1, 0)
  986. PlayersEspActive.Text = "Inactive"
  987. PlayersEspActive.TextColor3 = Color3.new(1, 0, 1)
  988. EspOffActive.Text = "Inactive"
  989. EspOffActive.TextColor3 = Color3.new(1, 0, 1)
  990. elseif key == playerskey then --Player Esp On
  991. Clear()
  992. MSESPActive.Text = "Inactive"
  993. MSESPActive.TextColor3 = Color3.new(1, 0, 1)
  994. PlayersEspActive.Text = "Active"
  995. PlayersEspActive.TextColor3 = Color3.new(0, 1, 0)
  996. EspOffActive.Text = "Inactive"
  997. EspOffActive.TextColor3 = Color3.new(1, 0, 1)
  998. findplayers()
  999. if printvar == true then
  1000. print("Players")
  1001. end
  1002. elseif key == espoffkey then --Esp off
  1003. Clear()
  1004. if printvar == true then
  1005. print("Esp Disabled")
  1006. end
  1007. MSESPActive.Text = "Inactive"
  1008. MSESPActive.TextColor3 = Color3.new(1, 0, 1)
  1009. PlayersEspActive.Text = "Inactive"
  1010. PlayersEspActive.TextColor3 = Color3.new(1, 0, 1)
  1011. EspOffActive.Text = "Active"
  1012. EspOffActive.TextColor3 = Color3.new(0, 1, 0)
  1013. elseif key == flykey then --Fly
  1014. if flyvar == false then
  1015. sFLY()
  1016. flyvar = true
  1017. FlyActive.Text = "Active"
  1018. FlyActive.TextColor3 = Color3.new(0, 1, 0)
  1019. elseif flyvar == true then
  1020. flyvar = false
  1021. NOFLY()
  1022. FlyActive.Text = "Inactive"
  1023. FlyActive.TextColor3 = Color3.new(1, 0, 1)
  1024. end
  1025. elseif key == noclipkey then --Noclip toggle
  1026. if NClip == false then
  1027. NClip = true
  1028. if printvar == true then
  1029. print("Noclip Enabled")
  1030. end
  1031. NoclipActive.Text = "Active"
  1032. NoclipActive.TextColor3 = Color3.new(0, 1, 0)
  1033. elseif NClip == true then
  1034. NClip = false
  1035. if printvar == true then
  1036. print("Noclip Disabled")
  1037. end
  1038. NoclipActive.Text = "Inactive"
  1039. NoclipActive.TextColor3 = Color3.new(1, 0, 1)
  1040. end
  1041. elseif key == godmodekey then --Godmode
  1042. if godmodevar == false then
  1043. godmodevar = true
  1044. godmodefunc()
  1045. GodModeActive.Text = "Active"
  1046. GodModeActive.TextColor3 = Color3.new(0, 1, 0)
  1047. end
  1048. elseif key == xrayonkey then --Xray On
  1049. GuiXrayOnActive.Text = "Active"
  1050. GuiXrayOnActive.TextColor3 = Color3.new(0, 1, 0)
  1051. GuiXrayOffActive.Text = "Inactive"
  1052. GuiXrayOffActive.TextColor3 = Color3.new(1, 0, 1)
  1053. XrayOn(obj)
  1054. elseif key == xrayoffkey then --Xray Off
  1055. GuiXrayOnActive.Text = "Inactive"
  1056. GuiXrayOnActive.TextColor3 = Color3.new(1, 0, 1)
  1057. GuiXrayOffActive.Text = "Active"
  1058. GuiXrayOffActive.TextColor3 = Color3.new(0, 1, 0)
  1059. XrayOff(obj)
  1060. elseif key == bringgunkey then --Teleport Gun to You
  1061. if game.Workspace.GunDrop.CFrame ~= nil then
  1062. game.Workspace.GunDrop.CFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame
  1063. else
  1064. if printvar == true then
  1065. print("Gun not currently dropped")
  1066. end
  1067. end
  1068. elseif key == hideshowguikey then --Show/Hide Gui
  1069. if showvar == false then
  1070. showvar = true
  1071. Show.Visible = false
  1072. Main.Visible = true
  1073. if printvar == true then
  1074. print("Shown")
  1075. end
  1076. elseif showvar == true then
  1077. showvar = false
  1078. Main.Visible = false
  1079. Show.Visible = true
  1080. if printvar == true then
  1081. print("Hidden")
  1082. end
  1083. end
  1084. end
  1085. end
  1086. end)
  1087. end

comments powered by Disqus