YouTubeSwayRunsAll

MM2 HACK GUI MINE

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