YouTubeSwayRunsAll

MM2 HACK GUI

Jun 2nd, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.76 KB | None | 0 0
  1.  
  2.  
  3. local pez = {};
  4.  
  5. pez.initiated = false;
  6.  
  7. local tabs = 0;
  8.  
  9. function pez:init()
  10. local nikopez = Instance.new("ScreenGui")
  11. local exframe = Instance.new("Frame")
  12.  
  13. nikopez.Name = "nikopez"
  14. nikopez.Parent = game.CoreGui
  15. nikopez.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  16.  
  17. pez.initiated = true;
  18. end
  19.  
  20. function pez:addTab(name,text)
  21. if (pez.initiated) then
  22. local exframe = Instance.new("Frame")
  23. local exflabel = Instance.new("TextLabel")
  24.  
  25. exframe.Active = true;
  26. exframe.Draggable = true;
  27. exframe.Name = name
  28. exframe.Parent = game.CoreGui.nikopez;
  29. exframe.BackgroundColor3 = Color3.new(1, 0.0941177, 0.0941177)
  30. exframe.BackgroundTransparency = 0.5
  31. exframe.BorderSizePixel = 0
  32. exframe.Position = UDim2.new(0.0218181908 * (tabs*5), 0, 0.0418994427, 0)
  33. exframe.Size = UDim2.new(0, 170, 0, 25)
  34.  
  35. exflabel.Name = "exflabel"
  36. exflabel.Parent = exframe
  37. exflabel.BackgroundColor3 = Color3.new(1, 1, 1)
  38. exflabel.BackgroundTransparency = 1
  39. exflabel.Position = UDim2.new(0.0352941193, 0, 0, 0)
  40. exflabel.Size = UDim2.new(0.964705884, 0, 1, 0)
  41. exflabel.Font = Enum.Font.ArialBold
  42. exflabel.Text = text
  43. exflabel.TextColor3 = Color3.new(1, 1, 1)
  44. exflabel.TextSize = 15
  45. exflabel.TextStrokeTransparency = 0.40000000596046
  46. exflabel.TextXAlignment = Enum.TextXAlignment.Left
  47. tabs = tabs + 1;
  48. else
  49. print("pez not initiated!");
  50. end
  51. end
  52.  
  53. function pez:addButton(tab,text,func)
  54. if (pez.initiated) then
  55. local count = 0;
  56. for i,v in pairs(game.CoreGui.nikopez[tab]:GetChildren()) do
  57. count = count + 1;
  58. end
  59.  
  60. local TextButton = Instance.new("TextButton");
  61.  
  62. TextButton.Parent = game.CoreGui.nikopez[tab];
  63. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  64. TextButton.BackgroundTransparency = 1
  65. TextButton.Position = UDim2.new(0.0352941193, 0, 1, (25*count)-25)
  66. TextButton.Size = UDim2.new(0.964705884, 0, 0, 25)
  67. TextButton.Font = Enum.Font.ArialBold
  68. TextButton.Text = "> "..text
  69. TextButton.TextColor3 = Color3.new(255,255,255)
  70. TextButton.TextSize = 13
  71. TextButton.TextStrokeTransparency = 0.40000000596046
  72. TextButton.TextXAlignment = Enum.TextXAlignment.Left
  73.  
  74. TextButton.MouseButton1Click:connect(function()
  75. TextButton.TextColor3 = Color3.new(0,255,0)
  76. func();
  77. wait(0.5)
  78. TextButton.TextColor3 = Color3.new(255,255,255)
  79. end)
  80. else
  81. print("pez not initiated!");
  82. end
  83. end
  84.  
  85. function pez:hide()
  86. if (pez.initiated) then
  87. for i,v in pairs(game.CoreGui.nikopez:GetChildren()) do
  88. if (v:IsA("Frame")) then
  89. if (v.Name ~= "cheats") then
  90. if (v.Name ~= "playerlist") then
  91. v.Visible = false;
  92. end
  93. end
  94. end
  95. end
  96. else
  97. print("pez not initiated!");
  98. end
  99. end
  100.  
  101. function pez:show()
  102. if (pez.initiated) then
  103. for i,v in pairs(game.CoreGui.nikopez:GetChildren()) do
  104. if (v:IsA("Frame")) then
  105. if (v.Name ~= "cheats") then
  106. v.Visible = true;
  107. end
  108. end
  109. end
  110. else
  111. print("pez not initiated!");
  112. end
  113. end
  114.  
  115. function pez:itemExists(tab,item)
  116. if (pez.initiated) then
  117. if (game.CoreGui.nikopez:FindFirstChild(tab)) then
  118. if (game.CoreGui.nikopez[tab]:FindFirstChild(item)) then
  119. return true;
  120. else
  121. return false;
  122. end
  123. end
  124. else
  125. print("pez not initiated!");
  126. end
  127. end
  128.  
  129. function pez:addLabel(tab,name,text)
  130. if (pez.initiated) then
  131. local count = 0;
  132. for i,v in pairs(game.CoreGui.nikopez[tab]:GetChildren()) do
  133. count = count + 1;
  134. end
  135.  
  136. local label = Instance.new("TextLabel");
  137.  
  138. label.Name = name;
  139. label.Parent = game.CoreGui.nikopez[tab];
  140. label.BackgroundColor3 = Color3.new(1, 1, 1)
  141. label.BackgroundTransparency = 1
  142. label.Position = UDim2.new(0.0352941193, 0, 1, (25*count)-25)
  143. label.Size = UDim2.new(0.964705884, 0, 0, 25)
  144. label.Font = Enum.Font.ArialBold
  145. label.Text = "> "..text
  146. label.TextColor3 = Color3.new(255,255,255)
  147. label.TextSize = 13
  148. label.TextStrokeTransparency = 0.40000000596046
  149. label.TextXAlignment = Enum.TextXAlignment.Left
  150. else
  151. print("pez not initiated!");
  152. end
  153. end
  154.  
  155. function pez:addColoredLabel(tab,name,text,color)
  156. if (pez.initiated) then
  157. local count = 0;
  158. for i,v in pairs(game.CoreGui.nikopez[tab]:GetChildren()) do
  159. count = count + 1;
  160. end
  161.  
  162. local label = Instance.new("TextLabel");
  163.  
  164. label.Name = name;
  165. label.Parent = game.CoreGui.nikopez[tab];
  166. label.BackgroundColor3 = Color3.new(1, 1, 1)
  167. label.BackgroundTransparency = 1
  168. label.Position = UDim2.new(0.0352941193, 0, 1, (25*count)-25)
  169. label.Size = UDim2.new(0.964705884, 0, 0, 25)
  170. label.Font = Enum.Font.ArialBold
  171. label.Text = "> "..text
  172. label.TextColor3 = color
  173. label.TextSize = 13
  174. label.TextStrokeTransparency = 0.40000000596046
  175. label.TextXAlignment = Enum.TextXAlignment.Left
  176. else
  177. print("pez not initiated!");
  178. end
  179. end
  180.  
  181. function pez:removeLabel(tab,name)
  182. if (pez.initiated) then
  183. if (game.CoreGui.nikopez:FindFirstChild(tab)) then
  184. if (game.CoreGui.nikopez[tab]:FindFirstChild(name)) then
  185. game.CoreGui.nikopez[tab]:FindFirstChild(name):Destroy();
  186. local count = 1;
  187. for i,v in pairs(game.CoreGui.nikopez[tab]:GetChildren()) do
  188. if (v.Name ~= "exflabel") then
  189. v.Position = UDim2.new(0.0352941193, 0, 1, (25*count)-25);
  190. count = count + 1;
  191. end
  192. end
  193. end
  194. else
  195. print(tab.." not found")
  196. end
  197. else
  198. print("pez not initiated!");
  199. end
  200. end
  201.  
  202. function pez:showTab(tab)
  203. if (pez.initiated) then
  204. if (game.CoreGui.nikopez:FindFirstChild(tab)) then
  205. game.CoreGui.nikopez[tab].Visible = true;
  206. end
  207. else
  208. print("pez not initiated!");
  209. end
  210. end
  211.  
  212. function pez:hideTab(tab)
  213. if (pez.initiated) then
  214. if (game.CoreGui.nikopez:FindFirstChild(tab)) then
  215. game.CoreGui.nikopez[tab].Visible = false;
  216. end
  217. else
  218. print("pez not initiated!");
  219. end
  220. end
  221.  
  222. function pez:clearTab(tab)
  223. if (pez.initiated) then
  224. if (game.CoreGui.nikopez:FindFirstChild(tab)) then
  225. game.CoreGui.nikopez[tab]:ClearAllChildren()
  226. end
  227. else
  228. print("pez not initiated!");
  229. end
  230. end
  231.  
  232. function pez:removeTab(tab)
  233. if (pez.initiated) then
  234. if (game.CoreGui.nikopez:FindFirstChild(tab)) then
  235. game.CoreGui.nikopez[tab]:Destroy();
  236. end
  237. else
  238. print("pez not initiated!");
  239. end
  240. end
  241.  
  242.  
  243.  
  244. function makebox(part,color)
  245. local yoniko = Instance.new("BillboardGui")
  246. local Frame = Instance.new("Frame")
  247.  
  248. yoniko.Name = "yoniko"
  249. yoniko.Parent = part
  250. yoniko.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  251. yoniko.AlwaysOnTop = true
  252. yoniko.LightInfluence = 1
  253. yoniko.Size = UDim2.new(4, 0, 6, 0)
  254.  
  255. Frame.Parent = yoniko
  256. Frame.BackgroundColor3 = color
  257. Frame.BackgroundTransparency = 0.5
  258. Frame.BorderSizePixel = 0
  259. Frame.Size = UDim2.new(1, 0, 1, 0)
  260. end
  261.  
  262. function makedot(part)
  263. local nikohead = Instance.new("BillboardGui")
  264. local Frame = Instance.new("Frame")
  265.  
  266. nikohead.Name = "nikohead"
  267. nikohead.Parent = part
  268. nikohead.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  269. nikohead.AlwaysOnTop = true
  270. nikohead.LightInfluence = 1
  271. nikohead.Size = UDim2.new(1, 0, 1, 0)
  272.  
  273. Frame.Parent = nikohead
  274. Frame.BackgroundColor3 = Color3.new(0,0,255);
  275. Frame.BackgroundTransparency = 0.20000000298023
  276. Frame.BorderColor3 = Color3.new(0, 0, 0)
  277. Frame.Rotation = 120
  278. Frame.Size = UDim2.new(1, 0, 1, 0)
  279. end
  280.  
  281. function checkTeam(plr)
  282. local bp = plr.Backpack
  283. local char = plr.Character
  284.  
  285. local x = false;
  286. for i,v in pairs(char:GetChildren()) do
  287. if v:FindFirstChild("IsGun") then
  288. if (v.IsGun.Value == true) then
  289. x = true;
  290. end
  291. end
  292. end
  293.  
  294. for i,v in pairs(bp:GetChildren()) do
  295. if v:FindFirstChild("IsGun") then
  296. if (v.IsGun.Value == true) then
  297. x = true;
  298. end
  299. end
  300. end
  301.  
  302. if (bp:FindFirstChild("Knife") or char:FindFirstChild("Knife")) then
  303. return 1;
  304. elseif (x) then
  305. return 2;
  306. else
  307. return 3;
  308. end
  309. end
  310.  
  311. pez:init();
  312.  
  313. enableds = {};
  314.  
  315. espon = false;
  316. fovon = false;
  317.  
  318. espgun = false;
  319. espmurderer = true;
  320. espsheriff = true;
  321. espinnocent = false;
  322.  
  323. tpgun = false;
  324. tpcoins = false;
  325.  
  326. noclip = false;
  327. fly = false;
  328. fast = false;
  329. highjump = false;
  330.  
  331. hidden = false;
  332.  
  333. showvisuals = true;
  334. showespsettings = true;
  335. showmovement = true;
  336. showitems = true;
  337. showenableds = true;
  338. showplayerlist = true;
  339.  
  340. pez:addTab("cheats","Enabled cheats");
  341.  
  342. function toggleesp()
  343. espon = not espon;
  344. if (espon) then
  345. pez:addLabel("cheats","esp","ESP");
  346. else
  347. pez:removeLabel("cheats","esp");
  348. end
  349. end
  350.  
  351. function togglefov()
  352. fovon = not fovon;
  353. if (fovon) then
  354. pez:addLabel("cheats","fov","FOV");
  355. else
  356. pez:removeLabel("cheats","fov");
  357. end
  358. end
  359.  
  360. function toggleespgun()
  361. espgun = not espgun;
  362. end
  363.  
  364. function toggleespmurderer()
  365. espmurderer = not espmurderer;
  366. end
  367.  
  368. function toggleespsheriff()
  369. espsheriff = not espsheriff;
  370. end
  371.  
  372. function toggleespinnocent()
  373. espinnocent = not espinnocent;
  374. end
  375.  
  376. function toggletpgun()
  377. tpgun = not tpgun;
  378. if (tpgun) then
  379. pez:addLabel("cheats","tpgun","Tp gun");
  380. else
  381. pez:removeLabel("cheats","tpgun");
  382. end
  383. end
  384.  
  385. function toggletpcoins()
  386. tpcoins = not tpcoins;
  387. if (tpcoins) then
  388. pez:addLabel("cheats","tpcoins","Tp coins");
  389. else
  390. pez:removeLabel("cheats","tpcoins");
  391. end
  392. end
  393.  
  394. function togglenoclip()
  395. noclip = not noclip;
  396. if (noclip) then
  397. pez:addLabel("cheats","noclip","Noclip");
  398. else
  399. pez:removeLabel("cheats","noclip");
  400. end
  401. end
  402.  
  403. function tplobby()
  404. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(-107,149,23))
  405. end
  406.  
  407. --FLY SCRIPT BY RGEENEUS
  408.  
  409. local speed = 50
  410.  
  411. local c
  412. local h
  413. local bv
  414. local bav
  415. local cam
  416. local flying
  417. local p = game.Players.LocalPlayer
  418. local buttons = {W = false, S = false, A = false, D = false, Moving = false}
  419.  
  420. local startFly = function () -- Call this function to begin flying
  421. if not p.Character or not p.Character.Head or flying then return end
  422. c = p.Character
  423. h = c.Humanoid
  424. h.PlatformStand = true
  425. cam = workspace:WaitForChild('Camera')
  426. bv = Instance.new("BodyVelocity")
  427. bav = Instance.new("BodyAngularVelocity")
  428. bv.Velocity, bv.MaxForce, bv.P = Vector3.new(0, 0, 0), Vector3.new(10000, 10000, 10000), 1000
  429. bav.AngularVelocity, bav.MaxTorque, bav.P = Vector3.new(0, 0, 0), Vector3.new(10000, 10000, 10000), 1000
  430. bv.Parent = c.Head
  431. bav.Parent = c.Head
  432. flying = true
  433. h.Died:connect(function() flying = false end)
  434. end
  435.  
  436. local endFly = function () -- Call this function to stop flying
  437. if not p.Character or not flying then return end
  438. h.PlatformStand = false
  439. bv:Destroy()
  440. bav:Destroy()
  441. flying = false
  442. end
  443.  
  444. game:GetService("UserInputService").InputBegan:connect(function (input, GPE)
  445. if GPE then return end
  446. for i, e in pairs(buttons) do
  447. if i ~= "Moving" and input.KeyCode == Enum.KeyCode[i] then
  448. buttons[i] = true
  449. buttons.Moving = true
  450. end
  451. end
  452. end)
  453.  
  454. game:GetService("UserInputService").InputEnded:connect(function (input, GPE)
  455. if GPE then return end
  456. local a = false
  457. for i, e in pairs(buttons) do
  458. if i ~= "Moving" then
  459. if input.KeyCode == Enum.KeyCode[i] then
  460. buttons[i] = false
  461. end
  462. if buttons[i] then a = true end
  463. end
  464. end
  465. buttons.Moving = a
  466. end)
  467.  
  468. local setVec = function (vec)
  469. return vec * (speed / vec.Magnitude)
  470. end
  471.  
  472. game:GetService("RunService").Heartbeat:connect(function (step) -- The actual fly function, called every frame
  473. if flying and c and c.PrimaryPart then
  474. local p = c.PrimaryPart.Position
  475. local cf = cam.CFrame
  476. local ax, ay, az = cf:toEulerAnglesXYZ()
  477. c:SetPrimaryPartCFrame(CFrame.new(p.x, p.y, p.z) * CFrame.Angles(ax, ay, az))
  478. if buttons.Moving then
  479. local t = Vector3.new()
  480. if buttons.W then t = t + (setVec(cf.lookVector)) end
  481. if buttons.S then t = t - (setVec(cf.lookVector)) end
  482. if buttons.A then t = t - (setVec(cf.rightVector)) end
  483. if buttons.D then t = t + (setVec(cf.rightVector)) end
  484. c:TranslateBy(t * step)
  485. end
  486. end
  487. end)
  488.  
  489.  
  490. function togglefly()
  491. if (fly) then
  492. fly = false;
  493. endFly()
  494. pez:removeLabel("cheats","fly");
  495. else
  496. fly = true;
  497. startFly()
  498. pez:addLabel("cheats","fly","Fly");
  499. end
  500. end
  501.  
  502. function togglefast()
  503. fast = not fast;
  504. if (fast) then
  505. pez:addLabel("cheats","fast","Fast");
  506. else
  507. pez:removeLabel("cheats","fast");
  508. end
  509. end
  510.  
  511. function togglejump()
  512. highjump = not highjump;
  513. if (highjump) then
  514. pez:addLabel("cheats","highjump","Highjump");
  515. else
  516. pez:removeLabel("cheats","highjump");
  517. end
  518. end
  519.  
  520. function setday()
  521. local lighting = game.Lighting
  522. lighting.TimeOfDay = 12;
  523. end
  524.  
  525. function setnight()
  526. local lighting = game.Lighting
  527. lighting.TimeOfDay = 22;
  528. end
  529.  
  530. game:service'RunService'.Stepped:connect(function()
  531. if (noclip) then game.Players.LocalPlayer.Character:WaitForChild("Humanoid"):ChangeState(11) end
  532. if (fast) then game.Players.LocalPlayer.Character:WaitForChild("Humanoid").WalkSpeed = 24; else game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16; end
  533. if (highjump) then game.Players.LocalPlayer.Character:WaitForChild("Humanoid").JumpPower = 120; else game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50; end
  534. end)
  535.  
  536. function onKeyPress(inputObject, gameProcessedEvent)
  537. if inputObject.KeyCode == Enum.KeyCode.Home then
  538. if (hidden) then
  539. print(hidden)
  540. hidden = false;
  541. pez:show();
  542. else
  543. print(hidden)
  544. hidden = true;
  545. pez:hide();
  546. end
  547. end
  548. end
  549.  
  550. function togglevisuals()
  551. if (showvisuals) then
  552. showvisuals = false;
  553. pez:hideTab("visuals");
  554. else
  555. showvisuals =true;
  556. pez:showTab("visuals");
  557. end
  558. end
  559.  
  560. function toggleespsettings()
  561. if (showespsettings) then
  562. showespsettings = false;
  563. pez:hideTab("espsettings");
  564. else
  565. showespsettings =true;
  566. pez:showTab("espsettings");
  567. end
  568. end
  569.  
  570. function toggleitems()
  571. if (showitems) then
  572. showitems = false;
  573. pez:hideTab("items");
  574. else
  575. showitems =true;
  576. pez:showTab("items");
  577. end
  578. end
  579.  
  580. function togglemovement()
  581. if (showmovement) then
  582. showmovement = false;
  583. pez:hideTab("movement");
  584. else
  585. showmovement =true;
  586. pez:showTab("movement");
  587. end
  588. end
  589.  
  590. function toggleenableds()
  591. if (showenableds) then
  592. showenableds = false;
  593. pez:hideTab("cheats");
  594. else
  595. showenableds =true;
  596. pez:showTab("cheats");
  597. end
  598. end
  599.  
  600. function toggleplayerlist()
  601. if (showplayerlist) then
  602. showplayerlist = false;
  603. pez:hideTab("playerlist");
  604. else
  605. showplayerlist =true;
  606. pez:showTab("playerlist");
  607. end
  608. end
  609.  
  610. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  611.  
  612. pez:addTab("gui","Gui");
  613. pez:addLabel("gui","info","Toggle gui: Home")
  614. pez:addButton("gui","Visuals",togglevisuals)
  615. pez:addButton("gui","Esp settings",toggleespsettings)
  616. pez:addButton("gui","Items",toggleitems)
  617. pez:addButton("gui","Movement",togglemovement)
  618. pez:addButton("gui","Enabled cheats",toggleenableds)
  619. pez:addButton("gui","Playerlist",toggleplayerlist)
  620.  
  621. pez:addTab("visuals","Visuals");
  622. pez:addButton("visuals","ESP",toggleesp)
  623. pez:addButton("visuals","FOV",togglefov)
  624. pez:addButton("visuals","Set night",setnight)
  625. pez:addButton("visuals","Set day",setday)
  626.  
  627. pez:addTab("espsettings","Esp settings");
  628. pez:addButton("espsettings","Show murderer",toggleespmurderer)
  629. pez:addButton("espsettings","Show sheriff",toggleespsheriff)
  630. pez:addButton("espsettings","Show innocents",toggleespinnocent)
  631. pez:addButton("espsettings","Show dropped gun",toggleespgun);
  632.  
  633. pez:addTab("items","Items");
  634. pez:addButton("items","Tp coins",toggletpcoins)
  635. pez:addButton("items","Tp gun",toggletpgun)
  636.  
  637. pez:addTab("movement","Movement");
  638. pez:addButton("movement","Noclip",togglenoclip)
  639. pez:addButton("movement","Fly",togglefly)
  640. pez:addButton("movement","Fast",togglefast)
  641. pez:addButton("movement","Highjump",togglejump)
  642. pez:addButton("movement","Tp to lobby",tplobby)
  643.  
  644. pez:addTab("playerlist","Playerlist")
  645.  
  646. pez:addTab("credits","Credits");
  647. pez:addLabel("credits","nikoo","niko#1809")
  648.  
  649. print("press Home to toggle the gui");
  650. print("mm2 script by niko#1809 / lekolar2 ;)")
  651.  
  652. local cor = coroutine.wrap(function()
  653. while(true) do
  654. wait(1)
  655. for i,v in pairs(game.Players:GetPlayers()) do
  656. if (v.Character) then
  657. if (pez:itemExists("playerlist",v.Name)) then
  658. pez:removeLabel("playerlist",v.Name)
  659. end
  660.  
  661. local team = checkTeam(v);
  662.  
  663. if (team == 1) then
  664. pez:addColoredLabel("playerlist",v.Name,v.Name,Color3.new(255,0,0))
  665. elseif (team == 2) then
  666. pez:addColoredLabel("playerlist",v.Name,v.Name,Color3.new(0,0,255))
  667. else
  668. pez:addColoredLabel("playerlist",v.Name,v.Name,Color3.new(0,255,0))
  669. end
  670. end
  671. end
  672. end
  673. end)
  674.  
  675. cor();
  676.  
  677. x = 0;
  678.  
  679. while(true)do
  680. if (x == 200) then pez:removeTab("credits"); else x = x + 1; end
  681. wait();
  682. if (fovon) then
  683. local cam = workspace.CurrentCamera;
  684. cam.FieldOfView = 100;
  685. else
  686. local cam = workspace.CurrentCamera;
  687. cam.FieldOfView = 70;
  688. end
  689. if (tpcoins) then
  690. for i,v in pairs(workspace:GetChildren()) do
  691. if (v:FindFirstChild("CoinContainer")) then
  692. for w,g in pairs(v.CoinContainer:GetChildren()) do
  693. g.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame;
  694. end
  695. end
  696. end
  697. end
  698. if (tpgun) then
  699. if (workspace:FindFirstChild("GunDrop")) then
  700. workspace.GunDrop.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  701. end
  702. end
  703. if (espon) then
  704. if (espgun) then
  705. if (workspace:FindFirstChild("GunDrop")) then
  706. if (workspace.GunDrop:FindFirstChild("nikohead")) then
  707. workspace.GunDrop.nikohead:Destroy()
  708. end
  709. makedot(workspace.GunDrop);
  710. end
  711. end
  712. for i,v in pairs(game.Players:GetPlayers()) do
  713. if (v.Character) then
  714. if (v.Character:WaitForChild("HumanoidRootPart")) then
  715. if (v~=game.Players.LocalPlayer) then
  716. if (v.Character:WaitForChild("HumanoidRootPart"):FindFirstChild("yoniko")) then
  717. v.Character:WaitForChild("HumanoidRootPart").yoniko:Destroy()
  718. end
  719. local team = checkTeam(v)
  720.  
  721. if (team == 1) then
  722. if (espmurderer) then makebox(v.Character.HumanoidRootPart,Color3.new(255,0,0)); end
  723. elseif (team == 2) then
  724. if (espsheriff) then makebox(v.Character.HumanoidRootPart,Color3.new(0,0,255)); end
  725. else
  726. if (espinnocent) then makebox(v.Character.HumanoidRootPart,Color3.new(0,255,0)); end
  727. end
  728. end
  729. end
  730. end
  731. end
  732. end
  733. end
Add Comment
Please, Sign In to add comment