Advertisement
midlow

Untitled

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