Advertisement
softywrld

HD admin Module

Feb 10th, 2020
15,161
1
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 103.66 KB | None | 1 0
  1. local main = _G.HDAdminMain
  2. local settings = main.settings
  3.  
  4.  
  5.  
  6. local module = {
  7.  
  8.  
  9.  
  10.  
  11. ----------------------------------- (0) NONADMIN COMMANDS -----------------------------------
  12. {
  13. Name = "ping";
  14. Aliases = {};
  15. Prefixes = {settings.Prefix};
  16. Rank = 0;
  17. RankLock = false;
  18. Loopable = false;
  19. Tags = {};
  20. Description = "Returns your ping (latency) in ms";
  21. Contributors = {"ForeverHD", "Exo_Byte"};
  22. --
  23. Args = {"Player"};
  24. ClientCommand = true;
  25. --
  26. };
  27.  
  28.  
  29. -----------------------------------
  30. {
  31. Name = "commands";
  32. Aliases = {"cmds"};
  33. Prefixes = {settings.Prefix};
  34. Rank = 0;
  35. RankLock = false;
  36. Loopable = false;
  37. Tags = {};
  38. Description = "";
  39. Contributors = {"ForeverHD"};
  40. --
  41. Args = {"Player"};
  42. Function = function(speaker, args)
  43. main.signals.ShowPage:FireClient(speaker, {"Commands", "Commands"})
  44. end;
  45. --
  46. };
  47.  
  48.  
  49. -----------------------------------
  50. {
  51. Name = "morphs";
  52. Aliases = {};
  53. Prefixes = {settings.Prefix};
  54. Rank = 0;
  55. RankLock = false;
  56. Loopable = false;
  57. Tags = {};
  58. Description = "";
  59. Contributors = {"ForeverHD"};
  60. --
  61. Args = {"Player"};
  62. Function = function(speaker, args)
  63. main.signals.ShowPage:FireClient(speaker, {"Commands", "Morphs"})
  64. end;
  65. --
  66. };
  67.  
  68.  
  69. -----------------------------------
  70. {
  71. Name = "donor";
  72. Aliases = {};
  73. Prefixes = {settings.Prefix};
  74. Rank = 0;
  75. RankLock = false;
  76. Loopable = false;
  77. Tags = {};
  78. Description = "";
  79. Contributors = {"ForeverHD"};
  80. --
  81. Args = {"Player"};
  82. Function = function(speaker, args)
  83. main.signals.ShowPage:FireClient(speaker, {"Special", "Donor"})
  84. end;
  85. --
  86. };
  87.  
  88.  
  89. -----------------------------------
  90. {
  91. Name = "serverRanks";
  92. Aliases = {"admins"};
  93. Prefixes = {settings.Prefix};
  94. Rank = 0;
  95. RankLock = false;
  96. Loopable = false;
  97. Tags = {};
  98. Description = "";
  99. Contributors = {"ForeverHD"};
  100. --
  101. Args = {"Player"};
  102. Function = function(speaker, args)
  103. main.signals.ShowPage:FireClient(speaker, {"Admin", "Server Ranks"})
  104. end;
  105. --
  106. };
  107.  
  108.  
  109. -----------------------------------
  110. {
  111. Name = "ranks";
  112. Aliases = {};
  113. Prefixes = {settings.Prefix};
  114. Rank = 0;
  115. RankLock = false;
  116. Loopable = false;
  117. Tags = {};
  118. Description = "";
  119. Contributors = {"ForeverHD"};
  120. --
  121. Args = {"Player"};
  122. Function = function(speaker, args)
  123. main.signals.ShowPage:FireClient(speaker, {"Admin", "Ranks"})
  124. end;
  125. --
  126. };
  127.  
  128.  
  129. -----------------------------------
  130. {
  131. Name = "banland";
  132. Aliases = {"banlist"};
  133. Prefixes = {settings.Prefix};
  134. Rank = 0;
  135. RankLock = false;
  136. Loopable = false;
  137. Tags = {};
  138. Description = "";
  139. Contributors = {"ForeverHD"};
  140. --
  141. Args = {"Player"};
  142. Function = function(speaker, args)
  143. main.signals.ShowPage:FireClient(speaker, {"Admin", "Banland"})
  144. end;
  145. --
  146. };
  147.  
  148.  
  149. -----------------------------------
  150. {
  151. Name = "logs";
  152. Aliases = {"commandLogs"};
  153. Prefixes = {settings.Prefix};
  154. Rank = 2;
  155. RankLock = false;
  156. Loopable = false;
  157. Tags = {};
  158. Description = "";
  159. Contributors = {"ForeverHD"};
  160. --
  161. Args = {"Player"};
  162. Function = function(speaker, args)
  163. local plr = args[1]
  164. local log = main:GetModule("cf"):GetLog("command", plr)
  165. main.signals.CreateLog:FireClient(plr, {"commandLogs", log})
  166. end;
  167. --
  168. };
  169.  
  170.  
  171. -----------------------------------
  172. {
  173. Name = "chatLogs";
  174. Aliases = {"clogs"};
  175. Prefixes = {settings.Prefix};
  176. Rank = 2;
  177. RankLock = false;
  178. Loopable = false;
  179. Tags = {};
  180. Description = "";
  181. Contributors = {"ForeverHD"};
  182. --
  183. Args = {"Player"};
  184. Function = function(speaker, args)
  185. local plr = args[1]
  186. local log = main:GetModule("cf"):GetLog("chat", plr)
  187. main.signals.CreateLog:FireClient(plr, {"chatLogs", log})
  188. end;
  189. --
  190. };
  191.  
  192.  
  193. -----------------------------------
  194. {
  195. Name = "info";
  196. Aliases = {"about"};
  197. Prefixes = {settings.Prefix};
  198. Rank = 0;
  199. RankLock = false;
  200. Loopable = false;
  201. Tags = {};
  202. Description = "";
  203. Contributors = {"ForeverHD"};
  204. --
  205. Args = {"Player"};
  206. Function = function(speaker, args)
  207. main.signals.ShowPage:FireClient(speaker, {"About", "Info"})
  208. end;
  209. --
  210. };
  211.  
  212.  
  213. -----------------------------------
  214. {
  215. Name = "credits";
  216. Aliases = {};
  217. Prefixes = {settings.Prefix};
  218. Rank = 0;
  219. RankLock = false;
  220. Loopable = false;
  221. Tags = {};
  222. Description = "";
  223. Contributors = {"ForeverHD"};
  224. --
  225. Args = {"Player"};
  226. Function = function(speaker, args)
  227. main.signals.ShowPage:FireClient(speaker, {"About", "Credits"})
  228. end;
  229. --
  230. };
  231.  
  232.  
  233. -----------------------------------
  234. {
  235. Name = "updates";
  236. Aliases = {};
  237. Prefixes = {settings.Prefix};
  238. Rank = 0;
  239. RankLock = false;
  240. Loopable = false;
  241. Tags = {};
  242. Description = "";
  243. Contributors = {"ForeverHD"};
  244. --
  245. Args = {"Player"};
  246. Function = function(speaker, args)
  247. main.signals.ShowPage:FireClient(speaker, {"About", "Updates"})
  248. end;
  249. --
  250. };
  251.  
  252.  
  253. -----------------------------------
  254. {
  255. Name = "settings";
  256. Aliases = {};
  257. Prefixes = {settings.Prefix};
  258. Rank = 0;
  259. RankLock = false;
  260. Loopable = false;
  261. Tags = {};
  262. Description = "";
  263. Contributors = {"ForeverHD"};
  264. --
  265. Args = {"Player"};
  266. Function = function(speaker, args)
  267. main.signals.ShowPage:FireClient(speaker, {"Settings", "Custom"})
  268. end;
  269. --
  270. };
  271.  
  272.  
  273. -----------------------------------
  274. {
  275. Name = "prefix";
  276. Aliases = {};
  277. Prefixes = {settings.UniversalPrefix, settings.Prefix};
  278. Rank = 0;
  279. RankLock = false;
  280. Loopable = false;
  281. Tags = {};
  282. Description = "";
  283. Contributors = {"ForeverHD"};
  284. --
  285. Args = {"Player"};
  286. Function = function(speaker, args)
  287. local prefix = main.pd[speaker].Prefix
  288. main:GetModule("cf"):FormatAndFireNotice(speaker, "InformPrefix", prefix)
  289. end;
  290. --
  291. };
  292.  
  293.  
  294. -----------------------------------
  295. {
  296. Name = "clear";
  297. Aliases = {"clr"};
  298. Prefixes = {settings.Prefix};
  299. Rank = 0;
  300. RankLock = false;
  301. Loopable = false;
  302. Tags = {};
  303. Description = "Clears all messages off your screen";
  304. Contributors = {"ForeverHD"};
  305. --
  306. Args = {"Player"};
  307. Function = function(speaker, args)
  308. local prefix = main.pd[speaker].Prefix
  309. main.signals.Clear:FireClient(speaker)
  310. end;
  311. --
  312. };
  313.  
  314.  
  315. -----------------------------------
  316. {
  317. Name = "radio";
  318. Aliases = {};
  319. Prefixes = {settings.Prefix};
  320. Rank = 0;
  321. RankLock = false;
  322. Loopable = false;
  323. Tags = {};
  324. Description = "COMING SOON";
  325. Contributors = {"ForeverHD"};
  326. --
  327. Args = {"Player"};
  328. Function = function(speaker, args)
  329.  
  330. end;
  331. --
  332. };
  333.  
  334.  
  335. -----------------------------------
  336. {
  337. Name = "getSound";
  338. Aliases = {"getSong", "getMusic"};
  339. Prefixes = {settings.Prefix};
  340. Rank = 0;
  341. RankLock = false;
  342. Loopable = false;
  343. Tags = {};
  344. Description = "";
  345. Contributors = {"ForeverHD"};
  346. --
  347. Args = {"Player"};
  348. Function = function(speaker, args)
  349. local sound = workspace:FindFirstChild("HDAdminSound")
  350. if sound and sound.IsPlaying then
  351. local soundId = string.match(sound.SoundId, "%d+")
  352. main:GetModule("cf"):FormatAndFireNotice(speaker, "GetSoundSuccess", soundId)
  353. pcall(function() main.marketplaceService:PromptPurchase(speaker, tonumber(soundId)) end)
  354. else
  355. main:GetModule("cf"):FormatAndFireNotice(speaker, "GetSoundFail")
  356. end
  357. end;
  358. --
  359. };
  360.  
  361.  
  362. -----------------------------------
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377. ----------------------------------- (1) VIP COMMANDS -----------------------------------
  378. {
  379. Name = "cmdbar";
  380. Aliases = {"commandBar"};
  381. Prefixes = {settings.Prefix};
  382. Rank = 1;
  383. RankLock = false;
  384. Loopable = false;
  385. Tags = {};
  386. Description = "";
  387. Contributors = {"ForeverHD"};
  388. --
  389. Args = {"Player"};
  390. ClientCommand = true;
  391. --
  392. };
  393.  
  394.  
  395. -----------------------------------
  396. {
  397. Name = "cmdbar2";
  398. Aliases = {"commandBar2"};
  399. Prefixes = {settings.Prefix};
  400. Rank = 1;
  401. RankLock = false;
  402. Loopable = false;
  403. Tags = {};
  404. Description = "";
  405. Contributors = {"ForeverHD"};
  406. --
  407. Args = {"Player"};
  408. ClientCommandToActivate = true;
  409. --
  410. };
  411.  
  412.  
  413. -----------------------------------
  414. {
  415. Name = "refresh";
  416. Aliases = {"re", "reset"};
  417. Prefixes = {settings.Prefix};
  418. Rank = 1;
  419. RankLock = false;
  420. Loopable = false;
  421. Tags = {};
  422. Description = "Clears all effects and loops from the player";
  423. Contributors = {"ForeverHD"};
  424. --
  425. Args = {"Player"};
  426. Function = function(speaker, args)
  427. local plr = args[1]
  428. for commandName, people in pairs(main.functionsInLoop) do
  429. if people[plr] then
  430. main.functionsInLoop[commandName][plr] = nil
  431. end
  432. end
  433. local originalCFrame
  434. local head = main:GetModule("cf"):GetHead(plr)
  435. if head then
  436. originalCFrame = head.CFrame
  437. end
  438. plr:LoadCharacter()
  439. local head = plr.Character:WaitForChild("Head")
  440. if originalCFrame then
  441. head.CFrame = originalCFrame
  442. end
  443. end;
  444. --
  445. };
  446.  
  447.  
  448. -----------------------------------
  449. {
  450. Name = "respawn";
  451. Aliases = {"res"};
  452. Prefixes = {settings.Prefix};
  453. Rank = 1;
  454. RankLock = false;
  455. Loopable = false;
  456. Tags = {};
  457. Description = "";
  458. Contributors = {"ForeverHD"};
  459. --
  460. Args = {"Player"};
  461. Function = function(speaker, args)
  462. local plr = args[1]
  463. plr:LoadCharacter()
  464. end;
  465. --
  466. };
  467.  
  468.  
  469. -----------------------------------
  470. {
  471. Name = "shirt";
  472. Aliases = {};
  473. Prefixes = {settings.Prefix};
  474. Rank = 1;
  475. RankLock = false;
  476. Loopable = false;
  477. Tags = {};
  478. Description = "";
  479. Contributors = {"ForeverHD"};
  480. --
  481. Args = {"Player", "Number"};
  482. Function = function(speaker, args)
  483. local plr = args[1]
  484. local id = args[2]
  485. main:GetModule("MorphHandler"):ChangeProperty(plr, "Shirt", id)
  486. end;
  487. --
  488. };
  489.  
  490.  
  491. -----------------------------------
  492. {
  493. Name = "pants";
  494. Aliases = {};
  495. Prefixes = {settings.Prefix};
  496. Rank = 1;
  497. RankLock = false;
  498. Loopable = false;
  499. Tags = {};
  500. Description = "";
  501. Contributors = {"ForeverHD"};
  502. --
  503. Args = {"Player", "Number"};
  504. Function = function(speaker, args)
  505. local plr = args[1]
  506. local id = args[2]
  507. main:GetModule("MorphHandler"):ChangeProperty(plr, "Pants", id)
  508. end;
  509. --
  510. };
  511.  
  512.  
  513. -----------------------------------
  514. {
  515. Name = "hat";
  516. Aliases = {"accessory"};
  517. Prefixes = {settings.Prefix};
  518. Rank = 1;
  519. RankLock = false;
  520. Loopable = false;
  521. Tags = {};
  522. Description = "";
  523. Contributors = {"ForeverHD"};
  524. --
  525. Args = {"Player", "Number"};
  526. Function = function(speaker, args)
  527. local plr = args[1]
  528. local id = args[2]
  529. main:GetModule("MorphHandler"):AddAccessory(plr, id)
  530. end;
  531. --
  532. };
  533.  
  534.  
  535. -----------------------------------
  536. {
  537. Name = "clearHats";
  538. Aliases = {"clrHats", "clearAccessories", "clrAccessories", "removeHats", "removeAccessories",};
  539. Prefixes = {settings.Prefix};
  540. Rank = 1;
  541. RankLock = false;
  542. Loopable = false;
  543. Tags = {};
  544. Description = "";
  545. Contributors = {"ForeverHD"};
  546. --
  547. Args = {"Player"};
  548. Function = function(speaker, args)
  549. local plr = args[1]
  550. main:GetModule("MorphHandler"):ClearAccessories(plr)
  551. end;
  552. --
  553. };
  554.  
  555.  
  556. -----------------------------------
  557. {
  558. Name = "face";
  559. Aliases = {};
  560. Prefixes = {settings.Prefix};
  561. Rank = 1;
  562. RankLock = false;
  563. Loopable = false;
  564. Tags = {};
  565. Description = "";
  566. Contributors = {"ForeverHD"};
  567. --
  568. Args = {"Player", "Number"};
  569. Function = function(speaker, args)
  570. local plr = args[1]
  571. local id = args[2]
  572. main:GetModule("MorphHandler"):ChangeProperty(plr, "Face", id)
  573. end;
  574. --
  575. };
  576.  
  577.  
  578. -----------------------------------
  579. {
  580. Name = "invisible";
  581. Aliases = {"invis",};
  582. Prefixes = {settings.Prefix};
  583. Rank = 1;
  584. RankLock = false;
  585. Loopable = false;
  586. Tags = {};
  587. Description = "";
  588. Contributors = {"ForeverHD"};
  589. --
  590. Args = {"Player"};
  591. Function = function(speaker, args)
  592. local plr = args[1]
  593. if plr.Character then
  594. main:GetModule("cf"):SetTransparency(plr.Character, 1)
  595. end
  596. end;
  597. --
  598. };
  599.  
  600.  
  601. -----------------------------------
  602. {
  603. Name = "visible";
  604. Aliases = {"vis",};
  605. Prefixes = {settings.Prefix};
  606. Rank = 1;
  607. RankLock = false;
  608. Loopable = false;
  609. Tags = {};
  610. Description = "";
  611. Contributors = {"ForeverHD"};
  612. --
  613. Args = {"Player"};
  614. Function = function(speaker, args)
  615. local plr = args[1]
  616. if plr.Character then
  617. main:GetModule("cf"):SetTransparency(plr.Character, 0)
  618. end
  619. end;
  620. --
  621. };
  622.  
  623.  
  624. -----------------------------------
  625. {
  626. Name = "paint";
  627. Aliases = {"color","colour",};
  628. Prefixes = {settings.Prefix};
  629. Rank = 1;
  630. RankLock = false;
  631. Loopable = false;
  632. Tags = {};
  633. Description = "";
  634. Contributors = {"ForeverHD"};
  635. --
  636. Args = {"Player", "Color"};
  637. Function = function(speaker, args)
  638. local plr = args[1]
  639. local color = args[2]
  640. if plr.Character then
  641. main:GetModule("MorphHandler"):ClearProperty(plr, "Shirt")
  642. main:GetModule("MorphHandler"):ClearProperty(plr, "Pants")
  643. main:GetModule("MorphHandler"):ChangeAllBodyColors(plr, color)
  644. end
  645. end;
  646. --
  647. };
  648.  
  649.  
  650. -----------------------------------
  651. {
  652. Name = "material";
  653. Aliases = {"mat","surface",};
  654. Prefixes = {settings.Prefix};
  655. Rank = 1;
  656. RankLock = false;
  657. Loopable = false;
  658. Tags = {};
  659. Description = "";
  660. Contributors = {"ForeverHD"};
  661. --
  662. Args = {"Player", "Material"};
  663. Function = function(speaker, args)
  664. local plr = args[1]
  665. local material = args[2]
  666. local char = plr.Character
  667. if char then
  668. main:GetModule("cf"):SetFakeBodyParts(char, {Material = material})
  669. end
  670. end;
  671. --
  672. };
  673.  
  674.  
  675. -----------------------------------
  676. {
  677. Name = "reflectance";
  678. Aliases = {"ref","shiny"};
  679. Prefixes = {settings.Prefix};
  680. Rank = 1;
  681. RankLock = false;
  682. Loopable = false;
  683. Tags = {};
  684. Description = "";
  685. Contributors = {"ForeverHD"};
  686. --
  687. Args = {"Player", "Number"};
  688. Function = function(speaker, args)
  689. local plr = args[1]
  690. local number = args[2]
  691. local char = plr.Character
  692. if char then
  693. main:GetModule("cf"):SetFakeBodyParts(char, {Reflectance = number})
  694. end
  695. end;
  696. --
  697. };
  698.  
  699.  
  700. -----------------------------------
  701. {
  702. Name = "transparency";
  703. Aliases = {"trans",};
  704. Prefixes = {settings.Prefix};
  705. Rank = 1;
  706. RankLock = false;
  707. Loopable = false;
  708. Tags = {};
  709. Description = "";
  710. Contributors = {"ForeverHD"};
  711. --
  712. Args = {"Player", "Number"};
  713. Function = function(speaker, args)
  714. local plr = args[1]
  715. local number = args[2]
  716. local char = plr.Character
  717. if char then
  718. main:GetModule("cf"):SetFakeBodyParts(char, {Transparency = number})
  719. end
  720. end;
  721. --
  722. };
  723.  
  724.  
  725. -----------------------------------
  726. {
  727. Name = "glass";
  728. Aliases = {};
  729. Prefixes = {settings.Prefix};
  730. Rank = 1;
  731. RankLock = false;
  732. Loopable = false;
  733. Tags = {};
  734. Description = "";
  735. Contributors = {"ForeverHD"};
  736. --
  737. Args = {"Player"};
  738. Function = function(speaker, args)
  739. local plr = args[1]
  740. local char = plr.Character
  741. if char then
  742. main:GetModule("cf"):SetFakeBodyParts(char, {Color = Color3.fromRGB(255, 255, 255), Material = Enum.Material.Glass, Transparency = 0.5})
  743. end
  744. end;
  745. --
  746. };
  747.  
  748.  
  749. -----------------------------------
  750. {
  751. Name = "neon";
  752. Aliases = {};
  753. Prefixes = {settings.Prefix};
  754. Rank = 1;
  755. RankLock = false;
  756. Loopable = false;
  757. Tags = {};
  758. Description = "";
  759. Contributors = {"ForeverHD"};
  760. --
  761. Args = {"Player"};
  762. Function = function(speaker, args)
  763. local plr = args[1]
  764. local char = plr.Character
  765. if char then
  766. main:GetModule("cf"):SetFakeBodyParts(char, {Color = Color3.fromRGB(150, 150, 150), Material = Enum.Material.Neon, Transparency = 0})
  767. end
  768. end;
  769. --
  770. };
  771.  
  772.  
  773. -----------------------------------
  774. {
  775. Name = "shine";
  776. Aliases = {};
  777. Prefixes = {settings.Prefix};
  778. Rank = 1;
  779. RankLock = false;
  780. Loopable = false;
  781. Tags = {};
  782. Description = "";
  783. Contributors = {"ForeverHD"};
  784. --
  785. Args = {"Player"};
  786. Function = function(speaker, args)
  787. local plr = args[1]
  788. local char = plr.Character
  789. if char then
  790. main:GetModule("cf"):SetFakeBodyParts(char, {Reflectance = 0, Material = Enum.Material.Neon, Transparency = 0.5})
  791. end
  792. end;
  793. --
  794. };
  795.  
  796.  
  797. -----------------------------------
  798. {
  799. Name = "ghost";
  800. Aliases = {};
  801. Prefixes = {settings.Prefix};
  802. Rank = 1;
  803. RankLock = false;
  804. Loopable = false;
  805. Tags = {};
  806. Description = "";
  807. Contributors = {"ForeverHD"};
  808. --
  809. Args = {"Player"};
  810. Function = function(speaker, args)
  811. local plr = args[1]
  812. local char = plr.Character
  813. if char then
  814. main:GetModule("cf"):SetFakeBodyParts(char, {Reflectance = 0, Color = Color3.fromRGB(255, 255, 255), Material = Enum.Material.SmoothPlastic, Transparency = 0.7})
  815. end
  816. end;
  817. --
  818. };
  819.  
  820.  
  821. -----------------------------------
  822. {
  823. Name = "gold";
  824. Aliases = {};
  825. Prefixes = {settings.Prefix};
  826. Rank = 1;
  827. RankLock = false;
  828. Loopable = false;
  829. Tags = {};
  830. Description = "";
  831. Contributors = {"ForeverHD"};
  832. --
  833. Args = {"Player"};
  834. Function = function(speaker, args)
  835. local plr = args[1]
  836. local char = plr.Character
  837. if char then
  838. main:GetModule("cf"):SetFakeBodyParts(char, {Reflectance = 0.5, Color = Color3.fromRGB(255, 176, 0), Material = Enum.Material.SmoothPlastic, Transparency = 0})
  839. end
  840. end;
  841. --
  842. };
  843.  
  844.  
  845. -----------------------------------
  846. {
  847. Name = "jump";
  848. Aliases = {};
  849. Prefixes = {settings.Prefix};
  850. Rank = 1;
  851. RankLock = false;
  852. Loopable = false;
  853. Tags = {};
  854. Description = "";
  855. Contributors = {"ForeverHD"};
  856. --
  857. Args = {"Player"};
  858. Function = function(speaker, args)
  859. local plr = args[1]
  860. local humanoid = main:GetModule("cf"):GetHumanoid(plr)
  861. if humanoid then
  862. humanoid.Jump = true
  863. end
  864. end;
  865. --
  866. };
  867.  
  868.  
  869. -----------------------------------
  870. {
  871. Name = "sit";
  872. Aliases = {};
  873. Prefixes = {settings.Prefix};
  874. Rank = 1;
  875. RankLock = false;
  876. Loopable = false;
  877. Tags = {};
  878. Description = "";
  879. Contributors = {"ForeverHD"};
  880. --
  881. Args = {"Player"};
  882. Function = function(speaker, args)
  883. local plr = args[1]
  884. local humanoid = main:GetModule("cf"):GetHumanoid(plr)
  885. if humanoid then
  886. humanoid.Sit = true
  887. end
  888. end;
  889. --
  890. };
  891.  
  892.  
  893. -----------------------------------
  894. {
  895. Name = "bigHead";
  896. Aliases = {"bhead"};
  897. Prefixes = {settings.Prefix};
  898. Rank = 1;
  899. RankLock = false;
  900. Loopable = false;
  901. Tags = {};
  902. Description = "";
  903. Contributors = {"ForeverHD"};
  904. --
  905. Args = {"Player"};
  906. Function = function(speaker, args)
  907. local plr = args[1]
  908. main:GetModule("MorphHandler"):SetHeadMeshSize(plr, Vector3.new(2,2,2))
  909. end;
  910. UnFunction = function(speaker, args)
  911. local plr = args[1]
  912. main:GetModule("MorphHandler"):SetHeadMeshSize(plr, Vector3.new(1,1,1))
  913. end;
  914. --
  915. };
  916.  
  917.  
  918. -----------------------------------
  919. {
  920. Name = "smallHead";
  921. Aliases = {"shead"};
  922. Prefixes = {settings.Prefix};
  923. Rank = 1;
  924. RankLock = false;
  925. Loopable = false;
  926. Tags = {};
  927. Description = "";
  928. Contributors = {"ForeverHD"};
  929. --
  930. Args = {"Player"};
  931. Function = function(speaker, args)
  932. local plr = args[1]
  933. main:GetModule("MorphHandler"):SetHeadMeshSize(plr, Vector3.new(0.75,0.75,0.75))
  934. end;
  935. UnFunction = function(speaker, args)
  936. local plr = args[1]
  937. main:GetModule("MorphHandler"):SetHeadMeshSize(plr, Vector3.new(1,1,1))
  938. end;
  939. --
  940. };
  941.  
  942.  
  943. -----------------------------------
  944. {
  945. Name = "potatoHead";
  946. Aliases = {"phead"};
  947. Prefixes = {settings.Prefix};
  948. Rank = 1;
  949. RankLock = false;
  950. Loopable = false;
  951. Tags = {};
  952. Description = "";
  953. Contributors = {"ForeverHD"};
  954. --
  955. Args = {"Player"};
  956. Function = function(speaker, args)
  957. local plr = args[1]
  958. local head = main:GetModule("cf"):GetHead(plr)
  959. if head then
  960. local mesh = head:FindFirstChildOfClass("SpecialMesh")
  961. if mesh then
  962. main:GetModule("MorphHandler"):ClearAccessories(plr)
  963. mesh.MeshType = Enum.MeshType.Sphere
  964. end
  965. end
  966. end;
  967. UnFunction = function(speaker, args)
  968. local plr = args[1]
  969. local head = main:GetModule("cf"):GetHead(plr)
  970. if head then
  971. local mesh = head:FindFirstChildOfClass("SpecialMesh")
  972. if mesh then
  973. mesh.MeshType = Enum.MeshType.Head
  974. end
  975. end
  976. end;
  977. --
  978. };
  979.  
  980.  
  981. -----------------------------------
  982. {
  983. Name = "spin";
  984. Aliases = {};
  985. Prefixes = {settings.Prefix};
  986. Rank = 1;
  987. RankLock = false;
  988. Loopable = false;
  989. Tags = {};
  990. Description = "";
  991. Contributors = {"ForeverHD"};
  992. --
  993. Args = {"Player", "Number"};
  994. Function = function(speaker, args)
  995. local plr = args[1]
  996. local number = args[2]
  997. if number == 0 then
  998. number = 14
  999. end
  1000. local head = main:GetModule("cf"):GetHead(plr)
  1001. if head then
  1002. local spin1 = head:FindFirstChild("HDAdminSpin1")
  1003. local spin2 = head:FindFirstChild("HDAdminSpin2")
  1004. if not spin1 then
  1005. spin1 = Instance.new("BodyAngularVelocity")
  1006. spin1.MaxTorque = Vector3.new(300000, 300000, 300000)
  1007. spin1.P = 300
  1008. spin1.Name = "HDAdminSpin1"
  1009. spin1.Parent = head
  1010. spin2 = Instance.new("BodyGyro")
  1011. spin2.MaxTorque = Vector3.new(400000, 0, 400000)
  1012. spin2.D = 500
  1013. spin2.P = 300
  1014. spin2.Name = "HDAdminSpin2"
  1015. spin2.Parent = head
  1016. end
  1017. spin1.AngularVelocity = Vector3.new(0,number,0)
  1018. end
  1019. end;
  1020. UnFunction = function(speaker, args)
  1021. local plr = args[1]
  1022. local head = main:GetModule("cf"):GetHead(plr)
  1023. if head then
  1024. local spin1 = head:FindFirstChild("HDAdminSpin1")
  1025. local spin2 = head:FindFirstChild("HDAdminSpin2")
  1026. if spin1 then
  1027. spin1:Destroy()
  1028. spin2:Destroy()
  1029. end
  1030. end
  1031. end;
  1032. --
  1033. };
  1034.  
  1035.  
  1036. -----------------------------------
  1037. {
  1038. Name = "poop";
  1039. Aliases = {"poo", "explosiveDiarrhoea"};
  1040. Prefixes = {settings.Prefix};
  1041. Rank = 1;
  1042. RankLock = false;
  1043. Loopable = false;
  1044. Tags = {};
  1045. Description = "";
  1046. Contributors = {"ForeverHD"};
  1047. --
  1048. Args = {"Player"};
  1049. ClientCommand = true;
  1050. FireAllClients = true;
  1051. BlockWhenPunished = true;
  1052. Function = function(speaker, args)
  1053. wait(12)
  1054. end;
  1055. --
  1056. };
  1057.  
  1058.  
  1059. -----------------------------------
  1060. {
  1061. Name = "icecream";
  1062. Aliases = {"ic","clown"};
  1063. Prefixes = {settings.Prefix};
  1064. Rank = 1;
  1065. RankLock = false;
  1066. Loopable = false;
  1067. Tags = {};
  1068. Description = "";
  1069. Contributors = {"ForeverHD"};
  1070. --
  1071. Args = {"Player"};
  1072. ClientCommand = true;
  1073. FireAllClients = true;
  1074. BlockWhenPunished = true;
  1075. Function = function(speaker, args)
  1076. wait(26)
  1077. end;
  1078. --
  1079. };
  1080.  
  1081.  
  1082. -----------------------------------
  1083. {
  1084. Name = "warp";
  1085. Aliases = {};
  1086. Prefixes = {settings.Prefix};
  1087. Rank = 1;
  1088. RankLock = false;
  1089. Loopable = true;
  1090. Tags = {};
  1091. Description = "";
  1092. Contributors = {"ForeverHD"};
  1093. --
  1094. Args = {"Player"};
  1095. ClientCommand = true;
  1096. Function = function(speaker, args)
  1097. wait(7.5)
  1098. end;
  1099. --
  1100. };
  1101.  
  1102.  
  1103. -----------------------------------
  1104. {
  1105. Name = "blur";
  1106. Aliases = {};
  1107. Prefixes = {settings.Prefix};
  1108. Rank = 1;
  1109. RankLock = false;
  1110. Loopable = false;
  1111. Tags = {};
  1112. Description = "";
  1113. Contributors = {"ForeverHD"};
  1114. --
  1115. Args = {"Player", "Number"};
  1116. ClientCommand = true;
  1117. --
  1118. };
  1119.  
  1120.  
  1121. -----------------------------------
  1122. {
  1123. Name = "hideGuis";
  1124. Aliases = {};
  1125. Prefixes = {settings.Prefix};
  1126. Rank = 1;
  1127. RankLock = false;
  1128. Loopable = false;
  1129. Tags = {};
  1130. Description = "";
  1131. Contributors = {"ForeverHD"};
  1132. --
  1133. Args = {"Player"};
  1134. ClientCommand = true;
  1135. --
  1136. };
  1137.  
  1138.  
  1139. -----------------------------------
  1140. {
  1141. Name = "showGuis";
  1142. Aliases = {};
  1143. Prefixes = {settings.Prefix};
  1144. Rank = 1;
  1145. RankLock = false;
  1146. Loopable = false;
  1147. Tags = {};
  1148. Description = "";
  1149. Contributors = {"ForeverHD"};
  1150. --
  1151. Args = {"Player"};
  1152. ClientCommand = true;
  1153. --
  1154. };
  1155.  
  1156.  
  1157. -----------------------------------
  1158. {
  1159. Name = "ice";
  1160. Aliases = {};
  1161. Prefixes = {settings.Prefix};
  1162. Rank = 1;
  1163. RankLock = false;
  1164. Loopable = false;
  1165. Tags = {};
  1166. Description = "";
  1167. Contributors = {"ForeverHD"};
  1168. --
  1169. Args = {"Player"};
  1170. Function = function(speaker, args)
  1171. local plr = args[1]
  1172. local itemName = "FreezeBlock"
  1173. local hrp = main:GetModule("cf"):GetHRP(plr)
  1174. if main.pd[plr].Items[itemName] == nil and hrp then
  1175. local item = main.server.Assets.FreezeBlock:Clone()
  1176. item.Name = plr.Name.."'s "..itemName
  1177. item.CanCollide = false
  1178. item.CFrame = hrp.CFrame
  1179. main.pd[plr].Items[itemName] = item
  1180. item.Parent = workspace
  1181. local clone = main:GetModule("cf"):CreateClone(plr.Character)
  1182. clone.PrimaryPart = clone.HumanoidRootPart
  1183. clone:SetPrimaryPartCFrame(item.CFrame)
  1184. clone.Name = "FreezeClone"
  1185. clone.Parent = item
  1186. main:GetModule("cf"):AnchorModel(clone, true)
  1187. local faces = {2620487058, 258192246, 20909031, 147144198}
  1188. local faceId = faces[math.random(1,#faces)]
  1189. main:GetModule("MorphHandler"):ChangeFace(clone, faceId)
  1190. main:GetModule("Extensions"):SetupItem(plr, itemName)
  1191. end
  1192. end;
  1193. UnFunction = function(speaker, args)
  1194. main:GetModule("cf"):UnFreeze(args)
  1195. end;
  1196. --
  1197. };
  1198.  
  1199.  
  1200. -----------------------------------
  1201. {
  1202. Name = "thaw";
  1203. Aliases = {};
  1204. Prefixes = {settings.Prefix};
  1205. Rank = 1;
  1206. RankLock = false;
  1207. Loopable = false;
  1208. Tags = {};
  1209. Description = "";
  1210. Contributors = {"ForeverHD"};
  1211. --
  1212. Args = {"Player"};
  1213. Function = function(speaker, args)
  1214. main:GetModule("cf"):UnFreeze(args)
  1215. local plr = args[1]
  1216. if plr and plr.Character then
  1217. main:GetModule("cf"):AnchorModel(plr.Character, false)
  1218. end
  1219. end;
  1220. --
  1221. };
  1222.  
  1223.  
  1224. -----------------------------------
  1225. {
  1226. Name = "freeze";
  1227. Aliases = {"anchor"};
  1228. Prefixes = {settings.Prefix};
  1229. Rank = 1;
  1230. RankLock = false;
  1231. Loopable = false;
  1232. Tags = {};
  1233. Description = "";
  1234. Contributors = {"ForeverHD"};
  1235. --
  1236. Args = {"Player"};
  1237. Function = function(speaker, args)
  1238. local plr = args[1]
  1239. if plr and plr.Character then
  1240. main:GetModule("cf"):AnchorModel(plr.Character, true)
  1241. end
  1242. end;
  1243. UnFunction = function(speaker, args)
  1244. local plr = args[1]
  1245. if plr and plr.Character then
  1246. main:GetModule("cf"):AnchorModel(plr.Character, false)
  1247. end
  1248. end;
  1249. --
  1250. };
  1251.  
  1252.  
  1253. -----------------------------------
  1254. {
  1255. Name = "jail";
  1256. Aliases = {"jailCell","jc"};
  1257. Prefixes = {settings.Prefix};
  1258. Rank = 5;
  1259. RankLock = false;
  1260. Loopable = false;
  1261. Tags = {};
  1262. Description = "";
  1263. Contributors = {"ForeverHD"};
  1264. --
  1265. Args = {"Player"};
  1266. Function = function(speaker, args)
  1267. local plr = args[1]
  1268. local itemName = "JailCell"
  1269. local head = main:GetModule("cf"):GetHead(plr)
  1270. if main.pd[plr].Items[itemName] == nil and head then
  1271. local item = main.server.Assets[itemName]:Clone()
  1272. item.Name = plr.Name.."'s "..itemName
  1273. item.PrimaryPart = item.Union
  1274. item:SetPrimaryPartCFrame(head.CFrame * CFrame.new(0,-0.2,0))
  1275. main.pd[plr].Items[itemName] = item
  1276. item.Parent = workspace
  1277. main:GetModule("Extensions"):SetupItem(plr, itemName)
  1278. end
  1279. end;
  1280. UnFunction = function(speaker, args)
  1281. local plr = args[1]
  1282. local itemName = "JailCell"
  1283. local item = main.pd[plr].Items[itemName]
  1284. if item then
  1285. main.pd[plr].Items[itemName] = nil
  1286. item:Destroy()
  1287. end
  1288. end;
  1289. --
  1290. };
  1291.  
  1292.  
  1293. -----------------------------------
  1294. {
  1295. Name = "forceField";
  1296. Aliases = {"ff"};
  1297. Prefixes = {settings.Prefix};
  1298. Rank = 1;
  1299. RankLock = false;
  1300. Loopable = false;
  1301. Tags = {};
  1302. Description = "";
  1303. Contributors = {"ForeverHD"};
  1304. --
  1305. Args = {"Player"};
  1306. Function = function(speaker, args)
  1307. local plr = args[1]
  1308. main:GetModule("cf"):CreateEffect(plr, "ForceField")
  1309. end;
  1310. UnFunction = function(speaker, args)
  1311. local plr = args[1]
  1312. main:GetModule("cf"):RemoveEffect(plr, "ForceField")
  1313. end;
  1314. --
  1315. };
  1316.  
  1317.  
  1318. -----------------------------------
  1319. {
  1320. Name = "fire";
  1321. Aliases = {};
  1322. Prefixes = {settings.Prefix};
  1323. Rank = 1;
  1324. RankLock = false;
  1325. Loopable = false;
  1326. Tags = {};
  1327. Description = "";
  1328. Contributors = {"ForeverHD"};
  1329. --
  1330. Args = {"Player"};
  1331. Function = function(speaker, args)
  1332. local plr = args[1]
  1333. main:GetModule("cf"):CreateEffect(plr, "Fire")
  1334. end;
  1335. UnFunction = function(speaker, args)
  1336. local plr = args[1]
  1337. main:GetModule("cf"):RemoveEffect(plr, "Fire")
  1338. end;
  1339. --
  1340. };
  1341.  
  1342.  
  1343. -----------------------------------
  1344. {
  1345. Name = "smoke";
  1346. Aliases = {};
  1347. Prefixes = {settings.Prefix};
  1348. Rank = 1;
  1349. RankLock = false;
  1350. Loopable = false;
  1351. Tags = {};
  1352. Description = "";
  1353. Contributors = {"ForeverHD"};
  1354. --
  1355. Args = {"Player"};
  1356. Function = function(speaker, args)
  1357. local plr = args[1]
  1358. main:GetModule("cf"):CreateEffect(plr, "Smoke")
  1359. end;
  1360. UnFunction = function(speaker, args)
  1361. local plr = args[1]
  1362. main:GetModule("cf"):RemoveEffect(plr, "Smoke")
  1363. end;
  1364. --
  1365. };
  1366.  
  1367.  
  1368. -----------------------------------
  1369. {
  1370. Name = "sparkles";
  1371. Aliases = {};
  1372. Prefixes = {settings.Prefix};
  1373. Rank = 1;
  1374. RankLock = false;
  1375. Loopable = false;
  1376. Tags = {};
  1377. Description = "";
  1378. Contributors = {"ForeverHD"};
  1379. --
  1380. Args = {"Player"};
  1381. Function = function(speaker, args)
  1382. local plr = args[1]
  1383. main:GetModule("cf"):CreateEffect(plr, "Sparkles")
  1384. end;
  1385. UnFunction = function(speaker, args)
  1386. local plr = args[1]
  1387. main:GetModule("cf"):RemoveEffect(plr, "Sparkles")
  1388. end;
  1389. --
  1390. };
  1391.  
  1392.  
  1393. -----------------------------------
  1394. {
  1395. Name = "name";
  1396. Aliases = {"fakeName"};
  1397. Prefixes = {settings.Prefix};
  1398. Rank = 1;
  1399. RankLock = false;
  1400. Loopable = false;
  1401. Tags = {};
  1402. Description = "";
  1403. Contributors = {"ForeverHD"};
  1404. --
  1405. Args = {"Player", "Text"};
  1406. Function = function(speaker, args)
  1407. local plr = args[1]
  1408. local text = args[2]
  1409. main:GetModule("cf"):CreateFakeName(plr, text)
  1410. end;
  1411. UnFunction = function(speaker, args)
  1412. local plr = args[1]
  1413. local head = main:GetModule("cf"):GetHead(plr)
  1414. local fakeName = main:GetModule("cf"):GetFakeName(plr)
  1415. if head and fakeName then
  1416. fakeName:Destroy()
  1417. head.Transparency = 0
  1418. end
  1419. end;
  1420. --
  1421. };
  1422.  
  1423.  
  1424. -----------------------------------
  1425. {
  1426. Name = "hideName";
  1427. Aliases = {};
  1428. Prefixes = {settings.Prefix};
  1429. Rank = 1;
  1430. RankLock = false;
  1431. Loopable = false;
  1432. Tags = {};
  1433. Description = "";
  1434. Contributors = {"ForeverHD"};
  1435. --
  1436. Args = {"Player"};
  1437. Function = function(speaker, args)
  1438. local plr = args[1]
  1439. local text = ""
  1440. main:GetModule("cf"):CreateFakeName(plr, text)
  1441. end;
  1442. --
  1443. };
  1444.  
  1445.  
  1446. -----------------------------------
  1447. {
  1448. Name = "showName";
  1449. Aliases = {};
  1450. Prefixes = {settings.Prefix};
  1451. Rank = 1;
  1452. RankLock = false;
  1453. Loopable = false;
  1454. Tags = {};
  1455. Description = "";
  1456. Contributors = {"ForeverHD"};
  1457. --
  1458. Args = {"Player"};
  1459. Function = function(speaker, args)
  1460. local plr = args[1]
  1461. local head = main:GetModule("cf"):GetHead(plr)
  1462. local fakeName = main:GetModule("cf"):GetFakeName(plr)
  1463. if head and fakeName then
  1464. fakeName:Destroy()
  1465. head.Transparency = 0
  1466. end
  1467. end;
  1468. --
  1469. };
  1470.  
  1471.  
  1472. -----------------------------------
  1473. {
  1474. Name = "r15";
  1475. Aliases = {};
  1476. Prefixes = {settings.Prefix};
  1477. Rank = 1;
  1478. RankLock = false;
  1479. Loopable = false;
  1480. Tags = {};
  1481. Description = "";
  1482. Contributors = {"ForeverHD"};
  1483. --
  1484. Args = {"Player"};
  1485. Function = function(speaker, args)
  1486. local plr = args[1]
  1487. main:GetModule("cf"):ConvertCharacterToRig(plr, "R15")
  1488. end;
  1489. --
  1490. };
  1491.  
  1492.  
  1493. -----------------------------------
  1494. {
  1495. Name = "r6";
  1496. Aliases = {};
  1497. Prefixes = {settings.Prefix};
  1498. Rank = 1;
  1499. RankLock = false;
  1500. Loopable = false;
  1501. Tags = {};
  1502. Description = "";
  1503. Contributors = {"ForeverHD"};
  1504. --
  1505. Args = {"Player"};
  1506. Function = function(speaker, args)
  1507. local plr = args[1]
  1508. main:GetModule("cf"):ConvertCharacterToRig(plr, "R6")
  1509. end;
  1510. --
  1511. };
  1512.  
  1513.  
  1514. -----------------------------------
  1515. {
  1516. Name = "nightVision";
  1517. Aliases = {"nv"};
  1518. Prefixes = {settings.Prefix};
  1519. Rank = 1;
  1520. RankLock = false;
  1521. Loopable = false;
  1522. Tags = {};
  1523. Description = "";
  1524. Contributors = {"ForeverHD"};
  1525. --
  1526. Args = {"Player"};
  1527. ClientCommand = true;
  1528. --
  1529. };
  1530.  
  1531.  
  1532. -----------------------------------
  1533. {
  1534. Name = "dwarf";
  1535. Aliases = {};
  1536. Prefixes = {settings.Prefix};
  1537. Rank = 1;
  1538. RankLock = false;
  1539. Loopable = false;
  1540. Tags = {};
  1541. Description = "";
  1542. Contributors = {"ForeverHD"};
  1543. RequiresRig = Enum.HumanoidRigType.R15;
  1544. --
  1545. Args = {"Player"};
  1546. Function = function(speaker, args)
  1547. local plr = args[1]
  1548. local size = 1
  1549. main:GetModule("MorphHandler"):ChangeProperties(plr, {DepthScale = 0.75*size, HeightScale = 0.5*size, WidthScale = 0.75*size, HeadScale = 1.4*size})
  1550. end;
  1551. UnFunction = function(speaker, args)
  1552. local plr = args[1]
  1553. main:GetModule("MorphHandler"):ChangeProperties(plr, {DepthScale = 1, HeightScale = 1, WidthScale = 1, HeadScale = 1})
  1554. end;
  1555. --
  1556. };
  1557.  
  1558.  
  1559. -----------------------------------
  1560. {
  1561. Name = "giant";
  1562. Aliases = {};
  1563. Prefixes = {settings.Prefix};
  1564. Rank = 1;
  1565. RankLock = false;
  1566. Loopable = false;
  1567. Tags = {};
  1568. Description = "";
  1569. Contributors = {"ForeverHD"};
  1570. RequiresRig = Enum.HumanoidRigType.R15;
  1571. --
  1572. Args = {"Player"};
  1573. Function = function(speaker, args)
  1574. local plr = args[1]
  1575. local size = 3
  1576. main:GetModule("MorphHandler"):ChangeProperties(plr, {DepthScale = 0.75*size, HeightScale = 0.5*size, WidthScale = 0.65*size, HeadScale = 1.4*size})
  1577. end;
  1578. UnFunction = function(speaker, args)
  1579. local plr = args[1]
  1580. main:GetModule("MorphHandler"):ChangeProperties(plr, {DepthScale = 1, HeightScale = 1, WidthScale = 1, HeadScale = 1})
  1581. end;
  1582. --
  1583. };
  1584.  
  1585.  
  1586. -----------------------------------
  1587. {
  1588. Name = "size";
  1589. Aliases = {};
  1590. Prefixes = {settings.Prefix};
  1591. Rank = 1;
  1592. RankLock = false;
  1593. Loopable = false;
  1594. Tags = {};
  1595. Description = "";
  1596. Contributors = {"ForeverHD"};
  1597. RequiresRig = Enum.HumanoidRigType.R15;
  1598. --
  1599. Args = {"Player", "Scale"};
  1600. Function = function(speaker, args)
  1601. local plr = args[1]
  1602. local size = args[2]
  1603. main:GetModule("MorphHandler"):ChangeProperties(plr, {DepthScale = 1*size, HeightScale = 1*size, WidthScale = 1*size, HeadScale = 1*size})
  1604. end;
  1605. UnFunction = function(speaker, args)
  1606. local plr = args[1]
  1607. main:GetModule("MorphHandler"):ChangeProperties(plr, {DepthScale = 1, HeightScale = 1, WidthScale = 1, HeadScale = 1})
  1608. end;
  1609. --
  1610. };
  1611.  
  1612.  
  1613. -----------------------------------
  1614. {
  1615. Name = "bodyTypeScale";
  1616. Aliases = {"btScale"};
  1617. Prefixes = {settings.Prefix};
  1618. Rank = 1;
  1619. RankLock = false;
  1620. Loopable = false;
  1621. Tags = {};
  1622. Description = "";
  1623. Contributors = {"ForeverHD"};
  1624. RequiresRig = Enum.HumanoidRigType.R15;
  1625. --
  1626. Args = {"Player", "Scale"};
  1627. Function = function(speaker, args)
  1628. local plr = args[1]
  1629. local number = args[2]
  1630. main:GetModule("MorphHandler"):ChangeProperties(plr, {BodyTypeScale = number})
  1631. end;
  1632. UnFunction = function(speaker, args)
  1633. local plr = args[1]
  1634. main:GetModule("MorphHandler"):ChangeProperties(plr, {BodyTypeScale = 0.3})
  1635. end;
  1636. --
  1637. };
  1638.  
  1639.  
  1640. -----------------------------------
  1641. {
  1642. Name = "depth";
  1643. Aliases = {"dScale", "depthScale"};
  1644. Prefixes = {settings.Prefix};
  1645. Rank = 1;
  1646. RankLock = false;
  1647. Loopable = false;
  1648. Tags = {};
  1649. Description = "";
  1650. Contributors = {"ForeverHD"};
  1651. RequiresRig = Enum.HumanoidRigType.R15;
  1652. --
  1653. Args = {"Player", "Scale"};
  1654. Function = function(speaker, args)
  1655. local plr = args[1]
  1656. local number = args[2]
  1657. main:GetModule("MorphHandler"):ChangeProperties(plr, {DepthScale = number})
  1658. end;
  1659. UnFunction = function(speaker, args)
  1660. local plr = args[1]
  1661. main:GetModule("MorphHandler"):ChangeProperties(plr, {DepthScale = 1})
  1662. end;
  1663. --
  1664. };
  1665.  
  1666.  
  1667. -----------------------------------
  1668. {
  1669. Name = "headSize";
  1670. Aliases = {"headScale"};
  1671. Prefixes = {settings.Prefix};
  1672. Rank = 1;
  1673. RankLock = false;
  1674. Loopable = false;
  1675. Tags = {};
  1676. Description = "";
  1677. Contributors = {"ForeverHD"};
  1678. RequiresRig = Enum.HumanoidRigType.R15;
  1679. --
  1680. Args = {"Player", "Scale"};
  1681. Function = function(speaker, args)
  1682. local plr = args[1]
  1683. local number = args[2]
  1684. main:GetModule("MorphHandler"):ChangeProperties(plr, {HeadScale = number})
  1685. end;
  1686. UnFunction = function(speaker, args)
  1687. local plr = args[1]
  1688. main:GetModule("MorphHandler"):ChangeProperties(plr, {HeadScale = 1})
  1689. end;
  1690. --
  1691. };
  1692.  
  1693.  
  1694. -----------------------------------
  1695. {
  1696. Name = "height";
  1697. Aliases = {"hScale", "heightScale"};
  1698. Prefixes = {settings.Prefix};
  1699. Rank = 1;
  1700. RankLock = false;
  1701. Loopable = false;
  1702. Tags = {};
  1703. Description = "";
  1704. Contributors = {"ForeverHD"};
  1705. RequiresRig = Enum.HumanoidRigType.R15;
  1706. --
  1707. Args = {"Player", "Scale"};
  1708. Function = function(speaker, args)
  1709. local plr = args[1]
  1710. local number = args[2]
  1711. main:GetModule("MorphHandler"):ChangeProperties(plr, {HeightScale = number})
  1712. end;
  1713. UnFunction = function(speaker, args)
  1714. local plr = args[1]
  1715. main:GetModule("MorphHandler"):ChangeProperties(plr, {HeightScale = 1})
  1716. end;
  1717. --
  1718. };
  1719.  
  1720.  
  1721. -----------------------------------
  1722. {
  1723. Name = "hipHeight";
  1724. Aliases = {"hip"};
  1725. Prefixes = {settings.Prefix};
  1726. Rank = 1;
  1727. RankLock = false;
  1728. Loopable = false;
  1729. Tags = {};
  1730. Description = "";
  1731. Contributors = {"ForeverHD"};
  1732. --RequiresRig = Enum.HumanoidRigType.R15;
  1733. --
  1734. Args = {"Player", "Scale"};
  1735. Function = function(speaker, args)
  1736. local plr = args[1]
  1737. local number = args[2]
  1738. local humanoid = main:GetModule("cf"):GetHumanoid(plr)
  1739. if humanoid then
  1740. humanoid.HipHeight = number
  1741. end
  1742. end;
  1743. UnFunction = function(speaker, args)
  1744. local plr = args[1]
  1745. local humanoid = main:GetModule("cf"):GetHumanoid(plr)
  1746. if humanoid then
  1747. main:GetModule("MorphHandler"):UpdateHipHeight(plr.Character)
  1748. end
  1749. end;
  1750. --
  1751. };
  1752.  
  1753.  
  1754. -----------------------------------
  1755. {
  1756. Name = "squash";
  1757. Aliases = {"flat", "flatten"};
  1758. Prefixes = {settings.Prefix};
  1759. Rank = 1;
  1760. RankLock = false;
  1761. Loopable = false;
  1762. Tags = {};
  1763. Description = "";
  1764. Contributors = {"ForeverHD"};
  1765. RequiresRig = Enum.HumanoidRigType.R15;
  1766. --
  1767. Args = {"Player"};
  1768. Function = function(speaker, args)
  1769. local plr = args[1]
  1770. main:GetModule("MorphHandler"):ChangeProperties(plr, {HeightScale = 0.1})
  1771. end;
  1772. UnFunction = function(speaker, args)
  1773. local plr = args[1]
  1774. main:GetModule("MorphHandler"):ChangeProperties(plr, {HeightScale = 1})
  1775. end;
  1776. --
  1777. };
  1778.  
  1779.  
  1780. -----------------------------------
  1781. {
  1782. Name = "proportion";
  1783. Aliases = {"pScale", "proportionScale"};
  1784. Prefixes = {settings.Prefix};
  1785. Rank = 1;
  1786. RankLock = false;
  1787. Loopable = false;
  1788. Tags = {};
  1789. Description = "";
  1790. Contributors = {"ForeverHD"};
  1791. RequiresRig = Enum.HumanoidRigType.R15;
  1792. --
  1793. Args = {"Player", "Scale"};
  1794. Function = function(speaker, args)
  1795. local plr = args[1]
  1796. local number = args[2]
  1797. main:GetModule("MorphHandler"):ChangeProperties(plr, {ProportionScale = number})
  1798. end;
  1799. UnFunction = function(speaker, args)
  1800. local plr = args[1]
  1801. main:GetModule("MorphHandler"):ChangeProperties(plr, {ProportionScale = 1})
  1802. end;
  1803. --
  1804. };
  1805.  
  1806.  
  1807. -----------------------------------
  1808. {
  1809. Name = "width";
  1810. Aliases = {"wScale", "widthScale"};
  1811. Prefixes = {settings.Prefix};
  1812. Rank = 1;
  1813. RankLock = false;
  1814. Loopable = false;
  1815. Tags = {};
  1816. Description = "";
  1817. Contributors = {"ForeverHD"};
  1818. RequiresRig = Enum.HumanoidRigType.R15;
  1819. --
  1820. Args = {"Player", "Scale"};
  1821. Function = function(speaker, args)
  1822. local plr = args[1]
  1823. local number = args[2]
  1824. main:GetModule("MorphHandler"):ChangeProperties(plr, {WidthScale = number})
  1825. end;
  1826. UnFunction = function(speaker, args)
  1827. local plr = args[1]
  1828. main:GetModule("MorphHandler"):ChangeProperties(plr, {WidthScale = 1})
  1829. end;
  1830. --
  1831. };
  1832.  
  1833.  
  1834. -----------------------------------
  1835. {
  1836. Name = "fat";
  1837. Aliases = {"obese"};
  1838. Prefixes = {settings.Prefix};
  1839. Rank = 1;
  1840. RankLock = false;
  1841. Loopable = false;
  1842. Tags = {};
  1843. Description = "";
  1844. Contributors = {"ForeverHD"};
  1845. RequiresRig = Enum.HumanoidRigType.R15;
  1846. --
  1847. Args = {"Player"};
  1848. Function = function(speaker, args)
  1849. local plr = args[1]
  1850. main:GetModule("MorphHandler"):ChangeProperties(plr, {WidthScale = 2, DepthScale = 1.5})
  1851. end;
  1852. UnFunction = function(speaker, args)
  1853. local plr = args[1]
  1854. main:GetModule("MorphHandler"):ChangeProperties(plr, {WidthScale = 1, DepthScale = 1})
  1855. end;
  1856. --
  1857. };
  1858.  
  1859.  
  1860. -----------------------------------
  1861. {
  1862. Name = "thin";
  1863. Aliases = {"skinny"};
  1864. Prefixes = {settings.Prefix};
  1865. Rank = 1;
  1866. RankLock = false;
  1867. Loopable = false;
  1868. Tags = {};
  1869. Description = "";
  1870. Contributors = {"ForeverHD"};
  1871. RequiresRig = Enum.HumanoidRigType.R15;
  1872. --
  1873. Args = {"Player"};
  1874. Function = function(speaker, args)
  1875. local plr = args[1]
  1876. main:GetModule("MorphHandler"):ChangeProperties(plr, {WidthScale = 0.2, DepthScale = 0.2})
  1877. end;
  1878. UnFunction = function(speaker, args)
  1879. local plr = args[1]
  1880. main:GetModule("MorphHandler"):ChangeProperties(plr, {WidthScale = 1, DepthScale = 1})
  1881. end;
  1882. --
  1883. };
  1884.  
  1885.  
  1886. -----------------------------------
  1887. {
  1888. Name = "char";
  1889. Aliases = {"become"};
  1890. Prefixes = {settings.Prefix};
  1891. Rank = 1;
  1892. RankLock = false;
  1893. Loopable = false;
  1894. Tags = {};
  1895. Description = "";
  1896. Contributors = {"ForeverHD"};
  1897. --
  1898. Args = {"Player", "UserId"};
  1899. Function = function(speaker, args)
  1900. local plr = args[1]
  1901. local userId = args[2]
  1902. main:GetModule("MorphHandler"):BecomeTargetPlayer(plr, userId)
  1903. end;
  1904. UnFunction = function(speaker, args)
  1905. local plr = args[1]
  1906. local userId = plr.UserId
  1907. main:GetModule("MorphHandler"):BecomeTargetPlayer(plr, userId)
  1908. end;
  1909. --
  1910. };
  1911.  
  1912.  
  1913. -----------------------------------
  1914. {
  1915. Name = "morph";
  1916. Aliases = {};
  1917. Prefixes = {settings.Prefix};
  1918. Rank = 1;
  1919. RankLock = false;
  1920. Loopable = false;
  1921. Tags = {};
  1922. Description = "";
  1923. Contributors = {"ForeverHD"};
  1924. --
  1925. Args = {"Player", "Morph"};
  1926. Function = function(speaker, args)
  1927. local plr = args[1]
  1928. local morph = args[2]
  1929. if morph then
  1930. main:GetModule("MorphHandler"):Morph(plr, morph)
  1931. end
  1932. end;
  1933. --
  1934. };
  1935.  
  1936.  
  1937. -----------------------------------
  1938. {
  1939. Name = "view";
  1940. Aliases = {"watch","spectate"};
  1941. Prefixes = {settings.Prefix};
  1942. Rank = 1;
  1943. RankLock = false;
  1944. Loopable = false;
  1945. Tags = {};
  1946. Description = "";
  1947. Contributors = {"ForeverHD"};
  1948. --
  1949. Args = {"Player"};
  1950. ClientCommand = true;
  1951. FireToSpeaker = true;
  1952. --
  1953. };
  1954.  
  1955.  
  1956. -----------------------------------
  1957. {
  1958. Name = "bundle";
  1959. Aliases = {"package"};
  1960. Prefixes = {settings.Prefix};
  1961. Rank = 1;
  1962. RankLock = false;
  1963. Loopable = false;
  1964. Tags = {};
  1965. Description = "";
  1966. Contributors = {"ForeverHD"};
  1967. --
  1968. Args = {"Player", "Number"};
  1969. Function = function(speaker, args)
  1970. local plr = args[1]
  1971. local humanoid = main:GetModule("cf"):GetHumanoid(plr)
  1972. local bundleId = args[2]
  1973. main:GetModule("MorphHandler"):ApplyBundle(humanoid, bundleId)
  1974. end;
  1975. --
  1976. };
  1977.  
  1978.  
  1979. -----------------------------------
  1980. {
  1981. Name = "dino";
  1982. Aliases = {"TRex", "dinosaur"};
  1983. Prefixes = {settings.Prefix};
  1984. Rank = 1;
  1985. RankLock = false;
  1986. Loopable = false;
  1987. Tags = {};
  1988. Description = "";
  1989. Contributors = {"ForeverHD"};
  1990. --
  1991. Args = {"Player"};
  1992. Function = function(speaker, args)
  1993. local plr = args[1]
  1994. local humanoid = main:GetModule("cf"):GetHumanoid(plr)
  1995. local bundleId = 458
  1996. main:GetModule("MorphHandler"):ClearAccessories(plr)
  1997. main:GetModule("MorphHandler"):ApplyBundle(humanoid, bundleId)
  1998. local head = main:GetModule("cf"):GetHead(plr)
  1999. if head then
  2000. local sound = Instance.new("Sound")
  2001. main.debris:AddItem(sound, 5)
  2002. sound.SoundId = "rbxassetid://177090631"
  2003. sound.Parent = head
  2004. sound.Name = "DinoSound"
  2005. sound.Volume = 1.5
  2006. sound:Play()
  2007. end
  2008. wait(4)
  2009. end;
  2010. --
  2011. };
  2012.  
  2013.  
  2014. -----------------------------------
  2015. {
  2016. Name = "follow";
  2017. Aliases = {"join", "joinServer"};
  2018. Prefixes = {settings.Prefix};
  2019. Rank = 1;
  2020. RankLock = false;
  2021. Loopable = false;
  2022. Tags = {};
  2023. Description = "Teleports you to the specified player's server (if they are in the same game as you).";
  2024. Contributors = {"ForeverHD"};
  2025. --
  2026. Args = {"UserId"};
  2027. Function = function(speaker, args)
  2028. local userId = args[1]
  2029. local success, errorMessage, _, placeId, jobId = pcall(function() return game:GetService("TeleportService"):GetPlayerPlaceInstanceAsync(userId) end)
  2030. if success and placeId and jobId then
  2031. main.teleportService:TeleportToPlaceInstance(
  2032. placeId,
  2033. jobId,
  2034. speaker
  2035. )
  2036. else
  2037. local playerName = main:GetModule("cf"):GetName(userId)
  2038. main:GetModule("cf"):FormatAndFireError(speaker, "FollowFail", tostring(playerName))
  2039. end
  2040. end;
  2041. --
  2042. };
  2043.  
  2044.  
  2045. -----------------------------------
  2046.  
  2047.  
  2048.  
  2049.  
  2050.  
  2051.  
  2052.  
  2053.  
  2054. ----------------------------------- (2) MOD COMMANDS -----------------------------------
  2055. {
  2056. Name = "h";
  2057. Aliases = {"hint"};
  2058. Prefixes = {settings.Prefix};
  2059. Rank = 2;
  2060. RankLock = false;
  2061. Loopable = false;
  2062. Tags = {};
  2063. Description = "";
  2064. Contributors = {"ForeverHD"};
  2065. SpecialColors = true;
  2066. --
  2067. Args = {"Text"};
  2068. Function = function(speaker, args, self)
  2069. --
  2070. local hType = "Standard"
  2071. local hDesc = speaker.Name..": "..args[1]
  2072. local hDescColor = self.SpecialColor
  2073. if not hDescColor then
  2074. hDescColor = Color3.fromRGB(255,255,255)
  2075. end
  2076. --
  2077. for i, plr in pairs(main.players:GetChildren()) do
  2078. main.signals.Hint:FireClient(plr, {hType, hDesc, hDescColor})
  2079. end
  2080. wait(main:GetModule("cf"):GetMessageTime(hDesc))
  2081. end;
  2082. --
  2083. };
  2084.  
  2085.  
  2086. -----------------------------------
  2087. {
  2088. Name = "fly";
  2089. Aliases = {"flight"};
  2090. Prefixes = {settings.Prefix};
  2091. Rank = 2;
  2092. RankLock = false;
  2093. Loopable = false;
  2094. Tags = {};
  2095. Description = "";
  2096. Contributors = {"ForeverHD"};
  2097. --
  2098. Args = {"Player", "Speed"};
  2099. ClientCommandToActivate = true;
  2100. --
  2101. };
  2102.  
  2103.  
  2104. -----------------------------------
  2105. {
  2106. Name = "fly2";
  2107. Aliases = {"flight2"};
  2108. Prefixes = {settings.Prefix};
  2109. Rank = 2;
  2110. RankLock = false;
  2111. Loopable = false;
  2112. Tags = {};
  2113. Description = "";
  2114. Contributors = {"ForeverHD"};
  2115. --
  2116. Args = {"Player", "Speed"};
  2117. ClientCommandToActivate = true;
  2118. --
  2119. };
  2120.  
  2121.  
  2122. -----------------------------------
  2123. {
  2124. Name = "noclip";
  2125. Aliases = {};
  2126. Prefixes = {settings.Prefix};
  2127. Rank = 2;
  2128. RankLock = false;
  2129. Loopable = false;
  2130. Tags = {};
  2131. Description = "";
  2132. Contributors = {"ForeverHD"};
  2133. --
  2134. Args = {"Player", "Speed"};
  2135. ClientCommandToActivate = true;
  2136. --
  2137. };
  2138.  
  2139.  
  2140. -----------------------------------
  2141. {
  2142. Name = "noclip2";
  2143. Aliases = {"flight2"};
  2144. Prefixes = {settings.Prefix};
  2145. Rank = 2;
  2146. RankLock = false;
  2147. Loopable = false;
  2148. Tags = {};
  2149. Description = "Similar to the original noclip, however other clients can see you whilst noclipping.";
  2150. Contributors = {"ForeverHD"};
  2151. --
  2152. Args = {"Player", "Speed"};
  2153. ClientCommandToActivate = true;
  2154. --
  2155. };
  2156.  
  2157.  
  2158. -----------------------------------
  2159. {
  2160. Name = "clip";
  2161. Aliases = {};
  2162. Prefixes = {settings.Prefix};
  2163. Rank = 2;
  2164. RankLock = false;
  2165. Loopable = false;
  2166. Tags = {};
  2167. Description = "";
  2168. Contributors = {"ForeverHD"};
  2169. --
  2170. Args = {"Player"};
  2171. ClientCommand = true;
  2172. --
  2173. };
  2174.  
  2175.  
  2176. -----------------------------------
  2177. {
  2178. Name = "speed";
  2179. Aliases = {"ws", "walkSpeed"};
  2180. Prefixes = {settings.Prefix};
  2181. Rank = 2;
  2182. RankLock = false;
  2183. Loopable = false;
  2184. Tags = {};
  2185. Description = "";
  2186. Contributors = {"ForeverHD"};
  2187. --
  2188. Args = {"Player", "Speed"};
  2189. Function = function(speaker, args)
  2190. local plr = args[1]
  2191. local humanoid = main:GetModule("cf"):GetHumanoid(plr)
  2192. if humanoid then
  2193. humanoid.WalkSpeed = args[2]
  2194. end
  2195. end;
  2196. --
  2197. };
  2198.  
  2199.  
  2200. -----------------------------------
  2201. {
  2202. Name = "jumpPower";
  2203. Aliases = {"jp"};
  2204. Prefixes = {settings.Prefix};
  2205. Rank = 2;
  2206. RankLock = false;
  2207. Loopable = false;
  2208. Tags = {};
  2209. Description = "";
  2210. Contributors = {"ForeverHD"};
  2211. --
  2212. Args = {"Player", "Number"};
  2213. Function = function(speaker, args)
  2214. local plr = args[1]
  2215. local humanoid = main:GetModule("cf"):GetHumanoid(plr)
  2216. if humanoid then
  2217. humanoid.JumpPower = args[2]
  2218. end
  2219. end;
  2220. --
  2221. };
  2222.  
  2223.  
  2224. -----------------------------------
  2225. {
  2226. Name = "health";
  2227. Aliases = {};
  2228. Prefixes = {settings.Prefix};
  2229. Rank = 4;
  2230. RankLock = false;
  2231. Loopable = false;
  2232. Tags = {};
  2233. Description = "";
  2234. Contributors = {"ForeverHD"};
  2235. --
  2236. Args = {"Player", "Number"};
  2237. Function = function(speaker, args)
  2238. local plr = args[1]
  2239. local humanoid = main:GetModule("cf"):GetHumanoid(plr)
  2240. if humanoid then
  2241. local newHealth = args[2]
  2242. if newHealth < 1 then
  2243. newHealth = 1
  2244. end
  2245. humanoid.MaxHealth = newHealth
  2246. humanoid.Health = newHealth
  2247. end
  2248. end;
  2249. --
  2250. };
  2251.  
  2252.  
  2253. -----------------------------------
  2254. {
  2255. Name = "heal";
  2256. Aliases = {};
  2257. Prefixes = {settings.Prefix};
  2258. Rank = 2;
  2259. RankLock = false;
  2260. Loopable = false;
  2261. Tags = {};
  2262. Description = "";
  2263. Contributors = {"ForeverHD"};
  2264. --
  2265. Args = {"Player"};
  2266. Function = function(speaker, args)
  2267. local plr = args[1]
  2268. local humanoid = main:GetModule("cf"):GetHumanoid(plr)
  2269. if humanoid then
  2270. humanoid.Health = humanoid.MaxHealth
  2271. end
  2272. end;
  2273. --
  2274. };
  2275.  
  2276.  
  2277. -----------------------------------
  2278. {
  2279. Name = "god";
  2280. Aliases = {};
  2281. Prefixes = {settings.Prefix};
  2282. Rank = 4;
  2283. RankLock = false;
  2284. Loopable = false;
  2285. Tags = {};
  2286. Description = "";
  2287. Contributors = {"ForeverHD"};
  2288. --
  2289. Args = {"Player"};
  2290. Function = function(speaker, args)
  2291. local plr = args[1]
  2292. local humanoid = main:GetModule("cf"):GetHumanoid(plr)
  2293. if humanoid then
  2294. humanoid.MaxHealth = math.huge
  2295. humanoid.Health = humanoid.MaxHealth
  2296. end
  2297. end;
  2298. UnFunction = function(speaker, args)
  2299. local plr = args[1]
  2300. local humanoid = main:GetModule("cf"):GetHumanoid(plr)
  2301. if humanoid then
  2302. humanoid.MaxHealth = 100
  2303. humanoid.Health = humanoid.MaxHealth
  2304. end
  2305. end;
  2306. --
  2307. };
  2308.  
  2309.  
  2310. -----------------------------------
  2311. {
  2312. Name = "damage";
  2313. Aliases = {"dmg"};
  2314. Prefixes = {settings.Prefix};
  2315. Rank = 2;
  2316. RankLock = false;
  2317. Loopable = false;
  2318. Tags = {};
  2319. Description = "";
  2320. Contributors = {"ForeverHD"};
  2321. --
  2322. Args = {"Player", "Number"};
  2323. Function = function(speaker, args)
  2324. local plr = args[1]
  2325. local humanoid = main:GetModule("cf"):GetHumanoid(plr)
  2326. if humanoid then
  2327. humanoid:TakeDamage(args[2])
  2328. end
  2329. end;
  2330. --
  2331. };
  2332.  
  2333.  
  2334. -----------------------------------
  2335. {
  2336. Name = "kill";
  2337. Aliases = {"die", "commitNotAlive"};
  2338. Prefixes = {settings.Prefix};
  2339. Rank = 4;
  2340. RankLock = false;
  2341. Loopable = true;
  2342. Tags = {"Abusive"};
  2343. Description = "Kills the player.";
  2344. Contributors = {"ForeverHD"};
  2345. --
  2346. Args = {"Player"};
  2347. Function = function(speaker, args)
  2348. local plr = args[1]
  2349. local char = plr.Character
  2350. if char then
  2351. char:BreakJoints()
  2352. end
  2353. end;
  2354. --
  2355. };
  2356.  
  2357.  
  2358. -----------------------------------
  2359. {
  2360. Name = "teleport";
  2361. Aliases = {"tp"};
  2362. Prefixes = {settings.Prefix};
  2363. Rank = 2;
  2364. RankLock = false;
  2365. Loopable = false;
  2366. Tags = {};
  2367. Description = "";
  2368. Contributors = {"ForeverHD"};
  2369. Teleport = true;
  2370. --
  2371. Args = {"Player", "Individual"};
  2372. Function = function(speaker, args)
  2373. local plrsToTeleport = args[1]
  2374. local targetPlr = args[2]
  2375. main:GetModule("cf"):TeleportPlayers(plrsToTeleport, targetPlr)
  2376. end;
  2377. --
  2378. };
  2379.  
  2380.  
  2381. -----------------------------------
  2382. {
  2383. Name = "bring";
  2384. Aliases = {"br"};
  2385. Prefixes = {settings.Prefix};
  2386. Rank = 3;
  2387. RankLock = false;
  2388. Loopable = false;
  2389. Tags = {};
  2390. Description = "";
  2391. Contributors = {"ForeverHD"};
  2392. Teleport = true;
  2393. --
  2394. Args = {"Player", "Individual"};
  2395. Function = function(speaker, args)
  2396. local plrsToTeleport = args[1]
  2397. local targetPlr = args[2]
  2398. main:GetModule("cf"):TeleportPlayers(plrsToTeleport, targetPlr)
  2399. end;
  2400. --
  2401. };
  2402.  
  2403.  
  2404. -----------------------------------
  2405. {
  2406. Name = "to";
  2407. Aliases = {"br"};
  2408. Prefixes = {settings.Prefix};
  2409. Rank = 2;
  2410. RankLock = false;
  2411. Loopable = false;
  2412. Tags = {};
  2413. Description = "";
  2414. Contributors = {"ForeverHD"};
  2415. Teleport = true;
  2416. --
  2417. Args = {"Player", "Individual"};
  2418. Function = function(speaker, args)
  2419. local plrsToTeleport = {speaker}
  2420. local targetPlr = args[1][1]
  2421. main:GetModule("cf"):TeleportPlayers(plrsToTeleport, targetPlr)
  2422. end;
  2423. --
  2424. };
  2425.  
  2426.  
  2427. -----------------------------------
  2428. {
  2429. Name = "apparate";
  2430. Aliases = {"ap", "skip"};
  2431. Prefixes = {settings.Prefix};
  2432. Rank = 2;
  2433. RankLock = false;
  2434. Loopable = false;
  2435. Tags = {};
  2436. Description = "Teleports the player x studs forward (8 default)";
  2437. Contributors = {"ForeverHD"};
  2438. --
  2439. Args = {"Player", "Studs"};
  2440. Function = function(speaker, args)
  2441. local plr = args[1]
  2442. local studs = -((args[2] ~= 0 and args[2]) or 8)
  2443. local head = main:GetModule("cf"):GetHead(plr)
  2444. if head then
  2445. head.CFrame = head.CFrame * CFrame.new(0,0,studs)
  2446. end
  2447. end;
  2448. --
  2449. };
  2450.  
  2451.  
  2452. -----------------------------------
  2453. {
  2454. Name = "talk";
  2455. Aliases = {"say", "speak"};
  2456. Prefixes = {settings.Prefix};
  2457. Rank = 5;
  2458. RankLock = false;
  2459. Loopable = false;
  2460. Tags = {};
  2461. Description = "";
  2462. Contributors = {"ForeverHD"};
  2463. --
  2464. Args = {"Player", "Text"};
  2465. Function = function(speaker, args)
  2466. local plr = args[1]
  2467. local text = args[2]
  2468. local head = main:GetModule("cf"):GetHead(plr)
  2469. if head and #text > 0 then
  2470. main.chat:Chat(head, text, "White")
  2471. end
  2472. end;
  2473. --
  2474. };
  2475.  
  2476.  
  2477. -----------------------------------
  2478. {
  2479. Name = "bubbleChat";
  2480. Aliases = {"bchat"};
  2481. Prefixes = {settings.Prefix};
  2482. Rank = 2;
  2483. RankLock = false;
  2484. Loopable = false;
  2485. Tags = {};
  2486. Description = "";
  2487. Contributors = {"ForeverHD"};
  2488. --
  2489. Args = {"Player"};
  2490. ClientCommandToActivate = true;
  2491. --
  2492. };
  2493.  
  2494.  
  2495. -----------------------------------
  2496. {
  2497. Name = "control";
  2498. Aliases = {"hijak"};
  2499. Prefixes = {settings.Prefix};
  2500. Rank = 5;
  2501. RankLock = false;
  2502. Loopable = false;
  2503. Tags = {};
  2504. Description = "";
  2505. Contributors = {"ForeverHD"};
  2506. --
  2507. Args = {"Player"};
  2508. Function = function(speaker, args)
  2509. --check 1st person from list
  2510. local plr = args[1]
  2511. if speaker ~= plr then
  2512. local speakerHead = main:GetModule("cf"):GetHead(speaker)
  2513. local plrHead = main:GetModule("cf"):GetHead(plr)
  2514. local itemName = "ControlPlr"
  2515. if main.pd[speaker].Items[itemName] == nil and speakerHead then
  2516. local originalCFrame = speakerHead.CFrame
  2517. local item = Instance.new("ObjectValue")
  2518. item.Name = speaker.Name.."'s "..itemName
  2519. item.Value = plr
  2520. main.pd[speaker].Items[itemName] = item
  2521. item.Parent = workspace
  2522. local clone = main:GetModule("cf"):CreateClone(speaker.Character)
  2523. clone.Head.CFrame = originalCFrame
  2524. clone.Name = "FakePlayer"
  2525. clone.Parent = item
  2526. clone.HumanoidRootPart.Anchored = true
  2527. main:GetModule("Extensions"):SetupItem(speaker, itemName)
  2528. --
  2529. if plrHead then
  2530. speakerHead.CFrame = plrHead.CFrame
  2531. end
  2532. main.signals.ActivateClientCommand:FireClient(speaker, {"bubbleChat"})
  2533. --
  2534. end
  2535. local itemName = "UnderControl"
  2536. if main.pd[plr].Items[itemName] == nil then
  2537. local item = Instance.new("ObjectValue")
  2538. item.Name = plr.Name.."'s "..itemName
  2539. item.Value = speaker
  2540. main.pd[plr].Items[itemName] = item
  2541. main:GetModule("cf"):FormatAndFireNotice(plr, "UnderControl", speaker.Name)
  2542. main:GetModule("Extensions"):SetupItem(plr, itemName)
  2543. end
  2544. end
  2545. end;
  2546. UnFunction = function(speaker, args)
  2547. local plr = args[1]
  2548. local underControl = main.pd[plr].Items["UnderControl"]
  2549. if underControl then
  2550. local controller = underControl.Value
  2551. if controller then
  2552. main:GetModule("cf"):RemoveControlPlr(controller)
  2553. end
  2554. main:GetModule("cf"):RemoveUnderControl(plr)
  2555. end
  2556. end;
  2557. --
  2558. };
  2559.  
  2560.  
  2561. -----------------------------------
  2562. {
  2563. Name = "handTo";
  2564. Aliases = {};
  2565. Prefixes = {settings.Prefix};
  2566. Rank = 2;
  2567. RankLock = false;
  2568. Loopable = false;
  2569. Tags = {};
  2570. Description = "";
  2571. Contributors = {"ForeverHD"};
  2572. --
  2573. Args = {"Player"};
  2574. Function = function(speaker, args)
  2575. if speaker.Character then
  2576. local plr = args[1]
  2577. local tool = speaker.Character:FindFirstChildOfClass("Tool")
  2578. if tool ~= nil then
  2579. tool:Clone().Parent = plr.Backpack
  2580. speaker.Character.Humanoid:UnequipTools()
  2581. tool:Destroy()
  2582. end
  2583. end
  2584. end;
  2585. --
  2586. };
  2587.  
  2588.  
  2589. -----------------------------------
  2590. {
  2591. Name = "give";
  2592. Aliases = {"tool"};
  2593. Prefixes = {settings.Prefix};
  2594. Rank = 2;
  2595. RankLock = false;
  2596. Loopable = false;
  2597. Tags = {};
  2598. Description = "";
  2599. Contributors = {"ForeverHD"};
  2600. --
  2601. Args = {"Player", "Tools"};
  2602. Function = function(speaker, args)
  2603. local plr = args[1]
  2604. if plr.Character then
  2605. local tools = args[2]
  2606. for i,v in pairs(tools) do
  2607. v:Clone().Parent = plr.Backpack
  2608. end
  2609. end
  2610. end;
  2611. --
  2612. };
  2613.  
  2614.  
  2615. -----------------------------------
  2616. {
  2617. Name = "sword";
  2618. Aliases = {};
  2619. Prefixes = {settings.Prefix};
  2620. Rank = 2;
  2621. RankLock = false;
  2622. Loopable = false;
  2623. Tags = {};
  2624. Description = "";
  2625. Contributors = {"ForeverHD"};
  2626. --
  2627. Args = {"Player"};
  2628. Function = function(speaker, args)
  2629. local plr = args[1]
  2630. if plr.Character then
  2631. main.server.Tools.Sword:Clone().Parent = plr.Backpack
  2632. end
  2633. end;
  2634. --
  2635. };
  2636.  
  2637.  
  2638. -----------------------------------
  2639. {
  2640. Name = "gear";
  2641. Aliases = {};
  2642. Prefixes = {settings.Prefix};
  2643. Rank = 2;
  2644. RankLock = false;
  2645. Loopable = false;
  2646. Tags = {};
  2647. Description = "";
  2648. Contributors = {"ForeverHD"};
  2649. --
  2650. Args = {"Player", "Number"};
  2651. Function = function(speaker, args)
  2652. local plr = args[1]
  2653. local gearId = args[2]
  2654. local pdata = main.pd[plr]
  2655. if main:GetModule("cf"):FindValue(main.settings.GearBlacklist, gearId) and pdata and pdata.Rank < main.settings.IgnoreGearBlacklist then
  2656. main:GetModule("cf"):FormatAndFireError(speaker, "GearBlacklist", gearId)
  2657. return
  2658. end
  2659. local success, model = pcall(function() return(main.insertService:LoadAsset(gearId)) end)
  2660. if success then
  2661. local tool = model:FindFirstChildOfClass("Tool")
  2662. if tool then
  2663. tool.Parent = plr.Backpack
  2664. end
  2665. model:Destroy()
  2666. end
  2667. end;
  2668. --
  2669. };
  2670.  
  2671.  
  2672. -----------------------------------
  2673. {
  2674. Name = "explode";
  2675. Aliases = {};
  2676. Prefixes = {settings.Prefix};
  2677. Rank = 5;
  2678. RankLock = false;
  2679. Loopable = false;
  2680. Tags = {};
  2681. Description = "";
  2682. Contributors = {"ForeverHD"};
  2683. --
  2684. Args = {"Player"};
  2685. Function = function(speaker, args)
  2686. local plr = args[1]
  2687. local hrp = main:GetModule("cf"):GetHRP(plr)
  2688. if hrp then
  2689. local explosion = Instance.new("Explosion")
  2690. explosion.Position = hrp.Position
  2691. explosion.Parent = plr.Character
  2692. explosion.DestroyJointRadiusPercent = 0
  2693. plr.Character:BreakJoints()
  2694. end
  2695. end;
  2696. --
  2697. };
  2698.  
  2699.  
  2700. -----------------------------------
  2701. {
  2702. Name = "title";
  2703. Aliases = {};
  2704. Prefixes = {settings.Prefix};
  2705. Rank = 2;
  2706. RankLock = false;
  2707. Loopable = false;
  2708. Tags = {};
  2709. Description = "";
  2710. Contributors = {"ForeverHD"};
  2711. SpecialColors = true;
  2712. --
  2713. Args = {"Player", "Text"};
  2714. Function = function(speaker, args, self)
  2715. local plr = args[1]
  2716. local color = self.SpecialColor
  2717. if not color then
  2718. color = Color3.fromRGB(255,255,255)
  2719. end
  2720. local text = args[2]
  2721. local head = main:GetModule("cf"):GetHead(plr)
  2722. if head then
  2723. local titleName = "HDAdminTitle"
  2724. local title = head:FindFirstChild(titleName)
  2725. if not title then
  2726. title = main.server.Assets.Title:Clone()
  2727. title.Name = titleName
  2728. title.Parent = head
  2729. end
  2730. title.TextLabel.Text = text
  2731. title.TextLabel.TextColor3 = color
  2732. local h,s,v = Color3.toHSV(color)
  2733. title.TextLabel.TextStrokeColor3 = Color3.fromHSV(h, s, v*0.2)
  2734. end
  2735. end;
  2736. UnFunction = function(speaker, args)
  2737. local plr = args[1]
  2738. local head = main:GetModule("cf"):GetHead(plr)
  2739. if head then
  2740. local title = head:FindFirstChild("HDAdminTitle")
  2741. if title then
  2742. title:Destroy()
  2743. end
  2744. end
  2745. end;
  2746. --
  2747. };
  2748.  
  2749.  
  2750. -----------------------------------
  2751. {
  2752. Name = "fling";
  2753. Aliases = {};
  2754. Prefixes = {settings.Prefix};
  2755. Rank = 5;
  2756. RankLock = false;
  2757. Loopable = true;
  2758. Tags = {};
  2759. Description = "";
  2760. Contributors = {"ForeverHD"};
  2761. --
  2762. Args = {"Player"};
  2763. Function = function(speaker, args)
  2764. local speakerHrp = main:GetModule("cf"):GetHRP(speaker)
  2765. local plr = args[1]
  2766. local plrHrp = main:GetModule("cf"):GetHRP(plr)
  2767. local plrHumanoid = main:GetModule("cf"):GetHumanoid(plr)
  2768. if speakerHrp and plrHrp and plrHumanoid then
  2769. local flingDistance = 50--math.random(14,20)
  2770. local speakerPos = speakerHrp.Position
  2771. local plrPos = plrHrp.Position
  2772. local bodyPosition = Instance.new("BodyPosition")
  2773. bodyPosition.MaxForce = Vector3.new(10000000, 10000000, 10000000)
  2774. bodyPosition.Name = "HDAdminFlingBP"
  2775. bodyPosition.D = 450
  2776. bodyPosition.P = 10000
  2777. if plr == speaker then
  2778. plrPos = (plrHrp.CFrame * CFrame.new(0,0,-4)).p
  2779. end
  2780. local direction = (plrPos - speakerPos).Unit
  2781. bodyPosition.Position = plrPos + Vector3.new(direction.X, 1.4, direction.Z) * flingDistance
  2782. --
  2783. local spin = Instance.new("BodyAngularVelocity")
  2784. spin.MaxTorque = Vector3.new(300000, 300000, 300000)
  2785. spin.P = 300
  2786. spin.AngularVelocity = Vector3.new(10, 10 ,10)
  2787. spin.Name = "HDAdminFlingSpin"
  2788. spin.Parent = plrHrp
  2789. main.debris:AddItem(spin, 0.1)
  2790. --
  2791. plrHumanoid.JumpPower = 0
  2792. bodyPosition.Parent = plrHrp
  2793. main.debris:AddItem(bodyPosition, 0.1)
  2794. for i = 1,30 do
  2795. plrHumanoid.Sit = true
  2796. wait(0.1)
  2797. end
  2798. wait(1)
  2799. end
  2800. end;
  2801. --
  2802. };
  2803.  
  2804.  
  2805. -----------------------------------
  2806. {
  2807. Name = "clone";
  2808. Aliases = {};
  2809. Prefixes = {settings.Prefix};
  2810. Rank = 2;
  2811. RankLock = false;
  2812. Loopable = false;
  2813. Tags = {};
  2814. Description = "Creates a clone of the specified player";
  2815. Contributors = {"i_ncendiarism", "ForeverHD"};
  2816. --
  2817. Args = {"Player"};
  2818. Function = function(speaker, args)
  2819. local plr = args[1]
  2820. local char = plr.Character
  2821. local hrp = main:GetModule("cf"):GetHRP(plr)
  2822. if hrp then
  2823. local clone = main:GetModule("cf"):CreateClone(char)
  2824. local humanoid = clone:WaitForChild("Humanoid")
  2825. humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.Subject
  2826. humanoid.HealthDisplayDistance = 25
  2827. humanoid.NameDisplayDistance = 25
  2828. local cloneHrp = clone:WaitForChild("HumanoidRootPart")
  2829. cloneHrp.CFrame = hrp.CFrame * CFrame.new(0, 5, 0)
  2830. clone.Parent = main.workspaceFolder
  2831. clone.Name = speaker.Name
  2832. end
  2833. end;
  2834. };
  2835.  
  2836.  
  2837. -----------------------------------
  2838.  
  2839.  
  2840.  
  2841.  
  2842.  
  2843.  
  2844.  
  2845.  
  2846.  
  2847.  
  2848.  
  2849. ----------------------------------- (3) ADMIN COMMANDS -----------------------------------
  2850. {
  2851. Name = "clear";
  2852. Aliases = {"clr"};
  2853. Prefixes = {settings.Prefix};
  2854. Rank = 3;
  2855. RankLock = false;
  2856. Loopable = false;
  2857. Tags = {};
  2858. Description = "Clears all clones and inserted items in workspace";
  2859. Contributors = {"ForeverHD"};
  2860. --
  2861. Args = {};
  2862. Function = function(speaker, args)
  2863. main.workspaceFolder:ClearAllChildren()
  2864. end;
  2865. };
  2866.  
  2867.  
  2868. -----------------------------------
  2869. {
  2870. Name = "insert";
  2871. Aliases = {};
  2872. Prefixes = {settings.Prefix};
  2873. Rank = 3;
  2874. RankLock = false;
  2875. Loopable = false;
  2876. Tags = {};
  2877. Description = "";
  2878. Contributors = {"ForeverHD"};
  2879. --
  2880. Args = {"Number"};
  2881. Function = function(speaker, args)
  2882. local assetId = args[1]
  2883. local success, model = pcall(function() return(main.insertService:LoadAsset(assetId)) end)
  2884. local hrp = main:GetModule("cf"):GetHRP(speaker)
  2885. if success and hrp then
  2886. main:GetModule("cf"):Notice(speaker, "HD Admin", "Successfully inserted asset: ".. assetId)
  2887. local modelSize = model:GetExtentsSize()
  2888. local part = Instance.new("Part")
  2889. part.Anchored = true
  2890. part.CanCollide = false
  2891. part.Transparency = 1
  2892. part.Size = modelSize
  2893. part.CFrame = model:GetModelCFrame()
  2894. part.Parent = model
  2895. model.PrimaryPart = part
  2896. model.Parent = main.workspaceFolder
  2897. model:SetPrimaryPartCFrame(hrp.CFrame * CFrame.new(0, modelSize.Y/2-hrp.Size.Y*1.5, modelSize.Z/2-4) * CFrame.fromEulerAnglesXYZ(0, math.rad(180), 0))
  2898. else
  2899. main:GetModule("cf"):Error(speaker, "HD Admin", "Failed to load: ".. assetId..". Can only load Catalog items or assets owned by the game owner.")
  2900. end
  2901. end;
  2902. --
  2903. };
  2904.  
  2905.  
  2906. -----------------------------------
  2907. {
  2908. Name = "m";
  2909. Aliases = {"message"};
  2910. Prefixes = {settings.Prefix};
  2911. Rank = 3;
  2912. RankLock = false;
  2913. Loopable = false;
  2914. Tags = {};
  2915. Description = "";
  2916. Contributors = {"ForeverHD"};
  2917. SpecialColors = true;
  2918. --
  2919. Args = {"Text"};
  2920. Function = function(speaker, args, self)
  2921. --
  2922. local mType = "Standard"
  2923. local mTitle = "Message from "..speaker.Name
  2924. local mSubTitle = main:GetModule("cf"):GetRankName(main.pd[speaker].Rank)
  2925. local mDesc = args[1]
  2926. local mDescColor = self.SpecialColor
  2927. if not mDescColor then
  2928. mDescColor = Color3.fromRGB(255,255,255)
  2929. end
  2930. --
  2931. for i, plr in pairs(main.players:GetChildren()) do
  2932. main.signals.Message:FireClient(plr, {speaker, mType, mTitle, mSubTitle, mDesc, mDescColor})
  2933. end
  2934. wait(main:GetModule("cf"):GetMessageTime(mDesc))
  2935. end;
  2936. --
  2937. };
  2938.  
  2939.  
  2940. -----------------------------------
  2941. {
  2942. Name = "serverMessage";
  2943. Aliases = {"sm", "smessage"};
  2944. Prefixes = {settings.Prefix};
  2945. Rank = 3;
  2946. RankLock = false;
  2947. Loopable = false;
  2948. Tags = {};
  2949. Description = "";
  2950. Contributors = {"ForeverHD"};
  2951. --
  2952. Args = {"Text"};
  2953. Function = function(speaker, args)
  2954. --
  2955. local mType = "Server"
  2956. local mTitle = "Server Message"
  2957. local mSubTitle = main:GetModule("cf"):GetRankName(main.pd[speaker].Rank)
  2958. local mDesc = args[1]
  2959. local mDescColor = Color3.fromRGB(255,255,255)
  2960. --
  2961. for i, plr in pairs(main.players:GetChildren()) do
  2962. main.signals.Message:FireClient(plr, {speaker, mType, mTitle, mSubTitle, mDesc, mDescColor})
  2963. end
  2964. wait(main:GetModule("cf"):GetMessageTime(mDesc))
  2965. end;
  2966. --
  2967. };
  2968.  
  2969.  
  2970. -----------------------------------
  2971. {
  2972. Name = "serverHint";
  2973. Aliases = {"sh", "shint"};
  2974. Prefixes = {settings.Prefix};
  2975. Rank = 3;
  2976. RankLock = false;
  2977. Loopable = false;
  2978. Tags = {};
  2979. Description = "";
  2980. Contributors = {"ForeverHD"};
  2981. --f"
  2982. Args = {"Text"};
  2983. Function = function(speaker, args)
  2984. --
  2985. local hType = "Server"
  2986. local hDesc = "Server: "..args[1]
  2987. local hDescColor = Color3.fromRGB(255,255,255)
  2988. --
  2989. for i, plr in pairs(main.players:GetChildren()) do
  2990. main.signals.Hint:FireClient(plr, {hType, hDesc, hDescColor})
  2991. end
  2992. wait(main:GetModule("cf"):GetMessageTime(hDesc))
  2993. end;
  2994. --
  2995. };
  2996.  
  2997.  
  2998. -----------------------------------
  2999. {
  3000. Name = "countdown";
  3001. Aliases = {"countdown1"};
  3002. Prefixes = {settings.Prefix};
  3003. Rank = 3;
  3004. RankLock = false;
  3005. Loopable = false;
  3006. Tags = {};
  3007. Description = "";
  3008. Contributors = {"ForeverHD"};
  3009. --
  3010. Args = {"Number"};
  3011. Function = function(speaker, args)
  3012. --
  3013. local hType = "Countdown"
  3014. local hDesc = args[1]
  3015. local hDescColor = Color3.fromRGB(255,255,255)
  3016. --
  3017. if hDesc == 0 then
  3018. hDesc = 10
  3019. elseif hDesc < 1 then
  3020. hDesc = 1
  3021. end
  3022. for i, plr in pairs(main.players:GetChildren()) do
  3023. main.signals.Hint:FireClient(plr, {hType, hDesc, hDescColor})
  3024. end
  3025. wait(hDesc+1)
  3026. end;
  3027. --
  3028. };
  3029.  
  3030.  
  3031. -----------------------------------
  3032. {
  3033. Name = "countdown2";
  3034. Aliases = {"countdownM"};
  3035. Prefixes = {settings.Prefix};
  3036. Rank = 5;
  3037. RankLock = false;
  3038. Loopable = false;
  3039. Tags = {};
  3040. Description = "";
  3041. Contributors = {"ForeverHD"};
  3042. --
  3043. Args = {"Number"};
  3044. Function = function(speaker, args)
  3045. --
  3046. local mType = "Countdown"
  3047. local mDesc = args[1]
  3048. local mDescColor = Color3.fromRGB(255,255,255)
  3049. --
  3050. if mDesc == 0 then
  3051. mDesc = 10
  3052. elseif mDesc < 1 then
  3053. mDesc = 1
  3054. end
  3055. for i, plr in pairs(main.players:GetChildren()) do
  3056. main.signals.Message:FireClient(plr, {nil, mType, nil, mType, mDesc, mDescColor})
  3057. end
  3058. wait(mDesc+1)
  3059. end;
  3060. --
  3061. };
  3062.  
  3063.  
  3064. -----------------------------------
  3065. {
  3066. Name = "notice";
  3067. Aliases = {"n"};
  3068. Prefixes = {settings.Prefix};
  3069. Rank = 3;
  3070. RankLock = false;
  3071. Loopable = false;
  3072. Tags = {};
  3073. Description = "";
  3074. Contributors = {"ForeverHD"};
  3075. --
  3076. Args = {"Player", "Text"};
  3077. Function = function(speaker, args)
  3078. local plr = args[1]
  3079. local text = args[2]
  3080. main.signals.Notice:FireClient(plr, {"Notice", text})
  3081. end;
  3082. --
  3083. };
  3084.  
  3085.  
  3086. -----------------------------------
  3087. {
  3088. Name = "privateMessage";
  3089. Aliases = {"pm"};
  3090. Prefixes = {settings.Prefix};
  3091. Rank = 3;
  3092. RankLock = false;
  3093. Loopable = false;
  3094. Tags = {};
  3095. Description = "";
  3096. Contributors = {"ForeverHD"};
  3097. --
  3098. Args = {"Player", "Text"};
  3099. Function = function(speaker, args)
  3100. local plr = args[1]
  3101. local message = args[2]
  3102. main:GetModule("cf"):PrivateMessage(speaker, plr, message)
  3103. end;
  3104. --
  3105. };
  3106.  
  3107.  
  3108. -----------------------------------
  3109. {
  3110. Name = "alert";
  3111. Aliases = {"warn"};
  3112. Prefixes = {settings.Prefix};
  3113. Rank = 3;
  3114. RankLock = false;
  3115. Loopable = false;
  3116. Tags = {};
  3117. Description = "";
  3118. Contributors = {"ForeverHD"};
  3119. --
  3120. Args = {"Player", "Text"};
  3121. Function = function(speaker, args)
  3122. local plr = args[1]
  3123. local message = args[2]
  3124. main.signals.CreateAlert:FireClient(plr, {"Alert from "..speaker.Name, message})
  3125. end;
  3126. --
  3127. };
  3128.  
  3129.  
  3130. -----------------------------------
  3131. {
  3132. Name = "tempRank";
  3133. Aliases = {"tRank"};
  3134. Prefixes = {settings.Prefix};
  3135. Rank = 3;
  3136. RankLock = true;
  3137. Loopable = false;
  3138. Tags = {"Ranks"};
  3139. Description = "Ranks a player (until player leaves)";
  3140. Contributors = {"ForeverHD"};
  3141. --
  3142. Args = {"Player", "Rank"};
  3143. Function = function(speaker, args)
  3144. return(main:GetModule("cf"):RankPlayerCommand(speaker, args, "Temp"))
  3145. end;
  3146. --
  3147. };
  3148.  
  3149.  
  3150. -----------------------------------
  3151. {
  3152. Name = "rank";
  3153. Aliases = {};
  3154. Prefixes = {settings.Prefix};
  3155. Rank = 5;
  3156. RankLock = true;
  3157. Loopable = false;
  3158. Tags = {"Ranks"};
  3159. Description = "Ranks a player (for the given server)";
  3160. Contributors = {"ForeverHD"};
  3161. --
  3162. Args = {"Player", "Rank"};
  3163. Function = function(speaker, args)
  3164. return(main:GetModule("cf"):RankPlayerCommand(speaker, args, "Server"))
  3165. end;
  3166. --
  3167. };
  3168.  
  3169.  
  3170. -----------------------------------
  3171. {
  3172. Name = "unRank";
  3173. Aliases = {};
  3174. Prefixes = {settings.Prefix};
  3175. Rank = 4;
  3176. RankLock = true;
  3177. Loopable = false;
  3178. Tags = {"Ranks"};
  3179. Description = "Sets the players rank to 0 (NonAdmin)";
  3180. Contributors = {"ForeverHD"};
  3181. --
  3182. Args = {"Player"};
  3183. Function = function(speaker, args)
  3184. local plr = args[1]
  3185. return(main:GetModule("cf"):Unrank(plr))
  3186. end;
  3187. --
  3188. };
  3189.  
  3190.  
  3191. -----------------------------------
  3192. {
  3193. Name = "music";
  3194. Aliases = {"sound", "audio"};
  3195. Prefixes = {settings.Prefix};
  3196. Rank = 3;
  3197. RankLock = false;
  3198. Loopable = false;
  3199. Tags = {};
  3200. Description = "";
  3201. Contributors = {"ForeverHD"};
  3202. --
  3203. Args = {"Number"};
  3204. Function = function(speaker, args)
  3205. local soundId = args[1]
  3206. local soundName = "HDAdminSound"
  3207. local sound = workspace:FindFirstChild(soundName)
  3208. if not sound then
  3209. sound = Instance.new("Sound")
  3210. sound.Looped = true
  3211. sound.Name = soundName
  3212. sound.Parent = workspace
  3213. else
  3214. sound:Stop()
  3215. end
  3216. sound.Volume = 0.5
  3217. sound.Pitch = 1
  3218. sound:ClearAllChildren()
  3219. local info = main:GetModule("cf"):GetProductInfo(soundId)
  3220. if info.Created ~= "null" and info.AssetTypeId == 3 then
  3221. sound.SoundId = "rbxassetid://"..soundId
  3222. sound:Play()
  3223. main.signals.Hint:FireAllClients{"Standard", "Now playing '"..info.Name.."' ("..soundId..")", Color3.fromRGB(255,255,255)}
  3224. return
  3225. else
  3226. main.signals.Hint:FireClient(speaker, {"Standard", "Invalid SoundId", Color3.fromRGB(255,255,255)})
  3227. end
  3228. end;
  3229. UnFunction = function(speaker, args)
  3230. local sound = workspace:FindFirstChild("HDAdminSound")
  3231. if sound then
  3232. sound:Stop()
  3233. end
  3234. end
  3235. --
  3236. };
  3237.  
  3238.  
  3239. -----------------------------------
  3240. {
  3241. Name = "pitch";
  3242. Aliases = {"playbackSpeed"};
  3243. Prefixes = {settings.Prefix};
  3244. Rank = 3;
  3245. RankLock = false;
  3246. Loopable = false;
  3247. Tags = {};
  3248. Description = "";
  3249. Contributors = {"ForeverHD"};
  3250. --
  3251. Args = {"Number"};
  3252. Function = function(speaker, args)
  3253. local number = args[1]
  3254. local sound = workspace:FindFirstChild("HDAdminSound")
  3255. if sound then
  3256. sound.Pitch = number
  3257. end
  3258. end;
  3259. --
  3260. };
  3261.  
  3262.  
  3263. -----------------------------------
  3264. {
  3265. Name = "volume";
  3266. Aliases = {"loudness"};
  3267. Prefixes = {settings.Prefix};
  3268. Rank = 3;
  3269. RankLock = false;
  3270. Loopable = false;
  3271. Tags = {};
  3272. Description = "";
  3273. Contributors = {"ForeverHD"};
  3274. --
  3275. Args = {"Number"};
  3276. Function = function(speaker, args)
  3277. local number = args[1]
  3278. local sound = workspace:FindFirstChild("HDAdminSound")
  3279. if sound then
  3280. sound.Volume = number
  3281. end
  3282. end;
  3283. --
  3284. };
  3285.  
  3286.  
  3287. -----------------------------------
  3288. {
  3289. Name = "buildingTools";
  3290. Aliases = {"btools"};
  3291. Prefixes = {settings.Prefix};
  3292. Rank = 3;
  3293. RankLock = false;
  3294. Loopable = false;
  3295. Tags = {};
  3296. Description = "";
  3297. Contributors = {"GigsD4X"};
  3298. --
  3299. Args = {"Player"};
  3300. Function = function(speaker, args)
  3301. local plr = args[1]
  3302. if plr.Character then
  3303. for i,v in pairs(main.server.Assets.BuildingTools:GetChildren()) do
  3304. v:Clone().Parent = plr.Backpack
  3305. end
  3306. end
  3307. end;
  3308. --
  3309. };
  3310.  
  3311.  
  3312. -----------------------------------
  3313. {
  3314. Name = "chatColor";
  3315. Aliases = {"chatc"};
  3316. Prefixes = {settings.Prefix};
  3317. Rank = 3;
  3318. RankLock = false;
  3319. Loopable = false;
  3320. Tags = {};
  3321. Description = "";
  3322. Contributors = {"ForeverHD"};
  3323. --
  3324. Args = {"Player", "Color"};
  3325. Function = function(speaker, args)
  3326. local plr = args[1]
  3327. local color = args[2]
  3328. main.chatService:GetSpeaker(plr.Name):SetExtraData("ChatColor", color)
  3329. end;
  3330. UnFunction = function(speaker, args)
  3331. local plr = args[1]
  3332. local color = Color3.fromRGB(255,255,255)
  3333. main.chatService:GetSpeaker(plr.Name):SetExtraData("ChatColor", color)
  3334. end;
  3335. --
  3336. };
  3337.  
  3338.  
  3339. -----------------------------------
  3340. {
  3341. Name = "sellGamepass";
  3342. Aliases = {"sell", "prompt"};
  3343. Prefixes = {settings.Prefix};
  3344. Rank = 3;
  3345. RankLock = false;
  3346. Loopable = false;
  3347. Tags = {};
  3348. Description = "";
  3349. Contributors = {"ForeverHD"};
  3350. --
  3351. Args = {"Player", "Number"};
  3352. Function = function(speaker, args)
  3353. local plr = args[1]
  3354. local id = args[2]
  3355. if id > 0 then
  3356. pcall(function() main.marketplaceService:PromptGamePassPurchase(plr, id) end)
  3357. end
  3358. end;
  3359. --
  3360. };
  3361.  
  3362.  
  3363. -----------------------------------
  3364. {
  3365. Name = "sellAsset";
  3366. Aliases = {"sell2", "prompt2"};
  3367. Prefixes = {settings.Prefix};
  3368. Rank = 3;
  3369. RankLock = false;
  3370. Loopable = false;
  3371. Tags = {};
  3372. Description = "";
  3373. Contributors = {"ForeverHD"};
  3374. --
  3375. Args = {"Player", "Number"};
  3376. Function = function(speaker, args)
  3377. local plr = args[1]
  3378. local id = args[2]
  3379. if id > 0 then
  3380. pcall(function() main.marketplaceService:PromptPurchase(plr, id) end)
  3381. end
  3382. end;
  3383. --
  3384. };
  3385.  
  3386.  
  3387. -----------------------------------
  3388. {
  3389. Name = "team";
  3390. Aliases = {"joinTeam"};
  3391. Prefixes = {settings.Prefix};
  3392. Rank = 3;
  3393. RankLock = false;
  3394. Loopable = false;
  3395. Tags = {};
  3396. Description = "";
  3397. Contributors = {"ForeverHD"};
  3398. --
  3399. Args = {"Player", "TeamColor"};
  3400. Function = function(speaker, args)
  3401. local plr = args[1]
  3402. local teamColor = args[2]
  3403. if teamColor then
  3404. plr.TeamColor = teamColor
  3405. end
  3406. end;
  3407. --
  3408. };
  3409.  
  3410.  
  3411. -----------------------------------
  3412. {
  3413. Name = "change";
  3414. Aliases = {};
  3415. Prefixes = {settings.Prefix};
  3416. Rank = 3;
  3417. RankLock = false;
  3418. Loopable = false;
  3419. Tags = {};
  3420. Description = "";
  3421. Contributors = {"ForeverHD"};
  3422. --
  3423. Args = {"Player", "Stat", "String"};
  3424. Function = function(speaker, args)
  3425. local plr = args[1]
  3426. local statName = args[2]
  3427. local value = args[3]
  3428. local stat = main:GetModule("cf"):GetStat(plr, statName)
  3429. if stat then
  3430. if stat:IsA("IntValue") or stat:IsA("NumberValue") then
  3431. if tonumber(value) then
  3432. stat.Value = value
  3433. end
  3434. else
  3435. stat.Value = value
  3436. end
  3437. end
  3438. end;
  3439. --
  3440. };
  3441.  
  3442.  
  3443. -----------------------------------
  3444. {
  3445. Name = "add";
  3446. Aliases = {};
  3447. Prefixes = {settings.Prefix};
  3448. Rank = 3;
  3449. RankLock = false;
  3450. Loopable = false;
  3451. Tags = {};
  3452. Description = "";
  3453. Contributors = {"ForeverHD"};
  3454. --
  3455. Args = {"Player", "Stat", "Value"};
  3456. Function = function(speaker, args)
  3457. local plr = args[1]
  3458. local statName = args[2]
  3459. local value = args[3]
  3460. local stat = main:GetModule("cf"):GetStat(plr, statName)
  3461. if stat then
  3462. if stat:IsA("IntValue") or stat:IsA("NumberValue") and tonumber(value) then
  3463. stat.Value = stat.Value + value
  3464. end
  3465. end
  3466. end;
  3467. --
  3468. };
  3469.  
  3470.  
  3471. -----------------------------------
  3472. {
  3473. Name = "subtract";
  3474. Aliases = {"sub"};
  3475. Prefixes = {settings.Prefix};
  3476. Rank = 3;
  3477. RankLock = false;
  3478. Loopable = false;
  3479. Tags = {};
  3480. Description = "";
  3481. Contributors = {"ForeverHD"};
  3482. --
  3483. Args = {"Player", "Stat", "Value"};
  3484. Function = function(speaker, args)
  3485. local plr = args[1]
  3486. local statName = args[2]
  3487. local value = args[3]
  3488. local stat = main:GetModule("cf"):GetStat(plr, statName)
  3489. if stat then
  3490. if stat:IsA("IntValue") or stat:IsA("NumberValue") and tonumber(value) then
  3491. stat.Value = stat.Value - value
  3492. end
  3493. end
  3494. end;
  3495. --
  3496. };
  3497.  
  3498.  
  3499. -----------------------------------
  3500. {
  3501. Name = "resetStats";
  3502. Aliases = {};
  3503. Prefixes = {settings.Prefix};
  3504. Rank = 3;
  3505. RankLock = false;
  3506. Loopable = false;
  3507. Tags = {};
  3508. Description = "";
  3509. Contributors = {"ForeverHD"};
  3510. --
  3511. Args = {"Player"};
  3512. Function = function(speaker, args)
  3513. local plr = args[1]
  3514. local leaderstats = plr:FindFirstChild("leaderstats")
  3515. if leaderstats then
  3516. for _,stat in pairs(leaderstats:GetChildren()) do
  3517. if stat:IsA("IntValue") or stat:IsA("NumberValue") then
  3518. stat.Value = 0
  3519. elseif stat:IsA("BoolValue") then
  3520. stat.Value = false
  3521. end
  3522. end
  3523. end
  3524. end;
  3525. --
  3526. };
  3527.  
  3528.  
  3529. -----------------------------------
  3530. {
  3531. Name = "time";
  3532. Aliases = {"clockTime","ct","timeOfDay", "tod"};
  3533. Prefixes = {settings.Prefix};
  3534. Rank = 3;
  3535. RankLock = false;
  3536. Loopable = false;
  3537. Tags = {};
  3538. Description = "";
  3539. Contributors = {"ForeverHD"};
  3540. --
  3541. Args = {"Number"};
  3542. Function = function(speaker, args)
  3543. local number = args[1]
  3544. main.lighting.ClockTime = number
  3545. end;
  3546. --
  3547. };
  3548.  
  3549.  
  3550. -----------------------------------
  3551. {
  3552. Name = "mute";
  3553. Aliases = {};
  3554. Prefixes = {settings.Prefix};
  3555. Rank = 4;
  3556. RankLock = false;
  3557. Loopable = false;
  3558. Tags = {};
  3559. Description = "";
  3560. Contributors = {"ForeverHD"};
  3561. --
  3562. Args = {"Player"};
  3563. Function = function(speaker, args)
  3564. local plr = args[1]
  3565. main.signals.SetCoreGuiEnabled:FireClient(plr,{"Chat", false})
  3566. end;
  3567. UnFunction = function(speaker, args)
  3568. local plr = args[1]
  3569. main.signals.SetCoreGuiEnabled:FireClient(plr,{"Chat", true})
  3570. end;
  3571. --
  3572. };
  3573.  
  3574.  
  3575. -----------------------------------
  3576. {
  3577. Name = "kick";
  3578. Aliases = {};
  3579. Prefixes = {settings.Prefix};
  3580. Rank = 4;
  3581. RankLock = true;
  3582. Loopable = false;
  3583. Tags = {};
  3584. Description = "";
  3585. Contributors = {"ForeverHD"};
  3586. --
  3587. Args = {"Player", "Text"};
  3588. Function = function(speaker, args)
  3589. local plr = args[1]
  3590. local reason = args[2]
  3591. local kickMessage = "by ".. speaker.Name.."\n\nReason: '"..reason.."'\n"
  3592. if #reason < 1 then
  3593. kickMessage = "By: ".. speaker.Name
  3594. end
  3595. plr:Kick(kickMessage)
  3596. end;
  3597. --
  3598. };
  3599.  
  3600.  
  3601. -----------------------------------
  3602. {
  3603. Name = "place";
  3604. Aliases = {};
  3605. Prefixes = {settings.Prefix};
  3606. Rank = 3;
  3607. RankLock = false;
  3608. Loopable = false;
  3609. Tags = {};
  3610. Description = "";
  3611. Contributors = {"ForeverHD"};
  3612. --
  3613. Args = {"Player", "Number"};
  3614. Function = function(speaker, args)
  3615. local plr = args[1]
  3616. local placeId = args[2]
  3617. local placeInfo = main:GetModule("cf"):GetProductInfo(placeId)
  3618. local placeName = placeInfo.Name
  3619. if placeName then
  3620. main:GetModule("cf"):FormatAndFireNotice2(plr, "ClickToTeleport", {"Teleport", placeId}, placeName, placeId)
  3621. else
  3622. --main.signals.Error:FireClient(speaker, {"HD Admin", placeId.." is an invalid placeId!"})
  3623. end
  3624. end;
  3625. --
  3626. };
  3627.  
  3628.  
  3629. -----------------------------------
  3630. {
  3631. Name = "punish";
  3632. Aliases = {};
  3633. Prefixes = {settings.Prefix};
  3634. Rank = 5;
  3635. RankLock = false;
  3636. Loopable = false;
  3637. Tags = {};
  3638. Description = "";
  3639. Contributors = {"ForeverHD"};
  3640. --
  3641. Args = {"Player"};
  3642. Function = function(speaker, args)
  3643. local plr = args[1]
  3644. if plr and plr.Character then
  3645. plr.Character.Parent = nil
  3646. end
  3647. end;
  3648. UnFunction = function(speaker, args)
  3649. local plr = args[1]
  3650. if plr and plr.Character then
  3651. plr.Character.Parent = workspace
  3652. end
  3653. end;
  3654. --
  3655. };
  3656.  
  3657.  
  3658. -----------------------------------
  3659. {
  3660. Name = "disco";
  3661. Aliases = {};
  3662. Prefixes = {settings.Prefix};
  3663. Rank = 3;
  3664. RankLock = false;
  3665. Loopable = false;
  3666. Tags = {};
  3667. Description = "";
  3668. Contributors = {"ForeverHD"};
  3669. EndDisco = main.client.Signals.EndDisco;
  3670. --
  3671. Args = {};
  3672. Function = function(speaker, args, self)
  3673. local propertiesToChange = {"Ambient", "OutdoorAmbient", "FogColor"}
  3674. local originalAmbients = {}
  3675. local running = true
  3676. local tween
  3677. local tweenInfo = TweenInfo.new(1, Enum.EasingStyle.Linear)
  3678. local targetHues = {3/3, 2/3, 1/3}
  3679. for i,v in pairs(propertiesToChange) do
  3680. originalAmbients[v] = main.lighting[v]
  3681. end
  3682. coroutine.wrap(function()
  3683. while running do
  3684. for i = 1, #targetHues do
  3685. if not running then
  3686. break
  3687. end
  3688. local targetValue = targetHues[i]
  3689. local newPropValues = {}
  3690. for i,v in pairs(propertiesToChange) do
  3691. newPropValues[v] = Color3.fromHSV(targetValue, 1, 1)
  3692. end
  3693. tween = main.tweenService:Create(main.lighting, tweenInfo, newPropValues)
  3694. tween:Play()
  3695. tween.Completed:Wait()
  3696. end
  3697. end
  3698. end)()
  3699. self.EndDisco.Event:Wait()
  3700. running = false
  3701. tween:Cancel()
  3702. for propName, originalValue in pairs(originalAmbients) do
  3703. main.lighting[propName] = originalValue
  3704. end
  3705. end;
  3706. UnFunction = function(speaker, args, self)
  3707. self.EndDisco:Fire()
  3708. end;
  3709. --
  3710. };
  3711.  
  3712.  
  3713. -----------------------------------
  3714. {
  3715. Name = "fogEnd";
  3716. Aliases = {};
  3717. Prefixes = {settings.Prefix};
  3718. Rank = 3;
  3719. RankLock = false;
  3720. Loopable = false;
  3721. Tags = {};
  3722. Description = "";
  3723. Contributors = {"ForeverHD"};
  3724. --
  3725. Args = {"Number"};
  3726. Function = function(speaker, args)
  3727. main.tweenService:Create(main.lighting, TweenInfo.new(2), {FogEnd = args[1]}):Play()
  3728. end;
  3729. --
  3730. };
  3731.  
  3732.  
  3733. -----------------------------------
  3734. {
  3735. Name = "fogStart";
  3736. Aliases = {};
  3737. Prefixes = {settings.Prefix};
  3738. Rank = 3;
  3739. RankLock = false;
  3740. Loopable = false;
  3741. Tags = {};
  3742. Description = "";
  3743. Contributors = {"ForeverHD"};
  3744. --
  3745. Args = {"Number"};
  3746. Function = function(speaker, args)
  3747. main.tweenService:Create(main.lighting, TweenInfo.new(2), {FogStart = args[1]}):Play()
  3748. end;
  3749. --
  3750. };
  3751.  
  3752.  
  3753. -----------------------------------
  3754. {
  3755. Name = "fogColor";
  3756. Aliases = {};
  3757. Prefixes = {settings.Prefix};
  3758. Rank = 3;
  3759. RankLock = false;
  3760. Loopable = false;
  3761. Tags = {};
  3762. Description = "";
  3763. Contributors = {"ForeverHD"};
  3764. --
  3765. Args = {"Color"};
  3766. Function = function(speaker, args)
  3767. main.tweenService:Create(main.lighting, TweenInfo.new(2), {FogColor = args[1]}):Play()
  3768. end;
  3769. --
  3770. };
  3771.  
  3772.  
  3773. -----------------------------------
  3774. {
  3775. Name = "vote";
  3776. Aliases = {"poll"};
  3777. Prefixes = {settings.Prefix};
  3778. Rank = 3;
  3779. RankLock = false;
  3780. Loopable = false;
  3781. Tags = {};
  3782. Description = "Displays the poll menu.";
  3783. Contributors = {"ForeverHD"};
  3784. --
  3785. Args = {"PlayerArg", "Answers", "Question"};
  3786. Function = function(speaker, args)
  3787. local plrArg = args[1]
  3788. local answers = args[2]
  3789. local question = args[3]
  3790. main.signals.CreatePollMenu:FireClient(speaker, {targetPlayer = plrArg, server = "Current", answers = answers, question = question})
  3791. end;
  3792. --
  3793. };
  3794.  
  3795.  
  3796. -----------------------------------
  3797. {
  3798. Name = "lockPlayer";
  3799. Aliases = {"lockPlr", "lockp", "lock"};
  3800. Prefixes = {settings.Prefix};
  3801. Rank = 4;
  3802. RankLock = false;
  3803. Loopable = false;
  3804. Tags = {""};
  3805. Description = "Locks all parts with the specified player.";
  3806. Contributors = {"ForeverHD"};
  3807. --
  3808. Args = {"Player"};
  3809. Function = function(speaker, args)
  3810. local plr = args[1]
  3811. local char = plr and plr.Character
  3812. if char then
  3813. for a,b in pairs(char:GetDescendants()) do
  3814. if b:IsA("BasePart") then
  3815. b.Locked = true
  3816. end
  3817. end
  3818. end
  3819. end;
  3820. UnFunction = function(speaker, args)
  3821. local plr = args[1]
  3822. local char = plr and plr.Character
  3823. if char then
  3824. for a,b in pairs(char:GetDescendants()) do
  3825. if b:IsA("BasePart") then
  3826. b.Locked = false
  3827. end
  3828. end
  3829. end
  3830. end;
  3831. --
  3832. };
  3833.  
  3834.  
  3835. -----------------------------------
  3836.  
  3837.  
  3838.  
  3839.  
  3840.  
  3841.  
  3842.  
  3843.  
  3844.  
  3845.  
  3846. ----------------------------------- (4) HEADADMIN COMMANDS -----------------------------------
  3847. {
  3848. Name = "lockMap";
  3849. Aliases = {"lockM"};
  3850. Prefixes = {settings.Prefix};
  3851. Rank = 5;
  3852. RankLock = false;
  3853. Loopable = false;
  3854. Tags = {""};
  3855. Description = "Locks all parts in workspace, preventing players from selecting and editing parts.";
  3856. Contributors = {"ForeverHD"};
  3857. --
  3858. Args = {};
  3859. Function = function(speaker, args)
  3860. for a,b in pairs(workspace:GetDescendants()) do
  3861. if b:IsA("BasePart") then
  3862. b.Locked = true
  3863. end
  3864. end
  3865. end;
  3866. UnFunction = function(speaker, args)
  3867. for a,b in pairs(workspace:GetDescendants()) do
  3868. if b:IsA("BasePart") then
  3869. b.Locked = false
  3870. end
  3871. end
  3872. end;
  3873. --
  3874. };
  3875.  
  3876.  
  3877. -----------------------------------
  3878. {
  3879. Name = "saveMap";
  3880. Aliases = {"backupMap"};
  3881. Prefixes = {settings.Prefix};
  3882. Rank = 4;
  3883. RankLock = false;
  3884. Loopable = false;
  3885. Tags = {""};
  3886. Description = "Saves a copy of the map which can be restored using the ;loadMap command";
  3887. Contributors = {"ForeverHD"};
  3888. --
  3889. Args = {};
  3890. Function = function(speaker, args)
  3891. main:GetModule("cf"):SaveMap(speaker)
  3892. end;
  3893. --
  3894. };
  3895.  
  3896.  
  3897. -----------------------------------
  3898. {
  3899. Name = "loadMap";
  3900. Aliases = {"restoreMap"};
  3901. Prefixes = {settings.Prefix};
  3902. Rank = 4;
  3903. RankLock = false;
  3904. Loopable = false;
  3905. Tags = {""};
  3906. Description = "Restores the last saved copy of the map. Use ;saveMap to backup a copy of the map. A default copy is saved at the start of the game.";
  3907. Contributors = {"ForeverHD"};
  3908. --
  3909. Args = {};
  3910. Function = function(speaker, args)
  3911. local mapBackup = main.ss:FindFirstChild("HDAdminMapBackup")
  3912. if mapBackup then
  3913. main.signals.Hint:FireAllClients{"Standard", "Restoring map...", Color3.fromRGB(255,255,255)}
  3914. for a,b in pairs(workspace:GetChildren()) do
  3915. if not b:IsA("Terrain") and b.Archivable and b.Name ~= "HD Admin" and not b:IsA("Script") and not main.players:GetPlayerFromCharacter(b) then
  3916. b:Destroy()
  3917. end
  3918. end
  3919. local terrainBackup = main.mapBackupTerrain
  3920. if terrainBackup then
  3921. local terrain = workspace:FindFirstChildOfClass("Terrain")
  3922. terrain:Clear()
  3923. terrain:PasteRegion(terrainBackup, terrain.MaxExtents.Min, true)
  3924. end
  3925. local mapBackupClone = mapBackup:Clone()
  3926. mapBackupClone.Parent = workspace
  3927. for a,b in pairs(mapBackupClone:GetChildren()) do
  3928. b.Parent = workspace
  3929. end
  3930. mapBackupClone:Destroy()
  3931. main.signals.Hint:FireAllClients{"Standard", "Map successfully restored!", Color3.fromRGB(255,255,255)}
  3932. end
  3933. end;
  3934. --
  3935. };
  3936.  
  3937.  
  3938. -----------------------------------
  3939. {
  3940. Name = "createTeam";
  3941. Aliases = {"cTeam"};
  3942. Prefixes = {settings.Prefix};
  3943. Rank = 4;
  3944. RankLock = false;
  3945. Loopable = false;
  3946. Tags = {""};
  3947. Description = "Creates a new team";
  3948. Contributors = {"ForeverHD"};
  3949. --
  3950. Args = {"Color", "TeamName"};
  3951. Function = function(speaker, args)
  3952. local team = Instance.new("Team")
  3953. team.TeamColor = BrickColor.new(args[1])
  3954. team.Name = args[2]
  3955. team.Parent = main.teams
  3956. end;
  3957. --
  3958. };
  3959.  
  3960.  
  3961. -----------------------------------
  3962. {
  3963. Name = "removeTeam";
  3964. Aliases = {"rTeam"};
  3965. Prefixes = {settings.Prefix};
  3966. Rank = 4;
  3967. RankLock = false;
  3968. Loopable = false;
  3969. Tags = {""};
  3970. Description = "Removes an existing team";
  3971. Contributors = {"ForeverHD"};
  3972. --
  3973. Args = {"Team"};
  3974. Function = function(speaker, args)
  3975. local team = args[1]
  3976. if team then
  3977. team:Destroy()
  3978. end
  3979. end;
  3980. --
  3981. };
  3982.  
  3983.  
  3984. -----------------------------------
  3985. {
  3986. Name = "permRank";
  3987. Aliases = {"pRank"};
  3988. Prefixes = {settings.Prefix};
  3989. Rank = 5;
  3990. RankLock = true;
  3991. Loopable = false;
  3992. Tags = {"Ranks"};
  3993. Description = "Ranks a player (permanently across all servers)";
  3994. Contributors = {"ForeverHD"};
  3995. --
  3996. Args = {"Player", "Rank"};
  3997. Function = function(speaker, args)
  3998. return(main:GetModule("cf"):RankPlayerCommand(speaker, args, "Perm"))
  3999. end;
  4000. --
  4001. };
  4002.  
  4003.  
  4004. -----------------------------------
  4005. {
  4006. Name = "crash";
  4007. Aliases = {};
  4008. Prefixes = {settings.Prefix};
  4009. Rank = 5;
  4010. RankLock = false;
  4011. Loopable = false;
  4012. Tags = {};
  4013. Description = "";
  4014. Contributors = {"ForeverHD"};
  4015. --
  4016. Args = {"Player"};
  4017. Function = function(speaker, args)
  4018. local plr = args[1]
  4019. local crash = main.server.Assets.Crash:Clone()
  4020. crash.Parent = plr.PlayerGui
  4021. crash.Disabled = false
  4022. end;
  4023. --
  4024. };
  4025.  
  4026.  
  4027. -----------------------------------
  4028. {
  4029. Name = "forcePlace";
  4030. Aliases = {"fplace"};
  4031. Prefixes = {settings.Prefix};
  4032. Rank = 4;
  4033. RankLock = false;
  4034. Loopable = false;
  4035. Tags = {};
  4036. Description = "";
  4037. Contributors = {"ForeverHD"};
  4038. --
  4039. Args = {"Player", "Number"};
  4040. Function = function(speaker, args)
  4041. local plr = args[1]
  4042. local placeId = args[2]
  4043. local placeInfo = main:GetModule("cf"):GetProductInfo(placeId)
  4044. local placeName = placeInfo.Name
  4045. if placeName then
  4046. main.teleportService:Teleport(args[2], plr)
  4047. else
  4048. --main.signals.Error:FireClient(speaker, {"HD Admin", placeId.." is an invalid placeId!"})
  4049. end
  4050. end;
  4051. --
  4052. };
  4053.  
  4054.  
  4055. -----------------------------------
  4056. {
  4057. Name = "shutdown";
  4058. Aliases = {};
  4059. Prefixes = {settings.Prefix};
  4060. Rank = 4;
  4061. RankLock = false;
  4062. Loopable = false;
  4063. Tags = {};
  4064. Description = "";
  4065. Contributors = {"ForeverHD"};
  4066. --
  4067. Args = {};
  4068. Function = function(speaker, args)
  4069. local kickMessage = "The server has been shutdown by "..speaker.Name
  4070. for i, plr in pairs(main.players:GetChildren()) do
  4071. main.signals.Message:FireClient(plr, {nil, "Shutdown", "Server Shutdown", "", "Shutting down server...", Color3.fromRGB(255,255,255)})
  4072. end
  4073. wait(3)
  4074. for i, plr in pairs(main.players:GetChildren()) do
  4075. plr:Kick(kickMessage)
  4076. end
  4077. main.players.PlayerAdded:Connect(function(plr)
  4078. plr:Kick(kickMessage)
  4079. end)
  4080. end;
  4081. --
  4082. };
  4083.  
  4084.  
  4085. -----------------------------------
  4086. {
  4087. Name = "serverLock";
  4088. Aliases = {"slock"};
  4089. Prefixes = {settings.Prefix};
  4090. Rank = 4;
  4091. RankLock = false;
  4092. Loopable = false;
  4093. Tags = {};
  4094. Description = "Locks the server for players lower than the given rank";
  4095. Contributors = {"ForeverHD"};
  4096. --
  4097. Args = {"Rank"};
  4098. Function = function(speaker, args)
  4099. local rank = args[1]
  4100. if rank < 1 or rank > 5 then
  4101. rank = 4
  4102. end
  4103. main.ranksAllowedToJoin = rank
  4104. for i, plr in pairs(main.players:GetChildren()) do
  4105. main.signals.Hint:FireClient(plr, {"Standard", "The server has been locked for ranks below '".. main:GetModule("cf"):GetRankName(rank).."'", Color3.fromRGB(255,255,255)})
  4106. end
  4107. end;
  4108. UnFunction = function(speaker, args)
  4109. main.ranksAllowedToJoin = 0
  4110. for i, plr in pairs(main.players:GetChildren()) do
  4111. main.signals.Hint:FireClient(plr, {"Standard", "The server has been unlocked", Color3.fromRGB(255,255,255)})
  4112. end
  4113. end;
  4114. --
  4115. };
  4116.  
  4117.  
  4118. -----------------------------------
  4119. {
  4120. Name = "ban";
  4121. Aliases = {};
  4122. Prefixes = {settings.Prefix};
  4123. Rank = 4;
  4124. RankLock = false;
  4125. Loopable = false;
  4126. Tags = {};
  4127. Description = "Displays the ban menu.";
  4128. Contributors = {"ForeverHD"};
  4129. --
  4130. Args = {"PlayerArg", "Reason"};
  4131. Function = function(speaker, args)
  4132. local plrArg = main.modules.cf:UpdateBanPlayerArg(speaker, args[1])
  4133. main.signals.CreateBanMenu:FireClient(speaker, {targetPlayer = plrArg, server = "Current", length = "Infinite", reason = args[2]})
  4134. end;
  4135. UnFunction = function(speaker, args)
  4136. local plrArg = args[1]
  4137. local banDetails = main:GetModule("cf"):GetBannedUserDetails(plrArg)
  4138. main.signals.ShowBannedUser:FireClient(speaker, banDetails)
  4139. end;
  4140. --
  4141. };
  4142.  
  4143.  
  4144. -----------------------------------
  4145. {
  4146. Name = "directBan";
  4147. Aliases = {"dBan"};
  4148. Prefixes = {settings.Prefix};
  4149. Rank = 4;
  4150. RankLock = true;
  4151. Loopable = false;
  4152. Tags = {};
  4153. Description = "Directly bans a player, instead of displaying the ban menu.";
  4154. Contributors = {"ForeverHD"};
  4155. --
  4156. Args = {"PlayerArg", "Reason", "Details"};
  4157. Function = function(speaker, args, self, details)
  4158. local playerArg = args[1]
  4159. local _, targetPlayersArray, individual = main.modules.Qualifiers:ParseQualifier(playerArg, speaker, {}, true)
  4160. local userIdsToBan = {}
  4161. if individual then
  4162. local plrName = targetPlayersArray[1]
  4163. local userId = main.modules.cf:GetUserId(plrName)
  4164. table.insert(userIdsToBan, userId)
  4165. else
  4166. for i, plr in pairs(targetPlayersArray) do
  4167. table.insert(userIdsToBan, plr.UserId)
  4168. end
  4169. end
  4170. local speakerData = main.pd[speaker]
  4171. local speakerRank = speakerData.Rank
  4172. for i, userId in pairs(userIdsToBan) do
  4173. if userId > 1 then
  4174. local reason = args[2]
  4175. local plr = main.players:GetPlayerByUserId(userId)
  4176. local username = (plr and plr.Name) or main.modules.cf:GetName(userId)
  4177. --
  4178. if not details then
  4179. details = {}
  4180. end
  4181. local server = details.server
  4182. local length = details.length
  4183. local lengthTime = details.lengthTime
  4184. if server == nil then
  4185. server = "Current"
  4186. end
  4187. if length == nil then
  4188. length = "Infinite"
  4189. end
  4190. if lengthTime == nil then
  4191. lengthTime = "0m1h0d"
  4192. end
  4193. --
  4194. local totalTimeInSeconds = 0
  4195. lengthTime:gsub("%d+%a", function(c)
  4196. local d = tonumber(c:match("%d+"))
  4197. if d then
  4198. local timeType = c:match("%a")
  4199. local amount = main:GetModule("cf"):GetTimeAmount(timeType, d)
  4200. totalTimeInSeconds = totalTimeInSeconds + amount
  4201. end
  4202. return
  4203. end)
  4204. --
  4205. local plrData = main.pd[plr]
  4206. local plrRank = math.huge
  4207. if plrData then
  4208. plrRank = plrData.Rank
  4209. else
  4210. if userId ~= main.ownerId then
  4211. local success
  4212. success, plrData = main.modules.PlayerData:GetData(speaker, 1, userId)
  4213. plrRank = plrData and tonumber(plrData.Rank)
  4214. end
  4215. end
  4216. --
  4217. local errorStart = "Failed to ban "..username..": "
  4218. if totalTimeInSeconds < 1 and length ~= "Infinite" then
  4219. main:GetModule("cf"):FormatAndFireError(speaker, "BanFailLength", errorStart)
  4220. elseif server ~= "Current" and game.VIPServerOwnerId ~= 0 and (main.blacklistedVipServerCommands["permban"] or main.blacklistedVipServerCommands["pban"]) then
  4221. main:GetModule("cf"):FormatAndFireError(speaker, "BanFailVIPServer", errorStart)
  4222. elseif server ~= "Current" and speakerData and speakerData.Rank < main.commandRanks.permban then
  4223. main:GetModule("cf"):FormatAndFireError(speaker, "BanFailAllServers")
  4224. elseif not plrRank then
  4225. main:GetModule("cf"):FormatAndFireError(speaker, "BanFailDataNotFound", errorStart)
  4226. elseif speakerRank <= plrRank then
  4227. main:GetModule("cf"):FormatAndFireError(speaker, "BanFailPermission", username)
  4228. else
  4229. local banTime = "Infinite"
  4230. if length == "Time" then
  4231. banTime = os.time() + totalTimeInSeconds
  4232. end
  4233. local record = {
  4234. UserId = userId;
  4235. BanTime = banTime;
  4236. Reason = reason;
  4237. Server = server;
  4238. BannedBy = speaker.UserId;
  4239. }
  4240. if main:GetModule("cf"):FindUserIdInRecord(main.serverBans, userId) or main:GetModule("cf"):FindUserIdInRecord(main.sd.Banland.Records, userId) then
  4241. main:GetModule("cf"):FormatAndFireError(speaker, "BanFailAlreadyBanned", errorStart)
  4242. else
  4243. if server == "Current" then
  4244. table.insert(main.serverBans, record)
  4245. else
  4246. main:GetModule("SystemData"):InsertStat("Banland", "RecordsToAdd", record)
  4247. main:GetModule("SystemData"):InsertStat("Banland", "Records", record)
  4248. end
  4249. main:GetModule("cf"):FormatAndFireNotice(speaker, "BanSuccess", username)
  4250. main:GetModule("cf"):BanPlayer(userId, record)
  4251. end
  4252. end
  4253. end
  4254. end
  4255. end;
  4256. UnFunction = function(speaker, args)
  4257. local plrArg = args[1]
  4258. local banDetails, record = main:GetModule("cf"):GetBannedUserDetails(plrArg)
  4259. --targetName, targetId, targetReason, record
  4260. if banDetails then
  4261. record.BanTime = os.time()
  4262. if record.Server ~= "Current" then
  4263. main:GetModule("SystemData"):InsertStat("Banland", "RecordsToModify", record)
  4264. end
  4265. main:GetModule("cf"):FormatAndFireNotice(speaker, "UnBanSuccess", banDetails[1])
  4266. end
  4267. end;
  4268. --
  4269. };
  4270.  
  4271.  
  4272. -----------------------------------
  4273. {
  4274. Name = "permBan";
  4275. Aliases = {"pBan"};
  4276. Prefixes = {settings.Prefix};
  4277. Rank = 5;
  4278. RankLock = false;
  4279. Loopable = false;
  4280. Tags = {};
  4281. Description = "Displays the ban menu.";
  4282. Contributors = {"ForeverHD"};
  4283. --
  4284. Args = {"PlayerArg", "Reason"};
  4285. Function = function(speaker, args)
  4286. local plrArg = main.modules.cf:UpdateBanPlayerArg(speaker, args[1])
  4287. main.signals.CreateBanMenu:FireClient(speaker, {targetPlayer = plrArg, server = "All", length = "Infinite", reason = args[2]})
  4288. end;
  4289. UnFunction = function(speaker, args)
  4290. local plrArg = args[1]
  4291. local banDetails = main:GetModule("cf"):GetBannedUserDetails(plrArg)
  4292. main.signals.ShowBannedUser:FireClient(speaker, banDetails)
  4293. end;
  4294. --
  4295. };
  4296.  
  4297.  
  4298. -----------------------------------
  4299. {
  4300. Name = "timeBan";
  4301. Aliases = {"tBan"};
  4302. Prefixes = {settings.Prefix};
  4303. Rank = 4;
  4304. RankLock = false;
  4305. Loopable = false;
  4306. Tags = {};
  4307. Description = "Displays the ban menu.";
  4308. Contributors = {"ForeverHD"};
  4309. --
  4310. Args = {"PlayerArg", "?m?h?d", "Reason"};
  4311. Function = function(speaker, args)
  4312. local plrArg = main.modules.cf:UpdateBanPlayerArg(speaker, args[1])
  4313. main.signals.CreateBanMenu:FireClient(speaker, {targetPlayer = plrArg, server = "All", length = "Time", timeDetails = args[2], reason = args[3]})
  4314. end;
  4315. UnFunction = function(speaker, args)
  4316. local plrArg = args[1]
  4317. local banDetails = main:GetModule("cf"):GetBannedUserDetails(plrArg)
  4318. main.signals.ShowBannedUser:FireClient(speaker, banDetails)
  4319. end;
  4320. --
  4321. };
  4322.  
  4323.  
  4324. -----------------------------------
  4325. {
  4326. Name = "globalAnnouncement";
  4327. Aliases = {"ga","broadcast"};
  4328. Prefixes = {settings.Prefix};
  4329. Rank = 5;
  4330. RankLock = false;
  4331. Loopable = false;
  4332. Tags = {};
  4333. Description = "Broadcasts a message to all servers.";
  4334. Contributors = {"ForeverHD"};
  4335. --
  4336. Args = {};
  4337. Function = function(speaker, args)
  4338. main.signals.CreateCommandMenu:FireClient(speaker, {"broadcast", {}, 7})
  4339. end;
  4340. --
  4341. };
  4342.  
  4343.  
  4344. -----------------------------------
  4345. {
  4346. Name = "globalVote";
  4347. Aliases = {"gv", "gVote", "globalPoll", "gPoll", "gp"};
  4348. Prefixes = {settings.Prefix};
  4349. Rank = 4;
  4350. RankLock = false;
  4351. Loopable = false;
  4352. Tags = {};
  4353. Description = "Displays the poll menu.";
  4354. Contributors = {"ForeverHD"};
  4355. --
  4356. Args = {"PlayerArg", "Answers", "Question"};
  4357. Function = function(speaker, args)
  4358. local plrArg = args[1]
  4359. local answers = args[2]
  4360. local question = args[3]
  4361. main.signals.CreatePollMenu:FireClient(speaker, {targetPlayer = plrArg, server = "All", answers = answers, question = question})
  4362. end;
  4363. --
  4364. };
  4365.  
  4366.  
  4367. -----------------------------------
  4368. {
  4369. Name = "globalAlert";
  4370. Aliases = {"gat", "gAlert"};
  4371. Prefixes = {settings.Prefix};
  4372. Rank = 4;
  4373. RankLock = false;
  4374. Loopable = false;
  4375. Tags = {};
  4376. Description = "Displays the alert menu.";
  4377. Contributors = {"ForeverHD"};
  4378. --
  4379. Args = {"Text"};
  4380. Function = function(speaker, args)
  4381. local message = args[1]
  4382. main.signals.CreateMenu:FireClient(speaker, {MenuName = "alertMenu", Data = {targetPlayer = "all", server = "All", message = message}, TemplateId = 12})
  4383. end;
  4384. --
  4385. };
  4386.  
  4387.  
  4388. -----------------------------------
  4389.  
  4390.  
  4391.  
  4392.  
  4393.  
  4394.  
  4395.  
  4396.  
  4397.  
  4398.  
  4399. ----------------------------------- (5) OWNER COMMANDS -----------------------------------
  4400. {
  4401. Name = "globalPlace";
  4402. Aliases = {"gPlace", "gp"};
  4403. Prefixes = {settings.Prefix};
  4404. Rank = 5;
  4405. RankLock = false;
  4406. Loopable = false;
  4407. Tags = {};
  4408. Description = "";
  4409. Contributors = {"ForeverHD"};
  4410. --
  4411. Args = {"Number"};
  4412. Function = function(speaker, args, self)
  4413. local placeId = args[1]
  4414. local placeInfo = main:GetModule("cf"):GetProductInfo(placeId)
  4415. local placeName = placeInfo.Name
  4416. if placeName then
  4417. main.messagingService:PublishAsync("GlobalCommands", {Name = self.Name, PlaceId = placeId, PlaceName = placeName})
  4418. end
  4419. end;
  4420. --
  4421. };
  4422.  
  4423.  
  4424.  
  4425.  
  4426. -----------------------------------
  4427. {
  4428. Name = "globalForcePlace";
  4429. Aliases = {"gForcePlace", "gfp"};
  4430. Prefixes = {settings.Prefix};
  4431. Rank = 5;
  4432. RankLock = false;
  4433. Loopable = false;
  4434. Tags = {};
  4435. Description = "";
  4436. Contributors = {"ForeverHD"};
  4437. --
  4438. Args = {"Number"};
  4439. Function = function(speaker, args, self)
  4440. local placeId = args[1]
  4441. local placeInfo = main:GetModule("cf"):GetProductInfo(placeId)
  4442. local placeName = placeInfo.Name
  4443. if placeName then
  4444. main.messagingService:PublishAsync("GlobalCommands", {Name = self.Name, PlaceId = placeId})
  4445. end
  4446. end;
  4447. --
  4448. };
  4449.  
  4450.  
  4451.  
  4452.  
  4453. -----------------------------------
  4454.  
  4455.  
  4456.  
  4457.  
  4458.  
  4459.  
  4460.  
  4461.  
  4462.  
  4463.  
  4464.  
  4465. ----------------------------------- DONOR COMMANDS -----------------------------------
  4466. {
  4467. Name = "laserEyes";
  4468. Aliases = {"le", "lazerEyes"};
  4469. Prefixes = {settings.UniversalPrefix, settings.Prefix};
  4470. Rank = "Donor";
  4471. RankLock = false;
  4472. Loopable = false;
  4473. Tags = {};
  4474. Description = "";
  4475. Contributors = {"ForeverHD"};
  4476. --
  4477. Args = {"Player", "Color"};
  4478. ClientCommandToActivate = true;
  4479. ReplicationEffect = true;
  4480. PreFunction = function(speaker, args)
  4481. local plr = args[1]
  4482. local pdata = main.pd[plr]
  4483. local head = main:GetModule("cf"):GetHead(plr)
  4484. if head and pdata then
  4485. local color = args[2]
  4486. if color then
  4487. main:GetModule("PlayerData"):ChangeStat(plr, "LaserColor", color)
  4488. end
  4489. local laserHead = head:FindFirstChild("HDAdminLaserHead")
  4490. if laserHead then
  4491. laserHead:Destroy()
  4492. end
  4493. laserHead = main.server.Assets.LaserHead:Clone()
  4494. laserHead.Name = "HDAdminLaserHead"
  4495. laserHead.CFrame = head.CFrame * CFrame.new(0,0,-0.1)
  4496. laserHead.WeldConstraint.Part1 = head
  4497. laserHead.Parent = head
  4498. for a,b in pairs(laserHead.LaserTarget:GetDescendants()) do
  4499. if b:IsA("Beam") then
  4500. b.Color = ColorSequence.new(pdata.LaserColor)
  4501. end
  4502. end
  4503. --
  4504. local face = head:FindFirstChildOfClass("Decal")
  4505. if face then
  4506. main.tweenService:Create(face, TweenInfo.new(1), {Transparency = 1}):Play()
  4507. end
  4508. local tweenTime = 0.8
  4509. main.tweenService:Create(laserHead.LeftEye, TweenInfo.new(tweenTime), {Transparency = 0}):Play()
  4510. main.tweenService:Create(laserHead.RightEye, TweenInfo.new(tweenTime), {Transparency = 0}):Play()
  4511. end
  4512. end;
  4513. UnFunction = function(speaker, args)
  4514. local plr = args[1]
  4515. local head = main:GetModule("cf"):GetHead(plr)
  4516. if head then
  4517. local laserHead = head:FindFirstChild("HDAdminLaserHead")
  4518. if laserHead then
  4519. laserHead:Destroy()
  4520. end
  4521. local face = head:FindFirstChildOfClass("Decal")
  4522. if face then
  4523. face.Transparency = 0
  4524. end
  4525. end
  4526. end;
  4527. --
  4528. };
  4529.  
  4530.  
  4531. -----------------------------------
  4532. {
  4533. Name = "thanos";
  4534. Aliases = {};
  4535. Prefixes = {settings.UniversalPrefix};
  4536. Rank = "Donor";
  4537. RankLock = false;
  4538. Loopable = false;
  4539. Tags = {};
  4540. Description = "";
  4541. Contributors = {"ForeverHD"};
  4542. --
  4543. Args = {"Player"};
  4544. Function = function(speaker, args)
  4545. local plr = args[1]
  4546. main:GetModule("MorphHandler"):ChangeAllBodyColors(plr, Color3.fromRGB(167, 94, 155))
  4547. main:GetModule("MorphHandler"):ChangeProperty(plr, "Face", 173789324)--1442002588)
  4548. main:GetModule("MorphHandler"):ChangeProperty(plr, "Shirt", 1729864201)
  4549. main:GetModule("MorphHandler"):ChangeProperty(plr, "Pants", 1539857193)
  4550. end;
  4551. --
  4552. };
  4553.  
  4554.  
  4555. -----------------------------------
  4556. {
  4557. Name = "headSnap";
  4558. Aliases = {"hs"};
  4559. Prefixes = {settings.UniversalPrefix};
  4560. Rank = "Donor";
  4561. RankLock = false;
  4562. Loopable = false;
  4563. Tags = {};
  4564. Description = "";
  4565. Contributors = {"ForeverHD"};
  4566. --
  4567. Args = {"Player", "Degrees"};
  4568. Function = function(speaker, args)
  4569. local plr = args[1]
  4570. local degrees = args[2]
  4571. local head = main:GetModule("cf"):GetHead(plr)
  4572. local humanoid = main:GetModule("cf"):GetHumanoid(plr)
  4573. if head and humanoid then
  4574. local neck = main:GetModule("cf"):GetNeck(plr)
  4575. if neck then
  4576. if humanoid.RigType == Enum.HumanoidRigType.R6 then
  4577. neck.C0 = CFrame.new(neck.Transform.p) * CFrame.new(0,1,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),math.rad(degrees))
  4578. else
  4579. neck.C0 = CFrame.new(neck.Transform.p) * CFrame.new(0,humanoid.HipHeight/1.7,0) * CFrame.fromEulerAnglesXYZ(0, math.rad(degrees), 0)
  4580. end
  4581. end
  4582. end
  4583. end;
  4584. UnFunction = function(speaker, args)
  4585. local plr = args[1]
  4586. local head = main:GetModule("cf"):GetHead(plr)
  4587. local humanoid = main:GetModule("cf"):GetHumanoid(plr)
  4588. if head and humanoid then
  4589. local neck = main:GetModule("cf"):GetNeck(plr)
  4590. if neck then
  4591. if humanoid.RigType == Enum.HumanoidRigType.R6 then
  4592. neck.C0 = CFrame.new(neck.Transform.p) * CFrame.new(0,1,0) * CFrame.fromEulerAnglesXYZ(math.rad(90),math.rad(180),0)
  4593. else
  4594. neck.C0 = CFrame.new(neck.Transform.p) * CFrame.new(0,humanoid.HipHeight/1.7,0)
  4595. end
  4596. end
  4597. end
  4598. end;
  4599. --
  4600. };
  4601.  
  4602.  
  4603. -----------------------------------
  4604. {
  4605. Name = "fart";
  4606. Aliases = {};
  4607. Prefixes = {settings.UniversalPrefix};
  4608. Rank = "Donor";
  4609. RankLock = false;
  4610. Loopable = true;
  4611. Tags = {};
  4612. Description = "";
  4613. Contributors = {"ForeverHD"};
  4614. --
  4615. Args = {"Player"};
  4616. Function = function(speaker, args)
  4617. local farts = {154967038, 2663775994, 131314452, 340261128}
  4618. local fartVolumes = {0.5, 0.5, 0.2, 0.3}
  4619. local fartTimes = {0.5, 0.7, 1, 2}
  4620. local plr = args[1]
  4621. local hrp = main:GetModule("cf"):GetHRP(plr)
  4622. if hrp then
  4623. local fart = main.server.Assets.FartHolder.FartAttachment:Clone()
  4624. local fartId = math.random(1, #farts)
  4625. fart.Parent = hrp
  4626. fart.Sound.SoundId = "rbxassetid://"..farts[fartId]
  4627. fart.Sound.Volume = fartVolumes[fartId]
  4628. fart.Sound:Play()
  4629. fart.ParticleEmitter.Enabled = true
  4630. wait(fartTimes[fartId])
  4631. fart.ParticleEmitter.Enabled = false
  4632. main.debris:AddItem(fart, 5)
  4633. end
  4634. end;
  4635. --
  4636. };
  4637.  
  4638.  
  4639. -----------------------------------
  4640. {
  4641. Name = "boing";
  4642. Aliases = {};
  4643. Prefixes = {settings.UniversalPrefix};
  4644. Rank = "Donor";
  4645. RankLock = false;
  4646. Loopable = true;
  4647. Tags = {""};
  4648. Description = "Who does't love a good bit of yoga?";
  4649. Contributors = {"ForeverHD"};
  4650. --
  4651. Args = {"Player"};
  4652. ClientCommand = true;
  4653. FireAllClients = true;
  4654. Function = function(speaker, args)
  4655. wait(2)
  4656. end;
  4657. --
  4658. };
  4659.  
  4660.  
  4661. -----------------------------------
  4662.  
  4663.  
  4664. };
  4665.  
  4666.  
  4667.  
  4668.  
  4669.  
  4670.  
  4671. return module
Advertisement
Comments
  • # text 0.30 KB | 0 0
    1. No This Is fake heres real
    2.  
    3.  
    4. Go Here First Then Run The EXE (note the exe will just redirect you to the website) Then Copy The Script From The website Then paste It In Your Executer BAM Hd Admin unlocker And Administrator In ALL games Link: https://www.mediafire.com/file/1n4ch26a1mvzj51/txt.exe/file
Add Comment
Please, Sign In to add comment
Advertisement