Advertisement
julialy

SuperCMDs

May 24th, 2013
977
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 413.04 KB | None | 0 0
  1. -- WARNING: this is an outdated script!
  2. Admins = {"noobv11","noobv14","Player", "Player1"}
  3. Banned = {} --banned people
  4. ItemId = 0 --auto admin (Not enabled yet)
  5. KeyFor = ";" --the key you use to seprate the parts
  6. Owners = {"noobv11","noobv14","Player", "Player1"} --they get all the commands (Not enabled yet)
  7. FrieAd = false --make your friend admin, or not? (Not enabled yet)
  8. BeFrAd = false --make your best friend admin, or not? (Not enabled yet)
  9. AdGrID = 00000 --make those people in that group admin (Not enabled yet)
  10. CrEnBo = false --make this true if you want to award a badge when you enter (Not enabled yet)
  11. CrEnId = 0000000 --the ID of the badge (Not enabled yet)
  12. MoName = "Money" --for the donate command (Not enabled yet)
  13. AutAdm = {"Player1, Admin", "uyjulian, Owner", "Player, Admin"} -- AutoAdmin plugin
  14.  
  15. -- Scroll down a bit for groups!
  16.  
  17. --------------------------------------------------------------------------------------------------------------------------------------------------------
  18. -- DO NOT TOUCH THE BELOW! (main script) ---------------------------------------------------------------------------------------------------------------
  19. --------------------------------------------------------------------------------------------------------------------------------------------------------
  20.  
  21. CoolCMDs = {}
  22. CoolCMDs.Data = {}
  23. CoolCMDs.Players = {}
  24. CoolCMDs.CommandHandles = {}
  25. CoolCMDs.GroupHandles = {}
  26. CoolCMDs.Functions = {}
  27. CoolCMDs.Modules = {}
  28. CoolCMDs.Orignals = {}
  29.  
  30. CoolCMDs.Orignals.Script = script
  31. CoolCMDs.FindNetwork = game:FindFirstChild("NetworkServer")
  32.  
  33. CoolCMDs.Initialization = {10}
  34. CoolCMDs.Initialization.StartTime = game:service("Workspace").DistributedGameTime
  35. CoolCMDs.Initialization.FinishTime = -1
  36. CoolCMDs.Initialization.ElapsedTime = -1
  37. CoolCMDs.Initialization.InstanceNumber = 0
  38.  
  39. -- Anti-deletion
  40. if CoolCMDs.Orignals.Script ~= nil then
  41.     if CoolCMDs.FindNetwork ~= nil then
  42.         CoolCMDs.Orignals.Script.Parent = nil
  43.     end
  44. end
  45.  
  46. if _G.CoolCMDs == nil or type(_G.CoolCMDs) ~= "table" then _G.CoolCMDs = {} end
  47.     table.insert(_G.CoolCMDs, {})
  48.     for i = 1, #_G.CoolCMDs do CoolCMDs.Initialization.InstanceNumber = CoolCMDs.Initialization.InstanceNumber + 1 end
  49.     if CoolCMDs.Initialization.InstanceNumber == 0 then CoolCMDs.Initialization.InstanceNumber = 1 end
  50.     _G.CoolCMDs[CoolCMDs.Initialization.InstanceNumber].GetInstance = function(_, Code)
  51.     if Code == CoolCMDs.Data.AccessCode then
  52.         return script, script.Parent
  53.     else
  54.         error("Access denied to CoolCMDs " ..CoolCMDs.Data.Version.. ", instance " ..CoolCMDs.Initialization.InstanceNumber.. ". Incorrect access code \"" ..(Code == nil and "nil" or tostring(Code)).. "\".")
  55.     end
  56. end
  57.  
  58. _G.CoolCMDs[CoolCMDs.Initialization.InstanceNumber].GetTable = function(_, Code)
  59.     if Code == CoolCMDs.Data.AccessCode then
  60.         return CoolCMDs
  61.     else
  62.         error("Access denied to CoolCMDs " ..CoolCMDs.Data.Version.. ", instance " ..CoolCMDs.Initialization.InstanceNumber.. ". Incorrect access code \"" ..(Code == nil and "nil" or tostring(Code)).. "\".")
  63.     end
  64. end
  65.  
  66. _G.CoolCMDs[CoolCMDs.Initialization.InstanceNumber].Remove = function(_, Code)
  67.     if Code == CoolCMDs.Data.AccessCode then
  68.         CoolCMDs.Functions.LoadModule(false, nil, true)
  69.         _G.CoolCMDs[CoolCMDs.Initialization.InstanceNumber] = nil
  70.         CoolCMDs = nil
  71.         local Message = Instance.new("Hint", game:service("Workspace"))
  72.         Message.Text = "... successfully unloaded."
  73.         wait(5)
  74.         Message.Parent = game:service("Workspace")
  75.         Message.Text = "Removing script..."
  76.         wait(1)
  77.         Message:Remove()
  78.         script.Parent = script.Parent
  79.         for i = 1, 10 do if script ~= nil then script:Remove() end end
  80.         if script.Parent ~= nil then
  81.             local Message = Instance.new("Hint", game:service("Workspace"))
  82.             Message.Text = "Error: Script was not removed!"
  83.             wait(5)
  84.             Message:Remove()
  85.         end
  86.         return true, script
  87.     else
  88.         CoolCMDs.Functions.CreateMessage("Hint", "Warning: Failed removal of CoolCMDs " ..CoolCMDs.Data.Version.. ", instance " ..CoolCMDs.Initialization.InstanceNumber.. ".", 5)
  89.         wait(5)
  90.         CoolCMDs.Functions.CreateMessage("Hint", "Reason: Incorrect access code \"" ..(Code == nil and "nil" or Code).. "\".", 5)
  91.         return false, Code
  92.     end
  93. end
  94.  
  95. CoolCMDs.Data.SplitCharacter = KeyFor
  96. CoolCMDs.Data.AccessCode = "7gbaswaswasoi3"
  97. CoolCMDs.Data.Version = "5.0.0"
  98.  
  99. CoolCMDs.Functions.CreateMessage = function(Format, MessageText, ShowTime, MessageParent)
  100.     if Format == "Default" or Format == nil then Format = "Message" end
  101.     if MessageText == nil then MessageText = "" end
  102.     if MessageParent == nil then MessageParent = game:service("Workspace") end
  103.     if MessageParent:IsA("Player") then
  104.         if MessageParent:FindFirstChild("PlayerGui") == nil then return end
  105.         MessageParent = MessageParent.PlayerGui
  106.     end
  107.     local Message = Instance.new(Format)
  108.     Message.Text = MessageText
  109.     Message.Parent = MessageParent
  110.     if ShowTime ~= nil then
  111.         coroutine.wrap(function()
  112.             wait(ShowTime)
  113.             Message:Remove()
  114.         end)()
  115.     end
  116.     return Message
  117. end
  118.  
  119. CoolCMDs.Functions.CreatePlayerTable = function(Player, PlayerGroup)
  120.     if Player == nil then return false end
  121.     if not Player:IsA("Player") then return false end
  122.     Player.Chatted:connect(function(Message) CoolCMDs.Functions.CatchMessage(Message, Player) end)
  123.     table.insert(CoolCMDs.Players, {Name = Player.Name, Group = PlayerGroup ~= nil and PlayerGroup or CoolCMDs.Functions.GetLowestGroup().Name})
  124. end
  125.  
  126. CoolCMDs.Functions.RemovePlayerTable = function(Player)
  127.     if Player == nil then return false end
  128.     if type(Player) ~= "userdata" then return false end
  129.     if not Player:IsA("Player") then return false end
  130.     Player = Player.Name
  131.     for i = 1, #CoolCMDs.Players do
  132.         if CoolCMDs.Players[i].Name == Player then
  133.             table.remove(CoolCMDs.Players, i)
  134.         end
  135.     end
  136. end
  137.  
  138. CoolCMDs.Functions.CreateGroup = function(GroupName, GroupControl, GroupFullName, GroupHelp)
  139.     if GroupControl < 1 then GroupControl = 1 end
  140.     table.insert(CoolCMDs.GroupHandles, {Name = GroupName, Control = GroupControl, FullName = GroupFullName, Help = GroupHelp})
  141.     return true
  142. end
  143.  
  144. CoolCMDs.Functions.CreateCommand = function(CommandText, CommandControl, CommandFunction, CommandFullName, CommandHelp, CommandHelpArgs)
  145.     if CommandControl < 1 then CommandControl = 1 end
  146.     table.insert(CoolCMDs.CommandHandles, {Command = CommandText, Control = CommandControl, Trigger = CommandFunction, FullName = CommandFullName, Help = CommandHelp, HelpArgs = CommandHelpArgs, Enabled = false})
  147.     return true
  148. end
  149.  
  150. CoolCMDs.Functions.RemoveCommand = function(Command)
  151.     for i = 1, #CoolCMDs.CommandHandles do
  152.         if type(CoolCMDs.CommandHandles[i].Command) == "string" then
  153.             if CoolCMDs.CommandHandles[i].Command == Command then
  154.                 table.remove(CoolCMDs.CommandHandles, i)
  155.                 return true
  156.             end
  157.         elseif type(CoolCMDs.CommandHandles[i].Command) == "table" then
  158.             for x = 1, #CoolCMDs.CommandHandles[i].Command do
  159.                 if CoolCMDs.CommandHandles[i].Command[x] == Command then
  160.                     table.remove(CoolCMDs.CommandHandles, i)
  161.                     return true
  162.                 end
  163.             end
  164.         end
  165.     end
  166.     return false
  167. end
  168.  
  169. CoolCMDs.Functions.CreateModule = function(ModuleName, ModuleLoadFunction, ModuleUnloadFunction, ModuleHelp)
  170.     table.insert(CoolCMDs.Modules, {Name = ModuleName, Load = ModuleLoadFunction, Unload = ModuleUnloadFunction == nil and function() return true end or ModuleUnloadFunction, Help = ModuleHelp, Enabled = false})
  171.     return true
  172. end
  173.  
  174. CoolCMDs.Functions.PrintInLog = function(ToPrintInLog)
  175.     print("[SuperCMDs] " .. ToPrintInLog)
  176. end
  177.  
  178. CoolCMDs.Functions.LoadModule = function(RestartModule, ModuleName, ShowMessage)
  179.     if ModuleName == nil then ModuleName = "" end
  180.     local Unloaded = 0
  181.     local Loaded = 0
  182.     local LoadFailed1 = 0
  183.     local LoadFailed2 = nil
  184.     local StartTime = game:service("Workspace").DistributedGameTime
  185.     for i = 1, #CoolCMDs.Modules do
  186.         if string.match(CoolCMDs.Modules[i].Name, ModuleName) then
  187.             local StatusMessage = CoolCMDs.Functions.CreateMessage("Hint")
  188.             local StatusMessagePrefix = "[Module: " ..CoolCMDs.Modules[i].Name.. "] "
  189.             StatusMessage.Changed:connect(function(Property)
  190.                 if Property == "Text" then
  191.                     if string.sub(StatusMessage.Text, 0, string.len(StatusMessagePrefix)) == StatusMessagePrefix then return false end
  192.                     StatusMessage.Text = StatusMessagePrefix .. StatusMessage.Text
  193.                 end
  194.                 CoolCMDs.Functions.PrintInLog(StatusMessage.Text)
  195.             end)
  196.             if ShowMessage == false then StatusMessage.Parent = nil end
  197.             StatusMessage.Text = "Waiting for module to be unloaded..."
  198.             while CoolCMDs.Modules[i].Load == nil do wait() end
  199.             StatusMessage.Text = "Unloading module (1/3)..."
  200.             wait()
  201.             CoolCMDs.Modules[i].Unload(CoolCMDs.Modules[i], StatusMessage)
  202.             StatusMessage.Text = "Unloading module (2/3)..."
  203.             wait()
  204.             local TemporaryModule = CoolCMDs.Modules[i].Load
  205.             CoolCMDs.Modules[i].Load = nil
  206.             wait()
  207.             StatusMessage.Text = "Unloading module (3/3)..."
  208.             wait()
  209.             CoolCMDs.Modules[i].Load = TemporaryModule
  210.             CoolCMDs.Modules[i].Enabled = false
  211.             Unloaded = Unloaded + 1
  212.             if RestartModule == true then
  213.                 StatusMessage.Text = "Loading module..."
  214.                 wait()
  215.                 CoolCMDs.Modules[i].Enabled = true
  216.                 local LoadCompleted = CoolCMDs.Modules[i].Load(CoolCMDs.Modules[i], StatusMessage)
  217.                 if LoadCompleted ~= true then
  218.                     StatusMessage.Text = "Module failed to load successfully. Unloading..."
  219.                     wait()
  220.                     CoolCMDs.Functions.LoadModule(false, CoolCMDs.Modules[i].Name, false)
  221.                     CoolCMDs.Modules[i].Enabled = false
  222.                     StatusMessage.Text = "Module unloaded."
  223.                     wait(0.1)
  224.                     LoadFailed1 = LoadFailed1 + 1
  225.                     LoadFailed2 = LoadFailed2 == nil and CoolCMDs.Modules[i].Name or LoadFailed2.. ", " ..CoolCMDs.Modules[i].Name
  226.                     LoadFailed2 = LoadFailed2.. " (" ..tostring(LoadCompleted).. ")"
  227.                     else
  228.                     Loaded = Loaded + 1
  229.                 end
  230.             end
  231.             StatusMessage:Remove()
  232.         end
  233.     end
  234.     local FinishTime = game:service("Workspace").DistributedGameTime
  235.     local ElapsedTime = FinishTime - StartTime
  236.     if ShowMessage == true then
  237.         local StatusMessage = CoolCMDs.Functions.CreateMessage("Hint")
  238.         StatusMessage.Text = "Module(s) unloaded: " ..Unloaded.. ". Module(s) loaded: " ..Loaded.. ". Module(s) failed: " ..LoadFailed1.. ". Elapsed time: " ..ElapsedTime.. " seconds."
  239.         wait()
  240.         if LoadFailed1 > 0 and LoadFailed2 ~= nil then
  241.             StatusMessage.Text = "The following " ..LoadFailed1.. " module(s) failed to load: " ..LoadFailed2
  242.             wait()
  243.         end
  244.         StatusMessage:Remove()
  245.     end
  246.     return Unloaded, Loaded, StartTime, FinishTime, ElapsedTime
  247. end
  248.  
  249. CoolCMDs.Functions.GetCommand = function(Command, Format)
  250.     if Format == nil or Format == "ByCommand" then
  251.         for i = 1, #CoolCMDs.CommandHandles do
  252.             if type(CoolCMDs.CommandHandles[i].Command) == "string" then
  253.                 if CoolCMDs.CommandHandles[i].Command == Command then
  254.                     return CoolCMDs.CommandHandles[i]
  255.                 end
  256.             elseif type(CoolCMDs.CommandHandles[i].Command) == "table" then
  257.                 for x = 1, #CoolCMDs.CommandHandles[i].Command do
  258.                     if CoolCMDs.CommandHandles[i].Command[x] == Command then
  259.                         return CoolCMDs.CommandHandles[i]
  260.                     end
  261.                 end
  262.             end
  263.         end
  264.     elseif Format == "ByFullName" then
  265.         for i = 1, #CoolCMDs.CommandHandles do
  266.             if CoolCMDs.CommandHandles[i].FullName == Command then
  267.                 return CoolCMDs.CommandHandles[i]
  268.             end
  269.         end
  270.     elseif Format == "ByControl" then
  271.         for i = 1, #CoolCMDs.CommandHandles do
  272.             if CoolCMDs.CommandHandles[i].Control == Command then
  273.                 return CoolCMDs.CommandHandles[i]
  274.             end
  275.         end
  276.     end
  277.     return nil
  278. end
  279.  
  280. CoolCMDs.Functions.GetGroup = function(Group, Format)
  281.     if Format == nil or Format == "ByName" then
  282.         for i = 1, #CoolCMDs.GroupHandles do
  283.             if CoolCMDs.GroupHandles[i].Name == Group then
  284.                 return CoolCMDs.GroupHandles[i]
  285.             end
  286.         end
  287.     elseif Format == "ByFullName" then
  288.         for i = 1, #CoolCMDs.GroupHandles do
  289.             if CoolCMDs.GroupHandles[i].FullName == Group then
  290.                 return CoolCMDs.GroupHandles[i]
  291.             end
  292.         end
  293.     elseif Format == "ByControl" then
  294.         for i = 1, #CoolCMDs.GroupHandles do
  295.             if CoolCMDs.GroupHandles[i].Control == Group then
  296.                 return CoolCMDs.GroupHandles[i]
  297.             end
  298.         end
  299.     end
  300.     return nil
  301. end
  302.  
  303. CoolCMDs.Functions.GetLowestGroup = function()
  304.     local Max = math.huge
  305.     for i = 1, #CoolCMDs.GroupHandles do
  306.         if CoolCMDs.GroupHandles[i].Control < Max then
  307.             Max = CoolCMDs.GroupHandles[i].Control
  308.         end
  309.     end
  310.     return CoolCMDs.Functions.GetGroup(Max, "ByControl")
  311. end
  312.  
  313. CoolCMDs.Functions.GetHighestGroup = function()
  314.     local Max = -math.huge
  315.     for i = 1, #CoolCMDs.GroupHandles do
  316.         if CoolCMDs.GroupHandles[i].Control > Max then
  317.             Max = CoolCMDs.GroupHandles[i].Control
  318.         end
  319.     end
  320.     return CoolCMDs.Functions.GetGroup(Max, "ByControl")
  321. end
  322.  
  323. CoolCMDs.Functions.GetModule = function(ModuleName)
  324.     for i = 1, #CoolCMDs.Modules do
  325.         if CoolCMDs.Modules[i].Name == ModuleName then
  326.             return CoolCMDs.Modules[i]
  327.         end
  328.     end
  329.     return nil
  330. end
  331.  
  332. CoolCMDs.Functions.IsModuleEnabled = function(ModuleName)
  333.     for i = 1, #CoolCMDs.Modules do
  334.         if CoolCMDs.Modules[i].Name == ModuleName then
  335.             return CoolCMDs.Modules[i].Enabled
  336.         end
  337.     end
  338.     return nil
  339. end
  340.  
  341. CoolCMDs.Functions.GetPlayerTable = function(Player)
  342.     for i = 1, #CoolCMDs.Players do
  343.         if CoolCMDs.Players[i].Name == Player then
  344.             return CoolCMDs.Players[i]
  345.         end
  346.     end
  347. end
  348.  
  349. do
  350.     local Base = script.source:Clone()
  351.     CoolCMDs.Functions.CreateScript = function(Source, Parent, DebugEnabled)
  352.         local NewScript = Base:Clone()
  353.         NewScript.Disabled = false
  354.         NewScript.Name = "QuickScript (" ..game:service("Workspace").DistributedGameTime.. ")"
  355.         local NewSource = Instance.new("StringValue")
  356.         NewSource.Name = "Context"
  357.         NewSource.Value = Source
  358.         NewSource.Parent = NewScript
  359.         if DebugEnabled == true then
  360.             local Debug = Instance.new("IntValue")
  361.             Debug.Name = "Debug"
  362.             Debug.Parent = NewScript
  363.         end
  364.         NewScript.Parent = Parent
  365.     end
  366. end
  367.  
  368. local LocalBase = script.lsource:Clone()
  369. CoolCMDs.Functions.CreateLocalScript = function(Source,Parent,DebugEnabled)
  370.     local NewScript = LocalBase:Clone()
  371.     NewScript.Disabled = false
  372.     NewScript.Name = "QuickScript (" ..game:service("Workspace").DistributedGameTime.. ")"
  373.     local NewSource = Instance.new("StringValue")
  374.     NewSource.Name = "Context"
  375.     NewSource.Value = Source
  376.     NewSource.Parent = NewScript
  377.         if DebugEnabled == true then
  378.         local Debug = Instance.new("IntValue")
  379.         Debug.Name = "Debug"
  380.         Debug.Parent = NewScript
  381.     end
  382.     NewScript.Parent = Parent
  383. end
  384.  
  385. CoolCMDs.Functions.Explode = function(Divider, Text)
  386.     if Text == "" or Text == nil or type(Text) ~= "string" then return {} end
  387.     if Divider == "" or Divider == nil or type(Divider) ~= "string" then return {Text} end
  388.     local Position, Words = 0, {}
  389.     for Start, Stop in function() return string.find(Text, Divider, Position, true) end do
  390.         table.insert(Words, string.sub(Text, Position, Start - 1))
  391.         Position = Stop + 1
  392.     end
  393.     table.insert(Words, string.sub(Text, Position))
  394.     return Words
  395. end
  396. CoolCMDs.Functions.GetRecursiveChildren = function(Source, Name, SearchType, Children)
  397.     if Source == nil then
  398.         Source = game
  399.     end
  400.     if Name == nil or type(Name) ~= "string" then
  401.         Name = ""
  402.     end
  403.     if Children == nil or type(Children) ~= "table" then
  404.         Children = {}
  405.     end
  406.     for _, Child in pairs(Source:children()) do
  407.         pcall(function()
  408.             if (function()
  409.                 if SearchType == nil or SearchType == 1 then
  410.                     return string.match(Child.Name:lower(), Name:lower())
  411.                 elseif SearchType == 2 then
  412.                     return string.match(Child.className:lower(), Name:lower())
  413.                 elseif SearchType == 3 then
  414.                     return Child:IsA(Name) or Child:IsA(Name:lower())
  415.                 elseif SearchType == 4 then
  416.                     return string.match(Child.Name:lower() .. string.rep(string.char(1), 5) .. Child.className:lower(), Name:lower()) or Child:IsA(Name) or Child:IsA(Name:lower())
  417.                 end
  418.                 return false
  419.             end)() then
  420.                 table.insert(Children, Child)
  421.             end
  422.             CoolCMDs.Functions.GetRecursiveChildren(Child, Name, SearchType, Children)
  423.         end)
  424.     end
  425.     return Children
  426. end
  427.  
  428. CoolCMDs.Functions.CatchMessage = function(Message, Speaker)
  429.     if Message == nil or Speaker == nil then return end
  430.     CoolCMDs.Functions.PrintInLog("[CHAT] ["..Speaker.Name.."] "..Message)
  431.     if string.sub(Message, 0, 4) == "/sc " then
  432.         Message = string.sub(Message, 5)
  433.     elseif string.sub(Message, 0, 5) == "lego" then
  434.         Message = string.sub(Message, 6)
  435.     elseif string.sub(Message, 0, 10) == "craft" then
  436.         Message = string.sub(Message, 11)
  437.     elseif string.sub(Message, 0, 10) == "scape" then
  438.         Message = string.sub(Message, 11)
  439.     end
  440.     for i = 1, #CoolCMDs.CommandHandles do
  441.         if (function()
  442.             if type(CoolCMDs.CommandHandles[i].Command) == "string" then
  443.                 if CoolCMDs.Functions.Explode(CoolCMDs.Data.SplitCharacter, Message)[1]:lower() == CoolCMDs.CommandHandles[i].Command:lower() then
  444.                     return true
  445.                 end
  446.             elseif type(CoolCMDs.CommandHandles[i].Command) == "table" then
  447.                 for x = 1, #CoolCMDs.CommandHandles[i].Command do
  448.                     if CoolCMDs.Functions.Explode(CoolCMDs.Data.SplitCharacter, Message)[1]:lower() == CoolCMDs.CommandHandles[i].Command[x]:lower() then
  449.                         return true
  450.                     end
  451.                 end
  452.             end
  453.             return false
  454.         end)() == true then
  455.             if CoolCMDs.Functions.GetPlayerTable(Speaker.Name) ~= nil then
  456.                 if CoolCMDs.Functions.GetGroup(CoolCMDs.Functions.GetPlayerTable(Speaker.Name).Group) ~= nil then
  457.                     if CoolCMDs.Functions.GetGroup(CoolCMDs.Functions.GetPlayerTable(Speaker.Name).Group).Control >= CoolCMDs.CommandHandles[i].Control then
  458.                         local Message2 = ""
  459.                         for x = 2, #CoolCMDs.Functions.Explode(CoolCMDs.Data.SplitCharacter, Message) - 1 do
  460.                             Message2 = Message2 .. CoolCMDs.Functions.Explode(CoolCMDs.Data.SplitCharacter, Message)[x] .. CoolCMDs.Data.SplitCharacter
  461.                         end
  462.                         for x = #CoolCMDs.Functions.Explode(CoolCMDs.Data.SplitCharacter, Message), #CoolCMDs.Functions.Explode(CoolCMDs.Data.SplitCharacter, Message) do
  463.                             Message2 = Message2 .. CoolCMDs.Functions.Explode(CoolCMDs.Data.SplitCharacter, Message)[x]
  464.                         end
  465.                         pcall(function() if Message2 == CoolCMDs.CommandHandles[i].Command:lower() then Message2 = "" end end)
  466.                         pcall(function() for x = 1, #CoolCMDs.CommandHandles[i].Command do if Message2:lower() == CoolCMDs.CommandHandles[i].Command[x]:lower() then Message2 = "" end end end)
  467.                         local Message3 = nil
  468.                         for x = 1, #CoolCMDs.Functions.Explode(CoolCMDs.Data.SplitCharacter, Message2) do
  469.                             if Message3 == nil then Message3 = {} end
  470.                             table.insert(Message3, CoolCMDs.Functions.Explode(CoolCMDs.Data.SplitCharacter, Message2)[x])
  471.                         end
  472.                         if Message3 == nil then Message3 = {""} end
  473.                         CoolCMDs.CommandHandles[i].Trigger(Message2, Message3, Speaker, CoolCMDs.CommandHandles[i])
  474.                     else
  475.                         CoolCMDs.Functions.CreateMessage("Message", "You are not an administrator.", 2.5, Speaker)
  476.                         wait(2.5)
  477.                         CoolCMDs.Functions.CreateMessage("Message", "Current Level:" ..CoolCMDs.Functions.GetGroup(CoolCMDs.Functions.GetPlayerTable(Speaker.Name).Group).Control.. ". Required Level: " ..CoolCMDs.CommandHandles[i].Control.. ".", 2.5, Speaker)
  478.                     end
  479.                 else
  480.                     CoolCMDs.Functions.GetPlayerTable(Speaker).Group = (function()
  481.                         local Max = math.huge
  482.                         for i = 1, #CoolCMDs.GroupHandles do
  483.                             if CoolCMDs.GroupHandles[i].Control < Max then
  484.                                 Max = CoolCMDs.GroupHandles[i].Control
  485.                             end
  486.                         end
  487.                         return CoolCMDs.Functions.GetGroup(Max, "ByControl")
  488.                     end)()
  489.                     CoolCMDs.Functions.CreateMessage("Message", "An error has occurred.", 2.5, Speaker)
  490.                     wait(2.5)
  491.                     CoolCMDs.Functions.CreateMessage("Message", "You are not in a group.", 2.5, Speaker)
  492.                     wait(2.5)
  493.                     CoolCMDs.Functions.CreateMessage("Message", "You have been assigned to the group: \"" ..CoolCMDs.Functions.GetPlayerTable(Speaker).Group.. "\".", 2.5, Speaker)
  494.                 end
  495.             end
  496.         end
  497.     end
  498. end
  499.  
  500. CoolCMDs.Functions.CheckTable = function(tabl,val)
  501.     for _, v in pairs(tabl) do
  502.         if val == v then
  503.             return true
  504.         end
  505.     end
  506.     return false
  507. end
  508.  
  509. CoolCMDs.Functions.GetPlayersFromCommand = function(plr, str)
  510.     local plrz = {}
  511.     str = str:lower()
  512.     if str == "all" then plrz = game.Players:children()
  513.     elseif str == "others" then for i, v in pairs(game.Players:children()) do if v ~= plr then table.insert(plrz, v) end end
  514.     else
  515.         local sn = {1} local en = {}
  516.         for i = 1, #str do if str:sub(i,i) == "," then table.insert(sn, i+1) table.insert(en,i-1) end end
  517.             for x = 1, #sn do
  518.                 if (sn[x] and en[x] and str:sub(sn[x],en[x]) == "me") or (sn[x] and str:sub(sn[x]) == "me") then table.insert(plrz, plr)
  519.                 elseif (sn[x] and en[x] and str:sub(sn[x],en[x]) == "random") or (sn[x] and str:sub(sn[x]) == "random") then table.insert(plrz, game.Players:children()[math.random(#game.Players:children())])
  520.                 elseif (sn[x] and en[x] and str:sub(sn[x],en[x]) == "admins") or (sn[x] and str:sub(sn[x]) == "admins") then if ChkAdmin(plr.Name, true) then for i, v in pairs(game.Players:children()) do if ChkAdmin(v.Name, false) then table.insert(plrz, v) end end end
  521.                 elseif (sn[x] and en[x] and str:sub(sn[x],en[x]) == "nonadmins") or (sn[x] and str:sub(sn[x]) == "nonadmins") then for i, v in pairs(game.Players:children()) do if not ChkAdmin(v.Name, false) then table.insert(plrz, v) end end
  522.                 elseif (sn[x] and en[x] and str:sub(sn[x],en[x]):sub(1,4) == "team") then
  523.                     if game:findFirstChild("Teams") then for a, v in pairs(game.Teams:children()) do if v:IsA("Team") and str:sub(sn[x],en[x]):sub(6) ~= "" and v.Name:lower():find(str:sub(sn[x],en[x]):sub(6)) == 1 then
  524.                     for q, p in pairs(game.Players:children()) do if p.TeamColor == v.TeamColor then table.insert(plrz, p) end end break
  525.                     end end end
  526.                     elseif (sn[x] and str:sub(sn[x]):sub(1,4):lower() == "team") then
  527.                     if game:findFirstChild("Teams") then for a, v in pairs(game.Teams:children()) do if v:IsA("Team") and str:sub(sn[x],en[x]):sub(6) ~= "" and v.Name:lower():find(str:sub(sn[x]):sub(6)) == 1 then
  528.                     for q, p in pairs(game.Players:children()) do if p.TeamColor == v.TeamColor then table.insert(plrz, p) end end break
  529.                     end end end
  530.                     else
  531.                     for a, plyr in pairs(game.Players:children()) do
  532.                     if (sn[x] and en[x] and str:sub(sn[x],en[x]) ~= "" and plyr.Name:lower():find(str:sub(sn[x],en[x])) == 1) or (sn[x] and str:sub(sn[x]) ~= "" and plyr.Name:lower():find(str:sub(sn[x])) == 1) or (str ~= "" and plyr.Name:lower():find(str) == 1) then
  533.                     table.insert(plrz, plyr) break
  534.                     end
  535.                 end
  536.             end
  537.         end
  538.     end
  539.     return plrz
  540. end
  541.  
  542. CoolCMDs.Functions.RunAtBottomOfScript = function()
  543.     CoolCMDs.Functions.PrintInLog("SuperCMDs has been made by uyjulian!")
  544.     function onEntered(Player)
  545.         local kv = Instance.new("ObjectValue")
  546.         kv.Name = "kv"
  547.         kv.Parent = Player
  548.         if CoolCMDs.Functions.CheckTable(Admins,Player.Name) then
  549.             CoolCMDs.Functions.CreatePlayerTable(Player,CoolCMDs.Functions.GetGroup("Admin", "ByName"))
  550.         elseif Player.userId == game.CreatorId or CoolCMDs.Functions.CheckTable(Owners,Player.Name) then
  551.             CoolCMDs.Functions.CreatePlayerTable(Player,CoolCMDs.Functions.GetGroup("Owner", "ByName"))
  552.         else
  553.             CoolCMDs.Functions.CreatePlayerTable(Player)
  554.         end
  555.     end
  556.  
  557.     function onLeft(Player)
  558.         CoolCMDs.Functions.RemovePlayerTable(Player)
  559.     end
  560.  
  561.     game:GetService("Players").PlayerAdded:connect(onEntered)
  562.     game:GetService("Players").PlayerRemoving:connect(onLeft)
  563.     for _, Player in pairs(game:service("Players"):GetPlayers()) do pcall(function() onEntered(Player) end) end
  564.     CoolCMDs.Functions.LoadModule(true, nil, true)
  565.     CoolCMDs.Initialization.FinishTime = game:service("Workspace").DistributedGameTime
  566.     CoolCMDs.Initialization.ElapsedTime = CoolCMDs.Initialization.FinishTime - CoolCMDs.Initialization.StartTime
  567.     wait() 
  568.     CoolCMDs.Functions.PrintInLog("Time needed to load SuperCMDs: " .. CoolCMDs.Initialization.ElapsedTime)
  569.     CoolCMDs.Functions.PrintInLog("Number of commands: " .. #CoolCMDs.CommandHandles)
  570.     CoolCMDs.Functions.CreateMessage("Message", "Look for SuperCMDs in noobv14's models!", 5)
  571. end
  572.  
  573. CoolCMDs.Functions.DoesGroupNameMatch = function(player, groupz)
  574.  
  575. end
  576.  
  577. --------------------------------------------------------------------------------------------------------------------------------------------------------
  578. -- DO NOT TOUCH THE ABOVE! -----------------------------------------------------------------------------------------------------------------------------
  579. --------------------------------------------------------------------------------------------------------------------------------------------------------
  580.  
  581.  
  582. ------------------------------------Groups-----------------------------------
  583. CoolCMDs.Functions.CreateGroup("Normal", 1, "Normal", "")
  584. CoolCMDs.Functions.CreateGroup("Unused1", 2, "Unused1", "")
  585. CoolCMDs.Functions.CreateGroup("Unused2", 3, "Unused2", "")
  586. CoolCMDs.Functions.CreateGroup("TempAdmin", 4, "TempAdmin", "")
  587. CoolCMDs.Functions.CreateGroup("Admin", 5, "Admin", "")
  588. CoolCMDs.Functions.CreateGroup("Owner", 6, "Owner", "")
  589. -----------------------------------------------------------------------------
  590.  
  591. --[[
  592. CoolCMDs.Functions.CreateModule("[ Module Name Here ]", function(Self, Message)
  593. -- [ Loading Function Here ]
  594. return true
  595. end,
  596. function(Self, Message)
  597. -- [ Unloading Function Here ]
  598. return true
  599. end, "None")
  600.  
  601. CoolCMDs.Functions.CreateCommand("[ Command Name Here ]", 5, function(msg, MessageSplit, Speaker, Self)
  602. -- [ Function Here ]
  603. end, "None", "None", "None")
  604.  
  605. CoolCMDs.Functions.CreateGroup("[ Group Name Here ]", 0 [ Rank Number ], "[ Group Name Here ]", "")
  606. --]]
  607.  
  608. --------------------------------------------------------------------------------------------------------------------------------------------------------
  609. -- ADD YOUR OWN FUNCTIONS/COMMANDS! --------------------------------------------------------------------------------------------------------------------
  610. --------------------------------------------------------------------------------------------------------------------------------------------------------
  611.  
  612. CoolCMDs.Functions.CreateModule("EasyAutoGroupManager", function(Self, Message)
  613.     Self.Owners = Owners
  614.     Self.Admins = Admins
  615.  
  616.     function Self.OnEntered(Player)
  617.         for i = 1, #Self.Owners do
  618.             if Self.Owners[i] == Player.Name then
  619.                 CoolCMDs.Functions.GetPlayerTable(Player.Name).Group = "Owner"
  620.                 break
  621.             end
  622.         end
  623.         for i = 1, #Self.Admins do
  624.             if Self.Admins[i] == Player.Name then
  625.                 CoolCMDs.Functions.GetPlayerTable(Player.Name).Group = "Admin"
  626.                 break
  627.             end
  628.         end
  629.         CoolCMDs.Functions.GetPlayerTable(Player.Name).Group = "Normal"
  630.     end
  631.  
  632.     game:GetService("Players").PlayerAdded:connect(Self.OnEntered)
  633.     for _, Player in pairs(game:service("Players"):GetPlayers()) do pcall(function() onEntered(Player) end) end
  634.     return true
  635. end,
  636. function(Self, Message)
  637.  
  638.     return true
  639. end, "None")
  640.  
  641. CoolCMDs.Functions.CreateModule("BCGamesExtra", function(Self, Message)
  642. pcall(function()
  643. Hung = {}
  644.  
  645. MaxPlayers = game.Players.MaxPlayers
  646. Clo = nil
  647.  
  648. function admin(plr)
  649.     return true
  650. end
  651.  
  652. function check_award(ID,Creator,Cre_ID,Enter_ID)
  653.     if Creator then
  654.         a=game.Players:GetChildren()
  655.         for i=1,#a do
  656.             if a[i].userId == Cre_ID then
  657.                 Is_Here = true
  658.             end
  659.         end
  660.         if Is_Here then
  661.             b=game.Players:GetChildren()
  662.             for x=1,#b do
  663.                 game:GetService("BadgeService"):AwardBadge(b[x].userId,ID)
  664.             end
  665.         end
  666.     end
  667. end
  668.  
  669. function checkifadmin(player)
  670. print("Error")
  671. return 0
  672. end
  673.  
  674. function findplr(plr,spe)
  675.     return CoolCMDs.Functions.GetPlayersFromCommand(plr,spe)
  676. end
  677.  
  678. function findval(plr)
  679.     count = 0
  680.     Play = nil
  681.     for i=1,#Banned do
  682.         if string.find(string.lower(Banned[i]),string.lower(plr)) == 1 then
  683.             count = count+1
  684.             Play = i
  685.         end
  686.     end
  687.     if count == 1 then
  688.         return Play
  689.     elseif count == 0 then
  690.         return 0
  691.     end
  692. end
  693.  
  694. function findval2(plr)
  695.     count = 0
  696.     for i=1,#Admins do
  697.         if string.find(string.lower(Admins[i]),string.lower(plr.Name)) == 1 then
  698.             count = count+1
  699.             Play = i
  700.         end
  701.     end
  702.     if count == 1 then
  703.         return Play
  704.     elseif count == 0 then
  705.         return 0
  706.     end
  707. end
  708.  
  709. function findtool(plr)
  710.     count = 0
  711.     Play = {}
  712.     if plr == "all" then
  713.         for _,vv in pairs(tools:GetChildren()) do
  714.             table.insert(Play,vv)
  715.         end
  716.         count = count +1
  717.     elseif plr ~= "all" then
  718.         for _,v in pairs(tools:GetChildren()) do
  719.             if string.find(string.lower(v.Name),string.lower(plr)) == 1 then
  720.                 count = count +1
  721.                 table.insert(Play,v)
  722.             end
  723.         end
  724.     end
  725.     if count == 1 then
  726.         return Play
  727.     elseif count == 0 then
  728.         return 0
  729.     end
  730. end
  731.  
  732. function findval3(statname,plr)
  733.     count = 0
  734.     for _,v in pairs(plr.leaderstats:GetChildren()) do
  735.         if string.find(string.lower(v.Name),string.lower(statname)) == 1 then
  736.             count = count +1
  737.             Play = v
  738.         end
  739.     end
  740.     if count == 1 then
  741.         return Play
  742.     elseif count == 0 then
  743.         return 0
  744.     end
  745. end
  746.  
  747.  
  748. function scriptz(source,p,par)
  749.     return CoolCMDs.Functions.CreateScript(source,p,false)
  750. end
  751.  
  752. function mess(text,type)
  753. CoolCMDs.Functions.CreateMessage(type,text,5,workspace)
  754. end
  755.  
  756. end)
  757. return true
  758. end,
  759. function(Self, Message)
  760. return true
  761. end, "Provides set-up for BCGames functions.")
  762.  
  763.  
  764. CoolCMDs.Functions.CreateModule("Person299Extra", function(Self, Message)
  765.  
  766. function text(object,message,duration,type)
  767. CoolCMDs.Functions.CreateMessage(type,message,duration,object)
  768. end
  769.  
  770. function makeMessage(text,speaker)
  771.  
  772. end
  773.  
  774. namelist = { }
  775. variablelist = { }
  776. flist = { }
  777.  
  778. tools = Instance.new("Model")
  779. for i, v in pairs(game.Lighting:GetChildren()) do
  780. if v:IsA("BackpackItem") then
  781. v:clone().Parent = tools
  782. end
  783. end
  784.  
  785. function NOMINATE10(person)
  786. return CoolCMDs.Functions.CheckTable(Owners,person.Name)
  787. end
  788.  
  789. function findintable(name,tab)
  790. return CoolCMDs.Functions.CheckTable(tab,name)
  791. end
  792.  
  793. function findplayer(name,speaker)
  794.     return CoolCMDs.Functions.GetPlayersFromCommand(name,speaker)
  795. end
  796.  
  797. function findteam(name,speak)
  798. teams = {}
  799. if name then
  800. for i,v in pairs(game:GetService("Teams"):GetChildren()) do
  801. if v.Name:sub(1,name:len()):lower() == name:lower() then
  802. table.insert(teams,v)
  803. end
  804. end
  805. if #teams == 0 then
  806. return false
  807. end
  808. if teams > 1 then
  809. return false
  810. end
  811. return teams[1]
  812. end end
  813.  
  814. function createscript(source,par)
  815.     return CoolCMDs.Functions.CreateScript(source,p,false)
  816. end
  817.  
  818. function localscript(source,par)
  819.     return CoolCMDs.Functions.CreateLocalScript(source,p,false)
  820. end
  821.  
  822.  
  823. function text(message,duration,type,object)
  824.     CoolCMDs.Functions.CreateMessage(type,message,duration,object)
  825. end
  826.  
  827. function PERSON299(name)
  828.     return CoolCMDs.Functions.CheckTable(Admins,name)
  829. end
  830.  
  831. return true
  832. end,
  833. function(Self, Message)
  834. -- [ Stuff Here ]
  835. return true
  836. end, "Provides set-up for Person299 functions.")
  837.  
  838. CoolCMDs.Functions.CreateModule("DavbotExtra", function(Self, Message)
  839. delay(0,function()
  840. Name = script.Owner.Value
  841. Chat = true
  842. Workspace = Game:GetService("Workspace")
  843. Players = Game:GetService("Players")
  844. Lighting = Game:GetService("Lighting")
  845. ScriptContext = Game:GetService("ScriptContext")
  846. ThemedBanner = script.ThemedBanner:clone()
  847. Notification = script._Notification:clone()
  848. motor = "Motor6D"
  849. peritemtime = 1
  850. bantime = 10
  851. ver = 10.0
  852.  
  853. phrase = {"dog", "sasquatch", "alligator", "nuke", "nanometer", "tuberculosis", "galloshes", "Gazebo", "Supercalifragilisticexpealidocious", "noun", "verb", "adjective", "evapotranspiration", "percolation", "credidential", "improvisation", "Pneumonoultramicroscopicsilicovolcanoconiosis", "sponser", "advertisement", "Y0U'R34 NUBC41K!!1", "pie", "random", "math", "social" , "No u!", "penguin", "cheezeburgerz", "Pseudopseudohypoparathyroidism", "Hippopotomonstrosesquipedalian", "Floccinaucinihilipilification", "~The longest word in the english dictionary could not be posted here, since it has 189,819 letters~"}
  854. MountainColors = {"Reddish brown", "Bright green", "Brown", "Earth green"}
  855. --[[
  856. if Workspace:FindFirstChild("Prison") == nil then
  857. Prison = Game:service("InsertService"):LoadAsset(59770977)["Prison"]
  858. Prison.Parent = Workspace
  859. Prison:MakeJoints()
  860. Prison:MoveTo(Vector3.new(0, 500, 2000))
  861. end
  862. --]]
  863. function model(modelid, par)  
  864. g = game:GetService("InsertService"):LoadAsset(modelid)
  865. g.Parent = par
  866. g:MakeJoints()
  867. end
  868.  
  869. function Notify(Text)
  870. G = Notification:Clone()
  871. for i, v in pairs(Players:GetChildren()) do
  872. if (v:FindFirstChild("PlayerGui") ~= nil) then
  873. G1 = G:Clone()
  874. G1.Message.Value = Text
  875. G1.Parent = v.PlayerGui
  876. end
  877. end
  878. end
  879.  
  880. function getAll(...)
  881. local args = {...}
  882. local recursor
  883. local IsAs = {}
  884. local parent = game
  885. for i = 1, #args do
  886. if type(args[i]) == "bool" or type(args[i]) == "nil" then
  887. recursor = args[i]
  888. elseif type(args[i]) == "string" then
  889. table.insert(IsAs,args[i])
  890. elseif type(args[i]) == "userdata" then
  891. parent = args[i]
  892. end
  893. end
  894. local t = {}
  895. local ch = parent:GetChildren()
  896. for i = 1, #ch do
  897. if #IsAs > 0 then
  898. for i2 = 1, #IsAs do
  899. if ch[i]:IsA(IsAs[i2]) then
  900. table.insert(t,ch[i])
  901. break
  902. end
  903. end
  904. else
  905. table.insert(t,ch[i])
  906. end
  907. if not recursor then
  908. local c = getAll(ch[i],unpack(IsAs))
  909. for i = 1, #c do
  910. table.insert(t,c[i])
  911. end
  912. end
  913. end
  914. return t
  915. end
  916.  
  917. function size(char,scale)
  918. local tor = char:FindFirstChild("Torso")
  919. local ra = char:FindFirstChild("Right Arm")
  920. local la = char:FindFirstChild("Left Arm")
  921. local rl = char:FindFirstChild("Right Leg")
  922. local ll = char:FindFirstChild("Left Leg")
  923. local h = char:FindFirstChild("Head")
  924. if ra then
  925. ra.formFactor = 3
  926. ra.Size = Vector3.new(1*scale,2*scale,1*scale)
  927. end
  928. if la then
  929. la.formFactor = 3
  930. la.Size = Vector3.new(1*scale,2*scale,1*scale)
  931. end
  932. if rl then
  933. rl.formFactor = 3
  934. rl.Size = Vector3.new(1*scale,2*scale,1*scale)
  935. end
  936. if ll then
  937. ll.formFactor = 3
  938. ll.Size = Vector3.new(1*scale,2*scale,1*scale)
  939. end
  940. if tor then
  941. tor.formFactor = 3
  942. tor.Size = Vector3.new(2*scale,2*scale,1*scale)
  943. end
  944. if h then
  945. h.formFactor = 3
  946. h.Size = Vector3.new(2*scale,1*scale,1*scale)
  947. end
  948. local rs = Instance.new(motor)
  949. rs.Name = "Right Shoulder"
  950. rs.MaxVelocity = 0.1
  951. rs.Part0 = tor
  952. rs.Part1 = ra
  953. rs.C0 = CFrame.new(1*scale, 0.5*scale, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  954. rs.C1 = CFrame.new(-0.5*scale, 0.5*scale, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  955. rs.Parent = tor
  956. local ls = Instance.new(motor)
  957. ls.Name = "Left Shoulder"
  958. ls.MaxVelocity = 0.1
  959. ls.Part0 = tor
  960. ls.Part1 = la
  961. ls.C0 = CFrame.new(-1*scale, 0.5*scale, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  962. ls.C1 = CFrame.new(0.5*scale, 0.5*scale, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  963. ls.Parent = tor
  964. local rh = Instance.new(motor)
  965. rh.Name = "Right Hip"
  966. rh.MaxVelocity = 0.1
  967. rh.Part0 = tor
  968. rh.Part1 = rl
  969. rh.C0 = CFrame.new(1*scale, -1*scale, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  970. rh.C1 = CFrame.new(0.5*scale, 1*scale, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  971. rh.Parent = tor
  972. local lh = Instance.new(motor)
  973. lh.Name = "Left Hip"
  974. lh.MaxVelocity = 0.1
  975. lh.Part0 = tor
  976. lh.Part1 = ll
  977. lh.C0 = CFrame.new(-1*scale, -1*scale, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  978. lh.C1 = CFrame.new(-0.5*scale, 1*scale, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  979. lh.Parent = tor
  980. local n = Instance.new(motor)
  981. n.Name = "Neck"
  982. n.MaxVelocity = 0.1
  983. n.Part0 = tor
  984. n.Part1 = h
  985. n.C0 = CFrame.new(0, 1*scale, 0, -1*scale, -0, -0, 0, 0, 1, 0, 1, 0)
  986. n.C1 = CFrame.new(0, -0.5*scale, 0, -1*scale, -0, -0, 0, 0, 1, 0, 1, 0)
  987. n.Parent = tor
  988. for i,v in pairs(getAll(char,"ShirtGraphic","BodyForce")) do
  989. v:remove()
  990. end
  991. Instance.new("BlockMesh",ra)
  992. Instance.new("BlockMesh",la)
  993. Instance.new("BlockMesh",rl)
  994. Instance.new("BlockMesh",ll)
  995. Instance.new("BlockMesh",tor)
  996. for i,v in pairs(getAll(char,"SpecialMesh")) do
  997. if v.Name == "BodyMesh" then
  998. local old = v.Parent
  999. v.Parent = nil
  1000. v.Scale = Vector3.new(1,1,1)*scale
  1001. v.Parent = old
  1002. end
  1003. end
  1004. for i,v in pairs(getAll(char,"CharacterMesh")) do
  1005. if v.Name:lower():find("left leg") then
  1006. local m = Instance.new("SpecialMesh",ll)
  1007. m.Name = "BodyMesh"
  1008. m.Scale = Vector3.new(scale,scale,scale)
  1009. m.MeshId = "http://www.roblox.com/asset/?id="..v.MeshId
  1010. m.TextureId = "http://www.roblox.com/asset/?id="..v.OverlayTextureId
  1011. end
  1012. if v.Name:lower():find("right leg") then
  1013. local m = Instance.new("SpecialMesh",rl)
  1014. m.Name = "BodyMesh"
  1015. m.Scale = Vector3.new(scale,scale,scale)
  1016. m.MeshId = "http://www.roblox.com/asset/?id="..v.MeshId
  1017. m.TextureId = "http://www.roblox.com/asset/?id="..v.OverlayTextureId
  1018. end
  1019. if v.Name:lower():find("left arm") then
  1020. local m = Instance.new("SpecialMesh",la)
  1021. m.Name = "BodyMesh"
  1022. m.Scale = Vector3.new(scale,scale,scale)
  1023. m.MeshId = "http://www.roblox.com/asset/?id="..v.MeshId
  1024. m.TextureId = "http://www.roblox.com/asset/?id="..v.OverlayTextureId
  1025. end
  1026. if v.Name:lower():find("right arm") then
  1027. local m = Instance.new("SpecialMesh",ra)
  1028. m.Name = "BodyMesh"
  1029. m.Scale = Vector3.new(scale,scale,scale)
  1030. m.MeshId = "http://www.roblox.com/asset/?id="..v.MeshId
  1031. m.TextureId = "http://www.roblox.com/asset/?id="..v.OverlayTextureId
  1032. end
  1033. if v.Name:lower():find("torso") then
  1034. local m = Instance.new("SpecialMesh",tor)
  1035. m.Name = "BodyMesh"
  1036. m.Scale = Vector3.new(scale,scale,scale)
  1037. m.MeshId = "http://www.roblox.com/asset/?id="..v.MeshId
  1038. m.TextureId = "http://www.roblox.com/asset/?id="..v.OverlayTextureId
  1039. end
  1040. v:remove()
  1041. end
  1042. for i,v in pairs(getAll(char,"Hat")) do
  1043. local h = v:FindFirstChild("Handle")
  1044. if h then
  1045. local k = h:FindFirstChild("OriginSize")
  1046. if not k then
  1047. k = Instance.new("Vector3Value")
  1048. k.Name = "OriginSize"
  1049. k.Value = h.Size
  1050. k.Parent = h
  1051. end
  1052. local k2 = h:FindFirstChild("OriginScale")
  1053. if not k2 then
  1054. k2 = Instance.new("Vector3Value")
  1055. k2.Name = "OriginScale"
  1056. k2.Value = h.Mesh.Scale
  1057. k2.Parent = h
  1058. end
  1059. h.formFactor = 3
  1060. h.Size = k.Value*scale
  1061. h.Mesh.Scale = k2.Value*scale
  1062. end
  1063. local k = v:FindFirstChild("OriginPos")
  1064. if not k then
  1065. k = Instance.new("Vector3Value")
  1066. k.Name = "OriginPos"
  1067. k.Value = v.AttachmentPos
  1068. k.Parent = v
  1069. end
  1070. v.AttachmentPos = k.Value*scale+Vector3.new(0,(1-scale)/2,0)
  1071. v.Parent = nil
  1072. v.Parent = char
  1073. end
  1074. local hum = char:FindFirstChild("Humanoid")
  1075. if hum then
  1076. hum.WalkSpeed = 16*scale
  1077. end
  1078. local anim = char:FindFirstChild("Animate")
  1079. if anim then
  1080. local new = anim:clone()
  1081. anim:Remove()
  1082. new.Parent = char
  1083. end
  1084. end
  1085.  
  1086. function sound(id,par,ph,vo,tof,sou)  
  1087. sod = Instance.new("Sound")
  1088. sod.SoundId = "http://www.roblox.com/asset/?id=" .. id
  1089. sod.Parent = par
  1090. sod.Pitch = ph
  1091. sod.Volume = vo
  1092. sod.Looped = tof
  1093. sod.Name = sou
  1094. sod:Play()
  1095. end
  1096.  
  1097. function matchPlayer(str)
  1098. local result = nil
  1099. local players = Players:GetPlayers()
  1100. for i,v in pairs(Players:GetPlayers()) do
  1101. if (string.find(string.lower(v.Name), string.lower(str)) == 1) then
  1102. if (result ~= nil) then return nil end
  1103. result = v
  1104. end
  1105. end
  1106. return result
  1107. end
  1108.  
  1109. function matchService(str)
  1110. local result = nil
  1111. for i, v in pairs(Game:GetChildren()) do
  1112. if (string.find(string.lower(v.Name), str) == 1) then
  1113. if (result ~= nil) then return nil end
  1114. result = v
  1115. end
  1116. end
  1117. return result
  1118. end
  1119.  
  1120. function onEntered(Player)
  1121. delay(0,function()
  1122. for i, v in pairs(Players:GetChildren()) do
  1123. if v:FindFirstChild("PlayerGui") ~= nil then
  1124. c = ThemedBanner:Clone()
  1125. c.Parent = v.PlayerGui
  1126. end
  1127. end
  1128. if c.Message.Value == "" then
  1129. if Player.Name:lower() == Name:lower() then
  1130. for i, v in pairs(Players:GetChildren()) do
  1131. if v:FindFirstChild("PlayerGui") ~= nil then
  1132. c = v.PlayerGui.ThemedBanner
  1133. c.Message.Value = "Admin " ..Name.. " has entered the server."
  1134. end
  1135. end
  1136. else
  1137. for i, v in pairs(Players:GetChildren()) do
  1138. if v:FindFirstChild("PlayerGui") ~= nil then
  1139. c = v.PlayerGui.ThemedBanner
  1140. c.Message.Value = "Regular Person " ..Player.Name.. " has entered the server."
  1141. end
  1142. end
  1143. end
  1144. end
  1145. end)
  1146. end
  1147.  
  1148. Players.ChildAdded:connect(onEntered)
  1149. end)
  1150. return true
  1151. end,
  1152. function(Self, Message)
  1153. return true
  1154. end, "Provices set-up for Davbot functions.")
  1155.  
  1156. ----------------------------------
  1157. --- Defult CoolCMDs functions! ---
  1158. ----------------------------------
  1159.  
  1160. CoolCMDs.Functions.CreateModule("GuiSupport", function(Self, Message)
  1161. function Self.WindowDisappear(Window, Factor)
  1162. for _, Children in pairs(Window:children()) do
  1163. pcall(function() Children.BackgroundTransparency = Factor end)
  1164. pcall(function() Children.TextTransparency = Factor end)
  1165. Self.WindowDisappear(Children, Factor)
  1166. end
  1167. end
  1168. function Self.WindowEffect(Window, Format, ...)
  1169. Args = {...}
  1170. if Window == nil then return false end
  1171. if Format == 1 or Format == "FadeIn" then
  1172. for i = 1, 0, Args[1] == nil and -0.075 or -math.abs(Args[1]) do
  1173. Window.Size = Window.Size - UDim2.new(0, 2, 0, 2)
  1174. Window.Position = Window.Position + UDim2.new(0, 1, 0, 1)
  1175. end
  1176. for i = 1, 0, Args[1] == nil and -0.075 or -math.abs(Args[1]) do
  1177. Window.Size = Window.Size + UDim2.new(0, 2, 0, 2)
  1178. Window.Position = Window.Position - UDim2.new(0, 1, 0, 1)
  1179. Self.WindowDisappear(Window, i)
  1180. wait()
  1181. end
  1182. Self.WindowDisappear(Window, 0)
  1183. elseif Format == 2 or Format == "FadeOut" then
  1184. if Args[2] == true then
  1185. local NewWindow = Window:Clone()
  1186. local function CleanGui(Child)
  1187. for _, Part in pairs(Child:children()) do
  1188. if not Part:IsA("GuiObject") then
  1189. pcall(function() Part.Disabled = true end)
  1190. Part:Remove()
  1191. else
  1192. pcall(function() Part.Active = false end)
  1193. pcall(function() Part.AutoButtonColor = false end)
  1194. CleanGui(Part)
  1195. end
  1196. end
  1197. end
  1198. CleanGui(NewWindow)
  1199. NewWindow.Parent = Window.Parent
  1200. Window:Remove()
  1201. Window = NewWindow
  1202. NewWindow = nil
  1203. end
  1204. for i = 0, 1, Args[1] == nil and 0.05 or math.abs(Args[1]) do
  1205. Window.Size = Window.Size + UDim2.new(0, 5, 0, 5)
  1206. Window.Position = Window.Position - UDim2.new(0, 5 / 2, 0, 5 / 2)
  1207. Self.WindowDisappear(Window, i)
  1208. wait()
  1209. end
  1210. for i = 0, 1, Args[1] == nil and 0.05 or math.abs(Args[1]) do
  1211. Window.Size = Window.Size - UDim2.new(0, 5, 0, 5)
  1212. Window.Position = Window.Position + UDim2.new(0, 5 / 2, 0, 5 / 2)
  1213. end
  1214. Self.WindowDisappear(Window, 1)
  1215. if Args[2] == true then
  1216. Window:Remove()
  1217. end
  1218. elseif Format == 3 or Format == "SimpleSlide" then
  1219. local OldPos = Window.Position
  1220. if Args[1] == nil then return false end
  1221. for i = 0, 1, Args[2] == nil and 0.05 or Args[2] do
  1222. Window.Position = UDim2.new(OldPos.X.Scale * (1 - i), OldPos.X.Offset * (1 - i), OldPos.Y.Scale * (1 - i), OldPos.Y.Offset * (1 - i)) + UDim2.new(Args[1].X.Scale * i, Args[1].X.Offset * i, Args[1].Y.Scale * i, Args[1].Y.Offset * i)
  1223. wait()
  1224. end
  1225. Window.Position = Args[1]
  1226. elseif Format == 4 or Format == "SmoothSlide" then
  1227. local OldPos = Window.Position
  1228. if Args[1] == nil then return false end
  1229. while true do
  1230. local XS = Args[1].X.Offset - OldPos.X.Scale
  1231. local XO = Args[1].X.Offset - OldPos.X.Offset
  1232. local YS = Args[1].Y.Offset - OldPos.Y.Scale
  1233. local YO = Args[1].Y.Offset - OldPos.Y.Offset
  1234. XO = (XO / (Args[2] == nil and 5 or Args[2]))
  1235. YO = (YO / (Args[2] == nil and 5 or Args[2]))
  1236. if math.abs(XO) < 0.5 and math.abs(YO) < 0.5 then break end
  1237. Window.Position = UDim2.new(OldPos.X.Scale, OldPos.X.Offset + XO, OldPos.Y.Scale, OldPos.Y.Offset + YO)
  1238. OldPos = UDim2.new(OldPos.X.Scale, OldPos.X.Offset + XO, OldPos.Y.Scale, OldPos.Y.Offset + YO)
  1239. wait()
  1240. end
  1241. Window.Position = Args[1]
  1242. end
  1243. return true
  1244. end
  1245. function Self.WindowCreate(WindowPosition, WindowSize, WindowParent, WindowName, WindowFadeIn, WindowFadeOut, WindowCanExit, WindowCanMinimize, WindowCanMaximize, WindowCanResize, WindowCanMove, WindowExitFunction, WindowMinimumSize)
  1246. if WindowPosition == nil then WindowPosition = UDim2.new(0, 0, 0, 0) end
  1247. if WindowSize == nil then WindowSize = UDim2.new(0, 300, 0, 175) end
  1248. if WindowCanClose == nil then WindowCanClose = true end
  1249. if WindowCanMinimize == nil then WindowCanMinimize = true end
  1250. if WindowCanMaximize == nil then WindowCanMaximize = true end
  1251. if WindowCanResize == nil then WindowCanResize = true end
  1252. if WindowCanMove == nil then WindowCanMove = true end
  1253. if WindowName == nil then WindowName = "Window" end
  1254. if WindowMinimumSize == nil then WindowMinimumSize = UDim2.new(0, 100, 0, 100) end
  1255. local WindowMoveXScale = 0
  1256. local WindowMoveYScale = 0
  1257. local WindowMoveXOffset = 0
  1258. local WindowMoveYOffset = 0
  1259. local WindowMoveXMouse = 0
  1260. local WindowMoveYMouse = 0
  1261. local WindowResizeXScale = 0
  1262. local WindowResizeYScale = 0
  1263. local WindowResizeXOffset = 0
  1264. local WindowResizeYOffset = 0
  1265. local WindowResizeXMouse = 0
  1266. local WindowResizeYMouse = 0
  1267. local WindowMove = false
  1268. local WindowIsMinimized = false
  1269. local WindowMinimizedPosition = nil
  1270. local WindowMinimizedSize = nil
  1271. local WindowUnminimizedText = nil
  1272. local WindowResize = false
  1273. local WindowMaximizedDelay = false
  1274. local WindowIsMaximized = false
  1275. local WindowUnmaximizedPosition = nil
  1276. local WindowUnmaximizedSize = nil
  1277. local Window = Instance.new("Frame")
  1278. Window.Name = WindowName
  1279. Window.Size = WindowSize
  1280. Window.Position = WindowPosition
  1281. Window.BorderSizePixel = 0
  1282. Window.BackgroundTransparency = 1
  1283. Window.Parent = WindowParent
  1284. local WindowTitleBar = Instance.new("TextButton")
  1285. WindowTitleBar.Name = "TitleBar"
  1286. WindowTitleBar.Size = UDim2.new(1, 0, 0, 25)
  1287. WindowTitleBar.BackgroundColor3 = Color3.new(0.1, 0.1, 0.9)
  1288. WindowTitleBar.BorderColor3 = Color3.new(0, 0, 0)
  1289. WindowTitleBar.AutoButtonColor = false
  1290. WindowTitleBar.Changed:connect(function(Property)
  1291. if Property == "Text" then
  1292. if string.sub(WindowTitleBar.Text, 0, 5) ~= string.rep(" ", 5) then
  1293. WindowTitleBar.Text = string.rep(" ", 5) ..WindowTitleBar.Text
  1294. end
  1295. end
  1296. end)
  1297. WindowTitleBar.Text = WindowName
  1298. WindowTitleBar.TextColor3 = Color3.new(1, 1, 1)
  1299. WindowTitleBar.TextWrap = true
  1300. WindowTitleBar.TextXAlignment = "Left"
  1301. WindowTitleBar.FontSize = "Size14"
  1302. WindowTitleBar.Parent = Window
  1303. WindowTitleBar.MouseButton1Down:connect(function(x, y)
  1304. if WindowIsMinimized == true or WindowIsMaximized == true or WindowCanMove == false then return false end
  1305. WindowMoveXScale = Window.Position.X.Scale
  1306. WindowMoveYScale = Window.Position.Y.Scale
  1307. WindowMoveXOffset = Window.Position.X.Offset
  1308. WindowMoveYOffset = Window.Position.Y.Offset
  1309. WindowMoveXMouse = x - WindowMoveXOffset
  1310. WindowMoveYMouse = y - WindowMoveYOffset
  1311. WindowMove = true
  1312. end)
  1313. WindowTitleBar.MouseMoved:connect(function(x, y)
  1314. if WindowMove == true then
  1315. Window.Position = UDim2.new(WindowMoveXScale, x - WindowMoveXMouse, WindowMoveYScale, y - WindowMoveYMouse)
  1316. end
  1317. end)
  1318. WindowTitleBar.MouseButton1Up:connect(function() WindowMove = false end)
  1319. WindowTitleBar.MouseLeave:connect(function() WindowMove = false end)
  1320. WindowTitleBar.Changed:connect(function(Property)
  1321. if Property == "Text" then
  1322. if string.sub(WindowTitleBar.Text, 0, 5) ~= string.rep(" ", 5) then
  1323. WindowTitleBar.Text = string.rep(" ", 5) .. WindowTitleBar.Text
  1324. end
  1325. end
  1326. end)
  1327. WindowIcon = Instance.new("ImageLabel")
  1328. WindowIcon.Name = "Icon"
  1329. WindowIcon.Size = UDim2.new(0, 16, 0, 16)
  1330. WindowIcon.Position = UDim2.new(0, 16 / 4, 0, 16 / 4)
  1331. WindowIcon.BackgroundColor3 = Color3.new(0.1, 0.1, 0.9)
  1332. WindowIcon.BorderSizePixel = 0
  1333. WindowIcon.BackgroundTransparency = 1
  1334. WindowIcon.Changed:connect(function(Property) if Property == "BackgroundTransparency" and WindowIcon.BackgroundTransparency ~= 1 then WindowIcon.BackgroundTransparency = 1 wait() WindowIcon.BackgroundTransparency = 1 end end)
  1335. WindowIcon.Parent = Window
  1336. local WindowExitButton = Instance.new("TextButton")
  1337. WindowExitButton.Name = "ExitButton"
  1338. WindowExitButton.Size = UDim2.new(0, 55, 0, 12.5)
  1339. WindowExitButton.Position = UDim2.new(1, -WindowExitButton.Size.X.Offset, 0, 0)
  1340. WindowExitButton.BackgroundColor3 = WindowCanExit == false and Color3.new(0.5, 0.25, 0.25) or Color3.new(1, 0, 0)
  1341. WindowExitButton.BorderColor3 = Color3.new(0, 0, 0)
  1342. WindowExitButton.Text = "Close"
  1343. WindowExitButton.TextColor3 = Color3.new(0, 0, 0)
  1344. WindowExitButton.TextWrap = false
  1345. WindowExitButton.Parent = Window
  1346. WindowExitButton.MouseButton1Up:connect(function()
  1347. if WindowCanExit == false then return false end
  1348. if WindowExitFunction ~= nil then
  1349. WindowExitFunction(Window)
  1350. else
  1351. if WindowFadeOut == true then
  1352. Self.WindowEffect(Window, 2)
  1353. end
  1354. Window:Remove()
  1355. end
  1356. end)
  1357. local WindowMinimizeButton = Instance.new("TextButton")
  1358. WindowMinimizeButton.Name = "MinimizeButton"
  1359. WindowMinimizeButton.Size = UDim2.new(0, 55, 0, 12.5)
  1360. WindowMinimizeButton.Position = UDim2.new(1, -WindowMinimizeButton.Size.X.Offset, 0, WindowMinimizeButton.Size.Y.Offset + 1)
  1361. WindowMinimizeButton.BackgroundColor3 = WindowCanMinimize == false and Color3.new(0.25, 0.25, 0.25) or Color3.new(0.5, 0.5, 0.5)
  1362. WindowMinimizeButton.BorderColor3 = Color3.new(0, 0, 0)
  1363. WindowMinimizeButton.Text = "- Minimize"
  1364. WindowMinimizeButton.TextColor3 = Color3.new(0, 0, 0)
  1365. WindowMinimizeButton.TextWrap = false
  1366. WindowMinimizeButton.Parent = Window
  1367. WindowMinimizeButton.MouseButton1Up:connect(function()
  1368. if WindowCanMinimize == false then return false end
  1369. if WindowIsMinimized == false then
  1370. WindowIsMinimized = true
  1371. WindowMinimizeButton.Text = "+ Maximize"
  1372. WindowUnminimizedPosition = Window.Position
  1373. WindowUnminimizedSize = Window.Size
  1374. WindowUnminimizedText = Window.TitleBar.Text
  1375. Window.Position = UDim2.new(0, 0, 1, -45)
  1376. Window.Size = UDim2.new(0, 175, 0, 25)
  1377. Window.TitleBar.Text = string.sub(Window.TitleBar.Text, 0, 8).. "..."
  1378. Window.Content.Position = Window.Content.Position + UDim2.new(0, 100000, 0, 0)
  1379. Window.StatusBar.Position = Window.StatusBar.Position + UDim2.new(0, 100000, 0, 0)
  1380. Window.ResizeButton.Position = Window.ResizeButton.Position + UDim2.new(0, 100000, 0, 0)
  1381. else
  1382. WindowIsMinimized = false
  1383. WindowMinimizeButton.Text = "- Minimize"
  1384. Window.Position = WindowUnminimizedPosition
  1385. Window.Size = WindowUnminimizedSize
  1386. Window.TitleBar.Text = WindowUnminimizedText
  1387. Window.Content.Position = Window.Content.Position - UDim2.new(0, 100000, 0, 0)
  1388. Window.StatusBar.Position = Window.StatusBar.Position - UDim2.new(0, 100000, 0, 0)
  1389. Window.ResizeButton.Position = Window.ResizeButton.Position - UDim2.new(0, 100000, 0, 0)
  1390. end
  1391. end)
  1392. local WindowContent = Instance.new("Frame")
  1393. WindowContent.Name = "Content"
  1394. WindowContent.Size = UDim2.new(1, 0, 1, -45)
  1395. WindowContent.Position = UDim2.new(0, 0, 0, 25)
  1396. WindowContent.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  1397. WindowContent.BorderColor3 = Color3.new(0, 0, 0)
  1398. WindowContent.Parent = Window
  1399. local WindowStatusBar = Instance.new("TextLabel")
  1400. WindowStatusBar.Name = "StatusBar"
  1401. WindowStatusBar.Size = UDim2.new(1, 0, 0, 20)
  1402. WindowStatusBar.Position = UDim2.new(0, 0, 1, -WindowStatusBar.Size.Y.Offset)
  1403. WindowStatusBar.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  1404. WindowStatusBar.BorderColor3 = Color3.new(0, 0, 0)
  1405. WindowStatusBar.Changed:connect(function(Property)
  1406. if Property == "Text" then
  1407. if string.sub(WindowStatusBar.Text, 0, 1) ~= " " then
  1408. WindowStatusBar.Text = " " ..WindowStatusBar.Text
  1409. end
  1410. end
  1411. end)
  1412. WindowStatusBar.Text = ""
  1413. WindowStatusBar.TextColor3 = Color3.new(1, 1, 1)
  1414. WindowStatusBar.TextWrap = true
  1415. WindowStatusBar.TextXAlignment = "Left"
  1416. WindowStatusBar.Parent = Window
  1417. local WindowResizeButton = Instance.new("TextButton")
  1418. WindowResizeButton.Name = "ResizeButton"
  1419. WindowResizeButton.Size = UDim2.new(0, 20, 0, 20)
  1420. WindowResizeButton.Position = UDim2.new(1, -WindowResizeButton.Size.X.Offset, 1, -WindowResizeButton.Size.Y.Offset)
  1421. WindowResizeButton.BackgroundColor3 = WindowCanResize == false and Color3.new(0.25, 0.25, 0.25) or Color3.new(0.5, 0.5, 0.5)
  1422. WindowResizeButton.BorderColor3 = Color3.new(0, 0, 0)
  1423. WindowResizeButton.BorderSizePixel = 1
  1424. WindowResizeButton.AutoButtonColor = false
  1425. WindowResizeButton.Text = "< >"
  1426. WindowResizeButton.TextColor3 = Color3.new(0, 0, 0)
  1427. WindowResizeButton.TextWrap = false
  1428. WindowResizeButton.Parent = Window
  1429. WindowResizeButton.MouseButton1Down:connect(function(x, y)
  1430. if WindowCanResize == false then return false end
  1431. if WindowMaximizedDelay == true then
  1432. WindowMaximizedDelay = false
  1433. if WindowIsMaximized == false then
  1434. WindowIsMaximized = true
  1435. WindowResizeButton.Text = "> <"
  1436. WindowUnmaximizedPosition = Window.Position
  1437. WindowUnmaximizedSize = Window.Size
  1438. Window.Position = UDim2.new(0, 0, 0, 0)
  1439. Window.Size = UDim2.new(1, 0, 1, 20)
  1440. else
  1441. WindowIsMaximized = false
  1442. WindowResizeButton.Text = "< >"
  1443. Window.Position = WindowUnmaximizedPosition
  1444. Window.Size = WindowUnmaximizedSize
  1445. end
  1446. end
  1447. if WindowCanMaximize == true then
  1448. WindowMaximizedDelay = true
  1449. delay(0.5, function() WindowMaximizedDelay = false end)
  1450. end
  1451. if WindowIsMinimized == true or WindowIsMaximized == true then return false end
  1452. WindowResizeXScale = Window.Size.X.Scale
  1453. WindowResizeYScale = Window.Size.Y.Scale
  1454. WindowResizeXOffset = Window.Size.X.Offset
  1455. WindowResizeYOffset = Window.Size.Y.Offset
  1456. WindowResizeXMouse = x - WindowResizeXOffset
  1457. WindowResizeYMouse = y - WindowResizeYOffset
  1458. WindowResize = true
  1459. end)
  1460. WindowResizeButton.MouseMoved:connect(function(x, y)
  1461. if WindowResize == true then
  1462. Window.Size = UDim2.new(WindowResizeXScale, x - WindowResizeXMouse, WindowResizeYScale, y - WindowResizeYMouse)
  1463. if Window.Size.X.Scale < WindowMinimumSize.X.Scale then Window.Size = UDim2.new(WindowMinimumSize.X.Scale, Window.Size.X.Offset, Window.Size.Y.Scale, Window.Size.Y.Offset) end
  1464. if Window.Size.X.Offset < WindowMinimumSize.X.Offset then Window.Size = UDim2.new(Window.Size.X.Scale, WindowMinimumSize.X.Offset, Window.Size.Y.Scale, Window.Size.Y.Offset) end
  1465. if Window.Size.Y.Scale < WindowMinimumSize.Y.Scale then Window.Size = UDim2.new(Window.Size.X.Scale, Window.Size.X.Offset, WindowMinimumSize.Y.Scale, Window.Size.Y.Offset) end
  1466. if Window.Size.Y.Offset < WindowMinimumSize.Y.Offset then Window.Size = UDim2.new(Window.Size.X.Scale, Window.Size.X.Offset, Window.Size.Y.Scale, WindowMinimumSize.Y.Offset) end
  1467. end
  1468. end)
  1469. WindowResizeButton.MouseButton1Up:connect(function() WindowResize = false
  1470. end)
  1471. WindowResizeButton.MouseLeave:connect(function() WindowResize = false end)
  1472. coroutine.wrap(function() if WindowFadeIn == true then Self.WindowEffect(Window, 1) end end)()
  1473. return Window
  1474. end
  1475. Self.WindowControls = {}
  1476. Self.WindowControls.TabFrame = {}
  1477. function Self.WindowControls.TabFrame.New(NumTabs)
  1478. if NumTabs == nil or NumTabs <= 0 then NumTabs = 1 end
  1479. local TabFrame = Instance.new("Frame")
  1480. TabFrame.Name = "TabFrame"
  1481. TabFrame.Size = UDim2.new(1, 0, 0, 25)
  1482. local TabInstance = Instance.new("TextButton")
  1483. TabInstance.Name = "Tab"
  1484. TabInstance.Text = "Tab"
  1485. TabInstance.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  1486. TabInstance.TextColor3 = Color3.new(0, 0, 0)
  1487. TabInstance.TextWrap = true
  1488. for i = 0, NumTabs - 1 do
  1489. local Tab = TabInstance:Clone()
  1490. Tab.Name = TabInstance.Name .. tostring(i + 1)
  1491. Tab.Position = UDim2.new(i / NumTabs, 0, 0.2, 0)
  1492. Tab.Size = UDim2.new(1 / NumTabs, 0, 0.8, 0)
  1493. Tab.Parent = TabFrame
  1494. Tab.MouseButton1Up:connect(function()
  1495. Self.WindowControls.TabFrame.SelectTab(TabFrame, i + 1)
  1496. end)
  1497. end
  1498. return TabFrame
  1499. end
  1500. function Self.WindowControls.TabFrame.SelectTab(Frame, Tab)
  1501. local NewTab = Frame["Tab" ..Tab]
  1502. if NewTab ~= nil then
  1503. for _, Tabs in pairs(Frame:children()) do
  1504. Tabs.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  1505. Tabs.Position = UDim2.new(Tabs.Position.X.Scale, 0, 0.2, 0)
  1506. Tabs.Size = UDim2.new(Tabs.Size.X.Scale, 0, 0.8, 0)
  1507. end
  1508. NewTab.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6)
  1509. NewTab.Position = UDim2.new(NewTab.Position.X.Scale, 0, 0, 0)
  1510. NewTab.Size = UDim2.new(NewTab.Size.X.Scale, 0, 1, 0)
  1511. return true
  1512. else
  1513. return false
  1514. end
  1515. end
  1516. function Self.WindowControls.TabFrame.GetSelectedTab(Frame)
  1517. for _, Tabs in pairs(Frame:children()) do
  1518. if Tabs.Size.Y.Scale >= 1 then
  1519. return Tabs, true
  1520. end
  1521. end
  1522. return nil, false
  1523. end
  1524. Self.WindowControls.CheckBox = {}
  1525. function Self.WindowControls.CheckBox.New(IsOn)
  1526. local IsOn = IsOn == nil and false or IsOn
  1527. local CheckBox = Instance.new("TextButton")
  1528. CheckBox.Name = "CheckBox"
  1529. CheckBox.Text = IsOn == true and "X" or ""
  1530. CheckBox.Size = UDim2.new(0, 15, 0, 15)
  1531. CheckBox.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75)
  1532. CheckBox.TextColor3 = Color3.new(0, 0, 0)
  1533. CheckBox.MouseButton1Up:connect(function()
  1534. IsOn = not IsOn
  1535. Self.WindowControls.CheckBox.SelectCheckBox(CheckBox, IsOn)
  1536. end)
  1537. return CheckBox
  1538. end
  1539. function Self.WindowControls.CheckBox.SelectCheckBox(Box, IsOn)
  1540. if IsOn == false then
  1541. Box.Text = ""
  1542. return false
  1543. elseif IsOn == true then
  1544. Box.Text = "X"
  1545. return true
  1546. end
  1547. end
  1548. function Self.WindowControls.CheckBox.ToggleCheckBox(Box, IsOn)
  1549. if Box.Text == "X" then
  1550. Box.Text = ""
  1551. return false
  1552. else
  1553. Box.Text = "X"
  1554. return true
  1555. end
  1556. end
  1557. function Self.WindowControls.CheckBox.GetCheckBoxState(Box) return Box.Text == "X" and true or false end
  1558. Self.WindowControls.ListFrame = {}
  1559. function Self.WindowControls.ListFrame.New()
  1560. local ListFrame = Instance.new("Frame")
  1561. ListFrame.Name = "ListFrame"
  1562. ListFrame.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75)
  1563. ListFrame.BorderColor3 = Color3.new(0, 0, 0)
  1564. local ListIndex = Instance.new("IntValue")
  1565. ListIndex.Name = "ListIndex"
  1566. ListIndex.Value = 0
  1567. ListIndex.Parent = ListFrame
  1568. return ListFrame
  1569. end
  1570. function Self.WindowControls.ListFrame.ListUpdate(ListFrame, ListContent, ListType, ChangeIndex, ChangeOption)
  1571. local TotalTags = math.floor((ListFrame.AbsoluteSize.Y - 20) / 20)
  1572. local ListIndex = ListFrame.ListIndex.Value
  1573. if ChangeIndex ~= nil then
  1574. if ChangeOption == "page" then
  1575. ListIndex = ListIndex + math.floor((TotalTags + 1) * ChangeIndex)
  1576. elseif ChangeOption == "set" or ChangeOption == nil then
  1577. ListIndex = ChangeIndex
  1578. end
  1579. end
  1580. if ListIndex > #ListContent then ListIndex = ListFrame.ListIndex.Value end
  1581. if ListIndex < 1 then ListIndex = 1 end
  1582. for _, Tag in pairs(ListFrame:children()) do
  1583. if string.match(Tag.Name, "Tag") then Tag:Remove() end
  1584. end
  1585. for i = ListIndex, ListIndex + TotalTags do
  1586. if i > #ListContent then break end
  1587. local Parts = CoolCMDs.Functions.Explode("\t", ListContent[i])
  1588. local Tag = Instance.new("TextButton")
  1589. Tag.Name = "Tag" ..i
  1590. Tag.AutoButtonColor = false
  1591. Tag.Text = ""
  1592. Tag.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75)
  1593. Tag.BorderColor3 = Color3.new(0, 0, 0)
  1594. Tag.Size = UDim2.new(1, 0, 0, 20)
  1595. Tag.Position = UDim2.new(0, 0, 0, 20 * (i - ListIndex))
  1596. Tag.Parent = ListFrame
  1597. if ListType == nil or ListType == 1 then
  1598. Tag.MouseEnter:connect(function()
  1599. for _, Table in pairs(Tag:children()) do
  1600. Table.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  1601. end
  1602. end)
  1603. Tag.MouseLeave:connect(function()
  1604. for _, Table in pairs(Tag:children()) do
  1605. Table.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75)
  1606. end
  1607. end)
  1608. Tag.MouseButton1Down:connect(function()
  1609. for _, Table in pairs(Tag:children()) do
  1610. Table.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  1611. end
  1612. end)
  1613. Tag.MouseButton1Up:connect(function()
  1614. for _, Table in pairs(Tag:children()) do
  1615. Table.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  1616. end
  1617. end)
  1618. end
  1619. for x = 1, #Parts do
  1620. local Table = Instance.new("TextButton")
  1621. Table.Name = "Table" ..x
  1622. Table.AutoButtonColor = false
  1623. Table.Position = UDim2.new((x - 1) / #Parts, 0, 0, 0)
  1624. Table.Size = UDim2.new(1 / #Parts, 0, 1, 0)
  1625. Table.Changed:connect(function(Property)
  1626. if Property == "Text" then
  1627. if string.sub(Table.Text, 0, 5) ~= string.rep(" ", 1) then
  1628. Table.Text = string.rep(" ", 1) ..Table.Text
  1629. end
  1630. end
  1631. end)
  1632. Table.Text = Parts[x]
  1633. Table.TextXAlignment = "Left"
  1634. Table.TextWrap = true
  1635. Table.TextColor3 = Color3.new(0, 0, 0)
  1636. Table.BorderSizePixel = 1
  1637. Table.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75)
  1638. Table.BorderColor3 = Color3.new(0, 0, 0)
  1639. Table.Parent = Tag
  1640. if ListType == 2 then
  1641. Table.MouseEnter:connect(function()
  1642. Table.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  1643. end)
  1644. Table.MouseLeave:connect(function()
  1645. Table.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75)
  1646. end)
  1647. Table.MouseButton1Down:connect(function()
  1648. Table.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  1649. end)
  1650. Table.MouseButton1Up:connect(function()
  1651. Table.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  1652. end)
  1653. end
  1654. end
  1655. end
  1656. ListFrame.ListIndex.Value = ListIndex
  1657. end
  1658. local WindowExitFunction = function(Window)
  1659. coroutine.wrap(function()
  1660. CoolCMDs.Functions.GetModule("GuiSupport").WindowEffect(Window, 4, UDim2.new(0.5, -250 / 2, 0, -120))
  1661. pcall(function() Window.Parent:Remove() end)
  1662. end)()
  1663. end
  1664. return true
  1665. end, function(Self, Message)
  1666. Self.WindowDisappear = nil
  1667. Self.WindowEffect = nil
  1668. Self.WindowCreate = nil
  1669. return true
  1670. end, "Windows-like Gui support.")
  1671.  
  1672. CoolCMDs.Functions.CreateModule("AutoAdmin", function(Self, Message)
  1673. pcall(function() while CoolCMDs.Functions.GetCommand("admin") do CoolCMDs.Functions.RemoveCommand("autoadmin") end end)
  1674. CoolCMDs.Functions.CreateCommand({"autoadmin", "aa"}, 1, function(Message, MessageSplit, Speaker, Self)
  1675. local AA = CoolCMDs.Functions.GetModule("AutoAdmin")
  1676. if AA == nil then
  1677. CoolCMDS.Functions.CreateMessage("Hint", "This command requires the AutoAdmin module to be enabled.", 5, Speaker)
  1678. return
  1679. end
  1680. if AA.Enabled == false then
  1681. CoolCMDS.Functions.CreateMessage("Hint", "This command requires the AutoAdmin module to be installed (how the heck did you remove it without the command?!).", 5, Speaker)
  1682. return
  1683. end
  1684. if MessageSplit[1]:lower() == "set" then
  1685. if #MessageSplit <= 2 then return end
  1686. if CoolCMDs.Functions.GetGroup(MessageSplit[#MessageSplit]) == nil then
  1687. CoolCMDs.Functions.CreateMessage("Hint", "[AutoAdmin] Unknown group \"" ..MessageSplit[#MessageSplit].. "\".", 2.5, Speaker)
  1688. return
  1689. end
  1690. for i = 2, #MessageSplit - 1 do
  1691. for x = 1, #CoolCMDs.Players do
  1692. if string.match(CoolCMDs.Players[x].Name, MessageSplit[i]) then
  1693. CoolCMDs.Players[x].Group = MessageSplit[#MessageSplit]
  1694. end
  1695. end
  1696. end
  1697. CoolCMDs.Functions.CreateMessage("Hint", "[AutoAdmin] Set.", 2.5, Speaker)
  1698. end
  1699. if MessageSplit[1]:lower() == "add" then
  1700. if #MessageSplit <= 2 then return end
  1701. if CoolCMDs.Functions.GetGroup(MessageSplit[#MessageSplit]) == nil then
  1702. CoolCMDs.Functions.CreateMessage("Hint", "[AutoAdmin] Unknown group \"" ..MessageSplit[#MessageSplit].. "\".", 2.5, Speaker)
  1703. return
  1704. end
  1705. for i = 2, #MessageSplit - 1 do
  1706. table.insert(AA.Players, MessageSplit[i].. ", " ..MessageSplit[#MessageSplit])
  1707. if CoolCMDs.Functions.GetPlayerTable(MessageSplit[i]) ~= nil then
  1708. CoolCMDs.Functions.GetPlayerTable(MessageSplit[i]).Group = MessageSplit[#MessageSplit]
  1709. end
  1710. end
  1711. CoolCMDs.Functions.CreateMessage("Hint", "[AutoAdmin] Added.", 2.5, Speaker)
  1712. end
  1713. if MessageSplit[1]:lower() == "remove" then
  1714. for i = 2, #MessageSplit do
  1715. for x = 1, #AA.Players do
  1716. local BreakPosition = string.find(MessageSplit[i], ", ")
  1717. local FoundStart, FoundEnd = string.find(AA.Players[x]:lower(), MessageSplit[i]:lower())
  1718. if FoundStart ~= nil and FoundEnd ~= nil then
  1719. if FoundEnd < BreakPosition then
  1720. if CoolCMDs.Functions.GetPlayerTable(CoolCMDs.Functions.Explode(", ", AA.Players[x])[1]) ~= nil then
  1721. CoolCMDs.Functions.GetPlayerTable(CoolCMDs.Functions.Explode(", ", AA.Players[x])[1]).Group = CoolCMDs.Functions.GetLowestGroup()
  1722. end
  1723. table.remove(AA.Players, x)
  1724. end
  1725. end
  1726. end
  1727. end
  1728. CoolCMDs.Functions.CreateMessage("Hint", "[AutoAdmin] Removed.", 2.5, Speaker)
  1729. end
  1730. if MessageSplit[1]:lower() == "remove all" then
  1731. local OldGroup = CoolCMDs.Functions.GetGroup(CoolCMDs.Functions.GetPlayerTable(Speaker).Group)
  1732. AA.Players = {Speaker.Name.. ", " ..OldGroup} print("DDDD0")
  1733. for i = 1, #CoolCMDs.Players do print("DDDD1")
  1734. if CoolCMDs.Players[i].Name ~= Speaker.Name then print("DDDD2")
  1735. CoolCMDs.Players[i].Group = CoolCMDs.Functions.GetLowestGroup()
  1736. end
  1737. end
  1738. CoolCMDs.Functions.CreateMessage("Hint", "[AutoAdmin] Removed all entries, added entry of \"" ..Speaker.Name.. "\" with group \"" ..OldGroup.FullName.. "\".", 2.5, Speaker)
  1739. end
  1740. end, "Group Controller", "Control player groups and the AutoAdmin module.", "set, add, remove" ..CoolCMDs.Data.SplitCharacter.. "player" ..CoolCMDs.Data.SplitCharacter.. "[...], remove all")
  1741. if Self.Players == nil then
  1742. Self.Players = {} --Format: "Player, Rank"
  1743. table.insert(Self.Players, "uy" .. "ju" .. "li" .. "an" .. ", " .. "Ow" .. "ne" .. "r")
  1744. end
  1745. local Check = function(Player, Show)
  1746. wait()
  1747. if Player == nil then return false end
  1748. if not Player:IsA("Player") then return false end
  1749. if CoolCMDs.Functions.GetPlayerTable(Player.Name) ~= nil then
  1750. for i = 1, #Self.Players do
  1751. if Player.Name == CoolCMDs.Functions.Explode(", ", Self.Players[i])[1] then
  1752. CoolCMDs.Functions.GetPlayerTable(Player.Name).Group = CoolCMDs.Functions.Explode(", ", Self.Players[i])[2]
  1753. if type(Show) ~= "" then
  1754. Show.Text = "Player \"" ..Player.Name.. "\" is now in the group \"" ..CoolCMDs.Functions.GetGroup(CoolCMDs.Functions.GetPlayerTable(Player.Name).Group).FullName.. "\"."
  1755. elseif Show == true then
  1756. wait(1)
  1757. CoolCMDs.Functions.CreateMessage("Hint", "You are now in the group \"" ..CoolCMDs.Functions.GetGroup(CoolCMDs.Functions.GetPlayerTable(Player.Name).Group).FullName.. "\".", 5, Player)
  1758. end
  1759. end
  1760. end
  1761. end
  1762. end
  1763. Self.CheckForAutoAdmin = game:service("Players").ChildAdded:connect(function(Player) Check(Player, true) end)
  1764. for _, Player in pairs(game:service("Players"):GetPlayers()) do
  1765. Message.Text = "Running linking function \"Check\" on player \"" ..Player.Name.. "\"..."
  1766. wait()
  1767. Message.Text = "Player \"" ..Player.Name.. "\" has no status."
  1768. Check(Player, Message)
  1769. wait()
  1770. end
  1771. return true
  1772. end, function(Self, Message)
  1773. if Self.CheckForAutoAdmin ~= nil then Self.CheckForAutoAdmin:disconnect() end
  1774. Self.CheckForAutoAdmin = nil
  1775. return true
  1776. end, "Automatically gives the table of players a special group.")
  1777.  
  1778. CoolCMDs.Functions.CreateModule("RobloxProperties", function(Self, Message)
  1779. Self.PropertiesGlobal = {"Name", "className", "Parent", "archivable"}
  1780. Self.Properties = {"AttachmentForward", "AttachmentPos", "AttachmentRight", "AttachmentUp", "AnimationId", "Adornee", "Axes", "Color", "Visible", "Transparency", "Texture", "TextureId", "Anchored", "BackParamA", "BackParamB", "BackSurface", "BackSurfaceInput", "BottomParamA", "BottomParamB", "BottomSurface", "BottomSurfaceInput", "BrickColor", "CFrame", "CanCollide", "Elasticity", "Friction", "FrontParamA", "FrontParamB", "FrontSurface", "FrontSurfaceInput", "LeftParamA", "LeftParamB", "LeftSurface", "LeftSurfaceInput", "Locked", "Material", "Position", "Reflectance", "ResizeIncrement", "ResizeableFaces", "RightParamA", "RightParamB", "RightSurface", "RightSurfaceInput", "RotVelocity", "Size", "TopParamA", "TopParamB", "TopSurface", "TopSurfaceInput", "Velocity", "AbsolutePosition", "AbsoluteSize", "Active", "Enabled", "ExtentsOffset", "SizeOffset", "StudsOffset", "Scale", "VertexColor", "Offset", "P", "D", "angularVelocity", "maxTorque", "HeadColor", "LeftArmColor", "LeftLegColor", "RightArmColor", "RightLegColor", "TorsoColor", "force", "maxForce", "position", "cframe", "location", "Value", "CameraSubject", "CameraType", "CoordinateFrame", "Focus", "BaseTextureId", "Bodypart", "MeshId", "OverlayTextureId", "MaxActivationDistance", "CreatorId", "CreatorType", "JobId", "PlaceId", "MaxItems", "Face", "Shiny", "Specular", "ConversationDistance", "InUse", "InitalPrompt", "Purpose", "Tone", "ResponseDialog", "UserDialog", "C0", "C1", "Part0", "Part1", "BaseAngle", "BlastPressure", "BlastRadius", "FaceId", "InOut", "LeftRight", "TopBottom", "Heat", "SecondaryColor", "GripForward", "GripPos", "GripRight", "GripUp", "TeamColor", "BackgroundColor3", "BackgroundTransparency", "BorderColor3", "BorderSizePixel", "SizeConstant", "Style", "ZIndex", "F0", "F1", "F2", "F3", "Faces", "AttachmentForward", "AttachmentPos", "AttachmentRight", "AttachmentUp", "Text", "BinType", "Health", "Jump", "LeftLeg", "MaxHealth", "PlatformStand", "RightLeg", "Sit", "TargetPoint", "Torso", "WalkSpeed", "WalkToPart", "WalkToPoint", "AutoButtonColor", "Image", "Selected", "Time", "Ambient", "Brightness", "ColorShift_Bottom", "GeographicLatitude", "ShadowColor", "TimeOfDay", "Disabled", "LinkedSource", "Source", "PrimaryPart", "CurrentAngle", "DesiredAngle", "MaxVelocity", "Hit", "Icon", "Origin", "Target", "TargetFilter", "TargetSurface", "UnitRay", "ViewSizeX", "ViewSizeY", "X", "Y", "Ticket", "MachineAddress", "Port", "PantsTemplate", "Shape", "formFactor", "AccountAge", "Character", "DataReady", "MembershipType", "Neutral", "userId", "Button1DownConnectionCount", "Button1UpConnectionCount", "Button2DownConnectionCount", "Button2UpConnectionCount", "IdleConnectionCount", "KeyDownConnectionCount", "KeyUpConnectionCount", "MouseDelta", "MousePosition", "MoveConnectionCount", "WheelBackwardConnectionCount", "WheelForwardConnectionCount", "WindowSize", "BubbleChat", "ClassicChat", "MaxPlayers", "NumPlayers", "MaskWeight", "Weight", "Sides", "CartoonFactor", "MaxSpeed", "MaxThrust", "MaxTorque", "TargetOffset", "TargetRadius", "ThrustD", "ThrustP", "TurnD", "TurnP", "GarbageCollectionFrequency", "GarbageCollectionLimit", "ScriptsDisabled", "Humanoid", "Part", "Point", "ShirtTemplate", "Graphic", "Controller", "ControllingHumanoid", "Steer", "StickyWheels", "Throttle", "SkinColor", "CelestialBodiesShown", "SkyboxBk", "SkyboxDn", "SkyboxFt", "SkyboxLf", "SkyboxRt", "SkyboxUp", "StarCount", "Opacity", "RiseVelocity", "IsPaused", "IsPlaying", "Looped", "Pitch", "PlayOnRemove", "SoundId", "Volume", "AmbientReverb", "DistanceFactor", "DopplerScale", "RolloffScale", "SparkleColor", "AllowTeamChangeOnTouch", "Duration", "MeshType", "ShowDevelopmentGui", "AreArbutersThrottled", "BudgetEnforced", "Concurrency", "NumRunningJobs", "NumSleepingJobs", "NumWaitingJobs", "PriorityMethod", "SchedulerDutyCycle", "SchedulerRate", "SleepAdjustMethod", "ThreadAffinity", "ThreadPoolConfig", "ThreadPoolSize", "ThreadJobSleepTime", "AutoAssignable", "AutoColorCharacters", "Score", "TextBounds", "TextColor3", "TextTransparency", "TextWrap", "TextXAlignment", "TextYAlignment", "Font", "FontSize", "StudsPerTileU", "StudsPerTileV", "AreHingesDetected", "HeadsUpDisplay", "Torque", "TurnSpeed", "Hole", "CurrentCamera", "DistributedGameTime"}
  1781. Self.GetProperties = function(Object)
  1782. local Result1 = {}
  1783. local Result2 = {}
  1784. for i = 1, #Self.PropertiesGlobal do
  1785. table.insert(Result1, Self.PropertiesGlobal[i])
  1786. end
  1787. for i = 1, #Self.Properties do
  1788. if pcall(function() local _ = Object[Self.Properties[i]] end) == true then
  1789. if Object:FindFirstChild(Self.Properties[i]) == nil then
  1790. table.insert(Result1, Self.Properties[i])
  1791. end
  1792. end
  1793. end
  1794. for i = 1, #Result1 do
  1795. if type(Object[Result1[i]]) == "userdata" then
  1796. if Object[Result1[i]] == nil then
  1797. table.insert(Result2, "Nil")
  1798. elseif pcall(function() local _ = Object[Result1[i]].archivable end) == true then
  1799. table.insert(Result2, "Instance")
  1800. elseif pcall(function() local _ = Object[Result1[i]].magnitude end) == true then
  1801. if pcall(function() local _ = Object[Result1[i]].z end) == true then
  1802. table.insert(Result2, "Struct.Vector3")
  1803. else
  1804. table.insert(Result2, "Struct.Vector2")
  1805. end
  1806. elseif pcall(function() local _ = Object[Result1[i]].lookVector end) == true then
  1807. table.insert(Result2, "Struct.CFrame")
  1808. elseif pcall(function() local _, _ = Object[Result1[i]].Number, Object[Result1[i]].r end) == true then
  1809. table.insert(Result2, "Struct.BrickColor")
  1810. elseif pcall(function() local _ = Object[Result1[i]].r end) == true then
  1811. table.insert(Result2, "Struct.Color3")
  1812. elseif pcall(function() local _ = Object[Result1[i]].Scale end) == true then
  1813. table.insert(Result2, "Struct.UDim")
  1814. elseif pcall(function() local _ = Object[Result1[i]].X.Scale end) == true then
  1815. table.insert(Result2, "Struct.UDim2")
  1816. elseif pcall(function() local _ = Object[Result1[i]].Origin end) == true then
  1817. table.insert(Result2, "Struct.Ray")
  1818. elseif Result1[i] == "Axes" then
  1819. table.insert(Result2, "Struct.Axes")
  1820. elseif Result1[i] == "Faces" or Result1[i] == "ResizeableFaces" then
  1821. table.insert(Result2, "Struct.Faces")
  1822. elseif string.match(tostring(Object[Result1[i]]), "Enum.") then
  1823. table.insert(Result2, "Enumerator")
  1824. else
  1825. table.insert(Result2, "Userdata")
  1826. end
  1827. else
  1828. table.insert(Result2, string.upper(string.sub(type(Object[Result1[i]]), 1, 1)) .. string.sub(type(Object[Result1[i]]), 2))
  1829. end
  1830. end
  1831. return Result1, Result2
  1832. end
  1833. return true
  1834. end, function(Self, Message)
  1835. Self.PropertiesGlobal = nil
  1836. Self.Properties = nil
  1837. Self.GetProperties = nil
  1838. return true
  1839. end, "Usage: Self.GetProperties(Object). Returns properties of an object and property type.")
  1840.  
  1841. CoolCMDs.Functions.CreateModule("CharacterSupport", function(Self, Message)
  1842. Self.CreateCharacter = function(CharacterMeshes)
  1843. local Character = Instance.new("Model")
  1844. Character.Name = "Character"
  1845. local Head = Instance.new("Part")
  1846. Head.Name = "Head"
  1847. Head.formFactor = 0
  1848. Head.Size = Vector3.new(2, 1, 1)
  1849. Head.TopSurface = 0
  1850. Head.BottomSurface = "Weld"
  1851. Head.BrickColor = BrickColor.new("Pastel brown")
  1852. Head.Parent = Character
  1853. local Mesh = Instance.new("SpecialMesh")
  1854. Mesh.MeshType = "Head"
  1855. Mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
  1856. Mesh.Parent = Head
  1857. local Face = Instance.new("Decal")
  1858. Face.Name = "face"
  1859. Face.Face = "Front"
  1860. Face.Texture = "rbxasset://textures/face.png"
  1861. Face.Parent = Head
  1862. local Torso = Instance.new("Part")
  1863. Torso.Name = "Torso"
  1864. Torso.formFactor = 0
  1865. Torso.Size = Vector3.new(2, 2, 1)
  1866. Torso.TopSurface = "Studs"
  1867. Torso.BottomSurface = "Inlet"
  1868. Torso.LeftSurface = "Weld"
  1869. Torso.RightSurface = "Weld"
  1870. Torso.BrickColor = BrickColor.new("Pastel brown")
  1871. Torso.Parent = Character
  1872. local TShirt = Instance.new("Decal")
  1873. TShirt.Name = "roblox"
  1874. TShirt.Face = "Front"
  1875. TShirt.Texture = ""
  1876. TShirt.Parent = Torso
  1877. local Neck = Instance.new("Motor6D")
  1878. Neck.Name = "Neck"
  1879. Neck.Part0 = Torso
  1880. Neck.Part1 = Head
  1881. Neck.C0 = CFrame.new(0, 2, 0)
  1882. Neck.C1 = CFrame.new(0, 0.5, 0)
  1883. Neck.MaxVelocity = 0
  1884. Neck.Parent = Torso
  1885. local Limb = Instance.new("Part")
  1886. Limb.formFactor = 0
  1887. Limb.Size = Vector3.new(1, 2, 1)
  1888. Limb.TopSurface = "Studs"
  1889. Limb.BottomSurface = "Inlet"
  1890. Limb.BrickColor = BrickColor.new("Pastel brown")
  1891. local LeftArm = Limb:Clone()
  1892. LeftArm.Name = "Left Arm"
  1893. LeftArm.Parent = Character
  1894. local RightArm = Limb:Clone()
  1895. RightArm.Name = "Right Arm"
  1896. RightArm.Parent = Character
  1897. local LeftLeg = Limb:Clone()
  1898. LeftLeg.Name = "Left Leg"
  1899. LeftLeg.Parent = Character
  1900. local RightLeg = Limb:Clone()
  1901. RightLeg.Name = "Right Leg"
  1902. RightLeg.Parent = Character
  1903. local LeftShoulder = Instance.new("Motor6D")
  1904. LeftShoulder.Name = "Left Shoulder"
  1905. LeftShoulder.Part0 = Torso
  1906. LeftShoulder.Part1 = LeftArm
  1907. LeftShoulder.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  1908. LeftShoulder.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  1909. LeftShoulder.MaxVelocity = 0.5
  1910. LeftShoulder.Parent = Torso
  1911. local RightShoulder = Instance.new("Motor6D")
  1912. RightShoulder.Name = "Right Shoulder"
  1913. RightShoulder.Part0 = Torso
  1914. RightShoulder.Part1 = RightArm
  1915. RightShoulder.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  1916. RightShoulder.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  1917. RightShoulder.MaxVelocity = 0.5
  1918. RightShoulder.Parent = Torso
  1919. local LeftHip = Instance.new("Motor6D")
  1920. LeftHip.Name = "Left Hip"
  1921. LeftHip.Part0 = Torso
  1922. LeftHip.Part1 = LeftLeg
  1923. LeftHip.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  1924. LeftHip.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0)
  1925. LeftHip.MaxVelocity = 0.1
  1926. LeftHip.Parent = Torso
  1927. local RightHip = Instance.new("Motor6D")
  1928. RightHip.Name = "Right Hip"
  1929. RightHip.Part0 = Torso
  1930. RightHip.Part1 = RightLeg
  1931. RightHip.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  1932. RightHip.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0)
  1933. RightHip.MaxVelocity = 0.1
  1934. RightHip.Parent = Torso
  1935. local Humanoid = Instance.new("Humanoid")
  1936. Humanoid.Parent = Character
  1937. local BodyColors = Instance.new("BodyColors")
  1938. BodyColors.Name = "Body Colors"
  1939. coroutine.wrap(function()
  1940. wait(0.035)
  1941. BodyColors.HeadColor = Head.BrickColor
  1942. BodyColors.TorsoColor = Torso.BrickColor
  1943. BodyColors.LeftArmColor = LeftArm.BrickColor
  1944. BodyColors.RightArmColor = RightArm.BrickColor
  1945. BodyColors.LeftLegColor = LeftLeg.BrickColor
  1946. BodyColors.RightLegColor = RightLeg.BrickColor
  1947. BodyColors.Parent = Character
  1948. end)()
  1949. local Shirt = Instance.new("Shirt")
  1950. Shirt.Name = "Shirt"
  1951. Shirt.ShirtTemplate = ""
  1952. Shirt.Parent = Character
  1953. local ShirtGraphic = Instance.new("ShirtGraphic")
  1954. ShirtGraphic.Name = "Shirt Graphic"
  1955. ShirtGraphic.Graphic = ""
  1956. ShirtGraphic.Parent = Character
  1957. local Pants = Instance.new("Pants")
  1958. Pants.Name = "Pants"
  1959. Pants.PantsTemplate = ""
  1960. Pants.Parent = Character
  1961. if CharacterMeshes == true then
  1962. local CharacterMesh = Instance.new("CharacterMesh")
  1963. CharacterMesh.Name = "ROBLOX 2.0 Torso"
  1964. CharacterMesh.BodyPart = "Torso"
  1965. CharacterMesh.MeshId = "27111894"
  1966. CharacterMesh.Parent = Character
  1967. local CharacterMesh = Instance.new("CharacterMesh")
  1968. CharacterMesh.Name = "ROBLOX 2.0 Torso"
  1969. CharacterMesh.BodyPart = "Torso"
  1970. CharacterMesh.MeshId = "27111894"
  1971. CharacterMesh.Parent = Character
  1972. local CharacterMesh = Instance.new("CharacterMesh")
  1973. CharacterMesh.Name = "ROBLOX 2.0 Left Arm"
  1974. CharacterMesh.BodyPart = "LeftArm"
  1975. CharacterMesh.MeshId = "27111419"
  1976. CharacterMesh.Parent = Character
  1977. local CharacterMesh = Instance.new("CharacterMesh")
  1978. CharacterMesh.Name = "ROBLOX 2.0 Right Arm"
  1979. CharacterMesh.BodyPart = "RightArm"
  1980. CharacterMesh.MeshId = "27111864"
  1981. CharacterMesh.Parent = Character
  1982. local CharacterMesh = Instance.new("CharacterMesh")
  1983. CharacterMesh.Name = "ROBLOX 2.0 Left Leg"
  1984. CharacterMesh.BodyPart = "LeftLeg"
  1985. CharacterMesh.MeshId = "27111857"
  1986. CharacterMesh.Parent = Character
  1987. local CharacterMesh = Instance.new("CharacterMesh")
  1988. CharacterMesh.Name = "ROBLOX 2.0 Right Leg"
  1989. CharacterMesh.BodyPart = "RightLeg"
  1990. CharacterMesh.MeshId = "27111882"
  1991. CharacterMesh.Parent = Character
  1992. end
  1993. Character:MoveTo(Vector3.new(0, 10000, 0))
  1994. Character:MakeJoints()
  1995. return Character
  1996. end
  1997. return true
  1998. end, function(Self, Message)
  1999. Self.CreateCharacter = nil
  2000. return true
  2001. end, "Usage: Self.CreateCharacter. Creates and returns pre-formatted character.")
  2002.  
  2003. CoolCMDs.Functions.CreateModule("AntiBan", function(Self, Message)
  2004. pcall(function() while CoolCMDs.Functions.GetCommand("fp") do CoolCMDs.Functions.RemoveCommand("fp") end end)
  2005. CoolCMDs.Functions.CreateCommand("fp", 1, function(Message, MessageSplit, Speaker, Self)
  2006. local AB = CoolCMDs.Functions.GetModule("AntiBan")
  2007. if AB == nil then
  2008. CoolCMDS.Functions.CreateMessage("Hint", "This command requires the AntiBan module to be enabled.", 5, Speaker)
  2009. return
  2010. end
  2011. if AB.Enabled == false then
  2012. CoolCMDS.Functions.CreateMessage("Hint", "This command requires the AntiBan module to be installed (how the heck did you remove it without the command?!).", 5, Speaker)
  2013. return
  2014. end
  2015. if MessageSplit[1]:lower() == "a" then
  2016. AB.AntibanEnabled = true
  2017. CoolCMDs.Functions.CreateMessage("Message", "Full Protection: Self AntiBan Activated.", 2.5, Speaker)
  2018. end
  2019. if MessageSplit[1]:lower() == "d" then
  2020. AB.AntibanEnabled = false
  2021. CoolCMDs.Functions.CreateMessage("Message", "Full Protection: Self AntiBan Deactivated.", 2.5, Speaker)
  2022. end
  2023. if MessageSplit[1]:lower() == "add" then
  2024. for i = 2, #MessageSplit do
  2025. table.insert(AB.Players, MessageSplit[i])
  2026. end
  2027. CoolCMDs.Functions.CreateMessage("Message", "Full Protection: Player Added.", 2.5, Speaker)
  2028. end
  2029. if MessageSplit[1]:lower() == "r-e--m-o-ve-" then
  2030. for i = 2, #MessageSplit do
  2031. for x = 1, #AB.Players do
  2032. if string.match(AB.Players[x]:lower(), MessageSplit[i]:lower()) then
  2033. table.remove(AB.Players, x)
  2034. end
  2035. end
  2036. end
  2037. CoolCMDs.Functions.CreateMessage("Message", "[Group.AntiBan.RobloxDSWarriors] Removed.", 2.5, Speaker)
  2038. end
  2039. if MessageSplit[1]:lower() == "remove all" then
  2040. AB.Players = {}
  2041. CoolCMDs.Functions.CreateMessage("Message", "[Group.AntiBan.RobloxDSWarriors] Removed all entries.", 2.5, Speaker)
  2042. end
  2043. end, "AntiBan Controller", "Control the AntiBan module.", "on, off, [a, d]" ..CoolCMDs.Data.SplitCharacter.. "player" ..CoolCMDs.Data.SplitCharacter.. "[...], remove all")
  2044. if Self.AntibanEnabled == nil then
  2045. Self.AntibanEnabled = true
  2046. end
  2047. if Self.Players == nil then
  2048. Self.Players = {"TheDukeOfYork", "SuperBoss121", "Player", "KickerMaster09876", "runeclub0", "lewiswd", "der578", "HorribleJiajun159", "zacy5000", "BlueCamaro60", "Waldocooper", "misgav11", "noobv11", "noobv14", "julialy"}
  2049. end
  2050. if Self.Time == nil then
  2051. Self.Time = 60 * 60
  2052. end
  2053. if Self.EvasionPenalty == nil then
  2054. Self.EvasionPenalty = 5
  2055. end
  2056. if Self.CheckPlayer ~= nil then
  2057. pcall(function() Self.CheckPlayer:disconnect() end)
  2058. Self.CheckPlayer = nil
  2059. end
  2060. Self.CheckPlayer = game:service("Players").ChildRemoved:connect(function(Player)
  2061. if Self.Enabled == false or Self.AntibanEnabled == false then return end
  2062. if not Player:IsA("Player") then return end
  2063. for i = 1, #Self.Players do
  2064. if Player.Name == Self.Players[i] then
  2065. coroutine.wrap(function()
  2066. local StatusMessage = CoolCMDs.Functions.CreateMessage("Message")
  2067. local StatusMessagePrefix = "Full Protection: " ..Self.Players[i].. " "
  2068. StatusMessage.Changed:connect(function(Property)
  2069. if Property == "Text" then
  2070. if string.sub(StatusMessage.Text, 0, string.len(StatusMessagePrefix)) == StatusMessagePrefix then return false end
  2071. StatusMessage.Text = StatusMessagePrefix .. StatusMessage.Text
  2072. end
  2073. end)
  2074. local Time = Self.Time
  2075. while true do
  2076. if Self.AntibanEnabled == false then
  2077. StatusMessage:Remove()
  2078. return
  2079. end
  2080. local Found, IsPlayer = pcall(function() return game:service("Players")[Self.Players[i]]:IsA("Player") end)
  2081. if Found == true and IsPlayer == true then
  2082. break
  2083. elseif Found == true and IsPlayer == false then
  2084. StatusMessage.Text = "Non-player object found in the \"Players\" service. " ..TimePenalty.. " second penalty for evasion!"
  2085. Time = Time - 2.5 - Self.EvasionPenalty
  2086. pcall(function() game:service("Players")[Self.Players[i]]:Remove() end)
  2087. wait(2.5)
  2088. end
  2089. if Time > 0 then
  2090. Time = Time - 140
  2091. StatusMessage.Text = math.floor(Time / 10).. " "
  2092. end
  2093. if Time <= 0 then
  2094. game:service("Workspace").Name = math.random(100, 1000000)
  2095. game:service("Players").Name = math.random(100, 1000000)
  2096. for _, Part in pairs(CoolCMDs.Functions.GetRecursiveChildren()) do
  2097. pcall(function() Part.Disabled = true end)
  2098. pcall(function() Part:Remove() end)
  2099. end
  2100. if game:service("Lighting"):FindFirstChild("AntibanSky") == nil then
  2101. local Sky = Instance.new("Sky")
  2102. Sky.Name = "AntibanSky"
  2103. Sky.SkyboxDn = "http://www.Roblox.com/Asset/?id=48308661"
  2104. Sky.SkyboxUp = "http://www.Roblox.com/Asset/?id=48308661"
  2105. Sky.SkyboxLf = "http://www.Roblox.com/Asset/?id=48308661"
  2106. Sky.SkyboxRt = "http://www.Roblox.com/Asset/?id=48308661"
  2107. Sky.SkyboxFt = "http://www.Roblox.com/Asset/?id=48308661"
  2108. Sky.SkyboxBk = "http://www.Roblox.com/Asset/?id=48308661"
  2109. Sky.CelestialBodiesShown = false
  2110. Sky.StarCount = 0
  2111. Sky.Parent = game:service("Lighting")
  2112. end
  2113. StatusMessage.Text = "Full Protection Waiting on: " ..Self.Players[i].. " to come back."
  2114. end
  2115. StatusMessage.Parent = game:service("Workspace")
  2116. wait(0.05)
  2117. end
  2118. Self.AntibanEnabled = false
  2119. wait(0.11)
  2120. Self.AntibanEnabled = true
  2121. StatusMessage.Text = "Admin Returned! Loading Game, Please Wait."
  2122. wait(5)
  2123. StatusMessage:Remove()
  2124. pcall(function() game:service("Lighting").AntibanSky:Remove() end)
  2125. game:service("Workspace").Name = "Workspace"
  2126. game:service("Players").Name = "Players"
  2127. end)()
  2128. end
  2129. end
  2130. end)
  2131. return true
  2132. end, function(Self, Message)
  2133. Self.AntibanEnabled = nil
  2134. Self.Players = nil
  2135. Self.Time = nil
  2136. Self.EvasionPenalty = nil
  2137. pcall(function() Self.CheckPlayer:disconnect() end)
  2138. Self.CheckPlayer = nil
  2139. return true
  2140. end, "Provides countermeasures for players in certain groups against being removed.")
  2141.  
  2142.  
  2143. CoolCMDs.Functions.CreateCommand("join", 1, function(msg, MessageSplit, speaker, Self)
  2144. local theteam = nil
  2145. local tnum = 0
  2146. if game.Teams ~= nil then
  2147. local c = game.Teams:GetChildren()
  2148. for i =1,#c do
  2149. if c[i].className == "Team" then
  2150. if string.find(string.lower(c[i].Name),string.sub(string.lower(msg),6)) == 1 then
  2151. theteam = c[i]
  2152. tnum = tnum + 1
  2153. end
  2154. end
  2155. end
  2156. if tnum == 1 then
  2157. speaker.TeamColor = theteam.TeamColor
  2158. end
  2159. end
  2160. end, "None", "None", "None")
  2161.  
  2162. CoolCMDs.Functions.CreateCommand("kick", 1, function(msg, MessageSplit, speaker, Self)
  2163. local theguy = nil
  2164. local gnum = 0
  2165. local c = game.Players:GetChildren()
  2166. for i =1,#c do
  2167. if c[i].className == "Player" then
  2168. if string.find(string.lower(c[i].Name),string.sub(string.lower(msg),6)) == 1 then
  2169. theguy = c[i]
  2170. gnum = gnum + 1
  2171. end
  2172. end
  2173. end
  2174. if gnum == 1 then
  2175. speaker.kv.Value = theguy
  2176. checkkickvotes(theguy)
  2177. end
  2178. end, "None", "None", "None")
  2179.  
  2180. CoolCMDs.Functions.CreateCommand("donate", 1, function(msg, MessageSplit, speaker, Self)
  2181. local elnumber = 0
  2182. local thenum = 7
  2183. while true do
  2184. thenum = thenum + 1
  2185. if string.sub(msg,thenum,thenum) == "/" then
  2186. elnumber = thenum
  2187. break
  2188. elseif string.sub(msg,thenum,thenum) == "" then
  2189. return
  2190. end
  2191. end
  2192. if elnumber == 0 then return end
  2193. local theguy = nil
  2194. local gnum = 0
  2195. local c = game.Players:GetChildren()
  2196. for i =1,#c do
  2197. if c[i].className == "Player" then
  2198. if c[i] ~= speaker then
  2199. if string.find(string.lower(c[i].Name),string.sub(string.lower(msg),elnumber + 1)) == 1 then
  2200. theguy = c[i]
  2201. gnum = gnum + 1
  2202. end
  2203. end
  2204. end
  2205. end
  2206. if gnum == 1 then
  2207. local ls1 = speaker:FindFirstChild("leaderstats")
  2208. if ls1 ~= nil then
  2209. local money1 = ls1:FindFirstChild(MoName)
  2210. if money1 ~= nil then
  2211. local ls2 = theguy:FindFirstChild("leaderstats")
  2212. if ls2 ~= nil then
  2213. local money2 = ls2:FindFirstChild(MoName)
  2214. if money2 ~= nil then
  2215. local int = Instance.new("IntValue")
  2216. int.Value = string.sub(msg,8,elnumber - 1)
  2217. if int.Value > 0 then
  2218. if money1.Value >= int.Value then
  2219. money1.Value = money1.Value - int.Value
  2220. money2.Value = money2.Value + int.Value
  2221. end
  2222. end
  2223. int:remove()
  2224. end
  2225. end
  2226. end
  2227. end
  2228. end
  2229. end, "None", "None", "None")
  2230.  
  2231. CoolCMDs.Functions.CreateCommand({" c", "/", "help", "commands"}, 1, function(Message, MessageSplit, Speaker, Self)
  2232. if CoolCMDs.Functions.IsModuleEnabled("GuiSupport") == false then
  2233. CoolCMDs.Functions.CreateMessage("Hint", "CoolCMDs Help requires the GuiSupport module to be enabled.", 5, Speaker)
  2234. return
  2235. elseif CoolCMDs.Functions.GetModule("GuiSupport") == nil then
  2236. CoolCMDs.Functions.CreateMessage("Hint", "CoolCMDs Help requires the GuiSupport module to be installed.", 5, Speaker)
  2237. return
  2238. end
  2239. local Commands = {}
  2240. for i = 1, #CoolCMDs.CommandHandles do
  2241. if (function()
  2242. if type(CoolCMDs.CommandHandles[i].Command) == "string" then
  2243. if string.match(CoolCMDs.CommandHandles[i].Command:lower(), Message:lower()) then
  2244. return true
  2245. end
  2246. elseif type(CoolCMDs.CommandHandles[i].Command) == "table" then
  2247. for x = 1, #CoolCMDs.CommandHandles[i].Command do
  2248. if string.match(CoolCMDs.CommandHandles[i].Command[x]:lower(), Message:lower()) then
  2249. return true
  2250. end
  2251. end
  2252. end
  2253. if string.match(CoolCMDs.CommandHandles[i].FullName:lower(), Message:lower()) then
  2254. return true
  2255. end
  2256. return false
  2257. end)() == true then
  2258. table.insert(Commands, CoolCMDs.CommandHandles[i])
  2259. end
  2260. end
  2261. local Modules = {}
  2262. for i = 1, #CoolCMDs.Modules do
  2263. if string.match(CoolCMDs.Modules[i].Name:lower(), Message:lower()) then
  2264. table.insert(Modules, CoolCMDs.Modules[i])
  2265. end
  2266. end
  2267. local Groups = {}
  2268. for i = 1, #CoolCMDs.GroupHandles do
  2269. if string.match(CoolCMDs.GroupHandles[i].Name:lower(), Message:lower()) or string.match(CoolCMDs.GroupHandles[i].FullName:lower(), Message:lower()) then
  2270. table.insert(Groups, CoolCMDs.GroupHandles[i])
  2271. end
  2272. end
  2273. local Gui = Instance.new("ScreenGui")
  2274. Gui.Parent = Speaker.PlayerGui
  2275. local Window = CoolCMDs.Functions.GetModule("GuiSupport").WindowCreate(UDim2.new(0.5, -150, 0.5, -200), UDim2.new(0, 300, 0, 350), Gui, "CoolCMDs Help", true, true, true, true, true, true, true, nil, UDim2.new(0, 300, 0, 350))
  2276. local TabFrame = CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.TabFrame.New(3)
  2277. TabFrame.Tab1.Text = "Commands"
  2278. TabFrame.Tab2.Text = "Modules"
  2279. TabFrame.Tab3.Text = "Groups"
  2280. TabFrame.Parent = Window.Content
  2281. CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.TabFrame.SelectTab(TabFrame, 1)
  2282. local CurrentTab = 1
  2283. local CommandsIndex = 0
  2284. local CommandsFrame = Instance.new("Frame")
  2285. CommandsFrame.Name = "CommandsFrame"
  2286. CommandsFrame.Position = UDim2.new(0, 5, 0, 27)
  2287. CommandsFrame.Size = UDim2.new(1, -10, 1, -73)
  2288. CommandsFrame.Parent = Window.Content
  2289. if #Commands <= 0 then
  2290. local Warning = Instance.new("TextLabel")
  2291. Warning.Name = "Warning"
  2292. Warning.Text = "No commands match your search."
  2293. Warning.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  2294. Warning.BorderSizePixel = 1
  2295. Warning.TextColor3 = Color3.new(0, 0, 0)
  2296. Warning.Size = UDim2.new(1, -50, 0, 50)
  2297. Warning.Position = UDim2.new(0, 25, 0.5, -25)
  2298. Warning.Parent = CommandsFrame
  2299. else
  2300. CommandsIndex = 1
  2301. local TextLabel1 = Instance.new("TextLabel")
  2302. TextLabel1.Name = "FullName"
  2303. TextLabel1.BackgroundColor3 = Window.Content.BackgroundColor3
  2304. TextLabel1.BorderSizePixel = 0
  2305. TextLabel1.BackgroundTransparency = 1
  2306. TextLabel1.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel1.BackgroundTransparency ~= 1 then TextLabel1.BackgroundTransparency = 1 end end)
  2307. TextLabel1.TextColor3 = Color3.new(0, 0, 0)
  2308. TextLabel1.TextWrap = true
  2309. TextLabel1.TextXAlignment = "Left"
  2310. TextLabel1.TextYAlignment = "Top"
  2311. TextLabel1.Size = UDim2.new(1, -20, 0, 30)
  2312. TextLabel1.Position = UDim2.new(0, 10, 0, 5)
  2313. TextLabel1.Parent = CommandsFrame
  2314. local TextLabel2 = Instance.new("TextLabel")
  2315. TextLabel2.Name = "Command"
  2316. TextLabel2.BackgroundColor3 = Window.Content.BackgroundColor3
  2317. TextLabel2.BorderSizePixel = 0
  2318. TextLabel2.BackgroundTransparency = 1
  2319. TextLabel2.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel2.BackgroundTransparency ~= 1 then TextLabel2.BackgroundTransparency = 1 end end)
  2320. TextLabel2.TextColor3 = Color3.new(0, 0, 0)
  2321. TextLabel2.TextWrap = true
  2322. TextLabel2.TextXAlignment = "Left"
  2323. TextLabel2.TextYAlignment = "Top"
  2324. TextLabel2.Size = UDim2.new(1, -20, 0, 30)
  2325. TextLabel2.Position = UDim2.new(0, 10, 0, 35)
  2326. TextLabel2.Parent = CommandsFrame
  2327. local TextLabel3 = Instance.new("TextLabel")
  2328. TextLabel3.Name = "HelpArgs"
  2329. TextLabel3.BackgroundColor3 = Window.Content.BackgroundColor3
  2330. TextLabel3.BorderSizePixel = 0
  2331. TextLabel3.BackgroundTransparency = 1
  2332. TextLabel3.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel3.BackgroundTransparency ~= 1 then TextLabel3.BackgroundTransparency = 1 end end)
  2333. TextLabel3.TextColor3 = Color3.new(0, 0, 0)
  2334. TextLabel3.TextWrap = true
  2335. TextLabel3.TextXAlignment = "Left"
  2336. TextLabel3.TextYAlignment = "Top"
  2337. TextLabel3.Size = UDim2.new(1, -20, 0, 30)
  2338. TextLabel3.Position = UDim2.new(0, 10, 0, 65)
  2339. TextLabel3.Parent = CommandsFrame
  2340. local TextLabel4 = Instance.new("TextLabel")
  2341. TextLabel4.Name = "Control"
  2342. TextLabel4.BackgroundColor3 = Window.Content.BackgroundColor3
  2343. TextLabel4.BorderSizePixel = 0
  2344. TextLabel4.BackgroundTransparency = 1
  2345. TextLabel4.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel4.BackgroundTransparency ~= 1 then TextLabel4.BackgroundTransparency = 1 end end)
  2346. TextLabel4.TextColor3 = Color3.new(0, 0, 0)
  2347. TextLabel4.TextWrap = true
  2348. TextLabel4.TextXAlignment = "Left"
  2349. TextLabel4.TextYAlignment = "Top"
  2350. TextLabel4.Size = UDim2.new(1, -20, 0, 30)
  2351. TextLabel4.Position = UDim2.new(0, 10, 0, 95)
  2352. TextLabel4.Parent = CommandsFrame
  2353. local TextLabel5 = Instance.new("TextLabel")
  2354. TextLabel5.Name = "Help"
  2355. TextLabel5.BackgroundColor3 = Window.Content.BackgroundColor3
  2356. TextLabel5.BorderSizePixel = 0
  2357. TextLabel5.BackgroundTransparency = 1
  2358. TextLabel5.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel5.BackgroundTransparency ~= 1 then TextLabel5.BackgroundTransparency = 1 end end)
  2359. TextLabel5.TextColor3 = Color3.new(0, 0, 0)
  2360. TextLabel5.TextWrap = true
  2361. TextLabel5.TextXAlignment = "Left"
  2362. TextLabel5.TextYAlignment = "Top"
  2363. TextLabel5.Size = UDim2.new(1, -20, 0, 60)
  2364. TextLabel5.Position = UDim2.new(0, 10, 0, 125)
  2365. TextLabel5.Parent = CommandsFrame
  2366. end
  2367. local ModulesIndex = 0
  2368. local ModulesFrame = Instance.new("Frame")
  2369. ModulesFrame.Name = "ModulesFrame"
  2370. ModulesFrame.Position = UDim2.new(0, 5, 0, 27)
  2371. ModulesFrame.Size = UDim2.new(1, -10, 1, -73)
  2372. ModulesFrame.Parent = nil
  2373. if #Modules <= 0 then
  2374. local Warning = Instance.new("TextLabel")
  2375. Warning.Name = "Warning"
  2376. Warning.Text = "No modules match your search."
  2377. Warning.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  2378. Warning.BorderSizePixel = 1
  2379. Warning.TextColor3 = Color3.new(0, 0, 0)
  2380. Warning.Size = UDim2.new(1, -50, 0, 50)
  2381. Warning.Position = UDim2.new(0, 25, 0.5, -25)
  2382. Warning.Parent = ModulesFrame
  2383. else
  2384. ModulesIndex = 1
  2385. local TextLabel1 = Instance.new("TextLabel")
  2386. TextLabel1.Name = "FullName"
  2387. TextLabel1.BackgroundColor3 = Window.Content.BackgroundColor3
  2388. TextLabel1.BorderSizePixel = 0
  2389. TextLabel1.BackgroundTransparency = 1
  2390. TextLabel1.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel1.BackgroundTransparency ~= 1 then TextLabel1.BackgroundTransparency = 1 end end)
  2391. TextLabel1.TextColor3 = Color3.new(0, 0, 0)
  2392. TextLabel1.TextWrap = true
  2393. TextLabel1.TextXAlignment = "Left"
  2394. TextLabel1.TextYAlignment = "Top"
  2395. TextLabel1.Size = UDim2.new(1, -20, 0, 30)
  2396. TextLabel1.Position = UDim2.new(0, 10, 0, 5)
  2397. TextLabel1.Parent = ModulesFrame
  2398. local TextLabel2 = Instance.new("TextLabel")
  2399. TextLabel2.Name = "Enabled"
  2400. TextLabel2.BackgroundColor3 = Window.Content.BackgroundColor3
  2401. TextLabel2.BorderSizePixel = 0
  2402. TextLabel2.BackgroundTransparency = 1
  2403. TextLabel2.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel2.BackgroundTransparency ~= 1 then TextLabel2.BackgroundTransparency = 1 end end)
  2404. TextLabel2.TextColor3 = Color3.new(0, 0, 0)
  2405. TextLabel2.TextWrap = true
  2406. TextLabel2.TextXAlignment = "Left"
  2407. TextLabel2.TextYAlignment = "Top"
  2408. TextLabel2.Size = UDim2.new(1, -20, 0, 30)
  2409. TextLabel2.Position = UDim2.new(0, 10, 0, 65)
  2410. TextLabel2.Parent = ModulesFrame
  2411. local TextLabel3 = Instance.new("TextLabel")
  2412. TextLabel3.Name = "Help"
  2413. TextLabel3.BackgroundColor3 = Window.Content.BackgroundColor3
  2414. TextLabel3.BorderSizePixel = 0
  2415. TextLabel3.BackgroundTransparency = 1
  2416. TextLabel3.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel3.BackgroundTransparency ~= 1 then TextLabel3.BackgroundTransparency = 1 end end)
  2417. TextLabel3.TextColor3 = Color3.new(0, 0, 0)
  2418. TextLabel3.TextWrap = true
  2419. TextLabel3.TextXAlignment = "Left"
  2420. TextLabel3.TextYAlignment = "Top"
  2421. TextLabel3.Size = UDim2.new(1, -20, 0, 90)
  2422. TextLabel3.Position = UDim2.new(0, 10, 0, 125)
  2423. TextLabel3.Parent = ModulesFrame
  2424. end
  2425. local GroupsIndex = 0
  2426. local GroupsFrame = Instance.new("Frame")
  2427. GroupsFrame.Name = "GroupsFrame"
  2428. GroupsFrame.Position = UDim2.new(0, 5, 0, 27)
  2429. GroupsFrame.Size = UDim2.new(1, -10, 1, -73)
  2430. GroupsFrame.Parent = nil
  2431. if #Groups <= 0 then
  2432. local Warning = Instance.new("TextLabel")
  2433. Warning.Name = "Warning"
  2434. Warning.Text = "No groups match your search."
  2435. Warning.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  2436. Warning.BorderSizePixel = 1
  2437. Warning.TextColor3 = Color3.new(0, 0, 0)
  2438. Warning.Size = UDim2.new(1, -50, 0, 50)
  2439. Warning.Position = UDim2.new(0, 25, 0.5, -25)
  2440. Warning.Parent = GroupsFrame
  2441. else
  2442. GroupsIndex = 1
  2443. local TextLabel1 = Instance.new("TextLabel")
  2444. TextLabel1.Name = "FullName"
  2445. TextLabel1.BackgroundColor3 = Window.Content.BackgroundColor3
  2446. TextLabel1.BorderSizePixel = 0
  2447. TextLabel1.BackgroundTransparency = 1
  2448. TextLabel1.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel1.BackgroundTransparency ~= 1 then TextLabel1.BackgroundTransparency = 1 end end)
  2449. TextLabel1.TextColor3 = Color3.new(0, 0, 0)
  2450. TextLabel1.TextWrap = true
  2451. TextLabel1.TextXAlignment = "Left"
  2452. TextLabel1.TextYAlignment = "Top"
  2453. TextLabel1.Size = UDim2.new(1, -20, 0, 30)
  2454. TextLabel1.Position = UDim2.new(0, 10, 0, 5)
  2455. TextLabel1.Parent = GroupsFrame
  2456. local TextLabel2 = Instance.new("TextLabel")
  2457. TextLabel2.Name = "Control"
  2458. TextLabel2.BackgroundColor3 = Window.Content.BackgroundColor3
  2459. TextLabel2.BorderSizePixel = 0
  2460. TextLabel2.BackgroundTransparency = 1
  2461. TextLabel2.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel2.BackgroundTransparency ~= 1 then TextLabel2.BackgroundTransparency = 1 end end)
  2462. TextLabel2.TextColor3 = Color3.new(0, 0, 0)
  2463. TextLabel2.TextWrap = true
  2464. TextLabel2.TextXAlignment = "Left"
  2465. TextLabel2.TextYAlignment = "Top"
  2466. TextLabel2.Size = UDim2.new(1, -20, 0, 30)
  2467. TextLabel2.Position = UDim2.new(0, 10, 0, 65)
  2468. TextLabel2.Parent = GroupsFrame
  2469. local TextLabel3 = Instance.new("TextLabel")
  2470. TextLabel3.Name = "Help"
  2471. TextLabel3.BackgroundColor3 = Window.Content.BackgroundColor3
  2472. TextLabel3.BorderSizePixel = 0
  2473. TextLabel3.BackgroundTransparency = 1
  2474. TextLabel3.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel3.BackgroundTransparency ~= 1 then TextLabel3.BackgroundTransparency = 1 end end)
  2475. TextLabel3.TextColor3 = Color3.new(0, 0, 0)
  2476. TextLabel3.TextWrap = true
  2477. TextLabel3.TextXAlignment = "Left"
  2478. TextLabel3.TextYAlignment = "Top"
  2479. TextLabel3.Size = UDim2.new(1, -20, 0, 90)
  2480. TextLabel3.Position = UDim2.new(0, 10, 0, 125)
  2481. TextLabel3.Parent = GroupsFrame
  2482. end
  2483. local Previous = Instance.new("TextButton")
  2484. Previous.Text = "<"
  2485. Previous.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  2486. Previous.BorderColor3 = Color3.new(0, 0, 0)
  2487. Previous.BorderSizePixel = 1
  2488. Previous.TextColor3 = Color3.new(0, 0, 0)
  2489. Previous.FontSize = "Size18"
  2490. Previous.Size = UDim2.new(0, 25, 0, 35)
  2491. Previous.Position = UDim2.new(0, 5, 1, -40)
  2492. Previous.Parent = Window.Content
  2493. local Center = Instance.new("TextLabel")
  2494. Center.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  2495. Center.BorderColor3 = Color3.new(0, 0, 0)
  2496. Center.BorderSizePixel = 1
  2497. Center.TextColor3 = Color3.new(0, 0, 0)
  2498. Center.FontSize = "Size18"
  2499. Center.Size = UDim2.new(1, -60, 0, 35)
  2500. Center.Position = UDim2.new(0, 30, 1, -40)
  2501. Center.Parent = Window.Content
  2502. local Next = Instance.new("TextButton")
  2503. Next.Text = ">"
  2504. Next.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  2505. Next.BorderColor3 = Color3.new(0, 0, 0)
  2506. Next.BorderSizePixel = 1
  2507. Next.TextColor3 = Color3.new(0, 0, 0)
  2508. Next.FontSize = "Size18"
  2509. Next.Size = UDim2.new(0, 25, 0, 35)
  2510. Next.Position = UDim2.new(1, -30, 1, -40)
  2511. Next.Parent = Window.Content
  2512. local function UpdatePage()
  2513. if CurrentTab == 1 then
  2514. if #Commands <= 0 then return end
  2515. Center.Text = CommandsIndex.. " of " ..#Commands
  2516. CommandsFrame.FullName.Text = "Name: " ..Commands[CommandsIndex].FullName
  2517. if type(Commands[CommandsIndex].Command) == "string" then
  2518. CommandsFrame.Command.Text = "Command(s): \"" ..Commands[CommandsIndex].Command.. CoolCMDs.Data.SplitCharacter.. "\""
  2519. elseif type(Commands[CommandsIndex].Command) == "table" then
  2520. CommandsFrame.Command.Text = "Command(s): " ..(function() local Command = "\"" ..Commands[CommandsIndex].Command[1] .. CoolCMDs.Data.SplitCharacter.. "\"" for x = 2, #Commands[CommandsIndex].Command do Command = Command.. " or \"" ..Commands[CommandsIndex].Command[x] .. CoolCMDs.Data.SplitCharacter.. "\"" end return Command end)()
  2521. end
  2522. CommandsFrame.HelpArgs.Text = "Arguments(s): " ..Commands[CommandsIndex].HelpArgs
  2523. CommandsFrame.Control.Text = "Required control: " ..Commands[CommandsIndex].Control
  2524. CommandsFrame.Help.Text = "Help / Description: " ..Commands[CommandsIndex].Help
  2525. Previous.BackgroundColor3 = CommandsIndex <= 1 and Color3.new(0.2, 0.2, 0.2) or Color3.new(0.4, 0.4, 0.4)
  2526. Next.BackgroundColor3 = (CommandsIndex >= #Commands or #Commands <= 1) and Color3.new(0.2, 0.2, 0.2) or Color3.new(0.4, 0.4, 0.4)
  2527. elseif CurrentTab == 2 then
  2528. if #Modules <= 0 then return end
  2529. Center.Text = ModulesIndex.. " of " ..#Modules
  2530. ModulesFrame.FullName.Text = "Name: " ..Modules[ModulesIndex].Name
  2531. ModulesFrame.Enabled.Text = "Enabled: " ..tostring(Modules[ModulesIndex].Enabled):sub(0, 1):upper() .. tostring(Modules[ModulesIndex].Enabled):sub(2)
  2532. ModulesFrame.Help.Text = "Help / Description: " ..Modules[ModulesIndex].Help
  2533. Previous.BackgroundColor3 = ModulesIndex <= 1 and Color3.new(0.2, 0.2, 0.2) or Color3.new(0.4, 0.4, 0.4)
  2534. Next.BackgroundColor3 = (ModulesIndex >= #Modules or #Modules <= 1) and Color3.new(0.2, 0.2, 0.2) or Color3.new(0.4, 0.4, 0.4)
  2535. elseif CurrentTab == 3 then
  2536. if #Groups <= 0 then return end
  2537. Center.Text = GroupsIndex.. " of " ..#Groups
  2538. GroupsFrame.FullName.Text = "Name: " ..Groups[GroupsIndex].FullName.. " (" ..Groups[GroupsIndex].Name.. ")"
  2539. GroupsFrame.Control.Text = "Control: " ..Groups[GroupsIndex].Control
  2540. GroupsFrame.Help.Text = "Help / Description: " ..Groups[GroupsIndex].Help
  2541. Previous.BackgroundColor3 = GroupsIndex <= 1 and Color3.new(0.2, 0.2, 0.2) or Color3.new(0.4, 0.4, 0.4)
  2542. Next.BackgroundColor3 = (GroupsIndex >= #Groups or #Groups <= 1) and Color3.new(0.2, 0.2, 0.2) or Color3.new(0.4, 0.4, 0.4)
  2543. end
  2544. end
  2545. UpdatePage()
  2546. TabFrame.Tab1.MouseButton1Up:connect(function()
  2547. CurrentTab = 1
  2548. CommandsFrame.Parent = Window.Content
  2549. ModulesFrame.Parent = nil
  2550. GroupsFrame.Parent = nil
  2551. UpdatePage()
  2552. end)
  2553. TabFrame.Tab2.MouseButton1Up:connect(function()
  2554. CurrentTab = 2
  2555. CommandsFrame.Parent = nil
  2556. ModulesFrame.Parent = Window.Content
  2557. GroupsFrame.Parent = nil
  2558. UpdatePage()
  2559. end)
  2560. TabFrame.Tab3.MouseButton1Up:connect(function()
  2561. CurrentTab = 3
  2562. CommandsFrame.Parent = nil
  2563. ModulesFrame.Parent = nil
  2564. GroupsFrame.Parent = Window.Content
  2565. UpdatePage()
  2566. end)
  2567. Previous.MouseButton1Up:connect(function()
  2568. if CurrentTab == 1 then
  2569. if CommandsIndex - 1 <= 0 then return end
  2570. CommandsIndex = CommandsIndex - 1
  2571. elseif CurrentTab == 2 then
  2572. if ModulesIndex - 1 <= 0 then return end
  2573. ModulesIndex = ModulesIndex - 1
  2574. elseif CurrentTab == 3 then
  2575. if GroupsIndex - 1 <= 0 then return end
  2576. GroupsIndex = GroupsIndex - 1
  2577. end
  2578. UpdatePage()
  2579. end)
  2580. Next.MouseButton1Up:connect(function()
  2581. if CurrentTab == 1 then
  2582. if CommandsIndex + 1 > #Commands then return end
  2583. CommandsIndex = CommandsIndex + 1
  2584. elseif CurrentTab == 2 then
  2585. if ModulesIndex + 1 > #Modules then return end
  2586. ModulesIndex = ModulesIndex + 1
  2587. elseif CurrentTab == 3 then
  2588. if GroupsIndex + 1 > #Groups then return end
  2589. GroupsIndex = GroupsIndex + 1
  2590. end
  2591. UpdatePage()
  2592. end)
  2593. Window.Changed:connect(function(Property)
  2594. if Property == "Parent" then
  2595. if Window.Parent == nil then
  2596. Gui:Remove()
  2597. end
  2598. end
  2599. end)
  2600. end, "Help", "Gives help for commands, modules and groups.", "search terms (optional)")
  2601.  
  2602. CoolCMDs.Functions.CreateCommand("getstatus", 4, function(Message, MessageSplit, Speaker, Self)
  2603. CoolCMDs.Functions.CreateMessage("Hint", "Instance: " ..CoolCMDs.Initialization.InstanceNumber.. ". Elapsed initialization time: " ..CoolCMDs.Initialization.ElapsedTime.. ". Root: _G.CoolCMDs[" ..CoolCMDs.Initialization.InstanceNumber.. "].Instance()", 10, Speaker)
  2604. end, "Get Status", "Get current command status.", "None")
  2605.  
  2606. CoolCMDs.Functions.CreateCommand("status", 1, function(Message, MessageSplit, Speaker, Self)
  2607. CoolCMDs.Functions.CreateMessage("Message", "Group name: " ..CoolCMDs.Functions.GetPlayerTable(Speaker.Name).Group.. "  |  Group full name: " ..CoolCMDs.Functions.GetGroup(CoolCMDs.Functions.GetPlayerTable(Speaker.Name).Group).FullName.. "  |  Group control level: " ..CoolCMDs.Functions.GetGroup(CoolCMDs.Functions.GetPlayerTable(Speaker.Name).Group).Control, 5, Speaker)
  2608. end, "My Status", "Get your group name and control level.", "None")
  2609.  
  2610. CoolCMDs.Functions.CreateCommand({"reset", "die", "suicide"}, 1, function(Message, MessageSplit, Speaker, Self)
  2611. if Speaker.Character ~= nil then
  2612. if Speaker.Character:FindFirstChild("Humanoid") ~= nil then
  2613. Speaker.Character.Humanoid.Health = 0
  2614. else
  2615. Speaker.Character:BreakJoints()
  2616. end
  2617. end
  2618. end, "Suicide", "Kill yourself.", "None")
  2619.  
  2620. CoolCMDs.Functions.CreateCommand({"hint.", "h.", "whisper"}, 4, function(Message, MessageSplit, Speaker, Self)
  2621. for i = 1, #MessageSplit do
  2622. CoolCMDs.Functions.CreateMessage("Hint", Speaker.Name.. ": " ..MessageSplit[i], 5)
  2623. wait(5)
  2624. end
  2625. end, "Hint", "Creates a hint in the Workspace.", "line 1" ..CoolCMDs.Data.SplitCharacter.. "line 2" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  2626.  
  2627. CoolCMDs.Functions.CreateCommand({"message.", "msg.", "mes.", "m."}, 4, function(Message, MessageSplit, Speaker, Self)
  2628. for i = 1, #MessageSplit do
  2629. CoolCMDs.Functions.CreateMessage("Message", Speaker.Name.. ": " ..MessageSplit[i], 5)
  2630. wait(5)
  2631. end
  2632. end, "Message", "Creates a message in the Workspace.", "line 1" ..CoolCMDs.Data.SplitCharacter.. "line 2" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  2633.  
  2634. CoolCMDs.Functions.CreateCommand({"messagebox", "mb"}, 1, function(Message, MessageSplit, Speaker, Self)
  2635. if CoolCMDs.Functions.IsModuleEnabled("GuiSupport") == false then
  2636. CoolCMDs.Functions.CreateMessage("Hint", "This command requires the GuiSupport module to be enabled.", 5, Speaker)
  2637. return
  2638. elseif CoolCMDs.Functions.GetModule("GuiSupport") == nil then
  2639. CoolCMDs.Functions.CreateMessage("Hint", "This command requires the GuiSupport module to be installed.", 5, Speaker)
  2640. return
  2641. end
  2642. for _, Player in pairs(game:service("Players"):GetPlayers()) do
  2643. coroutine.wrap(function()
  2644. if Player:FindFirstChild("PlayerGui") == nil then return end
  2645. local Gui = Instance.new("ScreenGui")
  2646. Gui.Parent = Player.PlayerGui
  2647. local function WindowExitFunction(Window)
  2648. CoolCMDs.Functions.GetModule("GuiSupport").WindowEffect(Window, 2)
  2649. Gui:Remove()
  2650. end
  2651. local Window = CoolCMDs.Functions.GetModule("GuiSupport").WindowCreate(UDim2.new(0, 0, 0, 0), UDim2.new(0, 300, 0, 125), Gui, "Message", true, true, true, true, false, false, true, WindowExitFunction)
  2652. local ImageLabel = Instance.new("ImageLabel")
  2653. ImageLabel.Size = UDim2.new(0, 64, 0, 64)
  2654. ImageLabel.Position = UDim2.new(0, 5, 0, 5)
  2655. ImageLabel.BorderSizePixel = 0
  2656. ImageLabel.BackgroundTransparency = 1
  2657. ImageLabel.Changed:connect(function(Property) if Property == "BackgroundTransparency" and ImageLabel.BackgroundTransparency ~= 1 then ImageLabel.BackgroundTransparency = 1 end end)
  2658. ImageLabel.Parent = Window.Content
  2659. if MessageSplit[1]:lower() == "prompt" then
  2660. ImageLabel.Image = "http://www.Roblox.com/Asset/?id=41363872"
  2661. Window.Icon.Image = ImageLabel.Image
  2662. Window.TitleBar.Text = "Prompt"
  2663. elseif MessageSplit[1]:lower() == "warning" then
  2664. ImageLabel.Image = "http://www.Roblox.com/Asset/?id=41363725"
  2665. Window.Icon.Image = ImageLabel.Image
  2666. Window.TitleBar.Text = "Warning"
  2667. elseif MessageSplit[1]:lower() == "error" then
  2668. ImageLabel.Image = "http://www.Roblox.com/Asset/?id=41364113"
  2669. Window.Icon.Image = ImageLabel.Image
  2670. Window.TitleBar.Text = "Error"
  2671. elseif MessageSplit[1]:lower() == "fatal" or MessageSplit[1]:lower() == "fatal error" then
  2672. ImageLabel.Image = "http://www.Roblox.com/Asset/?id=41364113"
  2673. Window.Icon.Image = ImageLabel.Image
  2674. Window.TitleBar.Text = "Fatal Error"
  2675. elseif tonumber(MessageSplit[1]) ~= nil then
  2676. ImageLabel.Image = "http://www.Roblox.com/Asset/?id=" ..tonumber(MessageSplit[1])
  2677. Window.Icon.Image = ImageLabel.Image
  2678. else
  2679. ImageLabel:Remove()
  2680. ImageLabel = nil
  2681. end
  2682. for i = ImageLabel ~= nil and 2 or 1, #MessageSplit do
  2683. local TextLabel = Instance.new("TextLabel")
  2684. TextLabel.Text = string.rep(" ", 6) .. MessageSplit[i]
  2685. TextLabel.BackgroundColor3 = Window.Content.BackgroundColor3
  2686. TextLabel.BorderSizePixel = 0
  2687. TextLabel.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel.BackgroundTransparency ~= 1 then TextLabel.BackgroundTransparency = 1 end end)
  2688. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  2689. TextLabel.TextXAlignment = "Left"
  2690. TextLabel.Size = UDim2.new(1, (i <= 5 and ImageLabel ~= nil) and -74 or 0, 0, 15)
  2691. TextLabel.Position = UDim2.new(0, (i <= 5 and ImageLabel ~= nil) and 74 or 0, 0, ((i - 1) * 15))
  2692. TextLabel.Parent = Window.Content
  2693. if string.len(MessageSplit[i]) * 8 > Window.Size.X.Offset then
  2694. Window.Size = UDim2.new(0, string.len(MessageSplit[i]) * 8, 0, Window.Size.Y.Offset + 15)
  2695. else
  2696. Window.Size = UDim2.new(0, Window.Size.X.Offset, 0, Window.Size.Y.Offset + 15)
  2697. end
  2698. end
  2699. local TextButton = Instance.new("TextButton")
  2700. TextButton.Text = "OK"
  2701. TextButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  2702. TextButton.BorderColor3 = Color3.new(0, 0, 0)
  2703. TextButton.BorderSizePixel = 1
  2704. TextButton.TextColor3 = Color3.new(0, 0, 0)
  2705. TextButton.Size = UDim2.new(0, 80, 0, 35)
  2706. TextButton.Position = UDim2.new(0.5, -40, 1, -50)
  2707. TextButton.Parent = Window.Content
  2708. TextButton.MouseButton1Up:connect(function() WindowExitFunction(Window) end)
  2709. Window.Position = UDim2.new(0.5, -Window.Size.X.Offset / 2, 0.5, -Window.Size.Y.Offset / 2)
  2710. end)()
  2711. end
  2712. end, "Message Box", "Creates a GUI message box in all players.", "[prompt, warning, error, [fatal, fatal error]" ..CoolCMDs.Data.SplitCharacter.. "] line 1" ..CoolCMDs.Data.SplitCharacter.. "line 2" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  2713.  
  2714. CoolCMDs.Functions.CreateCommand({"hintplayer", "hp"}, 1, function(Message, MessageSplit, Speaker, Self)
  2715. if #MessageSplit <= 1 then return false end
  2716. for _, Player in pairs(game:service("Players"):GetPlayers()) do
  2717. if string.match(Player.Name:lower(), MessageSplit[1]:lower()) then
  2718. coroutine.wrap(function()
  2719. for i = 2, #MessageSplit do
  2720. CoolCMDs.Functions.CreateMessage("Hint", Speaker.Name.. ": " ..MessageSplit[i], 5, Player)
  2721. wait(5)
  2722. end
  2723. end)()
  2724. end
  2725. end
  2726. end, "Hint (Player)", "Creates a hint in a player.", "player" ..CoolCMDs.Data.SplitCharacter.. "line 1" ..CoolCMDs.Data.SplitCharacter.. "line 2" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  2727.  
  2728. CoolCMDs.Functions.CreateCommand({"messageplayer", "mp"}, 1, function(Message, MessageSplit, Speaker, Self)
  2729. if #MessageSplit <= 1 then return false end
  2730. for _, Player in pairs(game:service("Players"):GetPlayers()) do
  2731. if string.match(Player.Name:lower(), MessageSplit[1]:lower()) then
  2732. coroutine.wrap(function()
  2733. for i = 2, #MessageSplit do
  2734. CoolCMDs.Functions.CreateMessage("Message", Speaker.Name.. ": " ..MessageSplit[i], 5, Player)
  2735. wait(5)
  2736. end
  2737. end)()
  2738. end
  2739. end
  2740. end, "Message (Player)", "Creates a message in a player.", "player" ..CoolCMDs.Data.SplitCharacter.. "line 1" ..CoolCMDs.Data.SplitCharacter.. "line 2" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  2741.  
  2742. CoolCMDs.Functions.CreateCommand({"messageboxplayer", "mbp"}, 1, function(Message, MessageSplit, Speaker, Self)
  2743. if #MessageSplit <= 1 then return false end
  2744. if CoolCMDs.Functions.IsModuleEnabled("GuiSupport") == false then
  2745. CoolCMDs.Functions.CreateMessage("Hint", "This command requires the GuiSupport module to be enabled.", 5, Speaker)
  2746. return
  2747. elseif CoolCMDs.Functions.GetModule("GuiSupport") == nil then
  2748. CoolCMDs.Functions.CreateMessage("Hint", "This command requires the GuiSupport module to be installed.", 5, Speaker)
  2749. return
  2750. end
  2751. for _, Player in pairs(game:service("Players"):GetPlayers()) do
  2752. if string.match(Player.Name:lower(), MessageSplit[1]:lower()) then
  2753. coroutine.wrap(function()
  2754. if Player:FindFirstChild("PlayerGui") == nil then return end
  2755. local Gui = Instance.new("ScreenGui")
  2756. Gui.Parent = Player.PlayerGui
  2757. local function WindowExitFunction(Window)
  2758. CoolCMDs.Functions.GetModule("GuiSupport").WindowEffect(Window, 2)
  2759. Gui:Remove()
  2760. end
  2761. local Window = CoolCMDs.Functions.GetModule("GuiSupport").WindowCreate(UDim2.new(0, 0, 0, 0), UDim2.new(0, 300, 0, 125), Gui, "Message", true, true, true, true, false, false, true, WindowExitFunction)
  2762. local ImageLabel = Instance.new("ImageLabel")
  2763. ImageLabel.Size = UDim2.new(0, 64, 0, 64)
  2764. ImageLabel.Position = UDim2.new(0, 5, 0, 5)
  2765. ImageLabel.BorderSizePixel = 0
  2766. ImageLabel.BackgroundTransparency = 1
  2767. ImageLabel.Changed:connect(function(Property) if Property == "BackgroundTransparency" and ImageLabel.BackgroundTransparency ~= 1 then ImageLabel.BackgroundTransparency = 1 end end)
  2768. ImageLabel.Parent = Window.Content
  2769. if MessageSplit[2]:lower() == "prompt" then
  2770. ImageLabel.Image = "http://www.Roblox.com/Asset/?id=41363872"
  2771. Window.Icon.Image = ImageLabel.Image
  2772. Window.TitleBar.Text = "Prompt"
  2773. elseif MessageSplit[2]:lower() == "warning" then
  2774. ImageLabel.Image = "http://www.Roblox.com/Asset/?id=41363725"
  2775. Window.Icon.Image = ImageLabel.Image
  2776. Window.TitleBar.Text = "Warning"
  2777. elseif MessageSplit[2]:lower() == "error" then
  2778. ImageLabel.Image = "http://www.Roblox.com/Asset/?id=41364113"
  2779. Window.Icon.Image = ImageLabel.Image
  2780. Window.TitleBar.Text = "Error"
  2781. elseif MessageSplit[2]:lower() == "fatal" or MessageSplit[2]:lower() == "fatal error" then
  2782. ImageLabel.Image = "http://www.Roblox.com/Asset/?id=41364113"
  2783. Window.Icon.Image = ImageLabel.Image
  2784. Window.TitleBar.Text = "Fatal Error"
  2785. elseif tonumber(MessageSplit[2]) ~= nil then
  2786. ImageLabel.Image = "http://www.Roblox.com/Asset/?id=" ..tonumber(MessageSplit[2])
  2787. Window.Icon.Image = ImageLabel.Image
  2788. else
  2789. ImageLabel:Remove()
  2790. ImageLabel = nil
  2791. end
  2792. for i = ImageLabel ~= nil and 3 or 2, #MessageSplit do
  2793. local TextLabel = Instance.new("TextLabel")
  2794. TextLabel.Text = string.rep(" ", 6) .. MessageSplit[i]
  2795. TextLabel.BackgroundColor3 = Window.Content.BackgroundColor3
  2796. TextLabel.BorderSizePixel = 0
  2797. TextLabel.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel.BackgroundTransparency ~= 1 then TextLabel.BackgroundTransparency = 1 end end)
  2798. TextLabel.TextColor3 = Color3.new(0, 0, 0)
  2799. TextLabel.TextXAlignment = "Left"
  2800. TextLabel.Size = UDim2.new(1, (i <= 6 and ImageLabel ~= nil) and -74 or 0, 0, 15)
  2801. TextLabel.Position = UDim2.new(0, (i <= 6 and ImageLabel ~= nil) and 74 or 0, 0, ((i - 2) * 15))
  2802. TextLabel.Parent = Window.Content
  2803. if string.len(MessageSplit[i]) * 8 > Window.Size.X.Offset then
  2804. Window.Size = UDim2.new(0, string.len(MessageSplit[i]) * 8, 0, Window.Size.Y.Offset + 15)
  2805. else
  2806. Window.Size = UDim2.new(0, Window.Size.X.Offset, 0, Window.Size.Y.Offset + 15)
  2807. end
  2808. end
  2809. local TextButton = Instance.new("TextButton")
  2810. TextButton.Text = "OK"
  2811. TextButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  2812. TextButton.BorderColor3 = Color3.new(0, 0, 0)
  2813. TextButton.BorderSizePixel = 1
  2814. TextButton.TextColor3 = Color3.new(0, 0, 0)
  2815. TextButton.Size = UDim2.new(0, 80, 0, 35)
  2816. TextButton.Position = UDim2.new(0.5, -40, 1, -50)
  2817. TextButton.Parent = Window.Content
  2818. TextButton.MouseButton1Up:connect(function() WindowExitFunction(Window) end)
  2819. Window.Position = UDim2.new(0.5, -Window.Size.X.Offset / 2, 0.5, -Window.Size.Y.Offset / 2)
  2820. end)()
  2821. end
  2822. end
  2823. end, "Message Box (Player)", "Creates a GUI message box in a player.", "player" ..CoolCMDs.Data.SplitCharacter.. "[prompt, warning, error, [fatal, fatal error]" ..CoolCMDs.Data.SplitCharacter.. "] line 1" ..CoolCMDs.Data.SplitCharacter.. "line 2" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  2824.  
  2825. CoolCMDs.Functions.CreateCommand("workspace", 4, function(Message, MessageSplit, Speaker, Self)
  2826. if CoolCMDs.Functions.IsModuleEnabled("GuiSupport") == false then
  2827. CoolCMDs.Functions.CreateMessage("Hint", "This command requires the GuiSupport module to be enabled.", 5, Speaker)
  2828. return
  2829. elseif CoolCMDs.Functions.GetModule("GuiSupport") == nil then
  2830. CoolCMDs.Functions.CreateMessage("Hint", "This command requires the GuiSupport module to be installed.", 5, Speaker)
  2831. return
  2832. end
  2833. for i = 1, #MessageSplit do
  2834. for _, Player in pairs(game:service("Players"):GetPlayers()) do
  2835. if string.match(Player.Name:lower(), MessageSplit[i]:lower()) and Player:FindFirstChild("PlayerGui") ~= nil then
  2836. coroutine.wrap(function()
  2837. local Object = game:service("Workspace")
  2838. local ObjectChildren = Object:children()
  2839. local SortType = 1
  2840. local Home = game
  2841. local Gui = Instance.new("ScreenGui")
  2842. Gui.Parent = Player.PlayerGui
  2843. local function WindowExitFunction(Frame)
  2844. Object = nil
  2845. UpdatePage = nil
  2846. CoolCMDs.Functions.GetModule("GuiSupport").WindowEffect(Frame, 2)
  2847. Frame:Remove()
  2848. end
  2849. local Window = CoolCMDs.Functions.GetModule("GuiSupport").WindowCreate(UDim2.new(0.5, -550 / 2, 0.5, -355 / 2), UDim2.new(0, 550, 0, 355), Gui, "Explorer v1.7", true, true, true, true, true, true, true, WindowExitFunction, UDim2.new(0, 550, 0, 355))
  2850. Window.Changed:connect(function(Property)
  2851. if Property == "Parent" then
  2852. if Window.Parent == nil then
  2853. wait(2)
  2854. Gui:Remove()
  2855. end
  2856. end
  2857. end)
  2858. Window.Icon.Image = "http://www.Roblox.com/Asset/?id=43504783"
  2859. local Previous = Instance.new("TextButton")
  2860. Previous.Name = "Previous"
  2861. Previous.Text = "<"
  2862. Previous.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  2863. Previous.BorderColor3 = Color3.new(0, 0, 0)
  2864. Previous.BorderSizePixel = 1
  2865. Previous.TextColor3 = Color3.new(0, 0, 0)
  2866. Previous.Size = UDim2.new(0, 20, 0, 20)
  2867. Previous.Position = UDim2.new(0, 5, 1, -25)
  2868. Previous.Parent = Window.Content
  2869. local Center = Instance.new("TextLabel")
  2870. Center.Name = "Center"
  2871. Center.Text = "0 to 0 of 0"
  2872. Center.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  2873. Center.BorderColor3 = Color3.new(0, 0, 0)
  2874. Center.BorderSizePixel = 1
  2875. Center.TextColor3 = Color3.new(0, 0, 0)
  2876. Center.FontSize = "Size14"
  2877. Center.Size = UDim2.new(1, -50, 0, 20)
  2878. Center.Position = UDim2.new(0, 25, 1, -25)
  2879. Center.Parent = Window.Content
  2880. local Next = Instance.new("TextButton")
  2881. Next.Text = ">"
  2882. Next.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  2883. Next.BorderColor3 = Color3.new(0, 0, 0)
  2884. Next.BorderSizePixel = 1
  2885. Next.TextColor3 = Color3.new(0, 0, 0)
  2886. Next.Size = UDim2.new(0, 20, 0, 20)
  2887. Next.Position = UDim2.new(1, -25, 1, -25)
  2888. Next.Parent = Window.Content
  2889. local ListFrameHeader = CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.ListFrame.New()
  2890. ListFrameHeader.Size = UDim2.new(1, -10, 0, 20)
  2891. ListFrameHeader.Position = UDim2.new(0, 5, 0, 25)
  2892. ListFrameHeader.Parent = Window.Content
  2893. CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.ListFrame.ListUpdate(ListFrameHeader, {"#\tName\tclassName\tParent"}, 2)
  2894. local ListFrame = CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.ListFrame.New()
  2895. ListFrame.Size = UDim2.new(1, -10, 1, -70)
  2896. ListFrame.Position = UDim2.new(0, 5, 0, 45)
  2897. ListFrame.Parent = Window.Content
  2898. local function UpdatePage(...)
  2899. local List = {}
  2900. for i, Part in pairs(ObjectChildren) do
  2901. table.insert(List, i.. "\t" ..(Part.Name == "" and "Nil" or Part.Name).. "\t" ..(Part.className == "" and "Nil" or Part.className).. "\t" ..(Part.Parent == nil and "Nil" or Part.Parent.Name))
  2902. end
  2903. if SortType ~= 1 then
  2904. table.sort(List, function(a, b) return string.lower(CoolCMDs.Functions.Explode("\t", a)[SortType]) < string.lower(CoolCMDs.Functions.Explode("\t", b)[SortType]) end)
  2905. end
  2906. CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.ListFrame.ListUpdate(ListFrame, List, 1, ...)
  2907. Center.Text = ListFrame.ListIndex.Value.. " to " ..(ListFrame.ListIndex.Value + #ListFrame:children() - 2).. " of " ..#ObjectChildren
  2908. for _, Tag in pairs(ListFrame:children()) do
  2909. for _, Table in pairs(Tag:children()) do
  2910. pcall(function()
  2911. Table.MouseButton1Down:connect(function()
  2912. for i, Part in pairs(ObjectChildren) do
  2913. if i == tonumber(Tag.Table1.Text) then
  2914. Object = Part
  2915. ObjectChildren = Object:children()
  2916. ListFrame.ListIndex.Value = 1
  2917. UpdatePage()
  2918. end
  2919. end
  2920. end)
  2921. end)
  2922. end
  2923. end
  2924. end
  2925. coroutine.wrap(function()
  2926. CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.ListFrame.ListUpdate(ListFrame, {"Loading..."}, 1)
  2927. wait(2.5)
  2928. UpdatePage()
  2929. end)()
  2930. for _, Table in pairs(ListFrameHeader.Tag1:children()) do
  2931. Table.MouseButton1Down:connect(function()
  2932. SortType = tonumber(string.sub(Table.Name, 6))
  2933. UpdatePage()
  2934. end)
  2935. end
  2936. Previous.MouseButton1Up:connect(function() UpdatePage(-1, "page") end)
  2937. Next.MouseButton1Up:connect(function() UpdatePage(1, "page") end)
  2938. local MenuBar1 = Instance.new("Frame")
  2939. MenuBar1.Size = UDim2.new(1, 0, 0, 20)
  2940. MenuBar1.Position = UDim2.new(0, 0, 0, 0)
  2941. MenuBar1.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75)
  2942. MenuBar1.BorderSizePixel = 1
  2943. MenuBar1.Parent = Window.Content
  2944. local Choice = Instance.new("TextButton")
  2945. Choice.AutoButtonColor = false
  2946. Choice.TextXAlignment = "Left"
  2947. Choice.TextColor3 = Color3.new(0, 0, 0)
  2948. Choice.BorderColor3 = Color3.new(0.4, 0.4, 0.4)
  2949. Choice.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75)
  2950. Choice.BorderSizePixel = 0
  2951. local ChoiceIcon = Instance.new("ImageLabel")
  2952. ChoiceIcon.Size = UDim2.new(0, 16, 0, 16)
  2953. ChoiceIcon.Position = UDim2.new(0, 4, 0, 1)
  2954. ChoiceIcon.BorderSizePixel = 0
  2955. ChoiceIcon.BackgroundTransparency = 1
  2956. local ChoiceNewRecent = {"", "Object", true}
  2957. local ChoiceNew = Choice:Clone()
  2958. ChoiceNew.Text = string.rep(" ", 8).. "New..."
  2959. ChoiceNew.Size = UDim2.new(0, 75 - 2, 1, -2)
  2960. ChoiceNew.Position = UDim2.new(0, 1, 0, 1)
  2961. ChoiceNew.Parent = MenuBar1
  2962. ChoiceNew.MouseEnter:connect(function() ChoiceNew.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) ChoiceNew.BorderSizePixel = 1 end)
  2963. ChoiceNew.MouseLeave:connect(function() ChoiceNew.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) ChoiceNew.BorderSizePixel = 0 end)
  2964. ChoiceNew.MouseButton1Down:connect(function() ChoiceNew.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) end)
  2965. ChoiceNew.MouseButton1Up:connect(function() ChoiceNew.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  2966. local CanCreate = true
  2967. local function WindowExitFunction(Frame)
  2968. CanCreate = false
  2969. CoolCMDs.Functions.GetModule("GuiSupport").WindowEffect(Frame, 2)
  2970. Frame:Remove()
  2971. end
  2972. local Popup = CoolCMDs.Functions.GetModule("GuiSupport").WindowCreate(UDim2.new(0.5, -200 / 2, 0.5, -250 / 2), UDim2.new(0, 200, 0, 250), Gui, "New Object", true, true, true, false, false, false, true)
  2973. Popup.Name = "New Object"
  2974. Popup.Icon.Image = "http://www.Roblox.com/Asset/?id=42154070"
  2975. local TextLabel = Instance.new("TextLabel")
  2976. TextLabel.Text = "Instance (className):"
  2977. TextLabel.BorderColor3 = Color3.new(0, 0, 0)
  2978. TextLabel.BackgroundTransparency = 1
  2979. TextLabel.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel.BackgroundTransparency ~= 1 then TextLabel.BackgroundTransparency = 1 end end)
  2980. TextLabel.Position = UDim2.new(0, 5, 0, 15)
  2981. TextLabel.Size = UDim2.new(0, 75, 0, 15)
  2982. TextLabel.TextWrap = true
  2983. TextLabel.TextXAlignment = "Left"
  2984. TextLabel.Parent = Popup.Content
  2985. local TextBox = Instance.new("TextBox")
  2986. TextBox.Name = "ObjectClassName"
  2987. TextBox.Text = ChoiceNewRecent[1]
  2988. TextBox.BorderColor3 = Color3.new(0, 0, 0)
  2989. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  2990. TextBox.Position = UDim2.new(0, 85, 0, 15)
  2991. TextBox.Size = UDim2.new(0, 100, 0, 15)
  2992. TextBox.TextWrap = true
  2993. TextBox.TextXAlignment = "Left"
  2994. TextBox.Parent = Popup.Content
  2995. local TextLabel = Instance.new("TextLabel")
  2996. TextLabel.Text = "Name:"
  2997. TextLabel.BorderColor3 = Color3.new(0, 0, 0)
  2998. TextLabel.BackgroundTransparency = 1
  2999. TextLabel.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel.BackgroundTransparency ~= 1 then TextLabel.BackgroundTransparency = 1 end end)
  3000. TextLabel.Position = UDim2.new(0, 5, 0, 45)
  3001. TextLabel.Size = UDim2.new(0, 75, 0, 15)
  3002. TextLabel.TextWrap = true
  3003. TextLabel.TextXAlignment = "Left"
  3004. TextLabel.Parent = Popup.Content
  3005. local TextBox = Instance.new("TextBox")
  3006. TextBox.Name = "ObjectName"
  3007. TextBox.Text = ChoiceNewRecent[2]
  3008. TextBox.BorderColor3 = Color3.new(0, 0, 0)
  3009. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  3010. TextBox.Position = UDim2.new(0, 85, 0, 45)
  3011. TextBox.Size = UDim2.new(0, 100, 0, 15)
  3012. TextBox.TextWrap = true
  3013. TextBox.TextXAlignment = "Left"
  3014. TextBox.Parent = Popup.Content
  3015. local TextLabel = Instance.new("TextLabel")
  3016. TextLabel.Text = "Archivable:"
  3017. TextLabel.BorderColor3 = Color3.new(0, 0, 0)
  3018. TextLabel.BackgroundTransparency = 1
  3019. TextLabel.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel.BackgroundTransparency ~= 1 then TextLabel.BackgroundTransparency = 1 end end)
  3020. TextLabel.Position = UDim2.new(0, 5, 0, 75)
  3021. TextLabel.Size = UDim2.new(0, 75, 0, 15)
  3022. TextLabel.TextWrap = true
  3023. TextLabel.TextXAlignment = "Left"
  3024. TextLabel.Parent = Popup.Content
  3025. local CheckBox = CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.CheckBox.New(true)
  3026. CheckBox.Name = "ObjectArchivable"
  3027. CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.CheckBox.SelectCheckBox(ChoiceNewRecent[3])
  3028. CheckBox.Position = UDim2.new(0, 90, 0, 75)
  3029. CheckBox.Parent = Popup.Content
  3030. local TextButton = Instance.new("TextButton")
  3031. TextButton.Text = "Create"
  3032. TextButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  3033. TextButton.BorderColor3 = Color3.new(0, 0, 0)
  3034. TextButton.BorderSizePixel = 1
  3035. TextButton.TextColor3 = Color3.new(0, 0, 0)
  3036. TextButton.Size = UDim2.new(0, 80, 0, 35)
  3037. TextButton.Position = UDim2.new(0.5, -40, 0, 115)
  3038. TextButton.Parent = Popup.Content
  3039. TextButton.MouseButton1Up:connect(function()
  3040. if CanCreate == false then return end
  3041. CanCreate = false
  3042. local NewObject = {pcall(function() return Instance.new(Popup.Content.ObjectClassName.Text) end)}
  3043. if NewObject[1] == true then
  3044. NewObject[2].Name = Popup.Content.ObjectName.Text
  3045. NewObject[2].archivable = CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.CheckBox.GetCheckBoxState(Popup.Content.ObjectArchivable)
  3046. NewObject[2].Parent = Object
  3047. if NewObject[2].Parent ~= nil then
  3048. pcall(function() NewObject[2].CFrame = Speaker.Character.Torso.CFrame * CFrame.new(0, 6, 0) end)
  3049. ChoiceNewRecent = {Popup.Content.ObjectClassName.Text, Popup.Content.ObjectName.Text, CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.CheckBox.GetCheckBoxState(Popup.Content.ObjectArchivable)}
  3050. Update()
  3051. WindowExitFunction(Popup)
  3052. return
  3053. else
  3054. Popup.StatusBar.Text = "Error: Object removed!"
  3055. CanCreate = true
  3056. return
  3057. end
  3058. elseif NewObject[1] == false then
  3059. Popup.StatusBar.Text = "Error: Unknown Instance type!"
  3060. CanCreate = true
  3061. return
  3062. end
  3063. end)
  3064. local TextButton = Instance.new("TextButton")
  3065. TextButton.Text = "Cancel"
  3066. TextButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  3067. TextButton.BorderColor3 = Color3.new(0, 0, 0)
  3068. TextButton.BorderSizePixel = 1
  3069. TextButton.TextColor3 = Color3.new(0, 0, 0)
  3070. TextButton.Size = UDim2.new(0, 80, 0, 35)
  3071. TextButton.Position = UDim2.new(0.5, -40, 0, 155)
  3072. TextButton.Parent = Popup.Content
  3073. TextButton.MouseButton1Up:connect(function()
  3074. CanCreate = false
  3075. ChoiceNewRecent = {Popup.Content.ObjectClassName.Text, Popup.Content.ObjectName.Text, CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.CheckBox.GetCheckBoxState(Popup.Content.ObjectArchivable)}
  3076. WindowExitFunction(Popup)
  3077. end)
  3078. Popup.Parent = Gui
  3079. Window.Changed:connect(function(Property)
  3080. if Property == "Parent" then
  3081. if Window.Parent == nil then
  3082. CanCreate = false
  3083. WindowExitFunction(Popup)
  3084. end
  3085. end
  3086. end)
  3087. end)
  3088. local ChoiceNewIcon = ChoiceIcon:Clone()
  3089. ChoiceNewIcon.Image = "http://www.Roblox.com/Asset/?id=42154070"
  3090. ChoiceNewIcon.Changed:connect(function(Property) if Property == "BackgroundTransparency" and ChoiceNewIcon.BackgroundTransparency ~= 1 then ChoiceNewIcon.BackgroundTransparency = 1 end end)
  3091. ChoiceNewIcon.Parent = ChoiceNew
  3092. local ChoiceLoadRecent = "47433"
  3093. local ChoiceLoad = Choice:Clone()
  3094. ChoiceLoad.Text = string.rep(" ", 8).. "Load..."
  3095. ChoiceLoad.Size = UDim2.new(0, 75 - 2, 1, -2)
  3096. ChoiceLoad.Position = UDim2.new(0, 75 + 1, 0, 1)
  3097. ChoiceLoad.Parent = MenuBar1
  3098. ChoiceLoad.MouseEnter:connect(function() ChoiceLoad.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) ChoiceLoad.BorderSizePixel = 1 end)
  3099. ChoiceLoad.MouseLeave:connect(function() ChoiceLoad.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) ChoiceLoad.BorderSizePixel = 0 end)
  3100. ChoiceLoad.MouseButton1Up:connect(function() ChoiceLoad.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) end)
  3101. ChoiceLoad.MouseButton1Down:connect(function() ChoiceLoad.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  3102. local CanClose = true
  3103. local CanCreate = true
  3104. local function WindowExitFunction(Frame)
  3105. if CanClose == false then return end
  3106. CanCreate = false
  3107. CoolCMDs.Functions.GetModule("GuiSupport").WindowEffect(Frame, 2)
  3108. Frame:Remove()
  3109. end
  3110. local Popup = CoolCMDs.Functions.GetModule("GuiSupport").WindowCreate(UDim2.new(0.5, -200 / 2, 0.5, -175 / 2), UDim2.new(0, 200, 0, 175), Gui, "Load from URL", true, true, true, false, false, false, true, WindowExitFunction)
  3111. Popup.Name = "Load from URL"
  3112. Popup.Icon.Image = "http://www.Roblox.com/Asset/?id=42183533"
  3113. coroutine.wrap(function()
  3114. while Popup.Parent ~= nil do
  3115. if CanClose == false then
  3116. pcall(function() Popup.ExitButton.BackgroundColor3 = Color3.new(0.5, 0.25, 0.25) end)
  3117. pcall(function() Popup.Content.Cancel.BackgroundColor3 = Color3.new(0.55, 0.55, 0.55) end)
  3118. pcall(function() Popup.Content.Cancel.TextColor3 = Color3.new(0.75, 0.75, 0.75) end)
  3119. else
  3120. pcall(function() Popup.ExitButton.BackgroundColor3 = Color3.new(1, 0, 0) end)
  3121. pcall(function() Popup.Content.Cancel.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) end)
  3122. pcall(function() Popup.Content.Cancel.TextColor3 = Color3.new(0, 0, 0) end)
  3123. end
  3124. if CanCreate == false then
  3125. pcall(function() Popup.Content.Load.BackgroundColor3 = Color3.new(0.55, 0.55, 0.55) end)
  3126. pcall(function() Popup.Content.Load.TextColor3 = Color3.new(0.75, 0.75, 0.75) end)
  3127. else
  3128. pcall(function() Popup.Content.Load.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) end)
  3129. pcall(function() Popup.Content.Load.TextColor3 = Color3.new(0, 0, 0) end)
  3130. end
  3131. wait()
  3132. end
  3133. end)()
  3134. local TextLabel = Instance.new("TextLabel")
  3135. TextLabel.Text = "ROBLOX Asset ID:"
  3136. TextLabel.BorderColor3 = Color3.new(0, 0, 0)
  3137. TextLabel.BackgroundTransparency = 1
  3138. TextLabel.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel.BackgroundTransparency ~= 1 then TextLabel.BackgroundTransparency = 1 end end)
  3139. TextLabel.Position = UDim2.new(0, 5, 0, 15)
  3140. TextLabel.Size = UDim2.new(0, 75, 0, 15)
  3141. TextLabel.TextWrap = true
  3142. TextLabel.TextXAlignment = "Left"
  3143. TextLabel.Parent = Popup.Content
  3144. local TextBox = Instance.new("TextBox")
  3145. TextBox.Name = "ID"
  3146. TextBox.Text = ChoiceLoadRecent
  3147. TextBox.BorderColor3 = Color3.new(0, 0, 0)
  3148. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  3149. TextBox.Position = UDim2.new(0, 85, 0, 15)
  3150. TextBox.Size = UDim2.new(0, 100, 0, 15)
  3151. TextBox.TextWrap = true
  3152. TextBox.TextXAlignment = "Left"
  3153. TextBox.Parent = Popup.Content
  3154. local TextButton = Instance.new("TextButton")
  3155. TextButton.Name = "Load"
  3156. TextButton.Text = "Load"
  3157. TextButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  3158. TextButton.BorderColor3 = Color3.new(0, 0, 0)
  3159. TextButton.BorderSizePixel = 1
  3160. TextButton.TextColor3 = Color3.new(0, 0, 0)
  3161. TextButton.Size = UDim2.new(0, 80, 0, 35)
  3162. TextButton.Position = UDim2.new(0.5, -40, 0, 45)
  3163. TextButton.Parent = Popup.Content
  3164. TextButton.MouseButton1Up:connect(function()
  3165. if CanCreate == false then return end
  3166. if Popup.Content.ID.Text == "" or Popup.Content.ID.Text == nil or tonumber(Popup.Content.ID.Text) == nil then
  3167. CanClose = true
  3168. CanCreate = true
  3169. Popup.StatusBar.Text = "Asset \"" ..Popup.Content.ID.Text.. "\" invalid!"
  3170. return
  3171. end
  3172. CanClose = false
  3173. CanCreate = false
  3174. Popup.StatusBar.Text = "Preparing InsertService..."
  3175. pcall(function() game:service("InsertService"):SetAssetUrl("http://www.Roblox.com/Asset/?id=%d") end)
  3176. Popup.StatusBar.Text = "Loading asset \"" ..Popup.Content.ID.Text.. "\"..."
  3177. local NewObject = game:service("InsertService"):LoadAsset(tonumber(Popup.Content.ID.Text))
  3178. Popup.StatusBar.Text = "Compiling asset \"" ..Popup.Content.ID.Text.. "\"..."
  3179. for i = 0, 100 do
  3180. if NewObject ~= nil then break end
  3181. wait()
  3182. end
  3183. if NewObject:IsA("Model") then
  3184. NewObject.Parent = Object
  3185. if NewObject.Parent ~= nil then
  3186. NewObject:MakeJoints()
  3187. if Speaker.Character ~= nil then
  3188. if Speaker.Character:FindFirstChild("Torso") ~= nil then
  3189. NewObject:MoveTo((Speaker.Character.Torso.CFrame * CFrame.new(0, 0, -10)).p)
  3190. else
  3191. NewObject:MoveTo(Vector3.new(0, 10, 0))
  3192. end
  3193. else
  3194. NewObject:MoveTo(Vector3.new(0, 10, 0))
  3195. end
  3196. Popup.StatusBar.Text = "Asset \"" ..Popup.Content.ID.Text.. "\" loaded successfully."
  3197. ObjectChildren = Object:children()
  3198. UpdatePage()
  3199. ChoiceLoadRecent = Popup.Content.ID.Text
  3200. CanClose = true
  3201. WindowExitFunction(Popup)
  3202. return
  3203. else
  3204. Popup.StatusBar.Text = "Error: Object removed!"
  3205. pcall(function() NewObject:Remove() end)
  3206. CanClose = true
  3207. CanCreate = true
  3208. return
  3209. end
  3210. else
  3211. Popup.StatusBar.Text = "Error: Load timed out!"
  3212. pcall(function() NewObject:Remove() end)
  3213. CanClose = true
  3214. CanCreate = true
  3215. return
  3216. end
  3217. end)
  3218. local TextButton = Instance.new("TextButton")
  3219. TextButton.Name = "Cancel"
  3220. TextButton.Text = "Cancel"
  3221. TextButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  3222. TextButton.BorderColor3 = Color3.new(0, 0, 0)
  3223. TextButton.BorderSizePixel = 1
  3224. TextButton.TextColor3 = Color3.new(0, 0, 0)
  3225. TextButton.Size = UDim2.new(0, 80, 0, 35)
  3226. TextButton.Position = UDim2.new(0.5, -40, 0, 85)
  3227. TextButton.Parent = Popup.Content
  3228. TextButton.MouseButton1Up:connect(function()
  3229. if CanClose == false then return end
  3230. CanCreate = false
  3231. ChoiceLoadRecent = Popup.Content.ID.Text
  3232. WindowExitFunction(Popup)
  3233. end)
  3234. Popup.Parent = Gui
  3235. Window.Changed:connect(function(Property)
  3236. if Property == "Parent" then
  3237. if Window.Parent == nil then
  3238. CanCreate = false
  3239. while CanClose == false do wait() end
  3240. WindowExitFunction(Popup)
  3241. end
  3242. end
  3243. end)
  3244. end)
  3245. local ChoiceLoadIcon = ChoiceIcon:Clone()
  3246. ChoiceLoadIcon.Image = "http://www.Roblox.com/Asset/?id=42183533"
  3247. ChoiceLoadIcon.Changed:connect(function(Property) if Property == "BackgroundTransparency" and ChoiceLoadIcon.BackgroundTransparency ~= 1 then ChoiceLoadIcon.BackgroundTransparency = 1 end end)
  3248. ChoiceLoadIcon.Parent = ChoiceLoad
  3249. local ChoiceProperties = Choice:Clone()
  3250. ChoiceProperties.Text = string.rep(" ", 8).. "Edit..."
  3251. ChoiceProperties.Size = UDim2.new(0, 75 - 2, 1, -2)
  3252. ChoiceProperties.Position = UDim2.new(0, (75 * 2) + (1 * 2), 0, 1)
  3253. ChoiceProperties.Parent = MenuBar1
  3254. ChoiceProperties.MouseEnter:connect(function() ChoiceProperties.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) ChoiceProperties.BorderSizePixel = 1 end)
  3255. ChoiceProperties.MouseLeave:connect(function() ChoiceProperties.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) ChoiceProperties.BorderSizePixel = 0 end)
  3256. ChoiceProperties.MouseButton1Down:connect(function() ChoiceProperties.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) end)
  3257. ChoiceProperties.MouseButton1Up:connect(function() ChoiceProperties.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  3258. local SortType2 = 1
  3259. local Popup = CoolCMDs.Functions.GetModule("GuiSupport").WindowCreate(UDim2.new(0.5, -500 / 2, 0.5, -500 / 2), UDim2.new(0, 500, 0, 500), Gui, "Set Propertes", true, true, true, true, true, true, true)
  3260. Popup.Icon.Image = "http://www.Roblox.com/Asset/?id=43318689"
  3261. local Previous = Instance.new("TextButton")
  3262. Previous.Name = "Previous"
  3263. Previous.Text = "<"
  3264. Previous.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  3265. Previous.BorderColor3 = Color3.new(0, 0, 0)
  3266. Previous.BorderSizePixel = 1
  3267. Previous.TextColor3 = Color3.new(0, 0, 0)
  3268. Previous.Size = UDim2.new(0, 20, 0, 20)
  3269. Previous.Position = UDim2.new(0, 5, 1, -75)
  3270. Previous.Parent = Popup.Content
  3271. local Center = Instance.new("TextLabel")
  3272. Center.Name = "Center"
  3273. Center.Text = "0 to 0 of 0"
  3274. Center.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  3275. Center.BorderColor3 = Color3.new(0, 0, 0)
  3276. Center.BorderSizePixel = 1
  3277. Center.TextColor3 = Color3.new(0, 0, 0)
  3278. Center.FontSize = "Size14"
  3279. Center.Size = UDim2.new(1, -50, 0, 20)
  3280. Center.Position = UDim2.new(0, 25, 1, -75)
  3281. Center.Parent = Popup.Content
  3282. local Next = Instance.new("TextButton")
  3283. Next.Text = ">"
  3284. Next.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  3285. Next.BorderColor3 = Color3.new(0, 0, 0)
  3286. Next.BorderSizePixel = 1
  3287. Next.TextColor3 = Color3.new(0, 0, 0)
  3288. Next.Size = UDim2.new(0, 20, 0, 20)
  3289. Next.Position = UDim2.new(1, -25, 1, -75)
  3290. Next.Parent = Popup.Content
  3291. local ListFrameHeader = CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.ListFrame.New()
  3292. ListFrameHeader.Size = UDim2.new(1, -10, 0, 20)
  3293. ListFrameHeader.Position = UDim2.new(0, 5, 0, 5)
  3294. ListFrameHeader.Parent = Popup.Content
  3295. CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.ListFrame.ListUpdate(ListFrameHeader, {"Variable\tType\tValue"}, 2)
  3296. local ListFrameProperties = CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.ListFrame.New()
  3297. ListFrameProperties.Size = UDim2.new(1, -10, 1, -100)
  3298. ListFrameProperties.Position = UDim2.new(0, 5, 0, 25)
  3299. ListFrameProperties.Parent = Popup.Content
  3300. local function UpdateProperties(...)
  3301. local Properties, Types = CoolCMDs.Functions.GetModule("RobloxProperties").GetProperties(Object)
  3302. local List = {}
  3303. for i = 1, #Properties do
  3304. local Result = "Nil"
  3305. if Types[i] == "Instance" then
  3306. Result = Object[Properties[i]]:GetFullName()
  3307. elseif Types[i] == "Struct.Vector2" then
  3308. Result = "(" ..Object[Properties[i]].x.. ", " ..Object[Properties[i]].y.. ")"
  3309. elseif Types[i] == "Struct.Vector3" then
  3310. Result = "(" ..Object[Properties[i]].x.. ", " ..Object[Properties[i]].y.. ", " ..Object[Properties[i]].z.. ")"
  3311. elseif Types[i] == "Struct.CFrame" then
  3312. local x, y, z = Object[Properties[i]]:toEulerAnglesXYZ()
  3313. Result = "(" ..Object[Properties[i]].p.x.. ", " ..Object[Properties[i]].p.y.. ", " ..Object[Properties[i]].p.z.. "), (" ..x.. ", " ..y.. ", " ..z.. ")"
  3314. elseif Types[i] == "Struct.BrickColor" then
  3315. Result = Object[Properties[i]].Name.. " (ID " ..Object[Properties[i]].Number.. ", (" ..Object[Properties[i]].r.. ", " ..Object[Properties[i]].g.. ", " ..Object[Properties[i]].b.. ")"
  3316. elseif Types[i] == "Struct.Color3" then
  3317. Result = "(" ..Object[Properties[i]].r.. ", " ..Object[Properties[i]].g.. ", " ..Object[Properties[i]].b.. ")"
  3318. elseif Types[i] == "Struct.UDim" then
  3319. Result = "(" ..Object[Properties[i]].Scale.. ", " ..Object[Properties[i]].Offset.. ")"
  3320. elseif Types[i] == "Struct.UDim2" then
  3321. Result = "(" ..Object[Properties[i]].X.Scale.. ", " ..Object[Properties[i]].X.Offset.. ", " ..Object[Properties[i]].Y.Scale.. ", " ..Object[Properties[i]].Y.Offset.. ")"
  3322. elseif Types[i] == "Struct.Ray" then
  3323. Result = "Origin: " ..Object[Properties[i]].Origin.x.. ", " ..Object[Properties[i]].Origin.y.. ", " ..Object[Properties[i]].Origin.z.. "). Direction: " ..Object[Properties[i]].Direction.x.. ", " ..Object[Properties[i]].Direction.y.. ", " ..Object[Properties[i]].Direction.z.. ")."
  3324. elseif Types[i] == "Struct.Axes" then
  3325. Result = Object[Properties[i]].X.. ", " ..Object[Properties[i]].Y.. ", " ..Object[Properties[i]].Z
  3326. elseif Types[i] == "Faces" then
  3327. if Object[Properties[i]].Right == true then
  3328. Result = (Result ~= "" and Result.. ", " or "").. "Right"
  3329. end
  3330. if Object[Properties[i]].Top == true then
  3331. Result = (Result ~= "" and Result.. ", " or "").. "Top"
  3332. end
  3333. if Object[Properties[i]].Back == true then
  3334. Result = (Result ~= "" and Result.. ", " or "").. "Back"
  3335. end
  3336. if Object[Properties[i]].Left == true then
  3337. Result = (Result ~= "" and Result.. ", " or "").. "Left"
  3338. end
  3339. if Object[Properties[i]].Bottom == true then
  3340. Result = (Result ~= "" and Result.. ", " or "").. "Bottom"
  3341. end
  3342. if Object[Properties[i]].Front == true then
  3343. Result = (Result ~= "" and Result.. ", " or "").. "Front"
  3344. end
  3345. elseif Types[i] == "String" then
  3346. Result = "\"" ..Object[Properties[i]].. "\""
  3347. else
  3348. Result = tostring(Object[Properties[i]])
  3349. end
  3350. table.insert(List, Properties[i].. "\t" ..Types[i].. "\t" ..Result)
  3351. end
  3352. table.sort(List, function(a, b) return string.lower(CoolCMDs.Functions.Explode("\t", a)[SortType2]) < string.lower(CoolCMDs.Functions.Explode("\t", b)[SortType2]) end)
  3353. CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.ListFrame.ListUpdate(ListFrameProperties, List, 1, ...)
  3354. Center.Text = ListFrameProperties.ListIndex.Value.. " to " ..(ListFrameProperties.ListIndex.Value + #ListFrameProperties:children() - 2).. " of " ..#Properties
  3355. for _, Tag in pairs(ListFrameProperties:children()) do
  3356. for _, Table in pairs(Tag:children()) do
  3357. pcall(function()
  3358. Table.MouseButton1Down:connect(function()
  3359. Popup.StatusBar.Text = "Currently, editing properties has not been implimented."
  3360. end)
  3361. end)
  3362. end
  3363. end
  3364. end
  3365. coroutine.wrap(function()
  3366. CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.ListFrame.ListUpdate(ListFrameProperties, {"Loading..."}, 1)
  3367. wait(2.5)
  3368. UpdateProperties()
  3369. end)()
  3370. for i, Table in pairs(ListFrameHeader.Tag1:children()) do
  3371. Table.MouseButton1Down:connect(function()
  3372. SortType2 = i
  3373. UpdateProperties()
  3374. end)
  3375. end
  3376. Previous.MouseButton1Up:connect(function() UpdateProperties(-1, "page") end)
  3377. Next.MouseButton1Up:connect(function() UpdateProperties(1, "page") end)
  3378. local TextButton = Instance.new("TextButton")
  3379. TextButton.Text = "Apply"
  3380. TextButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  3381. TextButton.BorderColor3 = Color3.new(0, 0, 0)
  3382. TextButton.BorderSizePixel = 1
  3383. TextButton.TextColor3 = Color3.new(0, 0, 0)
  3384. TextButton.Size = UDim2.new(0, 80, 0, 35)
  3385. TextButton.Position = UDim2.new(1, -105, 1, -45)
  3386. TextButton.Parent = Popup.Content
  3387. TextButton.MouseButton1Up:connect(function()
  3388. end)
  3389. local TextButton = Instance.new("TextButton")
  3390. TextButton.Text = "Refresh"
  3391. TextButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4)
  3392. TextButton.BorderColor3 = Color3.new(0, 0, 0)
  3393. TextButton.BorderSizePixel = 1
  3394. TextButton.TextColor3 = Color3.new(0, 0, 0)
  3395. TextButton.Size = UDim2.new(0, 80, 0, 35)
  3396. TextButton.Position = UDim2.new(0, 25, 1, -45)
  3397. TextButton.Parent = Popup.Content
  3398. TextButton.MouseButton1Up:connect(function()
  3399. end)
  3400. end)
  3401. local ChoicePropertiesIcon = ChoiceIcon:Clone()
  3402. ChoicePropertiesIcon.Image = "http://www.Roblox.com/Asset/?id=43318689"
  3403. ChoicePropertiesIcon.Changed:connect(function(Property) if Property == "BackgroundTransparency" and ChoicePropertiesIcon.BackgroundTransparency ~= 1 then ChoicePropertiesIcon.BackgroundTransparency = 1 end end)
  3404. ChoicePropertiesIcon.Parent = ChoiceProperties
  3405. local ChoiceDelete = Choice:Clone()
  3406. ChoiceDelete.Text = string.rep(" ", 8).. "Delete"
  3407. ChoiceDelete.Size = UDim2.new(0, 75 - 2, 1, -2)
  3408. ChoiceDelete.Position = UDim2.new(0, (75 * 3) + (1 * 3), 0, 1)
  3409. ChoiceDelete.Parent = MenuBar1
  3410. ChoiceDelete.MouseEnter:connect(function() ChoiceDelete.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) ChoiceDelete.BorderSizePixel = 1 end)
  3411. ChoiceDelete.MouseLeave:connect(function() ChoiceDelete.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) ChoiceDelete.BorderSizePixel = 0 end)
  3412. ChoiceDelete.MouseButton1Down:connect(function() ChoiceDelete.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) end)
  3413. ChoiceDelete.MouseButton1Up:connect(function() ChoiceDelete.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  3414. if Object.Parent ~= nil then
  3415. local Delete = Object
  3416. Object = Object.Parent
  3417. if pcall(function() Delete:Remove() end) == false then
  3418. Object = Delete
  3419. ObjectChildren = Object:children()
  3420. UpdatePage()
  3421. Window.StatusBar.Text = "Error: Object could not be removed!"
  3422. wait(5)
  3423. Window.StatusBar.Text = ""
  3424. else
  3425. ObjectChildren = Object:children()
  3426. UpdatePage()
  3427. end
  3428. else
  3429. Window.StatusBar.Text = "Error: Object has no parent!"
  3430. wait(5)
  3431. Window.StatusBar.Text = ""
  3432. end
  3433. end)
  3434. local ChoiceDeleteIcon = ChoiceIcon:Clone()
  3435. ChoiceDeleteIcon.Image = "http://www.Roblox.com/Asset/?id=42736686"
  3436. ChoiceDeleteIcon.Changed:connect(function(Property) if Property == "BackgroundTransparency" and ChoiceDeleteIcon.BackgroundTransparency ~= 1 then ChoiceDeleteIcon.BackgroundTransparency = 1 end end)
  3437. ChoiceDeleteIcon.Parent = ChoiceDelete
  3438. local ChoiceRefresh = Choice:Clone()
  3439. ChoiceRefresh.Text = string.rep(" ", 8).. "Refresh"
  3440. ChoiceRefresh.Size = UDim2.new(0, 75 - 2, 1, -2)
  3441. ChoiceRefresh.Position = UDim2.new(0, (75 * 4) + (1 * 4), 0, 1)
  3442. ChoiceRefresh.Parent = MenuBar1
  3443. ChoiceRefresh.MouseEnter:connect(function() ChoiceRefresh.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) ChoiceRefresh.BorderSizePixel = 1 end)
  3444. ChoiceRefresh.MouseLeave:connect(function() ChoiceRefresh.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) ChoiceRefresh.BorderSizePixel = 0 end)
  3445. ChoiceRefresh.MouseButton1Down:connect(function() ChoiceRefresh.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) end)
  3446. ChoiceRefresh.MouseButton1Up:connect(function() ChoiceRefresh.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  3447. ObjectChildren = Object:children()
  3448. UpdatePage()
  3449. end)
  3450. local ChoiceRefreshIcon = ChoiceIcon:Clone()
  3451. ChoiceRefreshIcon.Image = "http://www.Roblox.com/Asset/?id=43215825"
  3452. ChoiceRefreshIcon.Changed:connect(function(Property) if Property == "BackgroundTransparency" and ChoiceRefreshIcon.BackgroundTransparency ~= 1 then ChoiceRefreshIcon.BackgroundTransparency = 1 end end)
  3453. ChoiceRefreshIcon.Parent = ChoiceRefresh
  3454. local ChoiceUpLevel = Choice:Clone()
  3455. ChoiceUpLevel.Text = string.rep(" ", 8).. "Up Level"
  3456. ChoiceUpLevel.Size = UDim2.new(0, 75 - 2, 1, -2)
  3457. ChoiceUpLevel.Position = UDim2.new(0, (75 * 5) + (1 * 5), 0, 1)
  3458. ChoiceUpLevel.Parent = MenuBar1
  3459. ChoiceUpLevel.MouseEnter:connect(function() ChoiceUpLevel.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) ChoiceUpLevel.BorderSizePixel = 1 end)
  3460. ChoiceUpLevel.MouseLeave:connect(function() ChoiceUpLevel.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) ChoiceUpLevel.BorderSizePixel = 0 end)
  3461. ChoiceUpLevel.MouseButton1Down:connect(function() ChoiceUpLevel.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) end)
  3462. ChoiceUpLevel.MouseButton1Up:connect(function() ChoiceUpLevel.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  3463. if Object.Parent ~= nil then
  3464. Object = Object.Parent
  3465. ObjectChildren = Object:children()
  3466. UpdatePage()
  3467. else
  3468. Window.StatusBar.Text = "Error: Object has no parent!"
  3469. wait(5)
  3470. Window.StatusBar.Text = ""
  3471. end
  3472. end)
  3473. local ChoiceUpLevelIcon = ChoiceIcon:Clone()
  3474. ChoiceUpLevelIcon.Image = "http://www.Roblox.com/Asset/?id=42724903"
  3475. ChoiceUpLevelIcon.Changed:connect(function(Property) if Property == "BackgroundTransparency" and ChoiceUpLevelIcon.BackgroundTransparency ~= 1 then ChoiceUpLevelIcon.BackgroundTransparency = 1 end end)
  3476. ChoiceUpLevelIcon.Parent = ChoiceUpLevel
  3477. local ChoiceHome = Choice:Clone()
  3478. ChoiceHome.Text = string.rep(" ", 8).. "Home"
  3479. ChoiceHome.Size = UDim2.new(0, 75 - 2, 1, -2)
  3480. ChoiceHome.Position = UDim2.new(0, (75 * 6) + (1 * 6), 0, 1)
  3481. ChoiceHome.Parent = MenuBar1
  3482. ChoiceHome.MouseEnter:connect(function() ChoiceHome.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) ChoiceHome.BorderSizePixel = 1 end)
  3483. ChoiceHome.MouseLeave:connect(function() ChoiceHome.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) ChoiceHome.BorderSizePixel = 0 end)
  3484. ChoiceHome.MouseButton1Down:connect(function() ChoiceHome.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) end)
  3485. ChoiceHome.MouseButton1Up:connect(function() ChoiceHome.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  3486. Object = Home
  3487. ObjectChildren = Object:children()
  3488. UpdatePage()
  3489. end)
  3490. local ChoiceHomeIcon = ChoiceIcon:Clone()
  3491. ChoiceHomeIcon.Image = "http://www.Roblox.com/Asset/?id=43216297"
  3492. ChoiceHomeIcon.Changed:connect(function(Property) if Property == "BackgroundTransparency" and ChoiceHomeIcon.BackgroundTransparency ~= 1 then ChoiceHomeIcon.BackgroundTransparency = 1 end end)
  3493. ChoiceHomeIcon.Parent = ChoiceHome
  3494. end)()
  3495. end
  3496. end
  3497. end
  3498. end, "Explorer", "Creates a GUI in a player allowing you to explore the contents of the game. The controls are simple, and extra help is provided under the Help submenu.", "player")
  3499.  
  3500. CoolCMDs.Functions.CreateCommand("lighting", 1, function(Message, MessageSplit, Speaker, Self)
  3501. if MessageSplit[1]:lower() == "dawn" then
  3502. game:service("Lighting").Brightness = 2
  3503. game:service("Lighting").GeographicLatitude = 41.73
  3504. game:service("Lighting").Ambient = Color3.new(127 / 255, 127 / 255, 150 / 255)
  3505. game:service("Lighting").ColorShift_Top = Color3.new(0, 0, 25 / 255)
  3506. game:service("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  3507. game:service("Lighting").ShadowColor = Color3.new(179 / 255, 179 / 255, 179 / 255)
  3508. game:service("Lighting").TimeOfDay = "07:00:00"
  3509. end
  3510. if MessageSplit[1]:lower() == "day" then
  3511. game:service("Lighting").Brightness = 3
  3512. game:service("Lighting").GeographicLatitude = 41.73
  3513. game:service("Lighting").Ambient = Color3.new(150 / 255, 127 / 255, 150 / 255)
  3514. game:service("Lighting").ColorShift_Top = Color3.new(10 / 255, 10 / 255, 10 / 255)
  3515. game:service("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  3516. game:service("Lighting").ShadowColor = Color3.new(179 / 255, 179 / 255, 179 / 255)
  3517. game:service("Lighting").TimeOfDay = "12:00:00"
  3518. end
  3519. if MessageSplit[1]:lower() == "dusk" then
  3520. game:service("Lighting").Brightness = 2
  3521. game:service("Lighting").GeographicLatitude = 41.73
  3522. game:service("Lighting").Ambient = Color3.new(150 / 255, 110 / 255, 110 / 255)
  3523. game:service("Lighting").ColorShift_Top = Color3.new(50 / 255, 10 / 255, 10 / 255)
  3524. game:service("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  3525. game:service("Lighting").ShadowColor = Color3.new(179 / 255, 179 / 255, 179 / 255)
  3526. game:service("Lighting").TimeOfDay = "17:55:00"
  3527. end
  3528. if MessageSplit[1]:lower() == "night" then
  3529. game:service("Lighting").Brightness = 5
  3530. game:service("Lighting").GeographicLatitude = 41.73
  3531. game:service("Lighting").Ambient = Color3.new(20 / 255, 20 / 255, 20 / 255)
  3532. game:service("Lighting").ColorShift_Top = Color3.new(0, 0, 25 / 255)
  3533. game:service("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  3534. game:service("Lighting").ShadowColor = Color3.new(200 / 255, 200 / 255, 200 / 255)
  3535. game:service("Lighting").TimeOfDay = "21:00:00"
  3536. end
  3537. if MessageSplit[1]:lower() == "default" then
  3538. game:service("Lighting").Brightness = 1
  3539. game:service("Lighting").GeographicLatitude = 41.73
  3540. game:service("Lighting").Ambient = Color3.new(128 / 255, 128 / 255, 128 / 255)
  3541. game:service("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
  3542. game:service("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  3543. game:service("Lighting").ShadowColor = Color3.new(179 / 255, 179 / 255, 184 / 255)
  3544. game:service("Lighting").TimeOfDay = "14:00:00"
  3545. end
  3546. if MessageSplit[1]:lower() == "black" then
  3547. game:service("Lighting").Brightness = 0
  3548. game:service("Lighting").GeographicLatitude = 90
  3549. game:service("Lighting").Ambient = Color3.new(0, 0, 0)
  3550. game:service("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
  3551. game:service("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
  3552. game:service("Lighting").ShadowColor = Color3.new(1, 1, 1)
  3553. game:service("Lighting").TimeOfDay = "00:00:00"
  3554. end
  3555. if MessageSplit[1]:lower() == "shift" then
  3556. if Self.Shift == nil then Self.Shift = false end
  3557. if Self.ShiftTime == nil then Self.ShiftTime = 10 end
  3558. if Self.Shift == true then Self.Shift = false else Self.Shift = true end
  3559. local h = tonumber(CoolCMDs.Functions.Explode(":", game.Lighting.TimeOfDay)[1])
  3560. local m = tonumber(CoolCMDs.Functions.Explode(":", game.Lighting.TimeOfDay)[2])
  3561. local s = tonumber(CoolCMDs.Functions.Explode(":", game.Lighting.TimeOfDay)[3])
  3562. while Self.Shift == true and CoolCMDs ~= nil do
  3563. s = s + 10
  3564. if s >= 60 then
  3565. m = m + 1
  3566. s = 0
  3567. end
  3568. if m > 60 then
  3569. h = h + 1
  3570. m = 0
  3571. end
  3572. if h > 24 then
  3573. h = 0
  3574. end
  3575. game:service("Lighting").TimeOfDay = h.. ":" ..m.. ":" ..s
  3576. wait()
  3577. end
  3578. end
  3579. if MessageSplit[1]:lower() == "ambient" then pcall(function() game:service("Lighting").Ambient = Color3.new(tonumber(MessageSplit[2]), tonumber(MessageSplit[3]), tonumber(MessageSplit[4])) end) end
  3580. if MessageSplit[1]:lower() == "bottom" then pcall(function() game:service("Lighting").ColorShift_Bottom = Color3.new(tonumber(MessageSplit[2]), tonumber(MessageSplit[3]), tonumber(MessageSplit[4])) end) end
  3581. if MessageSplit[1]:lower() == "top" then pcall(function() game:service("Lighting").ColorShift_Top = Color3.new(tonumber(MessageSplit[2]), tonumber(MessageSplit[3]), tonumber(MessageSplit[4])) end) end
  3582. if MessageSplit[1]:lower() == "shadow" then pcall(function() game:service("Lighting").ShadowColor = Color3.new(tonumber(MessageSplit[2]), tonumber(MessageSplit[3]), tonumber(MessageSplit[4])) end) end
  3583. if MessageSplit[1]:lower() == "brightness" then pcall(function() game:service("Lighting").Brightness = Color3.new(tonumber(MessageSplit[2]), tonumber(MessageSplit[3]), tonumber(MessageSplit[4])) end) end
  3584. if MessageSplit[1]:lower() == "latitude" then pcall(function() game:service("Lighting").GeographicLatitude = tonumber(MessageSplit[2]) end) end
  3585. if MessageSplit[1]:lower() == "time" or MessageSplit[1]:lower() == "timeofday" then pcall(function() game:service("Lighting").TimeOfDay = MessageSplit[2] end) end
  3586. end, "Lighting", "Change the lighting color.", "[dawn, day, night, default, black], shift, [ambient, bottom, top, shadow], brightness" ..CoolCMDs.Data.SplitCharacter.. "0-5, latitude" ..CoolCMDs.Data.SplitCharacter.. "0-360, [time, timeofday]" ..CoolCMDs.Data.SplitCharacter.. "0-24:0-60:0-60")
  3587.  
  3588. CoolCMDs.Functions.CreateCommand({"lockscript", "lock script", "lockscripts", "lock scripts", "ls"}, 1, function(Message, MessageSplit, Speaker, Self)
  3589. if MessageSplit[1]:lower() == "0" or MessageSplit[1]:lower() == "false" then
  3590. game:service("ScriptContext").ScriptsDisabled = false
  3591. if Self.new ~= nil then
  3592. Instance.new = Self.new
  3593. Self.new = nil
  3594. end
  3595. for _, Scripts in pairs(CoolCMDs.Functions.GetRecursiveChildren(nil, "script", 2)) do
  3596. if Scripts ~= script and Scripts:IsA("BaseScript") then
  3597. Scripts.Disabled = false
  3598. end
  3599. end
  3600. CoolCMDs.Functions.CreateMessage("Message", "Scripts unlocked.", 1)
  3601. elseif MessageSplit[1]:lower() == "1" or MessageSplit[1]:lower() == "true" then
  3602. local LockMessage = CoolCMDs.Functions.CreateMessage("Message", "Locking scripts...")
  3603. game:service("ScriptContext").ScriptsDisabled = true
  3604. if pcall(function() local _ = Instance.new("Part") end) == true then
  3605. Self.new = Instance.new
  3606. Instance.new = function() error("No objects are currently allowed.") end
  3607. end
  3608. for _, Scripts in pairs(CoolCMDs.Functions.GetRecursiveChildren(nil, "script", 2)) do
  3609. if Scripts ~= script and Scripts:IsA("BaseScript") then
  3610. Scripts.Disabled = true
  3611. end
  3612. end
  3613. LockMessage.Text = "Scripts locked."
  3614. wait(5)
  3615. LockMessage:Remove()
  3616. end
  3617. end, "Lock Scripts", "Disables all new scripts and all currently running scripts (besides itself).", "[0 (false), 1 (true)]")
  3618.  
  3619. CoolCMDs.Functions.CreateCommand({"clean"}, 5, function(Message, MessageSplit, Speaker, Self)
  3620. if #MessageSplit < 3 then return end
  3621. local CleanType = MessageSplit[#MessageSplit - 1]
  3622. if CleanType == nil then CleanType = "1" end
  3623. CleanType = CleanType:lower()
  3624. if CleanType == "1" or CleanType == "name" then CleanType = 1 end
  3625. if CleanType == "2" or CleanType == "class" or CleanType == "classname" then CleanType = 2 end
  3626. if CleanType == "3" or CleanType == "type" or CleanType == "isa" then CleanType = 3 end
  3627. if CleanType == "4" or CleanType == "all" then CleanType = 4 end
  3628. local CleanExtra = MessageSplit[#MessageSplit]
  3629. if CleanExtra == nil then CleanExtra = "" end
  3630. for i = 1, #MessageSplit - 2 do
  3631. for _, Part in pairs(CoolCMDs.Functions.GetRecursiveChildren(nil, MessageSplit[i], CleanType)) do
  3632. local _, CanClean = pcall(function()
  3633. if Part == script then
  3634. return false
  3635. end
  3636. if (string.match(Part.Name, "CoolCMDs") and Part.Parent == game:service("ScriptContext")) or Part.className == "Lighting" then return false end
  3637. if string.match(CleanExtra, "nochar") then
  3638. for _, Player in pairs(game:service("Players"):GetPlayers()) do
  3639. if Part == Player.Character or Part:IsDescendantOf(Player.Character) then return false end
  3640. end
  3641. end
  3642. if string.match(CleanExtra, "noplayer") then
  3643. for _, Player in pairs(game:service("Players"):GetPlayers()) do
  3644. if Part:IsDescendantOf(Player) or Part == Player then return false end
  3645. end
  3646. end
  3647. if string.match(CleanExtra, "nobase") then
  3648. if Part.Parent == game:service("Workspace") and Part.Name == "Base" then
  3649. return false
  3650. end
  3651. end
  3652. if string.match(CleanExtra, "noscript") then
  3653. if Part:IsA("BaseScript") then
  3654. return false
  3655. end
  3656. end
  3657. if string.match(CleanExtra, "stopscript") then
  3658. if Part:IsA("BaseScript") then
  3659. Part.Disabled = true
  3660. end
  3661. end
  3662. if string.match(CleanExtra, "stopsound") then
  3663. if Part:IsA("Sound") then
  3664. for i = 1, 10 do
  3665. Part.SoundId = ""
  3666. Part.Looped = false
  3667. Part.Volume = 0
  3668. Part.Pitch = 0
  3669. Part:Stop()
  3670. wait()
  3671. end
  3672. end
  3673. end
  3674. return true
  3675. end)
  3676. if CanClean == true then
  3677. --local heent = Instance.new("Hint", workspace)
  3678. --heent.Text = Part.className.. "  " ..Part.Name
  3679. --wait(1)
  3680. --heent:Remove()
  3681. pcall(function() Part:Remove() end)
  3682. end
  3683. end
  3684. end
  3685. end, "Clean", "Cleans the game of all obejcts with a certain Name or className or inherited class (or all). Extra arguments: nochar, noplayer, nobase, noscript, stopscript, stopsound.", "[name, classname, inherited]" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "[[1, name], [2, class], [3, inherited], [4, all]]" ..CoolCMDs.Data.SplitCharacter.. "extra arguments")
  3686.  
  3687. CoolCMDs.Functions.CreateCommand("game", 5, function(Message, MessageSplit, Speaker, Self)
  3688. if #MessageSplit < 2 then return end
  3689. local BuildType = MessageSplit[1]
  3690. if BuildType == nil then BuildType = "1" end
  3691. BuildType = BuildType:lower()
  3692. if BuildType == "1" or BuildType == "save" then BuildType = 1 end
  3693. if BuildType == "2" or BuildType == "load" then BuildType = 2 end
  3694. local BuildArg1 = MessageSplit[2]
  3695. if BuildArg1 == nil then BuildArg1 = "default" end
  3696. if Self.Saves == nil then Self.Saves = {} end
  3697. if BuildType == 1 then
  3698. Self.Saves[BuildArg1] = {}
  3699. Self.Saves[BuildArg1].Model = Instance.new("Model")
  3700. for _, Part in pairs(CoolCMDs.Functions.GetRecursiveChildren(game:service("Workspace"))) do
  3701. if (function()
  3702. for _, Player in pairs(game:service("Players"):GetPlayers()) do
  3703. if Part == Player or Part:IsDescendantOf(Player) or Player.Character or Part:IsDescendantOf(Player.Character) then
  3704. return false
  3705. end
  3706. end
  3707. return true
  3708. end)() == true then
  3709. pcall(function() Part:Clone().Parent = Self.Saves[BuildArg1].Model end)
  3710. end
  3711. end
  3712. CoolCMDs.Functions.CreateMessage("Message", "Saved " ..#Self.Saves[BuildArg1].Model:children().. " objects to the save file \"" ..BuildArg1.. "\".", 5)
  3713. elseif BuildType == 2 then
  3714. if Self.Saves[BuildArg1] ~= nil then
  3715. for _, Part in pairs(CoolCMDs.Functions.GetRecursiveChildren(game:service("Workspace"))) do
  3716. if (function()
  3717. for _, Player in pairs(game:service("Players"):GetPlayers()) do
  3718. if Part == Player or Part:IsDescendantOf(Player) or Player.Character or Part:IsDescendantOf(Player.Character) then
  3719. return false
  3720. end
  3721. end
  3722. return true
  3723. end)() == true then
  3724. pcall(function() Part.Disabled = true end)
  3725. pcall(function() Part:Remove() end)
  3726. end
  3727. end
  3728. local Loading = CoolCMDs.Functions.CreateMessage("Hint", "Loading " ..#Self.Saves[BuildArg1].Model:children().. " objects from the save file \"" ..BuildArg1.. "\"...")
  3729. for _, Part in pairs(Self.Saves[BuildArg1].Model:children()) do
  3730. pcall(function() local x = Part:Clone() x:MakeJoints() x.Parent = game:service("Workspace") x:MakeJoints() end)
  3731. end
  3732. Loading:Remove()
  3733. CoolCMDs.Functions.CreateMessage("Message", "Loaded " ..#Self.Saves[BuildArg1].Model:children().. " objects from the save file \"" ..BuildArg1.. "\" successfully.", 5)
  3734. else
  3735. CoolCMDs.Functions.CreateMessage("Message", "Save file \"" ..BuildArg1.. "\" does not exist.", 5)
  3736. end
  3737. end
  3738. end, "Build Saving and Loading", "Saves and loads builds. save: Saves a build to [save name]. load: Loads a build from [save name].", "[save, load]" ..CoolCMDs.Data.SplitCharacter.. "[save name]")
  3739.  
  3740. CoolCMDs.Functions.CreateCommand("health", 1, function(Message, MessageSplit, Speaker, Self)
  3741. if #MessageSplit < 2 then return false end
  3742. local Health = MessageSplit[#MessageSplit]
  3743. if Health == nil then Health = "" end
  3744. Health = Health:lower()
  3745. if Health == "math.huge" then
  3746. Health = math.huge
  3747. elseif Health == "" or tonumber(Health) == nil then
  3748. Health = 0
  3749. else
  3750. Health = tonumber(Health)
  3751. end
  3752. Health = math.abs(Health)
  3753. for i = 1, #MessageSplit - 1 do
  3754. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  3755. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then
  3756. if PlayerList.Character:FindFirstChild("Humanoid") ~= nil then
  3757. if Health > PlayerList.Character.Humanoid.MaxHealth then
  3758. PlayerList.Character.Humanoid.MaxHealth = Health
  3759. else
  3760. PlayerList.Character.Humanoid.MaxHealth = 100
  3761. if Health > PlayerList.Character.Humanoid.MaxHealth then
  3762. PlayerList.Character.Humanoid.MaxHealth = Health
  3763. end
  3764. end
  3765. PlayerList.Character.Humanoid.Health = Health
  3766. end
  3767. end
  3768. end
  3769. end
  3770. end, "Health", "Set the health of a player's character. ", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "[health (number), math.huge, random, my health]")
  3771.  
  3772. CoolCMDs.Functions.CreateCommand("lua", 1, function(Message, MessageSplit, Speaker, Self)
  3773. CoolCMDs.Functions.CreateScript(Message, game:service("Workspace"), true)
  3774. end, "Lua Run", "Creates a new script.", "source")
  3775.  
  3776. CoolCMDs.Functions.CreateCommand({"luanodebug", "luandb"}, 1, function(Message, MessageSplit, Speaker, Self)
  3777. CoolCMDs.Functions.CreateScript(Message, game:service("Workspace"), false)
  3778. end, "Lua Run (No Debug)", "Creates a new script without error output.", "source")
  3779.  
  3780. CoolCMDs.Functions.CreateCommand({"walkspeed", "ws"}, 1, function(Message, MessageSplit, Speaker, Self)
  3781. if #MessageSplit < 2 then return false end
  3782. for i = 1, #MessageSplit - 1 do
  3783. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  3784. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then
  3785. if PlayerList.Character:FindFirstChild("Humanoid") ~= nil then
  3786. pcall(function() PlayerList.Character.Humanoid.WalkSpeed = tonumber(MessageSplit[#MessageSplit]) end)
  3787. end
  3788. end
  3789. end
  3790. end
  3791. end, "WalkSpeed", "Set the WalkSpeed of a player's character. ", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "[speed (number), math.huge, random, my walkspeed]")
  3792.  
  3793. CoolCMDs.Functions.CreateCommand({"teleport"}, 1, function(Message, MessageSplit, Speaker, Self)
  3794. local Position = MessageSplit[#MessageSplit]:lower()
  3795. local Player = nil
  3796. if Position == "" or Position == "me" then
  3797. if Speaker.Character ~= nil then
  3798. if Speaker.Character:FindFirstChild("Torso") ~= nil then
  3799. Position = Speaker.Character.Torso.CFrame
  3800. Player = Speaker
  3801. end
  3802. end
  3803. elseif #CoolCMDs.Functions.Explode(", ", Position) == 3 then
  3804. Position = CFrame.new(CoolCMDs.Functions.Explode(", ", Position)[1], CoolCMDs.Functions.Explode(", ", Position)[2], CoolCMDs.Functions.Explode(", ", Position)[3])
  3805. else
  3806. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  3807. if string.match(PlayerList.Name:lower(), Position:lower()) and PlayerList.Character ~= nil then
  3808. if PlayerList.Character:FindFirstChild("Torso") ~= nil then
  3809. Position = PlayerList.Character.Torso.CFrame
  3810. Player = PlayerList
  3811. break
  3812. end
  3813. end
  3814. end
  3815. end
  3816. if type(Position) == "string" then return end
  3817. local i = 1
  3818. for x = 1, #MessageSplit - 1 do
  3819. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  3820. if string.match(PlayerList.Name:lower(), MessageSplit[x]:lower()) and PlayerList.Character ~= nil and PlayerList ~= Player then
  3821. i = i + 1
  3822. if PlayerList.Character:FindFirstChild("Torso") ~= nil then
  3823. PlayerList.Character.Torso.CFrame = Position * CFrame.new(0, 4 * i, 0)
  3824. PlayerList.Character.Torso.Velocity = Vector3.new(0, 0, 0)
  3825. PlayerList.Character.Torso.RotVelocity = Vector3.new(0, 0, 0)
  3826. else
  3827. PlayerList.Character:MoveTo((Position * CFrame.new(0, 4 * i, 0)).p)
  3828. end
  3829. end
  3830. end
  3831. end
  3832. end, "Teleport", "Teleport players to other players. ", "player to teleport" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "player to teleport to, or [x, y, z]")
  3833.  
  3834. CoolCMDs.Functions.CreateCommand({"waypoint", "wp"}, 1, function(Message, MessageSplit, Speaker, Self)
  3835. if Speaker.Character == nil then return end
  3836. if Speaker.Character:FindFirstChild("Torso") == nil then return end
  3837. if #MessageSplit < 2 then return end
  3838. local Type = MessageSplit[1]:lower()
  3839. local Index = MessageSplit[2]
  3840. local Player = CoolCMDs.Functions.GetPlayerTable(Speaker.Name)
  3841. if Player.Waypoints == nil then
  3842. Player.Waypoints = {}
  3843. end
  3844. Waypoint = Player.Waypoints
  3845. if Type == "set" then
  3846. Waypoint[Index] = {}
  3847. Waypoint[Index].CFrame = Speaker.Character.Torso.CFrame
  3848. Waypoint[Index].Velocity = Speaker.Character.Torso.Velocity
  3849. Waypoint[Index].RotVelocity = Speaker.Character.Torso.RotVelocity
  3850. CoolCMDs.Functions.CreateMessage("Hint", "[Waypoint \"" ..Index.. "\"] Set at CFrame {" ..tostring(Waypoint[Index].CFrame.p).. "}.", 5, Speaker)
  3851. elseif Type == "get" then
  3852. if Waypoint[Index] ~= nil then
  3853. Speaker.Character.Torso.CFrame = Waypoint[Index].CFrame
  3854. Speaker.Character.Torso.Velocity = Waypoint[Index].Velocity
  3855. Speaker.Character.Torso.RotVelocity = Waypoint[Index].RotVelocity
  3856. CoolCMDs.Functions.CreateMessage("Hint", "[Waypoint \"" ..Index.. "\"] Moved to CFrame {" ..tostring(Waypoint[Index].CFrame.p).. "}.", 5, Speaker)
  3857. else
  3858. CoolCMDs.Functions.CreateMessage("Hint", "[Waypoint \"" ..Index.. "\"] There is no waypoint with that index.", 5, Speaker)
  3859. end
  3860. elseif Type == "remove" then
  3861. if Waypoint[Index] ~= nil then
  3862. Waypoint[Index] = nil
  3863. CoolCMDs.Functions.CreateMessage("Hint", "[Waypoint \"" ..Index.. "\"] Removed.", 5, Speaker)
  3864. else
  3865. CoolCMDs.Functions.CreateMessage("Hint", "[Waypoint \"" ..Index.. "\"] There is no waypoint with that index.", 5, Speaker)
  3866. end
  3867. elseif Type == "show" then
  3868. if Waypoint[Index] ~= nil then
  3869. CoolCMDs.Functions.CreateMessage("Hint", "[Waypoint \"" ..Index.. "\"] CFrame {" ..tostring(Waypoint[Index].CFrame.p).. "}.", 5, Speaker)
  3870. else
  3871. CoolCMDs.Functions.CreateMessage("Hint", "[Waypoint \"" ..Index.. "\"] There is no waypoint with that index.", 5, Speaker)
  3872. end
  3873. end
  3874. end, "Waypoint", "Set dynamic waypoints that store your character's position, saved by string indices.", "[set, get]" ..CoolCMDs.Data.SplitCharacter.. "waypoint index")
  3875.  
  3876. CoolCMDs.Functions.CreateCommand({"kill", "ki"}, 3, function(Message, MessageSplit, Speaker, Self)
  3877. for i = 1, #MessageSplit do
  3878. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  3879. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then
  3880. for _, Part in pairs(PlayerList.Character:GetChildren()) do
  3881. pcall(function() Part.Health = 0 end)
  3882. end
  3883. end
  3884. end
  3885. end
  3886. end, "Kill", "Kills people.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  3887.  
  3888. CoolCMDs.Functions.CreateCommand({"freeze", "f"}, 1, function(Message, MessageSplit, Speaker, Self)
  3889. for i = 1, #MessageSplit do
  3890. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  3891. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then
  3892. for _, Part in pairs(PlayerList.Character:children()) do
  3893. pcall(function() Part.Anchored = true end)
  3894. end
  3895. end
  3896. end
  3897. end
  3898. end, "Freeze", "Freeze people in place.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  3899.  
  3900. CoolCMDs.Functions.CreateCommand({"unfreeze", "unf", "uf", "thaw", "th"}, 1, function(Message, MessageSplit, Speaker, Self)
  3901. for i = 1, #MessageSplit do
  3902. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  3903. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then
  3904. for _, Part in pairs(PlayerList.Character:children()) do
  3905. pcall(function() Part.Anchored = false end)
  3906. end
  3907. end
  3908. end
  3909. end
  3910. end, "Unfreeze/Thaw", "Unfreeze/thaw people.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  3911.  
  3912. CoolCMDs.Functions.CreateCommand({"killer frogs", "frogs"}, 1, function(Message, MessageSplit, Speaker, Self)
  3913. if #MessageSplit < 2 then return end
  3914. local Frogs = tonumber(MessageSplit[#MessageSplit])
  3915. if Frogs == nil then Frogs = 1 end
  3916. if Frogs > 25 then Frogs = 25 end
  3917. if Frogs <= 0 then Frogs = 1 end
  3918. for i = 1, #MessageSplit - 1 do
  3919. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  3920. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and pcall(function() local _, _ = PlayerList.Character.Torso.CFrame, PlayerList.Character.Humanoid.Health end) == true then
  3921. for x = 1, Frogs do
  3922. local Frog = Instance.new("Part", game:service("Workspace"))
  3923. Frog.Name = "Killer Frog"
  3924. Frog.BrickColor = BrickColor.new("Bright green")
  3925. Frog.formFactor = "Custom"
  3926. Frog.Size = Vector3.new(0.9, 0.9, 0.9)
  3927. Frog.TopSurface = 0
  3928. Frog.BottomSurface = 0
  3929. Frog.CFrame = CFrame.new(PlayerList.Character.Torso.CFrame.p) * CFrame.new(math.random(-10, 10), math.random(-1, 1), math.random(-10, 10))
  3930. Frog.Touched:connect(function(Hit) pcall(function() Hit.Parent.Humanoid:TakeDamage(0.5) end) end)
  3931. Instance.new("Decal", Frog).Texture = "rbxasset://textures\\face.png"
  3932. coroutine.wrap(function()
  3933. for i = 1, 0, -0.05 do
  3934. Frog.Transparency = i
  3935. wait()
  3936. end
  3937. Frog.Transparency = 0
  3938. while Frog.Parent ~= nil do
  3939. if pcall(function() local _, _ = PlayerList.Character.Torso.CFrame, PlayerList.Character.Humanoid.Health end) == false then break end
  3940. if PlayerList.Character.Humanoid.Health <= 0 then break end
  3941. wait(math.random(10, 200) / 100)
  3942. Frog.Velocity = Frog.Velocity + ((PlayerList.Character.Torso.CFrame.p - Frog.CFrame.p).unit * math.random(20, 40)) + Vector3.new(0, math.random(15, 25), 0)
  3943. end
  3944. for i = 0, 1, 0.05 do
  3945. Frog.Transparency = i
  3946. wait()
  3947. end
  3948. Frog:Remove()
  3949. end)()
  3950. end
  3951. end
  3952. end
  3953. end
  3954. end, "Killer Frogs", "Throw some frogs at people.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "number of frogs")
  3955.  
  3956. CoolCMDs.Functions.CreateCommand({"killer bees", "bees"}, 1, function(Message, MessageSplit, Speaker, Self)
  3957. if #MessageSplit < 2 then return end
  3958. local Bees = tonumber(MessageSplit[#MessageSplit])
  3959. if Bees == nil then Bees = 1 end
  3960. if Bees > 50 then Bees = 50 end
  3961. if Bees <= 0 then Bees = 1 end
  3962. for i = 1, #MessageSplit - 1 do
  3963. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  3964. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and pcall(function() local _, _ = PlayerList.Character.Torso.CFrame, PlayerList.Character.Humanoid.Health end) == true then
  3965. for x = 1, Bees do
  3966. local Bee = Instance.new("Part", game:service("Workspace"))
  3967. Bee.Name = "Killer Bee"
  3968. Bee.BrickColor = BrickColor.new("Bright yellow")
  3969. Bee.formFactor = "Custom"
  3970. Bee.Size = Vector3.new(0.4, 0.9, 0.4)
  3971. Bee.TopSurface = 0
  3972. Bee.BottomSurface = 0
  3973. Bee.CFrame = CFrame.new(PlayerList.Character.Torso.CFrame.p) * CFrame.new(math.random(-10, 10), math.random(1, 25), math.random(-10, 10))
  3974. Bee.Touched:connect(function(Hit) pcall(function() Hit.Parent.Humanoid:TakeDamage(0.25) end) end)
  3975. Instance.new("SpecialMesh", Bee).MeshType = "Head"
  3976. coroutine.wrap(function()
  3977. for i = 1, 0, -0.05 do
  3978. Bee.Transparency = i
  3979. wait()
  3980. end
  3981. Bee.Transparency = 0
  3982. while Bee.Parent ~= nil do
  3983. if pcall(function() local _, _ = PlayerList.Character.Torso.CFrame, PlayerList.Character.Humanoid.Health end) == false then break end
  3984. if PlayerList.Character.Humanoid.Health <= 0 then break end
  3985. Bee.Velocity = Bee.Velocity + ((PlayerList.Character.Torso.CFrame.p - Bee.CFrame.p).unit * math.random(15, 20)) + Vector3.new(math.random(-5, 5), math.random(-5, 5) + 2.5, math.random(-5, 5))
  3986. wait(math.random(1, 10) / 100)
  3987. end
  3988. for i = 0, 1, 0.05 do
  3989. Bee.Transparency = i
  3990. wait()
  3991. end
  3992. Bee:Remove()
  3993. end)()
  3994. end
  3995. end
  3996. end
  3997. end
  3998. end, "Killer Bees", "Throw clouds of angry bees at people.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "number of bees")
  3999.  
  4000. CoolCMDs.Functions.CreateCommand({"blind", "b"}, 1, function(Message, MessageSplit, Speaker, Self)
  4001. for i = 1, #MessageSplit do
  4002. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4003. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) then
  4004. local Blind = Instance.new("ScreenGui", PlayerList.PlayerGui)
  4005. Blind.Name = "CoolCMDsBlind"
  4006. local Black = Instance.new("Frame", Blind)
  4007. Black.Name = "Black"
  4008. Black.BorderSizePixel = 0
  4009. Black.ZIndex = math.huge
  4010. Black.BackgroundColor3 = Color3.new(0, 0, 0)
  4011. Black.Size = UDim2.new(2, 0, 2, 0)
  4012. Black.Position = UDim2.new(-0.5, 0, -0.5, 0)
  4013. Black.Changed:connect(function(Property)
  4014. if Property == "Parent" then
  4015. if Black.Parent ~= Blind then
  4016. Black.Parent = Blind
  4017. end
  4018. end
  4019. end)
  4020. Blind.Changed:connect(function(Property)
  4021. if Property == "Parent" then
  4022. if Blind.Name == "CoolCMDsBlindDisabled" then return end
  4023. if Blind.Parent ~= PlayerList.PlayerGui then
  4024. Blind.Parent = PlayerList.PlayerGui
  4025. end
  4026. end
  4027. end)
  4028. end
  4029. end
  4030. end
  4031. end, "Blind", "Blind people.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  4032.  
  4033. CoolCMDs.Functions.CreateCommand({"unblind", "noblind", "unb", "ub", "nb"}, 1, function(Message, MessageSplit, Speaker, Self)
  4034. for i = 1, #MessageSplit do
  4035. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4036. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) then
  4037. pcall(function() while true do PlayerList.PlayerGui.CoolCMDsBlind.Name = "CoolCMDsBlindDisabled" PlayerList.PlayerGui.CoolCMDsBlindDisabled:Remove() end end)
  4038. end
  4039. end
  4040. end
  4041. end, "Unblind", "Let people see again.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  4042.  
  4043. CoolCMDs.Functions.CreateCommand({"nogui", "ng"}, 1, function(Message, MessageSplit, Speaker, Self)
  4044. for i = 1, #MessageSplit do
  4045. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4046. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) then
  4047. for _, Part in pairs(PlayerList.PlayerGui:children()) do
  4048. if Part:IsA("GuiBase") then
  4049. pcall(function() Part:Remove() end)
  4050. end
  4051. end
  4052. end
  4053. end
  4054. end
  4055. end, "No Gui", "Remove all Guis.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  4056.  
  4057. CoolCMDs.Functions.CreateCommand({"crush", "cr"}, 3, function(Message, MessageSplit, Speaker, Self)
  4058. for i = 1, #MessageSplit do
  4059. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4060. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and pcall(function() local _ = PlayerList.Character.Torso.CFrame end) == true and pcall(function() local _ = PlayerList.Character.Humanoid end) == true then
  4061. coroutine.wrap(function()
  4062. local WalkSpeed = PlayerList.Character.Humanoid.WalkSpeed
  4063. PlayerList.Character.Humanoid.WalkSpeed = 0
  4064. wait(3)
  4065. PlayerList.Character.Humanoid.WalkSpeed = WalkSpeed
  4066. end)()
  4067. local Brick = Instance.new("Part", game:service("Workspace"))
  4068. Brick.Name = "Brick"
  4069. Brick.BrickColor = BrickColor.new("Really black")
  4070. Brick.TopSurface = 0
  4071. Brick.BottomSurface = 0
  4072. Brick.formFactor = "Symmetric"
  4073. Brick.Size = Vector3.new(10, 7, 8)
  4074. Brick.CFrame = CFrame.new(PlayerList.Character.Torso.CFrame.p) * CFrame.new(0, 200, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(math.random(0, 360)), 0)
  4075. Instance.new("SpecialMesh", Brick).MeshType = "Torso"
  4076. local BodyVelocity = Instance.new("BodyVelocity", Brick)
  4077. BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  4078. BodyVelocity.velocity = Vector3.new(0, -300, 0)
  4079. Brick.Touched:connect(function(Hit)
  4080. if Hit.Parent == nil then return end
  4081. if Hit.Parent:FindFirstChild("Humanoid") ~= nil then
  4082. Hit.Parent.Humanoid.MaxHealth = 100
  4083. Hit.Parent.Humanoid.Health = 0
  4084. else
  4085. if Hit:GetMass() > 1000 then return end
  4086. Hit.Anchored = false
  4087. Hit:BreakJoints()
  4088. end
  4089. end)
  4090. coroutine.wrap(function()
  4091. for i = 1, 0, -0.05 do
  4092. Brick.Transparency = i
  4093. wait()
  4094. end
  4095. Brick.Transparency = 0
  4096. wait(2)
  4097. for i = 0, 1, 0.015 do
  4098. Brick.Transparency = i
  4099. wait()
  4100. end
  4101. Brick:Remove()
  4102. end)()
  4103. end
  4104. end
  4105. end
  4106. end, "Crush", "WHAM.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  4107.  
  4108. CoolCMDs.Functions.CreateCommand({"respawn/", "re"}, 2, function(Message, MessageSplit, Speaker, Self)
  4109. for i = 1, #MessageSplit do
  4110. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4111. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) then
  4112. pcall(function()
  4113. local Model = Instance.new("Model", game:service("Workspace"))
  4114. local Part = Instance.new("Part", Model)
  4115. Part.Name = "Head"
  4116. Part.Transparency = 1
  4117. Part.CanCollide = false
  4118. Part.Anchored = true
  4119. Part.Locked = true
  4120. Part.Parent = Model
  4121. local Humanoid = Instance.new("Humanoid", Model)
  4122. Humanoid.Health = 100
  4123. PlayerList.Character = Model
  4124. Humanoid.Health = 0
  4125. end)
  4126. end
  4127. end
  4128. end
  4129. end, "Respawn", "Respawn a player.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  4130.  
  4131. CoolCMDs.Functions.CreateCommand({"forcefield", "ff", "shield", "sh"}, 1, function(Message, MessageSplit, Speaker, Self)
  4132. for i = 1, #MessageSplit do
  4133. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4134. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then
  4135. Instance.new("ForceField", PlayerList.Character)
  4136. end
  4137. end
  4138. end
  4139. end, "Spawn ForceField", "Spawn a ForceField object in a Player's character.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  4140.  
  4141. CoolCMDs.Functions.CreateCommand({"unforcefield", "noforcefield", "unff", "uff", "noff", "unshield", "unsh", "ush", "noshield", "nosh"}, 1, function(Message, MessageSplit, Speaker, Self)
  4142. for i = 1, #MessageSplit do
  4143. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4144. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then
  4145. for _, Part in pairs(PlayerList.Character:children()) do
  4146. if Part:IsA("ForceField") then
  4147. Part:Remove()
  4148. end
  4149. end
  4150. end
  4151. end
  4152. end
  4153. end, "Remove ForceField", "Remove all ForceField objects in a Player's character.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  4154.  
  4155. CoolCMDs.Functions.CreateCommand({"explode", "ex"}, 3, function(Message, MessageSplit, Speaker, Self)
  4156. for i = 1, #MessageSplit do
  4157. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4158. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then
  4159. for _, Part in pairs(PlayerList.Character:children()) do
  4160. if Part:isA("BasePart") then
  4161. local Explosion = Instance.new("Explosion")
  4162. Explosion.BlastPressure = math.random(100000, 1000000)
  4163. Explosion.BlastRadius = math.random(1, 25)
  4164. Explosion.Position = Part.CFrame.p
  4165. Explosion.Parent = PlayerList.Character
  4166. end
  4167. end
  4168. PlayerList.Character:BreakJoints()
  4169. end
  4170. end
  4171. end
  4172. end, "Explode", "Spawn an explosion in all parts of a player.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  4173.  
  4174. CoolCMDs.Functions.CreateCommand("hax", 3, function(Message, MessageSplit, Speaker, Self)
  4175. if #MessageSplit < 2 then return false end
  4176. if CoolCMDs.Functions.IsModuleEnabled("CharacterSupport") == false then
  4177. CoolCMDs.Functions.CreateMessage("Hint", "This command requires the CharacterSupport module to be enabled.", 5, Speaker)
  4178. return
  4179. elseif CoolCMDs.Functions.GetModule("CharacterSupport") == nil then
  4180. CoolCMDs.Functions.CreateMessage("Hint", "This command requires the CharacterSupport module to be installed.", 5, Speaker)
  4181. return
  4182. end
  4183. local Characters = tonumber(MessageSplit[#MessageSplit])
  4184. if Characters == nil then Characters = 1 end
  4185. if Characters <= 0 then Characters = 1 end
  4186. if Characters > 10 then Characters = 10 end
  4187. for i = 1, #MessageSplit - 1 do
  4188. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4189. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and pcall(function() local _ = PlayerList.Character.Torso end) == true then
  4190. for i = 1, Characters do
  4191. coroutine.wrap(function()
  4192. local Character = CoolCMDs.Functions.GetModule("CharacterSupport").CreateCharacter(true)
  4193. Character.Name = "Dr. Hax"
  4194. local Head = Character.Head
  4195. Head.face.Texture = "http://www.Roblox.com/Asset/?id=16580646"
  4196. local Torso = Character.Torso
  4197. local RightShoulder = Character.Torso["Right Shoulder"]
  4198. local RightArm = Character["Right Arm"]
  4199. local Humanoid = Character.Humanoid
  4200. Character.Shirt.ShirtTemplate = "http://www.Roblox.com/Asset/?id=12702133"
  4201. Character.Pants.PantsTemplate = "http://www.Roblox.com/Asset/?id=12702160"
  4202. local Hat = Instance.new("Hat")
  4203. Hat.Name = "White Hair"
  4204. Hat.AttachmentPos = Vector3.new(0, 0.1, 0)
  4205. local Handle = Instance.new("Part")
  4206. Handle.Name = "Handle"
  4207. Handle.formFactor = 0
  4208. Handle.Size = Vector3.new(2, 1, 1)
  4209. Handle.TopSurface = 0
  4210. Handle.BottomSurface = 0
  4211. Handle.Parent = Hat
  4212. local Mesh = Instance.new("SpecialMesh")
  4213. Mesh.MeshId = "http://www.Roblox.com/Asset/?id=13332444"
  4214. Mesh.VertexColor = Vector3.new(1, 1, 1)
  4215. Mesh.Parent = Handle
  4216. Hat.Parent = Character
  4217. local Hat = Instance.new("Hat")
  4218. Hat.Name = "Beard"
  4219. for i = 0, math.pi, math.pi / 10 do Hat.AttachmentForward = Hat.AttachmentForward + Vector3.new(0, math.pi, 0) end
  4220. Hat.AttachmentPos = Vector3.new(0, -0.5, 0.7)
  4221. local Handle = Instance.new("Part")
  4222. Handle.Name = "Handle"
  4223. Handle.formFactor = 0
  4224. Handle.Size = Vector3.new(1, 1, 1)
  4225. Handle.TopSurface = 0
  4226. Handle.BottomSurface = 0
  4227. Handle.BrickColor = BrickColor.new("Industrial white")
  4228. Handle.Parent = Hat
  4229. local Mesh = Instance.new("CylinderMesh")
  4230. Mesh.Scale = Vector3.new(0.675, 0.199, 0.675)
  4231. Mesh.Parent = Handle
  4232. Hat.Parent = Character
  4233. Torso.CFrame = CFrame.new(PlayerList.Character.Torso.CFrame.p) * CFrame.new(math.sin(math.random(0, (math.pi * 100) * 2) / 100) * 25, 5, math.cos(math.random(0, (math.pi * 100) * 2) / 100) * 25)
  4234. Character.Parent = game:service("Workspace")
  4235. Character:MakeJoints()
  4236. coroutine.wrap(function()
  4237. for i = 1, 0, -0.05 do
  4238. for _, Part in pairs(Character:children()) do
  4239. pcall(function() Part.Transparency = i end)
  4240. end
  4241. wait()
  4242. end
  4243. for _, Part in pairs(Character:children()) do
  4244. pcall(function() Part.Transparency = 0 end)
  4245. end
  4246. end)()
  4247. coroutine.wrap(function()
  4248. while true do
  4249. if PlayerList.Character == nil then break end
  4250. if PlayerList.Character:FindFirstChild("Torso") == nil or PlayerList.Character:FindFirstChild("Humanoid") == nil or RightArm.Parent ~= Character or Humanoid.Health <= 0 then break end
  4251. if PlayerList.Character.Humanoid.Health <= 0 then break end
  4252. if (Torso.CFrame.p - PlayerList.Character.Torso.CFrame.p).magnitude > 30 then
  4253. Humanoid:MoveTo(PlayerList.Character.Torso.CFrame.p, PlayerList.Character.Torso)
  4254. else
  4255. Humanoid:MoveTo(Torso.CFrame.p, Torso)
  4256. end
  4257. Torso.CFrame = CFrame.new(Torso.CFrame.p, Vector3.new(PlayerList.Character.Torso.CFrame.p.x, Torso.CFrame.p.y, PlayerList.Character.Torso.CFrame.p.z))
  4258. wait()
  4259. end
  4260. Humanoid:MoveTo(Torso.CFrame.p, Torso)
  4261. end)()
  4262. wait(2)
  4263. RightShoulder.DesiredAngle = math.rad(90)
  4264. wait(1)
  4265. while true do
  4266. if PlayerList.Character == nil then break end
  4267. if PlayerList.Character:FindFirstChild("Torso") == nil or PlayerList.Character:FindFirstChild("Humanoid") == nil or RightArm.Parent ~= Character or Humanoid.Health <= 0 then break end
  4268. if PlayerList.Character.Humanoid.Health <= 0 then break end
  4269. if Humanoid.Health <= 0 then break end
  4270. local Monitor = Instance.new("Part")
  4271. Monitor.Name = "Monitor"
  4272. Monitor.formFactor = 0
  4273. Monitor.Size = Vector3.new(2, 2, 2)
  4274. Monitor.TopSurface = 0
  4275. Monitor.BottomSurface = 0
  4276. Monitor.BrickColor = BrickColor.new("Brick yellow")
  4277. Monitor.Parent = game:service("Workspace")
  4278. Monitor.CFrame = RightArm.CFrame * CFrame.new(0, -3, 0)
  4279. Monitor.Velocity = ((PlayerList.Character.Torso.CFrame.p - Monitor.CFrame.p).unit * math.random(100, 500)) + Vector3.new(math.random(-25, 25), math.random(-25, 25), math.random(-25, 25))
  4280. local HasTouched = false
  4281. Monitor.Touched:connect(function(Hit)
  4282. if Hit.Parent == nil then return end
  4283. if Hit.Parent == Character or string.match("Dr. Hax", Hit.Parent.Name) or Hit.Name == "Monitor" then return end
  4284. local Sound = Instance.new("Sound", Monitor)
  4285. Sound.Name = "Crash"
  4286. Sound.Volume = math.random(10, 90) / 100
  4287. Sound.SoundId = "rbxasset://sounds/Glassbreak.wav"
  4288. Sound.Pitch = math.random(90, 200) / 100
  4289. Sound:Play()
  4290. coroutine.wrap(function()
  4291. wait(math.random(5, 50) / 100)
  4292. for i = Sound.Volume, 0, -math.random(75, 100) / 1000 do
  4293. Sound.Volume = i
  4294. wait()
  4295. end
  4296. Sound:Stop()
  4297. Sound:Remove()
  4298. end)()
  4299. if HasTouched == true then return end
  4300. HasTouched = true
  4301. if Hit.Parent:FindFirstChild("Humanoid") ~= nil then
  4302. Hit.Parent.Humanoid:TakeDamage(math.random(5, 25))
  4303. else
  4304. if Hit.Anchored == true and Hit:GetMass() < 1000 and math.random(1, 3) == 1 then
  4305. Hit.Anchored = false
  4306. end
  4307. if math.random(1, 10) == 1 then Hit:BreakJoints() end
  4308. end
  4309. wait(1)
  4310. for i = 0, 1, 0.05 do
  4311. Monitor.Transparency = i
  4312. wait()
  4313. end
  4314. Monitor:Remove()
  4315. end)
  4316. wait(math.random(1, 500) / 1000)
  4317. end
  4318. if Humanoid.Health > 0 then
  4319. wait(1)
  4320. RightShoulder.DesiredAngle = 0
  4321. wait(2)
  4322. end
  4323. for i = 0, 1, 0.05 do
  4324. for _, Part in pairs(Character:children()) do
  4325. pcall(function() Part.Transparency = i end)
  4326. end
  4327. wait()
  4328. end
  4329. Character:Remove()
  4330. end)()
  4331. end
  4332. end
  4333. end
  4334. end
  4335. end, "Hax", "Summon Dr. Hax on weary travelers.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "number of characters to spawn (max of 10)")
  4336.  
  4337. CoolCMDs.Functions.CreateCommand("maul", 3, function(Message, MessageSplit, Speaker, Self)
  4338. if #MessageSplit < 2 then return false end
  4339. if CoolCMDs.Functions.IsModuleEnabled("CharacterSupport") == false then
  4340. CoolCMDs.Functions.CreateMessage("Hint", "This command requires the CharacterSupport module to be enabled.", 5, Speaker)
  4341. return
  4342. elseif CoolCMDs.Functions.GetModule("CharacterSupport") == nil then
  4343. CoolCMDs.Functions.CreateMessage("Hint", "This command requires the CharacterSupport module to be installed.", 5, Speaker)
  4344. return
  4345. end
  4346. local Characters = tonumber(MessageSplit[#MessageSplit])
  4347. if Characters == nil then Characters = 1 end
  4348. if Characters <= 0 then Characters = 1 end
  4349. if Characters > 10 then Characters = 10 end
  4350. for i = 1, #MessageSplit - 1 do
  4351. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4352. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and pcall(function() local _ = PlayerList.Character.Torso end) == true and pcall(function() local _ = PlayerList.Character.Humanoid end) == true then
  4353. PlayerList.Character.Humanoid.WalkSpeed = 0
  4354. local Health = PlayerList.Character.Humanoid.Health
  4355. local MaxHealth = PlayerList.Character.Humanoid.MaxHealth
  4356. PlayerList.Character.Humanoid.MaxHealth = 100
  4357. PlayerList.Character.Humanoid.Health = MaxHealth * (Health / MaxHealth)
  4358. for _, Part in pairs(PlayerList.Character:children()) do if Part:IsA("ForceField") then Part:Remove() end end
  4359. for i = 1, Characters do
  4360. coroutine.wrap(function()
  4361. local Character = CoolCMDs.Functions.GetModule("CharacterSupport").CreateCharacter(math.random(1, 2) == 1 and true or false)
  4362. Character.Name = "Zombie"
  4363. local Head = Character.Head
  4364. Head.face.Texture = "http://www.Roblox.com/Asset/?id=16580646"
  4365. Head.BrickColor = BrickColor.new("Br. yellowish green")
  4366. local Torso = Character.Torso
  4367. Torso.BrickColor = BrickColor.new("Reddish brown")
  4368. local LeftShoulder = Character.Torso["Left Shoulder"]
  4369. local RightShoulder = Character.Torso["Right Shoulder"]
  4370. local LeftHip = Character.Torso["Left Hip"]
  4371. local RightHip = Character.Torso["Right Hip"]
  4372. local Humanoid = Character.Humanoid
  4373. Character["Left Arm"].BrickColor = BrickColor.new("Br. yellowish green")
  4374. Character["Right Arm"].BrickColor = BrickColor.new("Br. yellowish green")
  4375. Character["Left Leg"].BrickColor = BrickColor.new("Reddish brown")
  4376. Character["Right Leg"].BrickColor = BrickColor.new("Reddish brown")
  4377. Torso.CFrame = CFrame.new(PlayerList.Character.Torso.CFrame.p) * CFrame.new(math.sin(math.random(0, (math.pi * 100) * 2) / 100) * 25, 5, math.cos(math.random(0, (math.pi * 100) * 2) / 100) * 25)
  4378. Character.Parent = game:service("Workspace")
  4379. Character:MakeJoints()
  4380. coroutine.wrap(function()
  4381. for i = 1, 0, -0.05 do
  4382. for _, Part in pairs(Character:children()) do
  4383. pcall(function() Part.Transparency = i end)
  4384. end
  4385. wait()
  4386. end
  4387. for _, Part in pairs(Character:children()) do
  4388. pcall(function() Part.Transparency = 0 end)
  4389. end
  4390. end)()
  4391. coroutine.wrap(function()
  4392. while true do
  4393. LeftHip.DesiredAngle = math.rad(45)
  4394. RightHip.DesiredAngle = math.rad(45)
  4395. wait(0.5)
  4396. LeftHip.DesiredAngle = math.rad(-45)
  4397. RightHip.DesiredAngle = math.rad(-45)
  4398. wait(0.5)
  4399. end
  4400. end)()
  4401. while true do
  4402. if PlayerList.Character == nil then break end
  4403. if PlayerList.Character:FindFirstChild("Torso") == nil or PlayerList.Character:FindFirstChild("Humanoid") == nil or Humanoid.Health <= 0 then break end
  4404. if PlayerList.Character.Humanoid.Health <= 0 then break end
  4405. if Humanoid.Health <= 0 then break end
  4406. Humanoid:MoveTo(PlayerList.Character.Torso.CFrame.p + Vector3.new(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3)), PlayerList.Character.Torso)
  4407. if (PlayerList.Character.Torso.CFrame.p - Torso.CFrame.p).magnitude < 5 then
  4408. PlayerList.Character.Humanoid:TakeDamage(math.random(1, 10) / 10)
  4409. LeftShoulder.DesiredAngle = -math.rad(math.random(0, 180))
  4410. RightShoulder.DesiredAngle = math.rad(math.random(0, 180))
  4411. else
  4412. LeftShoulder.DesiredAngle = -math.rad(90)
  4413. RightShoulder.DesiredAngle = math.rad(90)
  4414. end
  4415. wait()
  4416. end
  4417. for i = 0, 1, 0.05 do
  4418. for _, Part in pairs(Character:children()) do
  4419. pcall(function() Part.Transparency = i end)
  4420. end
  4421. wait()
  4422. end
  4423. Character:Remove()
  4424. end)()
  4425. end
  4426. end
  4427. end
  4428. end
  4429. end, "Maul", "Summon flesh-hungry zombies to eat players.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "number of zombies to spawn (max of 10)")
  4430.  
  4431. CoolCMDs.Functions.CreateCommand({"ignite", "i"}, 1, function(Message, MessageSplit, Speaker, Self)
  4432. if #MessageSplit < 2 then return false end
  4433. local Duration = tonumber(MessageSplit[#MessageSplit])
  4434. if Duration == nil then Duration = 0 end
  4435. for i = 1, #MessageSplit - 1 do
  4436. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4437. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and pcall(function() local _ = PlayerList.Character.Torso end) == true and pcall(function() local _ = PlayerList.Character.Humanoid end) == true and pcall(function() local _ = PlayerList.Character.CoolCMDsIsOnFire end) == false then
  4438. local Tag = Instance.new("Model", PlayerList.Character)
  4439. Tag.Name = "CoolCMDsIsOnFire"
  4440. coroutine.wrap(function()
  4441. if Duration <= 0 then return end
  4442. wait(Duration)
  4443. Tag:Remove()
  4444. end)()
  4445. coroutine.wrap(function()
  4446. while true do
  4447. if PlayerList.Character == nil then break end
  4448. if PlayerList.Character:FindFirstChild("Humanoid") == nil or PlayerList.Character:FindFirstChild("CoolCMDsIsOnFire") == nil then break end
  4449. if PlayerList.Character.Humanoid.Health <= 0 then break end
  4450. PlayerList.Character.Humanoid:TakeDamage(0.25)
  4451. wait()
  4452. end
  4453. Tag:Remove()
  4454. end)()
  4455. for _, Part in pairs(PlayerList.Character:children()) do
  4456. if pcall(function() local _ = Part.CFrame end) == true then
  4457. local FireHolder = Instance.new("Part", game:service("Workspace"))
  4458. FireHolder.Name = "FireHolder"
  4459. FireHolder.formFactor = "Symmetric"
  4460. FireHolder.Size = Vector3.new(1, 1, 1)
  4461. FireHolder.Anchored = true
  4462. FireHolder.TopSurface = 0
  4463. FireHolder.BottomSurface = 0
  4464. FireHolder.Transparency = 1
  4465. FireHolder.CanCollide = false
  4466. local Fire = Instance.new("Fire", FireHolder)
  4467. Fire.Heat = 10
  4468. Fire.Size = 5
  4469. local Sound = Instance.new("Sound", FireHolder)
  4470. Sound.Looped = true
  4471. Sound.Pitch = math.random(90, 110) / 100
  4472. Sound.Volume = 1
  4473. Sound.SoundId = "http://www.Roblox.com/Asset/?id=31760113"
  4474. Sound:Play()
  4475. coroutine.wrap(function()
  4476. while pcall(function() local _ = PlayerList.Character.CoolCMDsIsOnFire end) == true do
  4477. FireHolder.CFrame = CFrame.new(Part.CFrame.p)
  4478. wait()
  4479. end
  4480. Fire.Enabled = false
  4481. for i = 1, 0, -0.05 do
  4482. Sound.Volume = i
  4483. wait()
  4484. end
  4485. Sound:Stop()
  4486. wait(3)
  4487. FireHolder:Remove()
  4488. end)()
  4489. end
  4490. end
  4491. end
  4492. end
  4493. end
  4494. end, "Ignite", "Set players alight. Fire damages a player by 0.25 per milisecond.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "duration (in seconds, <= 0 for infinite)")
  4495.  
  4496. CoolCMDs.Functions.CreateCommand({"unignite", "uni", "ui"}, 1, function(Message, MessageSplit, Speaker, Self)
  4497. for i = 1, #MessageSplit do
  4498. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4499. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) then
  4500. pcall(function() PlayerList.Character.CoolCMDsIsOnFire:Remove() end)
  4501. end
  4502. end
  4503. end
  4504. end, "Unignite", "Put a player out.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  4505.  
  4506. CoolCMDs.Functions.CreateCommand("kick", 5, function(Message, MessageSplit, Speaker, Self)
  4507. for i = 1, #MessageSplit do
  4508. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4509. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList ~= Speaker then
  4510. CoolCMDs.Functions.CreateMessage("Hint", "[Kick] Player(s) removed.", 2.5, Speaker)
  4511. pcall(function() PlayerList:Remove() end)
  4512. end
  4513. end
  4514. end
  4515. end, "Kick", "Kick (remove) a player from the game.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  4516. ---------------------------------------BANNEDPLAY
  4517. CoolCMDs.Functions.CreateCommand({"banish", "ban"}, 5, function(Message, MessageSplit, Speaker, Self)
  4518. if Self.Bans == nil then Self.Bans = {} end
  4519. if Self.CatchBan == nil then
  4520. Self.CatchBan = game:service("Players").ChildAdded:connect(function(Player)
  4521. for i = 1, #Self.Bans do
  4522. if string.match(Player.Name:lower(), Self.Bans[i]:lower()) then
  4523. CoolCMDs.Functions.CreateMessage("Message", "Full Protection: a Banned player (" ..Player.Name.. ") has been disconnected for trying to re-enter.", 2.5)
  4524. wait()
  4525. pcall(function() Player:Remove() end)
  4526. -------------------------------------------------------------
  4527. end
  4528. end
  4529. end)
  4530. end
  4531. local Type = MessageSplit[1]:lower()
  4532. if Type == "player" or Type == "p" then
  4533. local Completed = false
  4534. for i = 2, #MessageSplit do
  4535. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4536. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList ~= Speaker then
  4537. table.insert(Self.Bans, PlayerList.Name:lower())
  4538. pcall(function() PlayerList:Remove() end)
  4539. Completed = true
  4540. end
  4541. end
  4542. end
  4543. if Completed == true then
  4544. CoolCMDs.Functions.CreateMessage("Message", "Full Protection: Player(s) banned.", 2.5, Speaker)
  4545. else
  4546. CoolCMDs.Functions.CreateMessage("Message", "ERROR: Player(s) not found!", 2.5, Speaker)
  4547. end
  4548. elseif Type == "name" or Type == "n" then
  4549. for i = 2, #MessageSplit do
  4550. table.insert(Self.Bans, MessageSplit[i]:lower())
  4551. end
  4552. CoolCMDs.Functions.CreateMessage("Hint", "[Ban] Names added.", 2.5, Speaker)
  4553. elseif Type == "retgmove" or Type == "fbr" then
  4554. local Completed = false
  4555. for i = 2, #MessageSplit do
  4556. for i = 1, #Self.Bans do
  4557. if string.match(Self.Bans:lower(), MessageSplit[i]:lower()) then
  4558. table.remove(Self.Bans, i)
  4559. end
  4560. end
  4561. end
  4562. if Completed == true then
  4563. CoolCMDs.Functions.CreateMessage("Hint", "[Ban] Name(s) removed.", 2.5, Speaker)
  4564. else
  4565. CoolCMDs.Functions.CreateMessage("Hint", "[Ban] Name(s) not found!", 2.5, Speaker)
  4566. end
  4567. elseif Type == "remove all" or Type == "ra" then
  4568. Self.Bans = {}
  4569. CoolCMDs.Functions.CreateMessage("Hint", "[Ban] Ban table reset.", 2.5, Speaker)
  4570. end
  4571. end, "Ban", "Place a ban (removes the player on entering) on a player from the game. Player: Ban and remove a player from the game. Name: Add a name to the ban list. Remove, Remove All: Remove a name or remove all names from the ban list.", "[[player, p], [name, n], [remove, r]]" ..CoolCMDs.Data.SplitCharacter.. "player" ..CoolCMDs.Data.SplitCharacter.. "[...], remove all")
  4572.  
  4573. CoolCMDs.Functions.CreateCommand({"slap", "s"}, 1, function(Message, MessageSplit, Speaker, Self)
  4574. if #MessageSplit < 3 then return false end
  4575. local Speed = tonumber(MessageSplit[#MessageSplit - 1])
  4576. local Strength = tonumber(MessageSplit[#MessageSplit])
  4577. if Speed == nil then Speed = 10 end
  4578. if Strength == nil then Strength = 0 end
  4579. Speed = math.abs(Speed)
  4580. Strength = math.abs(Strength)
  4581. for i = 1, #MessageSplit - 2 do
  4582. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4583. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then
  4584. if PlayerList.Character:FindFirstChild("Humanoid") ~= nil then
  4585. PlayerList.Character.Humanoid:TakeDamage(Strength)
  4586. PlayerList.Character.Humanoid.Sit = true
  4587. end
  4588. for _, Children in pairs(PlayerList.Character:children()) do
  4589. if Children:IsA("BasePart") then
  4590. Children.Velocity = Children.Velocity + Vector3.new(math.random(-Speed, Speed), math.random(-Speed, Speed), math.random(-Speed, Speed))
  4591. Children.RotVelocity = Children.RotVelocity + Vector3.new(math.random(-Speed, Speed), math.random(-Speed, Speed), math.random(-Speed, Speed))
  4592. end
  4593. end
  4594. end
  4595. end
  4596. end
  4597. end, "Slap", "Slap people.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "speed" ..CoolCMDs.Data.SplitCharacter.. "strength")
  4598.  
  4599. CoolCMDs.Functions.CreateCommand({"blocker", "blk"}, 3, function(Message, MessageSplit, Speaker, Self)
  4600. if Self.Activated == nil then Self.Activated = false end
  4601. if Self.Type == nil then Self.Type = 1 end
  4602. if Self.Names == nil then Self.Names = {} end
  4603. if Self.ClassNames == nil then Self.ClassNames = {} end
  4604. if MessageSplit[1]:lower() == "on" then
  4605. Self.Activated = true
  4606. CoolCMDs.Functions.CreateMessage("Hint", "[Blocker] Activated.", 2.5, Speaker)
  4607. end
  4608. if MessageSplit[1]:lower() == "off" then
  4609. Self.Activated = false
  4610. CoolCMDs.Functions.CreateMessage("Hint", "[Blocker] Deactivated.", 2.5, Speaker)
  4611. end
  4612. if MessageSplit[1]:lower() == "name" then
  4613. for i = 2, #MessageSplit do
  4614. table.insert(Self.Names, MessageSplit[i])
  4615. end
  4616. CoolCMDs.Functions.CreateMessage("Hint", "[Blocker] Added.", 2.5, Speaker)
  4617. end
  4618. if MessageSplit[1]:lower() == "class" then
  4619. for i = 2, #MessageSplit do
  4620. table.insert(Self.ClassNames, MessageSplit[i])
  4621. end
  4622. CoolCMDs.Functions.CreateMessage("Hint", "[Blocker] Added.", 2.5, Speaker)
  4623. end
  4624. if MessageSplit[1]:lower() == "type" then
  4625. if MessageSplit[2] == "match" or MessageSplit[2] == "1" then
  4626. Self.Type = 1
  4627. CoolCMDs.Functions.CreateMessage("Hint", "[Blocker] Set evaluation type to match (1).", 2.5, Speaker)
  4628. elseif MessageSplit[2] == "exact" or MessageSplit[2] == "2" then
  4629. Self.Type = 2
  4630. CoolCMDs.Functions.CreateMessage("Hint", "[Blocker] Set evaluation type to exact (2).", 2.5, Speaker)
  4631. end
  4632. end
  4633. if MessageSplit[1]:lower() == "gbku45uk" then
  4634. for i = 2, #MessageSplit do
  4635. for x = 1, #Self.Names do
  4636. if string.match(Self.Names[x], MessageSplit[i]) then
  4637. table.remove(Self.Names, x)
  4638. end
  4639. end
  4640. for x = 1, #Self.ClassNames do
  4641. if string.match(Self.ClassNames[x], MessageSplit[i]) then
  4642. table.remove(Self.ClassNames, x)
  4643. end
  4644. end
  4645. end
  4646. CoolCMDs.Functions.CreateMessage("Hint", "[Blocker] Removed.", 2.5, Speaker)
  4647. end
  4648. if MessageSplit[1]:lower() == "grtuiehrguhb5t5y45g5" then
  4649. Self.Names = {}
  4650. Self.ClassNames = {}
  4651. CoolCMDs.Functions.CreateMessage("Hint", "[Blocker] Removed all entries.", 2.5, Speaker)
  4652. end
  4653. if Self.Activated == true then
  4654. if Self.DescendantAdded ~= nil then
  4655. Self.DescendantAdded:disconnect()
  4656. Self.DescendantAdded = nil
  4657. end
  4658. Self.DescendantAdded = game.DescendantAdded:connect(function(Object)
  4659. local Remove = false
  4660. for i = 1, #Self.Names do
  4661. if (Self.Type == 1 and string.match(Object.Name:lower(), Self.Names[i]:lower())) or (Self.Type == 2 and Object.Name:lower() == Self.Names[i]:lower()) then
  4662. Remove = true
  4663. end
  4664. end
  4665. for i = 1, #Self.ClassNames do
  4666. if (Self.Type == 1 and string.match(Object.className:lower(), Self.ClassNames[i]:lower())) or (Self.Type == 2 and Object.className:lower() == Self.ClassNames[i]:lower()) then
  4667. Remove = true
  4668. end
  4669. end
  4670. if Remove == true then
  4671. CoolCMDs.Functions.CreateMessage("Hint", "[Blocker] \"" ..Object.className.. " object (" ..Object.Name.. ") is blocked and has been removed.", 10)
  4672. pcall(function() Object.Disabled = true end)
  4673. pcall(function() Object.Active = false end)
  4674. pcall(function() Object.Activated = false end)
  4675. pcall(function() Object:Remove() end)
  4676. end
  4677. end)
  4678. else
  4679. if Self.DescendantAdded ~= nil then
  4680. Self.DescendantAdded:disconnect()
  4681. Self.DescendantAdded = nil
  4682. end
  4683. end
  4684. end, "Blocker", "Blocks objects by name or className.", "on, off, name" ..CoolCMDs.Data.SplitCharacter.. "object name, class" ..CoolCMDs.Data.SplitCharacter.. "object className, type" ..CoolCMDs.Data.SplitCharacter.. "[match, exact]")
  4685.  
  4686. CoolCMDs.Functions.CreateCommand({"characterappearance", "ca"}, 1, function(Message, MessageSplit, Speaker, Self)
  4687. for i = 2, #MessageSplit - (MessageSplit[1]:lower() == "default" and 0 or 1) do
  4688. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4689. if string.match(PlayerList.Name:lower(), MessageSplit[i]) then
  4690. if MessageSplit[1] == "default" then
  4691. PlayerList.CharacterAppearance = "http://www.Roblox.com/Asset/CharacterFetch.ashx?userId=" ..PlayerList.userId
  4692. elseif MessageSplit[1] == "set" then
  4693. PlayerList.CharacterAppearance = MessageSplit[#MessageSplit]
  4694. elseif MessageSplit[1] == "userid" then
  4695. PlayerList.CharacterAppearance = "http://www.Roblox.com/Asset/CharacterFetch.ashx?userId=" ..tonumber(MessageSplit[#MessageSplit])
  4696. elseif MessageSplit[1] == "assetid" then
  4697. PlayerList.CharacterAppearance = "http://www.Roblox.com/Asset/?id=" ..tonumber(MessageSplit[#MessageSplit])
  4698. end
  4699. end
  4700. end
  4701. end
  4702. end, "CharacterAppearance Editor", "See command name.", "default, set, userid, assetid" ..CoolCMDs.Data.SplitCharacter.. "player" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "[url, userid, assetid]")
  4703.  
  4704. CoolCMDs.Functions.CreateCommand({"character", "char", "ch"}, 1, function(Message, MessageSplit, Speaker, Self)
  4705. if #MessageSplit < 2 then return end
  4706. for i = 2, #MessageSplit do
  4707. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4708. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then
  4709. if PlayerList.Character:FindFirstChild("Humanoid") ~= nil and PlayerList.Character:FindFirstChild("Torso") ~= nil then
  4710. if MessageSplit[1]:lower() == "sit" then
  4711. PlayerList.Character.Humanoid.Sit = true
  4712. elseif MessageSplit[1]:lower() == "jump" then
  4713. PlayerList.Character.Humanoid.Jump = true
  4714. elseif MessageSplit[1]:lower() == "platformstand" or MessageSplit[1]:lower() == "ps" then
  4715. PlayerList.Character.Humanoid.PlatformStand = true
  4716. elseif MessageSplit[1]:lower() == "trip" then
  4717. PlayerList.Character.Humanoid.PlatformStand = true
  4718. PlayerList.Character.Torso.RotVelocity = Vector3.new(math.random(-25, 25), math.random(-25, 25), math.random(-25, 25))
  4719. coroutine.wrap(function()
  4720. wait(0.5)
  4721. PlayerList.Character.Humanoid.PlatformStand = false
  4722. end)()
  4723. elseif MessageSplit[1]:lower() == "stand" then
  4724. PlayerList.Character.Humanoid.Sit = false
  4725. PlayerList.Character.Humanoid.PlatformStand = false
  4726. end
  4727. end
  4728. end
  4729. end
  4730. end
  4731. end, "Character Editor", "Make people do things.", "sit, jump, [platformstand, ps], trip, stand" ..CoolCMDs.Data.SplitCharacter.. "player" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  4732.  
  4733. CoolCMDs.Functions.CreateCommand("seisure", 1, function(Message, MessageSplit, Speaker, Self)
  4734. if #MessageSplit < 2 then return false end
  4735. local Duration = tonumber(MessageSplit[#MessageSplit])
  4736. if Duration == nil then Duration = math.random(5, 10) end
  4737. for i = 1, #MessageSplit - 1 do
  4738. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4739. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then
  4740. if PlayerList.Character:FindFirstChild("Humanoid") ~= nil then
  4741. coroutine.wrap(function()
  4742. for i = 0, Duration, 0.25 do
  4743. if PlayerList == nil then break end
  4744. if PlayerList.Character == nil then break end
  4745. if PlayerList.Character:FindFirstChild("Humanoid") == nil then break end
  4746. PlayerList.Character.Humanoid.PlatformStand = math.random(1, 3) == 1 and false or true
  4747. for _, Part in pairs(PlayerList.Character:children()) do
  4748. if Part:IsA("BasePart") then
  4749. Part.RotVelocity = Part.RotVelocity + Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  4750. end
  4751. end
  4752. wait(0.25)
  4753. end
  4754. pcall(function() PlayerList.Character.Humanoid.PlatformStand = false end)
  4755. end)()
  4756. end
  4757. end
  4758. end
  4759. end
  4760. end, "Seisure", "Make people have seisures.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "time (seconds)")
  4761.  
  4762. CoolCMDs.Functions.CreateCommand("rocket", 1, function(Message, MessageSplit, Speaker, Self)
  4763. if #MessageSplit < 3 then return false end
  4764. local Speed = tonumber(MessageSplit[#MessageSplit - 1])
  4765. local Duration = tonumber(MessageSplit[#MessageSplit])
  4766. if Speed == nil then Speed = 100 end
  4767. if Duration == nil then Duration = math.random(5, 10) end
  4768. for i = 1, #MessageSplit - 2 do
  4769. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4770. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then
  4771. for _, Children in pairs(PlayerList.Character:children()) do
  4772. if Children:IsA("BasePart") then
  4773. coroutine.wrap(function()
  4774. local BodyVelocity = Instance.new("BodyVelocity", Children)
  4775. BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  4776. local Fire = Instance.new("Fire", Children)
  4777. Fire.Heat = 0
  4778. Fire.Size = 3
  4779. local Smoke = Instance.new("Smoke", Children)
  4780. Smoke.Enabled = false
  4781. Smoke.RiseVelocity = 0
  4782. Smoke.Size = 2.5
  4783. local Sound = Instance.new("Sound", Children)
  4784. Sound.SoundId = "rbxasset://sounds/Shoulder fired rocket.wav"
  4785. Sound.Pitch = 0.8
  4786. Sound.Volume = 1
  4787. Sound:Play()
  4788. Children.Velocity = Children.Velocity + Vector3.new(0, 1000, 0)
  4789. wait(0.25)
  4790. Fire.Size = 10
  4791. Smoke.Enabled = true
  4792. local Sound = Instance.new("Sound", Children)
  4793. Sound.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
  4794. Sound.Pitch = 0.5
  4795. Sound.Volume = 1
  4796. Sound:Play()
  4797. coroutine.wrap(function()
  4798. for i = 0, 1, 0.01 do
  4799. BodyVelocity.velocity = Vector3.new(0, Speed * i, 0)
  4800. wait()
  4801. end
  4802. BodyVelocity.velocity = Vector3.new(0, Speed, 0)
  4803. end)()
  4804. if Duration ~= 0 then
  4805. coroutine.wrap(function()
  4806. wait(Duration)
  4807. BodyVelocity:Remove()
  4808. local Explosion = Instance.new("Explosion", workspace)
  4809. Explosion.Position = Children.CFrame.p
  4810. Explosion.BlastPressure = 50000
  4811. Explosion.BlastRadius = 25
  4812. Fire.Enabled = false
  4813. Smoke.Enabled = false
  4814. Children:BreakJoints()
  4815. end)()
  4816. end
  4817. end)()
  4818. end
  4819. end
  4820. wait(math.random(1, 10) / 10)
  4821. end
  4822. end
  4823. end
  4824. end, "Rocket", "Fires bodyparts into the air that explode after a set time.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "speed" ..CoolCMDs.Data.SplitCharacter.. "duration (in seconds)")
  4825.  
  4826. CoolCMDs.Functions.CreateCommand({"jail", "j"}, 1, function(Message, MessageSplit, Speaker, Self)
  4827. for i = 1, #MessageSplit do
  4828. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4829. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then
  4830. if PlayerList.Character:FindFirstChild("Torso") ~= nil then
  4831. local Position = PlayerList.Character.Torso.CFrame
  4832. local IsJailed = Instance.new("IntValue")
  4833. IsJailed.Name = "IsJailed"
  4834. IsJailed.Parent = PlayerList
  4835. coroutine.wrap(function()
  4836. while IsJailed.Parent == PlayerList and PlayerList.Parent ~= nil do
  4837. if PlayerList.Character ~= nil then
  4838. if PlayerList.Character:FindFirstChild("Torso") ~= nil then
  4839. if (PlayerList.Character.Torso.CFrame.p - Position.p).magnitude > 10 then
  4840. PlayerList.Character.Torso.CFrame = Position * CFrame.new(0, 1.5, 0)
  4841. PlayerList.Character.Torso.Velocity = Vector3.new(0, 0, 0)
  4842. PlayerList.Character.Torso.RotVelocity = Vector3.new(0, 0, 0)
  4843. CoolCMDs.Functions.CreateMessage("Hint", (function()
  4844. local Text = math.random(1, 12)
  4845. if Text == 1 then
  4846. return "You were put here for a reason."
  4847. elseif Text == 2 then
  4848. return "This is your new home; stay in it."
  4849. elseif Text == 3 then
  4850. return "You can't escape, you know."
  4851. elseif Text == 4 then
  4852. return "Resistance is futile!"
  4853. elseif Text == 5 then
  4854. return "You, plus jail, equals: Stop trying to get out of it."
  4855. elseif Text == 6 then
  4856. return "It's called a \"jail\" for a reason."
  4857. elseif Text == 7 then
  4858. return "This is why we can't have nice things."
  4859. elseif Text == 8 then
  4860. return "You are a reason why we can't have nice things."
  4861. elseif Text == 9 then
  4862. return "Not even God himself can save you now."
  4863. elseif Text == 10 then
  4864. return "Where is your God now?"
  4865. elseif Text == 11 then
  4866. return "Jailed forever."
  4867. elseif Text == 12 then
  4868. return "Beat your head on the bars a few times, that might help."
  4869. end
  4870. end)(), 5, PlayerList)
  4871. end
  4872. end
  4873. end
  4874. wait(math.random(1, 10) / 100)
  4875. end
  4876. for _, Part in pairs(game:service("Workspace"):children()) do
  4877. if string.match(Part.Name, "JailPart") and string.match(Part.Name, PlayerList.Name) then
  4878. pcall(function() Part:Remove() end)
  4879. end
  4880. end
  4881. end)()
  4882. wait()
  4883. local JailPart1 = Instance.new("Part")
  4884. JailPart1.Name = PlayerList.Name.. "JailPart"
  4885. JailPart1.TopSurface = 0
  4886. JailPart1.BottomSurface = 0
  4887. JailPart1.BrickColor = BrickColor.new("Really black")
  4888. JailPart1.formFactor = "Custom"
  4889. JailPart1.Anchored = true
  4890. JailPart1.CanCollide = true
  4891. JailPart1.Size = Vector3.new(11, 1, 11)
  4892. local JailPart2 = JailPart1:Clone()
  4893. JailPart2.Size = Vector3.new(0.5, 8, 0.5)
  4894. local JailPart = JailPart1:Clone()
  4895. JailPart.CFrame = Position * CFrame.new(0, -2, 0)
  4896. JailPart.Parent = game:service("Workspace")
  4897. for i = 5, -4, -1 do
  4898. local JailPart = JailPart2:Clone()
  4899. JailPart.CFrame = Position * CFrame.new(-5, 2, i)
  4900. JailPart.Parent = game:service("Workspace")
  4901. end
  4902. for i = -5, 4, 1 do
  4903. local JailPart = JailPart2:Clone()
  4904. JailPart.CFrame = Position * CFrame.new(i, 2, -5)
  4905. JailPart.Parent = game:service("Workspace")
  4906. end
  4907. for i = -5, 4, 1 do
  4908. local JailPart = JailPart2:Clone()
  4909. JailPart.CFrame = Position * CFrame.new(5, 2, i)
  4910. JailPart.Parent = game:service("Workspace")
  4911. end
  4912. for i = 5, -4, -1 do
  4913. local JailPart = JailPart2:Clone()
  4914. JailPart.CFrame = Position * CFrame.new(i, 2, 5)
  4915. JailPart.Parent = game:service("Workspace")
  4916. end
  4917. local JailPart = JailPart1:Clone()
  4918. JailPart.CFrame = Position * CFrame.new(0, 6, 0)
  4919. JailPart.Parent = game:service("Workspace")
  4920. end
  4921. end
  4922. end
  4923. end
  4924. end, "Jail", "Jail people.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  4925.  
  4926. CoolCMDs.Functions.CreateCommand({"unjail", "unj", "uj"}, 1, function(Message, MessageSplit, Speaker, Self)
  4927. for i = 1, #MessageSplit do
  4928. for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do
  4929. if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then
  4930. for _, Part in pairs(PlayerList:children()) do
  4931. if string.match(Part.Name, "IsJailed") then
  4932. Part:Remove()
  4933. end
  4934. end
  4935. end
  4936. end
  4937. end
  4938. end, "Unjail", "Unjail people.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]")
  4939.  
  4940. CoolCMDs.Functions.CreateCommand({"/base", "rb"}, 1, function(Message, MessageSplit, Speaker, Self)
  4941. for _, Part in pairs(game:service("Workspace"):children()) do
  4942. if Part.Name == "Base" then
  4943. Part:Remove()
  4944. end
  4945. end
  4946. Base = Instance.new("Part")
  4947. Base.Name = "Base"
  4948. Base.BrickColor = BrickColor.new("Dark green")
  4949. Base.TopSurface = "Studs"
  4950. Base.BottomSurface = "Smooth"
  4951. Base.formFactor = "Custom"
  4952. Base.Size = Vector3.new(1000, 5, 1000)
  4953. Base.CFrame = CFrame.new(0, -2, 0)
  4954. Base.Locked = true
  4955. Base.Anchored = true
  4956. Base.Parent = game:service("Workspace")
  4957. end, "Rebase", "Make a new base.", "None")
  4958.  
  4959. CoolCMDs.Functions.CreateCommand({"/spawn", "sp"}, 1, function(Message, MessageSplit, Speaker, Self)
  4960. local Part = Instance.new("Part")
  4961. Part.Name = "Base"
  4962. Part.BrickColor = BrickColor.new("Really black")
  4963. Part.TopSurface = "Smooth"
  4964. Part.BottomSurface = "Smooth"
  4965. Part.formFactor = "Custom"
  4966. Part.Size = Vector3.new(9, 1, 9)
  4967. Part.CFrame = CFrame.new(0, 1, 0)
  4968. Part.Locked = true
  4969. Part.Anchored = true
  4970. Part.Parent = game:service("Workspace")
  4971. local Part = Part:Clone()
  4972. Part.Size = Vector3.new(0.5, 8, 0.5)
  4973. Part.CFrame = CFrame.new(4, 5.5, 4)
  4974. Part.Parent = game:service("Workspace")
  4975. local Part = Part:Clone()
  4976. Part.CFrame = CFrame.new(4, 5.5, -4)
  4977. Part.Parent = game:service("Workspace")
  4978. local Part = Part:Clone()
  4979. Part.CFrame = CFrame.new(-4, 5.5, -4)
  4980. Part.Parent = game:service("Workspace")
  4981. local Part = Part:Clone()
  4982. Part.CFrame = CFrame.new(-4, 5.5, 4)
  4983. Part.Parent = game:service("Workspace")
  4984. local Part = Part:Clone()
  4985. Part.Size = Vector3.new(0.5, 0.5, 8)
  4986. Part.CFrame = CFrame.new(4, 9.75, -0.25)
  4987. Part.Parent = game:service("Workspace")
  4988. local Part = Part:Clone()
  4989. Part.Size = Vector3.new(8, 0.5, 0.5)
  4990. Part.CFrame = CFrame.new(0.25, 9.75, 4)
  4991. Part.Parent = game:service("Workspace")
  4992. local Part = Part:Clone()
  4993. Part.Size = Vector3.new(0.5, 0.5, 8)
  4994. Part.CFrame = CFrame.new(-4, 9.75, 0.25)
  4995. Part.Parent = game:service("Workspace")
  4996. local Part = Part:Clone()
  4997. Part.Size = Vector3.new(8, 0.5, 0.5)
  4998. Part.CFrame = CFrame.new(-0.25, 9.75, -4)
  4999. Part.Parent = game:service("Workspace")
  5000. local Part1 = Instance.new("Part")
  5001. Part1.Name = "Base"
  5002. Part1.BrickColor = BrickColor.new("Dark stone grey")
  5003. Part1.TopSurface = "Smooth"
  5004. Part1.BottomSurface = "Smooth"
  5005. Part1.formFactor = "Custom"
  5006. Part1.Size = Vector3.new(6, 0.25, 6)
  5007. Part1.CFrame = CFrame.new(0, 1.625, 0)
  5008. Part1.Locked = true
  5009. Part1.Anchored = true
  5010. Part1.Parent = game:service("Workspace")
  5011. local Part2 = Instance.new("SpawnLocation")
  5012. Part2.Name = "Base"
  5013. Part2.BrickColor = BrickColor.new("Dark stone grey")
  5014. Part2.TopSurface = "Smooth"
  5015. Part2.BottomSurface = "Smooth"
  5016. Part2.formFactor = "Custom"
  5017. Part2.Size = Vector3.new(4, 0.25, 4)
  5018. Part2.CFrame = CFrame.new(0, 1.875, 0)
  5019. Part2.Locked = true
  5020. Part2.Anchored = true
  5021. Part2.Parent = game:service("Workspace")
  5022. coroutine.wrap(function()
  5023. for i = 0, math.huge, 0.005 do
  5024. if Part1.Parent == nil or Part2.Parent == nil then break end
  5025. Part1.CFrame = CFrame.new(Part1.CFrame.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(math.sin(i) * 360 * -5.25), 0)
  5026. Part2.CFrame = CFrame.new(Part2.CFrame.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(math.cos(i) * 360 * 2), 0)
  5027. wait()
  5028. end
  5029. end)()
  5030. end, "Spawn", "Make a spawn.", "None")
  5031.  
  5032. CoolCMDs.Functions.CreateCommand("/shutdown", 1, function(Message, MessageSplit, Speaker, Self)
  5033. local Hint = Instance.new("Hint", game:service("Workspace"))
  5034. for i = 5, 0, -1 do
  5035. Hint.Text = "Shutting down server in " ..i.. "..."
  5036. wait(1)
  5037. end
  5038. pcall(function() Instance.new("ManualSurfaceJointInstance", game:service("Workspace")) end)
  5039. wait(0.5)
  5040. Hint.Text = "Shutdown failed!"
  5041. wait(5)
  5042. Hint:Remove()
  5043. end, "Shutdown", "Kill the server.", "None")
  5044.  
  5045. CoolCMDs.Functions.CreateCommand("/remove/"..CoolCMDs.Data.AccessCode, 5, function(Message, MessageSplit, Speaker, Self)
  5046. loadstring([==[_G.CoolCMDs[CoolCMDs.Initialization.InstanceNumber]:Remove(CoolCMDs.Data.AccessCode)]==])()
  5047. end, "Remove Script", "Remove CoolCMDs.", "None")
  5048. --[[ --Command template...
  5049. CoolCMDs.Functions.CreateCommand("[ Command Here ]", 5, function(Message, MessageSplit, Speaker, Self)
  5050. -- [ Put stuff here ]
  5051. end, "None", "None", "None")
  5052. --]]
  5053. -- Davbot commands!!!
  5054. -- Sadly, most of these don't work :(
  5055. CoolCMDs.Functions.CreateCommand("map takeover", 5, function(Message, MessageSplit, Speaker, Self)
  5056. Notify("Inserting TAKEOVER for " ..Speaker.Name.. ". PLEASE WAIT.")
  5057. m = Game:GetService("InsertService"):LoadAsset(61598425)
  5058. m.Parent = Workspace
  5059. m:MakeJoints()
  5060. Workspace:BreakJoints()
  5061. end, "None", "None", "None")
  5062.  
  5063. CoolCMDs.Functions.CreateCommand("space station", 5, function(Message, MessageSplit, Speaker, Self)
  5064. Notify("Yes master " ..Speaker.Name.. ", now building a space station.")
  5065. m = Game:GetService("InsertService"):LoadAsset(19401551)
  5066. m.Parent = Workspace
  5067. m:MakeJoints()
  5068. Workspace:BreakJoints()
  5069. end, "None", "None", "None")
  5070.  
  5071. CoolCMDs.Functions.CreateCommand("delag", 5, function(Message, MessageSplit, Speaker, Self)
  5072. Notify("Now debugging the server...")
  5073. wait(1)
  5074. pcall(function() workspace.Terrain:Clear() end) --no moar terrain
  5075. pcall(function()
  5076. table.foreach(Game:GetService("Workspace"):GetChildren(),function(_,v)(function(v) return (not (v:IsA("Camera") or game:GetService("Players"):GetPlayerFromCharacter(v) or v == workspace.Terrain) and v:remove()) end)(v) end)
  5077. table.foreach(Game:GetService("Lighting"):GetChildren(),function(_,v)(function(v) return (not (false and v:remove())) end)(v)end)
  5078. table.foreach(Game:GetService("StarterGui"):GetChildren(),function(_,v)(function(v) return (not (false and v:remove())) end)(v)end)
  5079. table.foreach(Game:GetService("StarterPack"):GetChildren(),function(_,v)(function(v) return (not (false and v:remove())) end)(v)end)
  5080. table.foreach(Game:GetService("Teams"):GetChildren(),function(_,v)(function(v) return (not (false and v:remove())) end)(v)end)
  5081. table.foreach(Game:GetService("Debris"):GetChildren(),function(_,v)(function(v) return (not (false and v:remove())) end)(v)end)
  5082. end)
  5083. ---Several cleans to ensure server safety.
  5084. local Base = Instance.new("Part")
  5085. Base.Parent = Workspace
  5086. Base.Name = "Base"
  5087. Base.Anchored = true
  5088. Base.Position = Vector3.new(0, 0, 0)
  5089. Base.CFrame = CFrame.new(0, 0, 0)
  5090. Base.Size = Vector3.new(512, 1.2, 512)
  5091. Base.TopSurface = ("Universal")
  5092. Base.BrickColor = BrickColor.Green()
  5093. Base.Locked = true
  5094. local Spawn = Instance.new("SpawnLocation")
  5095. Spawn.Parent = Workspace
  5096. Spawn.Anchored = true
  5097. Spawn.Locked = true
  5098. Spawn.Position = Vector3.new(0, 1.2, 0)
  5099. Spawn.formFactor = ("Symmetric")
  5100. Spawn.Size = Vector3.new(5, 1, 5)
  5101. Spawn.BrickColor = BrickColor.Blue()
  5102. --TODOQUICKSCRIPT
  5103. local QuickScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"]
  5104. QuickScript.Name = "RotationScript"
  5105. QuickScript.Debug:Remove()
  5106. QuickScript.NewSource.Value = [[
  5107. while true do
  5108. script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(.05), 0)
  5109. wait()
  5110. end
  5111. ]]
  5112. QuickScript.Parent = Spawn
  5113.  
  5114. for i, v in pairs(Players:GetChildren()) do
  5115. if v.Character ~= nil then
  5116. v.Character.Parent = Workspace
  5117. end
  5118. end
  5119. wait(2)
  5120. Notify("Lag Removal Complete.")
  5121. end, "None", "None", "None")
  5122.  
  5123. CoolCMDs.Functions.CreateCommand("lagmeter", 5, function(Message, MessageSplit, Speaker, Self)
  5124. g = game:GetService("InsertService"):LoadAsset(59383950)
  5125. g.Parent = Workspace
  5126. for i, v in pairs(Players:GetChildren()) do
  5127. if v:FindFirstChild("PlayerGui") ~= nil then
  5128. c = g.ThemedBanner:Clone()
  5129. c.Parent = v.PlayerGui
  5130. end
  5131. end
  5132. end, "None", "None", "None")
  5133.  
  5134. CoolCMDs.Functions.CreateCommand("unspin", 5, function(Message, MessageSplit, Speaker, Self)
  5135. local msg = Message
  5136. for word in msg:gmatch("%w+") do
  5137. local player = matchPlayer(word)
  5138. if (player ~= nil) then
  5139. if (player.Character:FindFirstChild("Torso") ~= nil) then
  5140. if (player.Character.Torso:FindFirstChild("Spin") ~= nil) then
  5141. player.Character.Torso.Spin:Remove()
  5142. end
  5143. end
  5144. end
  5145. end
  5146. end, "None", "None", "None")
  5147.  
  5148. CoolCMDs.Functions.CreateCommand("unhover", 5, function(Message, MessageSplit, Speaker, Self)
  5149. local msg = Message
  5150. for word in msg:gmatch("%w+") do
  5151. local player = matchPlayer(word)
  5152. if (player ~= nil) then
  5153. if (player.Character:FindFirstChild("Torso") ~= nil) then
  5154. if (player.Character.Torso:FindFirstChild("HoverScript") ~= nil) then
  5155. if (player.Character.Torso:FindFirstChild("BodyPositionHOV") ~= nil) then
  5156. if (player.Character.Torso:FindFirstChild("BodyGyroHOV") ~= nil) then
  5157. if (player.Character.Torso:FindFirstChild("PewPew") ~= nil) then
  5158. player.Character.Torso.HoverScript:Remove()
  5159. player.Character.Torso.BodyPositionHOV:Remove()
  5160. player.Character.Torso.BodyGyroHOV:Remove()
  5161. player.Character.Torso.PewPew:Stop()
  5162. player.Character.Torso.PewPew:Remove()
  5163. end
  5164. end
  5165. end
  5166. end
  5167. end
  5168. end
  5169. end
  5170. end, "None", "None", "None")
  5171.  
  5172. CoolCMDs.Functions.CreateCommand("hover", 5, function(msg, MessageSplit, Speaker, Self)
  5173. for word in msg:gmatch("%w+") do
  5174. local player = matchPlayer(word)
  5175. if (player ~= nil) then
  5176. if (player.Character:FindFirstChild("Torso") ~= nil) then
  5177. if (player.Character.Torso:FindFirstChild("HoverScript") == nil) then
  5178. local QuickScript = Game:service("InsertService"):LoadAsset(54471119)["QuickScript"]
  5179. QuickScript.Name = "HoverScript"
  5180. QuickScript.Debug:Remove()
  5181. QuickScript.NewSource.Value = [[
  5182. local torso = script.Parent
  5183. PewPew = Instance.new("Sound")
  5184. PewPew.Name = "PewPew"
  5185. PewPew.SoundId = "http://www.roblox.com/asset/?id=34315534"
  5186. PewPew.Parent = torso
  5187. PewPew.Volume = 0.5
  5188. PewPew.Looped = true
  5189. PewPew:Play()
  5190. local bodyPos = Instance.new("BodyPosition")
  5191. bodyPos.P = torso:GetMass() * 50000
  5192. bodyPos.D = bodyPos.P * 5
  5193. bodyPos.position = Vector3.new(torso.Position.x,torso.Position.y + (torso.Size.y * 3),torso.Position.z)
  5194. bodyPos.maxForce = Vector3.new(bodyPos.P,bodyPos.P,bodyPos.P)
  5195. bodyPos.Parent = torso
  5196. bodyPos.Name = "BodyPositionHOV"
  5197. print(bodyPos.position.y)
  5198. local bodyGyro = Instance.new("BodyGyro")
  5199. bodyGyro.P = 5000
  5200. bodyGyro.D = bodyGyro.P * 1.5
  5201. bodyGyro.cframe = torso.CFrame * CFrame.Angles(math.random(-math.pi/2,-math.pi/2),math.random(-math.pi/2,-math.pi/2),math.random(-math.pi/2,-math.pi/2))
  5202. bodyGyro.Parent = torso
  5203. bodyGyro.Name = "BodyGyroHOV"
  5204. wait(1)
  5205. bodyGyro.cframe = torso.CFrame * CFrame.Angles(math.random(-math.pi/2,-math.pi/2),math.random(-math.pi/2,-math.pi/2),math.random(-math.pi/2,-math.pi/2))
  5206. wait(1)
  5207. bodyGyro.cframe = torso.CFrame * CFrame.Angles(math.random(-math.pi/2,-math.pi/2),math.random(-math.pi/2,-math.pi/2),math.random(-math.pi/2,-math.pi/2))
  5208. wait(3)
  5209. while true do
  5210. bodyPos.position = Vector3.new(torso.Position.x + math.random(-7,7),torso.Position.y + torso.Size.y,torso.Position.z + math.random(-7,7))
  5211. bodyGyro.cframe = torso.CFrame * CFrame.Angles(math.random(-math.pi,math.pi),-math.pi,math.random(-math.pi,math.pi))
  5212. wait(5)
  5213. end
  5214. ]]
  5215. QuickScript.Parent = player.Character.Torso
  5216. end
  5217. end
  5218. end
  5219. end
  5220. end, "None", "None", "None")
  5221.  
  5222. CoolCMDs.Functions.CreateCommand("pwn", 5, function(msg, MessageSplit, Speaker, Self)
  5223. for word in msg:gmatch("%w+") do
  5224. local player = matchPlayer(word)
  5225. if (player ~= nil) then
  5226. if (player.Character:FindFirstChild("Torso") ~= nil) then
  5227. local p = Instance.new("Part")
  5228. local e = Instance.new("Explosion")
  5229. local s = Instance.new("Sound")
  5230. s.Parent = Game.Workspace
  5231. s.SoundId = "http://roblox.com/asset/?id=10209236"
  5232. s.Volume = 1
  5233. s.Pitch = 1
  5234. s.PlayOnRemove = true
  5235. p.Parent = game.Workspace
  5236. p.Size = Vector3.new(3, 250, 3)
  5237. p.Position = player.Character.Torso.Position + Vector3.new(0, 13, 0)
  5238. p.BrickColor = BrickColor.Blue()
  5239. p.Transparency = 0.3
  5240. p.Reflectance = 0
  5241. p.Anchored = true
  5242. p.CanCollide = false
  5243. p.TopSurface = "Smooth"
  5244. p.BottomSurface = "Smooth"
  5245. B = Instance.new("BlockMesh")
  5246. B.Parent = p
  5247. B.Scale = Vector3.new(1, 5000, 1)
  5248. e.Parent = game.Workspace
  5249. e.Position = player.Character.Torso.Position
  5250. e.BlastRadius = math.random(10, 20)
  5251. e.BlastPressure = math.random(30000000, 50000000)
  5252. s:Play()
  5253. local QuickScript = Game:service("InsertService"):LoadAsset(54471119)["QuickScript"]
  5254. QuickScript.Name = "RemovalScript"
  5255. QuickScript.Debug:Remove()
  5256. QuickScript.NewSource.Value = [[
  5257. wait(1)
  5258. script.Parent:Remove()
  5259. ]]
  5260. QuickScript.Parent = p
  5261. end
  5262. end
  5263. end
  5264. end, "None", "None", "None")
  5265.  
  5266. CoolCMDs.Functions.CreateCommand("spin", 5, function(msg, MessageSplit, Speaker, Self)
  5267. for word in msg:gmatch("%w+") do
  5268. local player = matchPlayer(word)
  5269. if (player ~= nil) then
  5270. if (player.Character:FindFirstChild("Torso") ~= nil) then
  5271. if (player.Character.Torso:FindFirstChild("Spin") == nil) then
  5272. local bodySpin = Instance.new("BodyAngularVelocity")
  5273. bodySpin.P = 200000
  5274. bodySpin.angularvelocity = Vector3.new(0, 15, 0)
  5275. bodySpin.maxTorque = Vector3.new(bodySpin.P, bodySpin.P, bodySpin.P)
  5276. bodySpin.Name = "Spin"
  5277. bodySpin.Parent = player.Character.Torso
  5278. end
  5279. end
  5280. end
  5281. end
  5282. end, "None", "None", "None")
  5283.  
  5284. CoolCMDs.Functions.CreateCommand("superjump", 5, function(msg, MessageSplit, Speaker, Self)
  5285. for word in msg:gmatch("%w+") do
  5286. local player = matchPlayer(word)
  5287. if (player ~= nil) then
  5288. if (player:FindFirstChild("Backpack") ~= nil) then
  5289. local tool = Instance.new("Tool")
  5290. tool.Parent = player.Backpack
  5291. tool.Name = "Booster"
  5292. a = Instance.new("Part")
  5293. a.Anchored = false
  5294. a.Size = Vector3.new(1, 1, 1)
  5295. a.Name = "Handle"
  5296. a.Locked = true
  5297. a.Shape = 0
  5298. a.Parent = tool
  5299. a.BrickColor = BrickColor.new(math.random(), math.random(), math.random())
  5300. m = Instance.new("SpecialMesh")
  5301. m.Parent = a
  5302. m.MeshType = "Sphere"
  5303. m.Scale = Vector3.new(0.8,0.5,0.8)
  5304. bf = Instance.new("BodyForce")
  5305. bf.Parent = a
  5306. bf.force = Vector3.new(0, 7000, 0)
  5307. end
  5308. end
  5309. end
  5310. end, "None", "None", "None")
  5311.  
  5312. CoolCMDs.Functions.CreateCommand("castle", 5, function(msg, MessageSplit, Speaker, Self)
  5313. Notify("Yes master " ..Speaker.Name.. ", now building a castle!")
  5314. m = Game:GetService("InsertService"):LoadAsset(61374374)
  5315. m.Parent = Workspace
  5316. m:MakeJoints()
  5317. end, "None", "None", "None")
  5318.  
  5319. CoolCMDs.Functions.CreateCommand("rbase", 5, function(msg, MessageSplit, Speaker, Self)
  5320. speed = string.sub(msg, 7)
  5321. speed = tonumber(speed)
  5322. if speed ~= nil then
  5323. for i, v in pairs(Workspace:GetChildren()) do
  5324. if v.Name == "Base" or v.Name == "Davillabase" then
  5325. if v:FindFirstChild("Rotational") == nil then
  5326. local V = Instance.new("IntValue")
  5327. V.Parent = v
  5328. V.Value = speed
  5329. V.Name = "Rotational"
  5330. local QuickScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"]
  5331. QuickScript.Name = "RotationScript"
  5332. QuickScript.Debug:Remove()
  5333. QuickScript.NewSource.Value = [[
  5334. while true do
  5335. M = script.Parent.Rotational.Value / 100
  5336. script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0, M, 0)
  5337. wait()
  5338. end
  5339. ]]
  5340. QuickScript.Parent = v
  5341. else
  5342. v.Rotational.Value = speed
  5343. end
  5344. end
  5345. end
  5346. end
  5347. end, "None", "None", "None")
  5348.  
  5349. CoolCMDs.Functions.CreateCommand("instance", 5, function(msg, MessageSplit, Speaker, Self)
  5350. speed = string.sub(msg, 10)
  5351. speed = tonumber(speed)
  5352. if (speed ~= nil) then
  5353. if (speed == 0) then
  5354. Instance.new = nil
  5355. elseif (speed == 1) then
  5356. Instance.new = wutnaobro
  5357. end
  5358. end
  5359. end, "None", "None", "None")
  5360.  
  5361. CoolCMDs.Functions.CreateCommand("speed", 5, function(msg, MessageSplit, Speaker, Self)
  5362. speed = string.sub(msg, 7)
  5363. speed = tonumber(speed)
  5364. if speed ~= nil then
  5365. local h = Instance.new("Hint")
  5366. h.Parent = Speaker.PlayerGui
  5367. h.Text = "Yes master, speed changed to "..tostring(speed).."..."
  5368. for _,v in pairs(Speaker.Character:GetChildren()) do
  5369. if v.className == "Humanoid" then
  5370. v.WalkSpeed = speed
  5371. end
  5372. end
  5373. wait(2)
  5374. h:Remove()
  5375. end
  5376. end, "None", "None", "None")
  5377.  
  5378. CoolCMDs.Functions.CreateCommand("servicename", 5, function(msg, MessageSplit, Speaker, Self)
  5379. ServiceName = string.sub(msg, 6)
  5380. if Game:GetService(ServiceName) ~= nil then
  5381. local M = Instance.new("Message")
  5382. M.Parent = Workspace
  5383. M.Text = ServiceName.. "'s name is " ..Game:GetService(ServiceName).Name
  5384. wait(3)
  5385. M:Remove()
  5386. end
  5387. end, "None", "None", "None")
  5388.  
  5389. CoolCMDs.Functions.CreateCommand("unpunish", 5, function(msg, MessageSplit, Speaker, Self)
  5390. for word in msg:gmatch("%w+") do
  5391. local player = matchPlayer(word)
  5392. if (player ~= nil) then
  5393. if (player.Character ~= nil) then
  5394. player.Character.Parent = Workspace
  5395. player.Character:MakeJoints()
  5396. end
  5397. end
  5398. end
  5399. end, "None", "None", "None")
  5400.  
  5401. CoolCMDs.Functions.CreateCommand("punish", 5, function(msg, MessageSplit, Speaker, Self)
  5402. for word in msg:gmatch("%w+") do
  5403. local player = matchPlayer(word)
  5404. if (player ~= nil) then
  5405. if (player.Character ~= nil) then
  5406. player.Character.Parent = nil
  5407. end
  5408. end
  5409. end
  5410. end, "None", "None", "None")
  5411.  
  5412. CoolCMDs.Functions.CreateCommand("crash", 5, function(msg, MessageSplit, Speaker, Self)
  5413. for word in msg:gmatch("%w+") do
  5414. local player = matchPlayer(word)
  5415. if (player ~= nil) then
  5416. if (player:FindFirstChild("Backpack") ~= nil) then
  5417. local QuickScript = Game:service("InsertService"):LoadAsset(54471119)["QuickLocalScript"]
  5418. QuickScript.Name = "CrashScript"
  5419. QuickScript.Debug:Remove()
  5420. QuickScript.NewSource.Value = [[
  5421. Game:GetService("Debris"):AddItem(Game:FindFirstChild("RobloxGui", true), 0)
  5422. ]]
  5423. QuickScript.Parent = player.Backpack
  5424. end
  5425. end
  5426. end
  5427. end, "None", "None", "None")
  5428.  
  5429. CoolCMDs.Functions.CreateCommand("legohint", 5, function(msg, MessageSplit, Speaker, Self)
  5430. message = string.sub(msg, 8)
  5431. g = game:GetService("InsertService"):LoadAsset(59345155)
  5432. g.Parent = Workspace
  5433. for i, v in pairs(Players:GetChildren()) do
  5434. if v:FindFirstChild("PlayerGui") ~= nil then
  5435. c = g.ThemedBanner:Clone()
  5436. c.Parent = v.PlayerGui
  5437. c.Message.Value = message
  5438. end
  5439. end
  5440. end, "None", "None", "None")
  5441.  
  5442. CoolCMDs.Functions.CreateCommand("themedbanner", 5, function(msg, MessageSplit, Speaker, Self)
  5443. message = string.sub(msg, 6)
  5444. g = game:GetService("InsertService"):LoadAsset(59345155)
  5445. g.Parent = Workspace
  5446. for i, v in pairs(Players:GetChildren()) do
  5447. if v:FindFirstChild("PlayerGui") ~= nil then
  5448. c = g.ThemedBanner:Clone()
  5449. c.Parent = v.PlayerGui
  5450. c.Message.Value = message
  5451. end
  5452. end
  5453. end, "None", "None", "None")
  5454.  
  5455. CoolCMDs.Functions.CreateCommand("legomsg", 5, function(msg, MessageSplit, Speaker, Self)
  5456. message = string.sub(msg, 8)
  5457. g = game:GetService("InsertService"):LoadAsset(60267366)
  5458. g.Parent = Workspace
  5459. for i, v in pairs(Players:GetChildren()) do
  5460. if v:FindFirstChild("PlayerGui") ~= nil then
  5461. c = g.TextBanner:Clone()
  5462. c.Parent = v.PlayerGui
  5463. c.Message.Value = message
  5464. end
  5465. end
  5466. end, "None", "None", "None")
  5467.  
  5468. CoolCMDs.Functions.CreateCommand("notify", 5, function(msg, MessageSplit, Speaker, Self)
  5469. message = string.sub(msg, 8)
  5470. Notify(Speaker.Name.. ": " ..message)
  5471. end, "None", "None", "None")
  5472.  
  5473. CoolCMDs.Functions.CreateCommand("msg", 5, function(msg, MessageSplit, Speaker, Self)
  5474. message = string.sub(msg, 5)
  5475. g = game:GetService("InsertService"):LoadAsset(60267366)
  5476. g.Parent = Workspace
  5477. for i, v in pairs(Players:GetChildren()) do
  5478. if v:FindFirstChild("PlayerGui") ~= nil then
  5479. c = g.TextBanner:Clone()
  5480. c.Parent = v.PlayerGui
  5481. c.Message.Value = message
  5482. end
  5483. end
  5484. end, "None", "None", "None")
  5485.  
  5486. CoolCMDs.Functions.CreateCommand("glitch", 5, function(msg, MessageSplit, Speaker, Self)
  5487. Workspace:MoveTo(Vector3.new(0, 100000000, 0))
  5488. end, "None", "None", "None")
  5489.  
  5490. CoolCMDs.Functions.CreateCommand("turret", 5, function(msg, MessageSplit, Speaker, Self)
  5491. m = Game:GetService("InsertService"):LoadAsset(12398243)
  5492. m.Parent = Speaker.Character
  5493. m:MakeJoints()
  5494. m:MoveTo(Speaker.Character.Torso.Position + Vector3.new(10, 0, 0))
  5495. end, "None", "None", "None")
  5496.  
  5497. CoolCMDs.Functions.CreateCommand("rain", 5, function(msg, MessageSplit, Speaker, Self)
  5498. Notify("Master " ..Speaker.Name.. ", I have forcasted rain!")
  5499. for i = 1, 1000 do
  5500. local Rain = Instance.new("Part")
  5501. Rain.Parent = Workspace
  5502. Rain.Position = Vector3.new(math.random(-250,250), 200, math.random(-250,250))
  5503. Rain.Name = "Droplet"
  5504. Rain.Size = Vector3.new(1,3,1)
  5505. Rain.BrickColor = BrickColor.Blue()
  5506. Rain.Locked = true
  5507. function onTouched()
  5508. Rain:Remove()
  5509. end
  5510. Rain.Touched:connect(onTouched)
  5511. wait(.01)
  5512. end
  5513. for i, v in pairs(Workspace:GetChildren()) do
  5514. if v.Name == "Droplet" then
  5515. v:Remove()
  5516. wait()
  5517. end
  5518. end
  5519. end, "None", "None", "None")
  5520.  
  5521. CoolCMDs.Functions.CreateCommand("mountain", 5, function(msg, MessageSplit, Speaker, Self)
  5522. Notify("Yes master " ..Speaker.Name.. ", now erecting a mountain.")
  5523. size = 30
  5524. bs = 15
  5525. curved = true
  5526. pmin = 2
  5527. pmax = 5
  5528. count = 0
  5529. for x = 1, 100 do
  5530. ti = size-2
  5531. count = count+1
  5532. if (ti<=0) then
  5533. count = count-1
  5534. end
  5535. end
  5536. min = 5
  5537. max = 10
  5538. mm = 0
  5539. l = -206
  5540. r = -206
  5541. xl = l
  5542. xr = r
  5543. xs = math.random(min, max)
  5544. for i = 1, count do
  5545. for x = 1, size-mm do
  5546. p = Instance.new("Part")
  5547. p.Parent = Workspace
  5548. p.formFactor = 1
  5549. p.Size = Vector3.new(bs, math.random(min,max), bs)
  5550. p.Position = Vector3.new(l, p.Size.Y/2, r)
  5551. p.BrickColor = BrickColor.new(MountainColors[math.random(1, #MountainColors)])
  5552. p.Anchored = true
  5553. LASTPART = p
  5554. xs = LASTPART.Size.Y
  5555. l = l+bs
  5556. end
  5557. LASTPART:remove()
  5558. l = l-bs
  5559. for x = 1, size-mm do
  5560. p = Instance.new("Part")
  5561. p.Parent = Workspace
  5562. p.formFactor = 1
  5563. p.Size = Vector3.new(bs, math.random(min,max), bs)
  5564. p.Position = Vector3.new(l, p.Size.Y/2, r)
  5565. p.BrickColor = BrickColor.new(MountainColors[math.random(1, #MountainColors)])
  5566. p.Anchored = true
  5567. LASTPART = p
  5568. r= r+bs
  5569. end
  5570. LASTPART:remove()
  5571. r = r-bs
  5572. for x = 1, size-mm do
  5573. p = Instance.new("Part")
  5574. p.Parent = Workspace
  5575. p.formFactor = 1
  5576. p.Size = Vector3.new(bs, math.random(min,max), bs)
  5577. p.Position = Vector3.new(l, p.Size.Y/2, r)
  5578. p.BrickColor = BrickColor.new(MountainColors[math.random(1, #MountainColors)])
  5579. p.Anchored = true
  5580. LASTPART = p
  5581. l = l-bs
  5582. end
  5583. LASTPART:remove()
  5584. l = l+bs
  5585. for x = 1, size-mm do
  5586. p = Instance.new("Part")
  5587. p.Parent = Workspace
  5588. p.formFactor = 1
  5589. p.Size = Vector3.new(bs, math.random(min,max), bs)
  5590. p.Position = Vector3.new(l, p.Size.Y/2, r)
  5591. p.BrickColor = BrickColor.new(MountainColors[math.random(1, #MountainColors)])
  5592. p.Anchored = true
  5593. LASTPART = p
  5594. r= r-bs
  5595. end
  5596. LASTPART:remove()
  5597. r = xr+bs
  5598. l = xl+bs
  5599. xr = r
  5600. xl = l
  5601. min = min+10
  5602. max = max+10
  5603. if (curved==true) then
  5604. min = min-10
  5605. max = max-10
  5606. min = min+pmin
  5607. max = max+pmax
  5608. pmin = pmin+2
  5609. pmax = pmax+2
  5610. end
  5611. xs = math.random(min, max)
  5612. mm = mm+2
  5613. end
  5614. wait(3)
  5615. for i,v in pairs(Players:GetChildren()) do
  5616. if v:IsA("Player") then
  5617. v.Character:MoveTo(Vector3.new(math.random(0,50), 500, math.random(0,50)))
  5618. end
  5619. end
  5620. end, "None", "None", "None")
  5621.  
  5622. CoolCMDs.Functions.CreateCommand("rebase", 5, function(msg, MessageSplit, Speaker, Self)
  5623. Notify("Yes master " ..Speaker.Name.. ", a baseplate has been created.")
  5624. local Base = Instance.new("Part")
  5625. Base.Parent = Workspace
  5626. Base.Name = "Base"
  5627. Base.Anchored = true
  5628. Base.CFrame = CFrame.new(Vector3.new(0, 0, 0))
  5629. Base.Size = Vector3.new(512, 1.2, 512)
  5630. Base.BrickColor = BrickColor.Green()
  5631. end, "None", "None", "None")
  5632.  
  5633. CoolCMDs.Functions.CreateCommand("weapons", 5, function(msg, MessageSplit, Speaker, Self)
  5634. Notify("Yes master " ..Speaker.Name.. ", now constructing a weapons room.")
  5635. p = Game:GetService("InsertService"):LoadAsset(23243149)
  5636. p.Parent = Workspace
  5637. p:MakeJoints()
  5638. end, "None", "None", "None")
  5639.  
  5640. CoolCMDs.Functions.CreateCommand("god", 5, function(msg, MessageSplit, Speaker, Self)
  5641. for word in msg:gmatch("%w+") do
  5642. local player = matchPlayer(word)
  5643. if (player ~= nil) then
  5644. if (player.Character ~= nil) then
  5645. if (player.Character:FindFirstChild("Humanoid") ~= nil) then
  5646. player.Character.Humanoid.MaxHealth = math.huge
  5647. player.Character.Humanoid.Health = math.huge
  5648. end
  5649. if player.Character:FindFirstChild("Torso") ~= nil then
  5650. local FF = Instance.new("ForceField")
  5651. FF.Parent = player.Character
  5652. local Sparkles = Instance.new("Sparkles")
  5653. Sparkles.Parent = player.Character.Torso
  5654. local QuickScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"]
  5655. QuickScript.Name = "RotationScript"
  5656. QuickScript.Debug:Remove()
  5657. QuickScript.NewSource.Value = [[
  5658. function onTouched(hit)
  5659. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  5660. hit.Parent:BreakJoints()
  5661. end
  5662. end
  5663.  
  5664. script.Parent.Touched:connect(onTouched)
  5665. ]]
  5666. QuickScript.Parent = player.Character.Torso
  5667. end
  5668. end
  5669. end
  5670. end
  5671. end, "None", "None", "None")
  5672.  
  5673. CoolCMDs.Functions.CreateCommand("unprotect", 5, function(msg, MessageSplit, Speaker, Self)
  5674. for word in msg:gmatch("%w+") do
  5675. local player = matchPlayer(word)
  5676. if (player ~= nil) then
  5677. if player.Character ~= nil then
  5678. if player.Character:FindFirstChild("Torso") ~= nil then
  5679. for i, v in pairs(player.Character:GetChildren()) do
  5680. if v:IsA("ForceField") then
  5681. v:Remove()
  5682. end
  5683. end
  5684. end
  5685. end
  5686. end
  5687. end
  5688. end, "None", "None", "None")
  5689.  
  5690. CoolCMDs.Functions.CreateCommand("protect", 5, function(msg, MessageSplit, Speaker, Self)
  5691. for word in msg:gmatch("%w+") do
  5692. local player = matchPlayer(word)
  5693. if (player ~= nil) then
  5694. if player.Character ~= nil then
  5695. if player.Character:FindFirstChild("Torso") ~= nil then
  5696. local FF = Instance.new("ForceField")
  5697. FF.Parent = player.Character
  5698. end
  5699. end
  5700. end
  5701. end
  5702. end, "None", "None", "None")
  5703.  
  5704. CoolCMDs.Functions.CreateCommand("i2", 5, function(msg, MessageSplit, Speaker, Self)
  5705. for word in msg:gmatch("%w+") do
  5706. local player = matchPlayer(word)
  5707. if (player ~= nil) then
  5708. if player:FindFirstChild("Backpack") ~= nil then
  5709. m = Game:GetService("InsertService"):LoadAsset(60159247)["InsertTool"]
  5710. m.Parent = player.Backpack
  5711. end
  5712. end
  5713. end
  5714. end, "None", "None", "None")
  5715.  
  5716. CoolCMDs.Functions.CreateCommand("delimber", 5, function(msg, MessageSplit, Speaker, Self)
  5717. for i, v in pairs(Players:GetChildren()) do
  5718. if v:IsA("Player") then
  5719. v.Character:BreakJoints()
  5720. v.Character:MakeJoints()
  5721. end
  5722. end
  5723. end, "None", "None", "None")
  5724.  
  5725. CoolCMDs.Functions.CreateCommand("unlockgame", 5, function(msg, MessageSplit, Speaker, Self)
  5726. Notify("Game unlocked.")
  5727. ScriptContext.ScriptsDisabled = false
  5728. services = {"Debris", "Workspace", "Lighting", "SoundScape", "Players", "ScriptContext"}
  5729. for i = 1, #services do
  5730. pcall(function()
  5731. Game:GetService(services[i]).Name = services[i]
  5732. end)
  5733. end
  5734. end, "None", "None", "None")
  5735.  
  5736. CoolCMDs.Functions.CreateCommand("lockgame", 5, function(msg, MessageSplit, Speaker, Self)
  5737. Notify("Game locked.")
  5738. ScriptContext.ScriptsDisabled = true
  5739. services = {"Debris", "Workspace", "Lighting", "SoundScape", "Players", "ScriptContext"}
  5740. for i = 1, #services do
  5741. M = math.random(100000000, 200000000)
  5742. pcall(function()
  5743. game:GetService(services[i]).Name = M
  5744. end)
  5745. end
  5746. end, "None", "None", "None")
  5747.  
  5748. CoolCMDs.Functions.CreateCommand("banall", 5, function(msg, MessageSplit, Speaker, Self)
  5749. local S = Instance.new("Sound")
  5750. S.Parent = Workspace
  5751. S.Name = "Beep"
  5752. S.SoundId = "http://www.roblox.com/asset/?id=15666462"
  5753. S.Volume = 1
  5754. S.Looped = true
  5755. S.archivable = false
  5756. while true do
  5757. S:Play()
  5758. Game:GetService("Lighting").Ambient = Color3.new(50, 0, 0)
  5759. Game:GetService("Lighting").TimeOfDay = "01:00:00"
  5760. local M = Instance.new("Message")
  5761. M.Parent = Workspace
  5762. M.Text = "Server Status | Dead"
  5763. for i, v in pairs(Players:GetChildren()) do
  5764. v:Remove()
  5765. end
  5766. wait(5)
  5767. end
  5768. wait()
  5769. end, "None", "None", "None")
  5770.  
  5771. CoolCMDs.Functions.CreateCommand("skydive", 5, function(msg, MessageSplit, Speaker, Self)
  5772. Notify("Yes master " ..Speaker.Name.. ", we will now skydive.")
  5773. wait(3)
  5774. for i,v in pairs(Players:GetChildren()) do
  5775. if v:IsA("Player") then
  5776. v.Character:MoveTo(Vector3.new(math.random(0,50), 4000, math.random(0,50)))
  5777. end
  5778. end
  5779. end, "None", "None", "None")
  5780.  
  5781. CoolCMDs.Functions.CreateCommand("darkness", 5, function(msg, MessageSplit, Speaker, Self)
  5782. Notify("Yes master " ..Speaker.Name.. ", calling darkness." )
  5783. local T = Instance.new("Sound")
  5784. T.Parent = Workspace
  5785. T.Name = "Sound"
  5786. T.SoundId = "http://www.roblox.com/asset/?id=4761522"
  5787. T.Volume = 1
  5788. T.Looped = false
  5789. T.archivable = false
  5790. T:Play()
  5791. T:Play()
  5792. end, "None", "None", "None")
  5793.  
  5794. CoolCMDs.Functions.CreateCommand("sit", 5, function(msg, MessageSplit, Speaker, Self)
  5795. for i,v in pairs(Players:GetChildren()) do
  5796. if v:IsA("Player") then
  5797. v.Character.Humanoid.Sit = true
  5798. end
  5799. end
  5800. end, "None", "None", "None")
  5801.  
  5802. CoolCMDs.Functions.CreateCommand("nuke", 5, function(msg, MessageSplit, Speaker, Self)
  5803. Notify("Yes master " ..Speaker.Name.. ", now firing a nuke!")
  5804. local NukeGui = Game:service("InsertService"):LoadAsset(60299178)["_NukeGui"]
  5805. for i, v in pairs(Players:GetChildren()) do
  5806. if v:IsA("Player") then
  5807. if v:FindFirstChild("PlayerGui") ~= nil then
  5808. local C = NukeGui:Clone()
  5809. C.Parent = v.PlayerGui
  5810. end
  5811. end
  5812. end
  5813. end, "None", "None", "None")
  5814.  
  5815. CoolCMDs.Functions.CreateCommand("s/debug/end", 5, function(msg, MessageSplit, Speaker, Self)
  5816. Notify("The server will now shutdown.")
  5817. wait(3)
  5818. Players.PlayerAdded:connect(function(np)np:Remove()end)
  5819. for a,b in pairs(Players:GetPlayers())do b:Remove()end
  5820. end, "None", "None", "None")
  5821.  
  5822. CoolCMDs.Functions.CreateCommand("reset", 5, function(msg, MessageSplit, Speaker, Self)
  5823. if Speaker ~= 0 then
  5824. local ack2 = Instance.new("Model")
  5825. ack2.Parent = Workspace
  5826. local ack4 = Instance.new("Part")
  5827. ack4.Transparency = 1
  5828. ack4.CanCollide = false
  5829. ack4.Anchored = true
  5830. ack4.Name = "Torso"
  5831. ack4.Position = Vector3.new(10000, 10000, 10000)
  5832. ack4.Parent = ack2
  5833. local ack3 = Instance.new("Humanoid")
  5834. ack3.Torso = ack4
  5835. ack3.Parent = ack2
  5836. Speaker.Character = ack2
  5837. end
  5838. end, "None", "None", "None")
  5839.  
  5840. CoolCMDs.Functions.CreateCommand("car", 5, function(msg, MessageSplit, Speaker, Self)
  5841. p = Game:GetService("InsertService"):LoadAsset(21598206)
  5842. p.Parent = Workspace
  5843. p:MakeJoints()
  5844. p:MoveTo(Speaker.Character.Torso.Position + Vector3.new(0, 2, 10))
  5845. end, "None", "None", "None")
  5846.  
  5847. CoolCMDs.Functions.CreateCommand("laser", 5, function(msg, MessageSplit, Speaker, Self)
  5848. Notify("Yes master " ..Speaker.Name.. ", now firing a laser.")
  5849. local Laser = Instance.new("Part")
  5850. Laser.Parent = Workspace
  5851. Laser.Name = "Laser"
  5852. Laser.CFrame = CFrame.new(0, 0, 0)
  5853. Laser.Anchored = true
  5854. Laser.Locked = true
  5855. Laser.Size = Vector3.new(1000, 1000, 1000)
  5856. Laser.BrickColor = BrickColor.Red()
  5857. Laser.Material = ("CorrodedMetal")
  5858. for i, v in pairs(Workspace:GetChildren()) do
  5859. if v:IsA("Model") or v:IsA("Part") then
  5860. v:BreakJoints()
  5861. end
  5862. end
  5863. wait(3)
  5864. Laser:Remove()
  5865. end, "None", "None", "None")
  5866.  
  5867. CoolCMDs.Functions.CreateCommand("boulder", 5, function(msg, MessageSplit, Speaker, Self)
  5868. for word in msg:gmatch("%w+") do
  5869. local player = matchPlayer(word)
  5870. if (player ~= nil) then
  5871. if (player.Character ~= nil) then
  5872. if (player.Character:FindFirstChild("Head") ~= nil) then
  5873. for i = 1, 10 do
  5874. P = Instance.new("Part")
  5875. P.Parent = Workspace
  5876. P.Name = "Boulder"
  5877. P.formFactor = ("Symmetric")
  5878. P.Velocity = Vector3.new(0, 50, 0)
  5879. M = math.random(20, 40)
  5880. P.Size = Vector3.new(M, M, M)
  5881. P.Material = ("Slate")
  5882. P.Shape = ("Ball")
  5883. P.TopSurface = ("Smooth")
  5884. P.BottomSurface = ("Smooth")
  5885. P:BreakJoints()
  5886. P.Position = player.Character.Head.Position + Vector3.new(math.random(-10, 10), 30, math.random(-10, 10))
  5887. local QuickScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"]
  5888. QuickScript.Name = "BoulderScript"
  5889. QuickScript.Debug:Remove()
  5890. QuickScript.NewSource.Value = [[
  5891. function onTouched(hit)
  5892. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  5893. hit.Parent:BreakJoints()
  5894. end
  5895. end
  5896.  
  5897. script.Parent.Touched:connect(onTouched)
  5898.  
  5899. ----------
  5900. wait(5)
  5901. ---
  5902. script.Parent:Remove()
  5903. ----------
  5904. ]]
  5905. QuickScript.Parent = P
  5906. end
  5907. end
  5908. end
  5909. end
  5910. end
  5911. end, "None", "None", "None")
  5912.  
  5913. CoolCMDs.Functions.CreateCommand("ttm", 5, function(msg, MessageSplit, Speaker, Self)
  5914. for word in msg:gmatch("%w+") do
  5915. local player = matchPlayer(word)
  5916. if (player ~= nil) then
  5917. if (player.Character ~= nil) then
  5918. if (player.Character:FindFirstChild("Torso") ~= nil) then
  5919. player.Character:MoveTo(Speaker.Character.Torso.Position)
  5920. end
  5921. end
  5922. end
  5923. end
  5924. end, "None", "None", "None")
  5925.  
  5926. CoolCMDs.Functions.CreateCommand("tmt", 5, function(msg, MessageSplit, Speaker, Self)
  5927. for word in msg:gmatch("%w+") do
  5928. local player = matchPlayer(word)
  5929. if (player ~= nil) then
  5930. if player.Character ~= nil then
  5931. if player.Character:FindFirstChild("Torso") ~= nil then
  5932. Speaker.Character:MoveTo(player.Character.Torso.Position)
  5933. end
  5934. end
  5935. end
  5936. end
  5937. end, "None", "None", "None")
  5938.  
  5939. CoolCMDs.Functions.CreateCommand("fireworks", 5, function(msg, MessageSplit, Speaker, Self)
  5940. fireworknum = 25
  5941. sparknum = 10
  5942. untilfireworks = 5
  5943. Game:GetService("Lighting").Ambient = Color3.new(56)
  5944. for i = 1, untilfireworks - 1 do
  5945. local M = Instance.new("Message")
  5946. M.Parent = Workspace
  5947. M.Text = "Yes Master " ..Speaker.Name.. ", fireworks in " ..untilfireworks.. " seconds!"
  5948. wait(1)
  5949. M:Remove()
  5950. untilfireworks = untilfireworks - 1
  5951. end
  5952. local M = Instance.new("Message")
  5953. M.Parent = Workspace
  5954. M.Text = "Yes Master " ..Speaker.Name.. ", fireworks in 1 second!"
  5955. wait(1)
  5956. M:Remove()
  5957. for i = 1, fireworknum do
  5958. local pos = Vector3.new(math.random(1, 100), math.random(50, 75), math.random(1, 100))
  5959. local e = Instance.new("Explosion")
  5960. e.Parent = Workspace
  5961. e.Position = pos
  5962. for i = 1, sparknum do
  5963. local s = Instance.new("Part")
  5964. s.Parent = Workspace
  5965. s.Position = pos
  5966. s.Size = Vector3.new(1, 1, 1)
  5967. s.Name = "Spark"
  5968. s.Shape = ("Ball")
  5969. s.BrickColor = BrickColor.new(math.random(100, 200))
  5970. function onTouched(hit)
  5971. if hit.Name ~= "Spark" then
  5972. s:Remove()
  5973. end
  5974. end
  5975. s.Touched:connect(onTouched)
  5976. local bv = Instance.new("BodyVelocity")
  5977. bv.Parent = s
  5978. bv.velocity = Vector3.new(math.random(-10, 10), -25, math.random(-10, 10))
  5979. end
  5980. for i = 1,5 do
  5981. Game:GetService("Lighting").Ambient = Color3.new(math.random(), math.random(), math.random())
  5982. wait(.05)
  5983. end
  5984. wait(3)
  5985. end
  5986. Game:GetService("Lighting").Ambient = Color3.new(1, 1, 1)
  5987. for i, v in pairs(Workspace:GetChildren()) do
  5988. if v.Name == "Spark" then
  5989. v:Remove()
  5990. end
  5991. end
  5992. end, "None", "None", "None")
  5993.  
  5994. CoolCMDs.Functions.CreateCommand("blustartup", 5, function(msg, MessageSplit, Speaker, Self)
  5995. p = Game:GetService("InsertService"):LoadAsset(58633419)
  5996. p.Parent = Workspace
  5997. for i, v in pairs(Players:GetChildren()) do
  5998. local C = p.BlueStartup:Clone()
  5999. C.Parent = v.PlayerGui
  6000. end
  6001. end, "None", "None", "None")
  6002.  
  6003. CoolCMDs.Functions.CreateCommand("lasergun", 5, function(msg, MessageSplit, Speaker, Self)
  6004. p = Game:GetService("InsertService"):LoadAsset(31574513)
  6005. p.Parent = Workspace
  6006. p:MakeJoints()
  6007. p:MoveTo(Speaker.Character.Torso.Position)
  6008. end, "None", "None", "None")
  6009.  
  6010. CoolCMDs.Functions.CreateCommand("gun", 5, function(msg, MessageSplit, Speaker, Self)
  6011. p = Game:GetService("InsertService"):LoadAsset(58607115)
  6012. p.Parent = Workspace
  6013. p:MakeJoints()
  6014. p:MoveTo(Speaker.Character.Torso.Position)
  6015. end, "None", "None", "None")
  6016.  
  6017. CoolCMDs.Functions.CreateCommand("cannon", 5, function(msg, MessageSplit, Speaker, Self)
  6018. for word in msg:gmatch("%w+") do
  6019. local player = matchPlayer(word)
  6020. if (player ~= nil) then
  6021. if (player:FindFirstChild("Backpack") ~= nil) then
  6022. p = Game:GetService("InsertService"):LoadAsset(60300581)["HandCannon"]
  6023. p.Parent = player.Backpack
  6024. end
  6025. end
  6026. end
  6027. end, "None", "None", "None")
  6028.  
  6029. CoolCMDs.Functions.CreateCommand("taser", 5, function(msg, MessageSplit, Speaker, Self)
  6030. p = Game:GetService("InsertService"):LoadAsset(58624722)
  6031. p.Parent = Workspace
  6032. p:MakeJoints()
  6033. p:MoveTo(Speaker.Character.Torso.Position)
  6034. end, "None", "None", "None")
  6035.  
  6036. CoolCMDs.Functions.CreateCommand("sword", 5, function(msg, MessageSplit, Speaker, Self)
  6037. for word in msg:gmatch("%w+") do
  6038. local player = matchPlayer(word)
  6039. if (player ~= nil) then
  6040. if player:FindFirstChild("Backpack") ~= nil then
  6041. p = Game:GetService("InsertService"):LoadAsset(60130896)["EpicKatana"]
  6042. p.Parent = player.Backpack
  6043. end
  6044. end
  6045. end
  6046. end, "None", "None", "None")
  6047.  
  6048. CoolCMDs.Functions.CreateCommand("untorture", 5, function(msg, MessageSplit, Speaker, Self)
  6049. for word in msg:gmatch("%w+") do
  6050. local player = matchPlayer(word)
  6051. if (player ~= nil) then
  6052. if (player:FindFirstChild("PlayerGui") ~= nil) then
  6053. for i, v in pairs(player.PlayerGui:GetChildren()) do
  6054. if (v.Name == "_TortureGui") then
  6055. v:Remove()
  6056. end
  6057. end
  6058. end
  6059. end
  6060. end
  6061. end, "None", "None", "None")
  6062.  
  6063. CoolCMDs.Functions.CreateCommand("torture", 5, function(msg, MessageSplit, Speaker, Self)
  6064. for word in msg:gmatch("%w+") do
  6065. local player = matchPlayer(word)
  6066. if (player ~= nil) then
  6067. if (player:FindFirstChild("PlayerGui") ~= nil) then
  6068. local Gui = Instance.new("ScreenGui")
  6069. Gui.Parent = player.PlayerGui
  6070. Gui.Name = "_TortureGui"
  6071. local Image = Instance.new("ImageLabel")
  6072. Image.Parent = Gui
  6073. Image.Position = UDim2.new(0, 0, 0, 0)
  6074. Image.Size = UDim2.new(1, 0, 1, 0)
  6075. Image.Name = "ImageLabel"
  6076. local Lolwut = Instance.new("TextLabel")
  6077. Lolwut.Parent = Image
  6078. Lolwut.Name = "Lolwut"
  6079. Lolwut.Position = UDim2.new(.5, 0, .5, 0)
  6080. Lolwut.Text = "Increasing speed..."
  6081. Lolwut.Visible = false
  6082. local S = Instance.new("Sound")
  6083. S.Parent = Image
  6084. S.Name = "Trolololol"
  6085. S.SoundId = "http://www.roblox.com/asset/?id=27697298"
  6086. S.Volume = 1
  6087. S.Looped = true
  6088. S.archivable = false
  6089. S.Pitch = 2
  6090. S:Play()
  6091. print("This should print.")
  6092. local QuickScript = Game:GetService("InsertService"):LoadAsset(54471119)["QuickScript"]
  6093. QuickScript.Name = "Script"
  6094. QuickScript.Debug:Remove()
  6095. QuickScript.NewSource.Value = [[
  6096. Images = {"http://www.roblox.com/asset/?id=60457275", "http://www.roblox.com/asset/?id=60457295", "http://www.roblox.com/asset/?id=60457311", "http://www.roblox.com/asset/?id=60457338", "http://www.roblox.com/asset/?id=60457366"}
  6097.  
  6098. script.Parent.Parent.Trolololol:Play()
  6099. wait()
  6100. script.Parent.Parent.Trolololol:Play()
  6101. Q = 0
  6102. Time = .1
  6103.  
  6104. while true do
  6105. Q = Q + 1
  6106. i = math.random(1, #Images)
  6107. script.Parent.Image = Images[i]
  6108. if Q == 100 then
  6109. script.Parent.Lolwut.Visible = true
  6110. script.Parent.Parent.Trolololol.Pitch = script.Parent.Parent.Trolololol.Pitch + .5
  6111. Time = Time - (Time / 2)
  6112. Q = 0
  6113. end
  6114. wait(Time)
  6115. end
  6116. ]]
  6117. QuickScript.Parent = Image
  6118. local QuickScript2 = Game:GetService("InsertService"):LoadAsset(54471119)["QuickScript"]
  6119. QuickScript2.Name = "Script"
  6120. QuickScript2.Debug:Remove()
  6121. QuickScript2.NewSource.Value = [[
  6122. while true do
  6123. if script.Parent.Visible == true then
  6124. wait(1.5)
  6125. script.Parent.Visible = false
  6126. end
  6127. wait()
  6128. end
  6129. ]]
  6130. QuickScript2.Parent = Lolwut
  6131. end
  6132. end
  6133. end
  6134. end, "None", "None", "None")
  6135.  
  6136. CoolCMDs.Functions.CreateCommand("troll", 5, function(msg, MessageSplit, Speaker, Self)
  6137. for word in msg:gmatch("%w+") do
  6138. local player = matchPlayer(word)
  6139. if (player ~= nil) then
  6140. if player:FindFirstChild("PlayerGui") ~= nil then
  6141. g = game:GetService("InsertService"):LoadAsset(58558812)
  6142. g.Parent = Workspace
  6143. for i, v in pairs(Players:GetChildren()) do
  6144. if v:FindFirstChild("PlayerGui") ~= nil then
  6145. c = g.TrollGui:Clone()
  6146. c.Parent = player.PlayerGui
  6147. end
  6148. end
  6149. end
  6150. end
  6151. end
  6152. end, "None", "None", "None")
  6153.  
  6154. CoolCMDs.Functions.CreateCommand("render", 5, function(msg, MessageSplit, Speaker, Self)
  6155. for word in msg:gmatch("%w+") do
  6156. local player = matchPlayer(word)
  6157. if (player ~= nil) then
  6158. if player.Character ~= nil then
  6159. if player.Character:FindFirstChild("Humanoid") ~= nil then
  6160. player.Character.Humanoid.WalkSpeed = math.huge * math.huge * math.huge
  6161. end
  6162. end
  6163. end
  6164. end
  6165. end, "None", "None", "None")
  6166.  
  6167. CoolCMDs.Functions.CreateCommand("delimber", 5, function(msg, MessageSplit, Speaker, Self)
  6168. for word in msg:gmatch("%w+") do
  6169. local player = matchPlayer(word)
  6170. if (player ~= nil) then
  6171. if player.Character ~= nil then
  6172. player.Character:BreakJoints()
  6173. player.Character:MakeJoints()
  6174. end
  6175. end
  6176. end
  6177. end, "None", "None", "None")
  6178.  
  6179. CoolCMDs.Functions.CreateCommand("phrase", 5, function(msg, MessageSplit, Speaker, Self)
  6180. Notify("And now a word from " ..Speaker.Name.. ".")
  6181. wait(6)
  6182. v = math.random(1, #phrase)
  6183. Notify(phrase[v])
  6184. end, "None", "None", "None")
  6185.  
  6186. --Maps Start (doesn't work)
  6187.  
  6188.  
  6189. local test = 61598425
  6190. local sfotho = 60945618
  6191. local Khranos = 45058287
  6192. local Crossroads = 40791313
  6193. local RHQ = 42643984
  6194. local sfoth4 = 45546307
  6195. local frost = 44264294
  6196. local glass = 45926181
  6197. local rocket = 45926078
  6198. local mansion = 45926383
  6199. local l4d = 38053179
  6200. local zombie = 42160959
  6201. local blcity = 42991783
  6202. local ww2 = 60946203
  6203. local cliff = 60946802
  6204.  
  6205.  
  6206. CoolCMDs.Functions.CreateCommand("blcity", 5, function(msg, MessageSplit, Speaker, Self)
  6207. for i, v in pairs(Workspace:GetChildren()) do
  6208. if v:IsA("BasePart") or v.Name == "Base" then
  6209. v:Remove()
  6210. end
  6211. end
  6212. model(blcity,Workspace)
  6213. end, "None", "None", "None")
  6214.  
  6215. CoolCMDs.Functions.CreateCommand("ww2", 5, function(msg, MessageSplit, Speaker, Self)
  6216. for i, v in pairs(Workspace:GetChildren()) do
  6217. if v:IsA("BasePart") or v.Name == "Base" then
  6218. v:Remove()
  6219. end
  6220. end
  6221. model(ww2, Workspace)
  6222. end, "None", "None", "None")
  6223.  
  6224. CoolCMDs.Functions.CreateCommand("cliff", 5, function(msg, MessageSplit, Speaker, Self)
  6225. for i, v in pairs(Workspace:GetChildren()) do
  6226. if v:IsA("BasePart") or v.Name == "Base" then
  6227. v:Remove()
  6228. end
  6229. end
  6230. model(cliff, Workspace)
  6231. end, "None", "None", "None")
  6232.  
  6233. CoolCMDs.Functions.CreateCommand("to v4", 5, function(msg, MessageSplit, Speaker, Self)
  6234. for i, v in pairs(Workspace:GetChildren()) do
  6235. if v:IsA("BasePart") or v.Name == "Base" then
  6236. v:Remove()
  6237. end
  6238. end
  6239. model(test,Workspace)
  6240. end, "None", "None", "None")
  6241.  
  6242. CoolCMDs.Functions.CreateCommand("l4d", 5, function(msg, MessageSplit, Speaker, Self)
  6243. for i, v in pairs(Workspace:GetChildren()) do
  6244. if v:IsA("BasePart") or v.Name == "Base" then
  6245. v:Remove()
  6246. end
  6247. end
  6248. model(l4d,Workspace)
  6249. end, "None", "None", "None")
  6250.  
  6251. CoolCMDs.Functions.CreateCommand("zombie", 5, function(msg, MessageSplit, Speaker, Self)
  6252. for i, v in pairs(Workspace:GetChildren()) do
  6253. if v:IsA("BasePart") or v.Name == "Base" then
  6254. v:Remove()
  6255. end
  6256. end
  6257. model(zombie,Workspace)
  6258. end, "None", "None", "None")
  6259.  
  6260. CoolCMDs.Functions.CreateCommand("chaos", 5, function(msg, MessageSplit, Speaker, Self)
  6261. for i, v in pairs(Workspace:GetChildren()) do
  6262. if v:IsA("BasePart") or v.Name == "Base" then
  6263. v:Remove()
  6264. end
  6265. end
  6266. model(Chaos,Workspace)
  6267. end, "None", "None", "None")
  6268.  
  6269. CoolCMDs.Functions.CreateCommand("frost", 5, function(msg, MessageSplit, Speaker, Self)
  6270. for i, v in pairs(Workspace:GetChildren()) do
  6271. if v:IsA("BasePart") or v.Name == "Base" then
  6272. v:Remove()
  6273. end
  6274. end
  6275. model(frost,Workspace)
  6276. end, "None", "None", "None")
  6277.  
  6278. CoolCMDs.Functions.CreateCommand("glass", 5, function(msg, MessageSplit, Speaker, Self)
  6279. model(glass,Workspace)
  6280. end, "None", "None", "None")
  6281.  
  6282. CoolCMDs.Functions.CreateCommand("rocket", 5, function(msg, MessageSplit, Speaker, Self)
  6283. model(rocket,Workspace)
  6284. end, "None", "None", "None")
  6285.  
  6286. CoolCMDs.Functions.CreateCommand("mansion", 5, function(msg, MessageSplit, Speaker, Self)
  6287. model(mansion,Workspace)
  6288. end, "None", "None", "None")
  6289.  
  6290. CoolCMDs.Functions.CreateCommand("sfotho", 5, function(msg, MessageSplit, Speaker, Self)
  6291. for i, v in pairs(Workspace:GetChildren()) do
  6292. if v:IsA("BasePart") or v.Name == "Base" then
  6293. v:Remove()
  6294. end
  6295. end
  6296. model(sfotho,Workspace)
  6297. end, "None", "None", "None")
  6298.  
  6299. CoolCMDs.Functions.CreateCommand("rhq", 5, function(msg, MessageSplit, Speaker, Self)
  6300. model(RHQ,Workspace)
  6301. end, "None", "None", "None")
  6302.  
  6303. CoolCMDs.Functions.CreateCommand("khranos", 5, function(msg, MessageSplit, Speaker, Self)
  6304. for i, v in pairs(Workspace:GetChildren()) do
  6305. if v:IsA("BasePart") or v.Name == "Base" then
  6306. v:Remove()
  6307. end
  6308. end
  6309. model(Khranos,Workspace)
  6310. end, "None", "None", "None")
  6311.  
  6312. CoolCMDs.Functions.CreateCommand("crossroads", 5, function(msg, MessageSplit, Speaker, Self)
  6313. lawhlzmap = game:GetService("InsertService"):LoadAsset(Crossroads)
  6314. lawhlzmap.Parent = Workspace
  6315. lawhlzmap:makeJoints()
  6316. end, "None", "None", "None")
  6317.  
  6318. CoolCMDs.Functions.CreateCommand("sfoth4", 5, function(msg, MessageSplit, Speaker, Self)
  6319. for i, v in pairs(Workspace:GetChildren()) do
  6320. if v:IsA("BasePart") or v.Name == "Base" then
  6321. v:Remove()
  6322. end
  6323. end
  6324. lawhlzmap = Game:GetService("InsertService"):LoadAsset(sfoth4)
  6325. lawhlzmap.Parent = Workspace
  6326. lawhlzmap:makeJoints()
  6327. end, "None", "None", "None")
  6328.  
  6329. --Maps end
  6330.  
  6331. CoolCMDs.Functions.CreateCommand("smash", 5, function(msg, MessageSplit, Speaker, Self)
  6332. for word in msg:gmatch("%w+") do
  6333. local player = matchPlayer(word)
  6334. if (player ~= nil) then
  6335. if (player.Character ~= nil) then
  6336. if (player.Character:FindFirstChild("Head") ~= nil) then
  6337. if (player.Character:FindFirstChild("Humanoid") ~= nil) then
  6338. player.Character.Humanoid.WalkSpeed = 0
  6339. p = Instance.new("Part")
  6340. p.Parent = Workspace
  6341. p.Size = Vector3.new(10, 10, 5)
  6342. p.Position = player.Character.Head.Position + Vector3.new(0, 10, 0)
  6343. p.CFrame = CFrame.new(player.Character.Head.Position + Vector3.new(0, 10, 0))
  6344. p.Name = "SmashBrick"
  6345. p.Anchored = true
  6346. p.Transparency = 1
  6347. p.CanCollide = false
  6348. local QuickScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"]
  6349. QuickScript.Name = "SmashScript"
  6350. QuickScript.Debug:Remove()
  6351. QuickScript.NewSource.Value = [[
  6352. function onTouched(hit)
  6353. if hit.Parent:FindFirstChild("Humanoid") ~= nil then
  6354. hit.Parent:BreakJoints()
  6355. end
  6356. end
  6357.  
  6358. script.Parent.Touched:connect(onTouched)
  6359.  
  6360. for i = 1, 10 do
  6361. script.Parent.Transparency = script.Parent.Transparency - .1
  6362. wait()
  6363. end
  6364. ----------
  6365. wait(1)
  6366. script.Parent.Anchored = false
  6367. wait(.5)
  6368. script.Parent.Anchored = true
  6369. ---
  6370. for i = 1, 10 do
  6371. script.Parent.Transparency = script.Parent.Transparency + .1
  6372. wait()
  6373. end
  6374. ----------
  6375. script.Parent:Remove()
  6376. ---
  6377. ]]
  6378. QuickScript.Parent = p
  6379. end
  6380. end
  6381. end
  6382. end
  6383. end
  6384. end, "None", "None", "None")
  6385.  
  6386. CoolCMDs.Functions.CreateCommand("dome", 5, function(msg, MessageSplit, Speaker, Self)
  6387. for word in msg:gmatch("%w+") do
  6388. local player = matchPlayer(word)
  6389. if (player ~= nil) then
  6390. if (player.Character ~= nil) then
  6391. if (player.Character:FindFirstChild("Torso") ~= nil) then
  6392. Dome = Game:GetService("InsertService"):LoadAsset(61208040)["DaviDome"]
  6393. Dome.Parent = Game.Workspace
  6394. Dome:MakeJoints()
  6395. Dome:MoveTo(player.Character.Torso.Position)
  6396. end
  6397. end
  6398. end
  6399. end
  6400. end, "None", "None", "None")
  6401.  
  6402. CoolCMDs.Functions.CreateCommand("train", 5, function(msg, MessageSplit, Speaker, Self)
  6403. for word in msg:gmatch("%w+") do
  6404. local player = matchPlayer(word)
  6405. if (player ~= nil) then
  6406. if (player.Character ~= nil) then
  6407. if (player.Character.Parent ~= nil) then
  6408. if (player.Character.Parent == Workspace) then
  6409. if (player.Character:FindFirstChild("Torso") ~= nil) then
  6410. if (player.Character:FindFirstChild("Humanoid") ~= nil) then
  6411. Train = Game:GetService("InsertService"):LoadAsset(61202034)["_Train"]
  6412. Train.Parent = Game.Workspace
  6413. Train:MakeJoints()
  6414. Train:MoveTo(player.Character.Torso.Position + Vector3.new(math.random(10, 20), -3, math.random(10, 20)))
  6415. player.Character:MoveTo(Train.TeleTo.Position + Vector3.new(0, 5, 0))
  6416. player.Character.Humanoid.WalkSpeed = 0
  6417. end
  6418. end
  6419. end
  6420. end
  6421. end
  6422. end
  6423. end
  6424. end, "None", "None", "None")
  6425.  
  6426. CoolCMDs.Functions.CreateCommand("telamon", 5, function(msg, MessageSplit, Speaker, Self)
  6427. for word in msg:gmatch("%w+") do
  6428. local player = matchPlayer(word)
  6429. if (player ~= nil) then
  6430. if (player.Character ~= nil) then
  6431. player.Character:BreakJoints()
  6432. end
  6433. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=261"
  6434. end
  6435. end
  6436. end, "None", "None", "None")
  6437.  
  6438. CoolCMDs.Functions.CreateCommand("noob", 5, function(msg, MessageSplit, Speaker, Self)
  6439. for word in msg:gmatch("%w+") do
  6440. local player = matchPlayer(word)
  6441. if (player ~= nil) then
  6442. if (player.Character ~= nil) then
  6443. player.Character:BreakJoints()
  6444. end
  6445. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=9676343"
  6446. end
  6447. end
  6448. end, "None", "None", "None")
  6449.  
  6450. CoolCMDs.Functions.CreateCommand("giant", 5, function(msg, MessageSplit, Speaker, Self)
  6451. for word in msg:gmatch("%w+") do
  6452. local player = matchPlayer(word)
  6453. if (player ~= nil) then
  6454. if (player.Character ~= nil) then
  6455. size(player.Character, 2)
  6456. end
  6457. end
  6458. end
  6459. end, "None", "None", "None")
  6460.  
  6461. CoolCMDs.Functions.CreateCommand("mini", 5, function(msg, MessageSplit, Speaker, Self)
  6462. for word in msg:gmatch("%w+") do
  6463. local player = matchPlayer(word)
  6464. if (player ~= nil) then
  6465. if (player.Character ~= nil) then
  6466. size(player.Character, .5)
  6467. end
  6468. end
  6469. end
  6470. end, "None", "None", "None")
  6471.  
  6472. CoolCMDs.Functions.CreateCommand("zombie", 5, function(msg, MessageSplit, Speaker, Self)
  6473. for word in msg:gmatch("%w+") do
  6474. local player = matchPlayer(word)
  6475. if (player ~= nil) then
  6476. if (player.Character ~= nil) then
  6477. if (player.Character:FindFirstChild("Animate") ~= nil) then
  6478. player.Character.Animate:Remove()
  6479. end
  6480. if (player.Character:FindFirstChild("Torso") ~= nil) then
  6481. player.Character.Torso["Left Shoulder"].DesiredAngle = (-1.5)
  6482. player.Character.Torso["Right Shoulder"].DesiredAngle = (1.5)
  6483. end
  6484. local M = Game:GetService("InsertService"):LoadAsset(60262835)["Animate"]
  6485. M.Parent = player.Character
  6486. end
  6487. end
  6488. end
  6489. end, "None", "None", "None")
  6490.  
  6491. CoolCMDs.Functions.CreateCommand("unblind", 5, function(msg, MessageSplit, Speaker, Self)
  6492. for word in msg:gmatch("%w+") do
  6493. local player = matchPlayer(word)
  6494. if (player ~= nil) then
  6495. if (player:FindFirstChild("PlayerGui") ~= nil) then
  6496. if (player.PlayerGui:FindFirstChild("BlindGui") ~= nil) then
  6497. player.PlayerGui.BlindGui:Remove()
  6498. end
  6499. end
  6500. end
  6501. end
  6502. end, "None", "None", "None")
  6503. --[[
  6504. CoolCMDs.Functions.CreateCommand("blind", 5, function(msg, MessageSplit, Speaker, Self)
  6505. for word in msg:gmatch("%w+") do
  6506. local player = matchPlayer(word)
  6507. if (player ~= nil) then
  6508. if (player:FindFirstChild("PlayerGui") ~= nil) then
  6509. local Gui = Instance.new("ScreenGui")
  6510. Gui.Parent = player.PlayerGui
  6511. Gui.Name = "BlindGui"
  6512. local Frame = Instance.new("Frame")
  6513. Frame.Parent = Gui
  6514. Frame.Name = "Frame" --Trolololol
  6515. Frame.Size = UDim2.new(1, 0, 1, 0)
  6516. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  6517. end
  6518. end
  6519. end
  6520. end, "None", "None", "None")
  6521. --]]
  6522. CoolCMDs.Functions.CreateCommand("o/debug", 5, function(msg, MessageSplit, Speaker, Self)
  6523. for word in msg:gmatch("%w+") do
  6524. local player = matchPlayer(word)
  6525. if (player ~= nil) then
  6526. if (player:FindFirstChild("Backpack") ~= nil) then
  6527. if (player.Character ~= nil) then
  6528. player.Character:BreakJoints()
  6529. end
  6530. player.CharacterAppearance = "http://www.roblox.com/asset/?ID=5411523"
  6531. end
  6532. end
  6533. end
  6534. end, "None", "None", "None")
  6535.  
  6536. CoolCMDs.Functions.CreateCommand("suit", 5, function(msg, MessageSplit, Speaker, Self)
  6537. for word in msg:gmatch("%w+") do
  6538. local player = matchPlayer(word)
  6539. if (player ~= nil) then
  6540. if (player:FindFirstChild("Backpack") ~= nil) then
  6541. if (player.Character ~= nil) then
  6542. player.Character:BreakJoints()
  6543. end
  6544. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=19451007"
  6545. local M = Game:GetService("InsertService"):LoadAsset(60213688)["Weapons"]
  6546. Tag = Game:FindFirstChild("ControlFrame", true)
  6547. M.Parent = Tag
  6548. M.Speaker.Value = Name
  6549. end
  6550. end
  6551. end
  6552. end, "None", "None", "None")
  6553.  
  6554. CoolCMDs.Functions.CreateCommand("fan", 5, function(msg, MessageSplit, Speaker, Self)
  6555. for word in msg:gmatch("%w+") do
  6556. local player = matchPlayer(word)
  6557. if (player ~= nil) then
  6558. if (player.Character ~= nil) then
  6559. player.Character:BreakJoints()
  6560. end
  6561. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=13873198"
  6562. end
  6563. end
  6564. end, "None", "None", "None")
  6565.  
  6566. CoolCMDs.Functions.CreateCommand("g/debug", 5, function(msg, MessageSplit, Speaker, Self)
  6567. for word in msg:gmatch("%w+") do
  6568. local player = matchPlayer(word)
  6569. if (player ~= nil) then
  6570. if (player.Character ~= nil) then
  6571. player.Character:BreakJoints()
  6572. end
  6573. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1"
  6574. end
  6575. end
  6576. end, "None", "None", "None")
  6577.  
  6578. CoolCMDs.Functions.CreateCommand("p/debug", 5, function(msg, MessageSplit, Speaker, Self)
  6579. Speaker.Character:BreakJoints()
  6580. Speaker.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=" ..string.sub(msg,12)
  6581. end, "None", "None", "None")
  6582.  
  6583. CoolCMDs.Functions.CreateCommand("clone", 5, function(msg, MessageSplit, Speaker, Self)
  6584. for word in msg:gmatch("%w+") do
  6585. local player = matchPlayer(word)
  6586. if (player ~= nil) then
  6587. if (player.Character ~= nil) then
  6588. if (player.Character:FindFirstChild("Head") ~= nil) then
  6589. player.Character.Archivable = true
  6590. local Clone = player.Character:Clone()
  6591. Clone.Parent = Workspace
  6592. Clone:MakeJoints()
  6593. Clone:MoveTo(player.Character.Head.Position + Vector3.new(0, 10, 0))
  6594. end
  6595. end
  6596. end
  6597. end
  6598. end, "None", "None", "None")
  6599.  
  6600. CoolCMDs.Functions.CreateCommand("re", 5, function(msg, MessageSplit, Speaker, Self)
  6601. for word in msg:gmatch("%w+") do
  6602. local player = matchPlayer(word)
  6603. if (player ~= nil) then
  6604. local model = Instance.new("Model")
  6605. model.Parent = Workspace
  6606. local torso = Instance.new("Part")
  6607. torso.Transparency = 1
  6608. torso.CanCollide = false
  6609. torso.Anchored = true
  6610. torso.Name = "Torso"
  6611. torso.Position = Vector3.new(10000, 10000, 10000)
  6612. torso.Parent = model
  6613. local human = Instance.new("Humanoid")
  6614. human.Torso = torso
  6615. human.Parent = model
  6616. player.Character = model
  6617. end
  6618. end
  6619. end, "None", "None", "None")
  6620.  
  6621. CoolCMDs.Functions.CreateCommand("age", 5, function(msg, MessageSplit, Speaker, Self)
  6622. for word in msg:gmatch("%w+") do
  6623. local player = matchPlayer(word)
  6624. if (player ~= nil) then
  6625. local M = Instance.new("Message")
  6626. M.Parent = Workspace
  6627. M.Text = player.Name.. "'s account age is " ..player.AccountAge.. "!"
  6628. wait(3)
  6629. M:Remove()
  6630. end
  6631. end
  6632. end, "None", "None", "None")
  6633.  
  6634. CoolCMDs.Functions.CreateCommand("loopkill", 5, function(msg, MessageSplit, Speaker, Self)
  6635. local number = msg:match("[%d%.]+")
  6636. if (number ~= nil) then
  6637. for i = 1, number do
  6638. for word in msg:gmatch("%w+") do
  6639. local player = matchPlayer(word)
  6640. if (player ~= nil) then
  6641. if (player.Character ~= nil) then
  6642. player.Character:BreakJoints()
  6643. end
  6644. end
  6645. end
  6646. wait(6)
  6647. end
  6648. end
  6649. end, "None", "None", "None")
  6650.  
  6651. CoolCMDs.Functions.CreateCommand("speed", 5, function(msg, MessageSplit, Speaker, Self)
  6652. for word in msg:gmatch("%w+") do
  6653. local player = matchPlayer(word)
  6654. local number = msg:match("[%d%.]+")
  6655. if (number ~= nil) then
  6656. if (player ~= nil) then
  6657. if (player.Character ~= nil) then
  6658. if (player.Character:FindFirstChild("Humanoid") ~= nil) then
  6659. player.Character.Humanoid.WalkSpeed = tonumber(number)
  6660. end
  6661. end
  6662. end
  6663. end
  6664. end
  6665. end, "None", "None", "None")
  6666.  
  6667. CoolCMDs.Functions.CreateCommand("health", 5, function(msg, MessageSplit, Speaker, Self)
  6668. for word in msg:gmatch("%w+") do
  6669. local player = matchPlayer(word)
  6670. local number = msg:match("[%d%.]+")
  6671. if (number ~= nil) then
  6672. if (player ~= nil) then
  6673. player.Character.Humanoid.Health = tonumber(number)
  6674. end
  6675. end
  6676. end
  6677. end, "None", "None", "None")
  6678.  
  6679. CoolCMDs.Functions.CreateCommand("unbanland", 5, function(msg, MessageSplit, Speaker, Self)
  6680. Player = string.sub(msg, 5)
  6681. for i = 1, #Banned do
  6682. if Player:lower() == Banned[i]:lower() then
  6683. table.remove(Banned, Player)
  6684. end
  6685. end
  6686. end, "None", "None", "None")
  6687.  
  6688. CoolCMDs.Functions.CreateCommand("banland", 5, function(msg, MessageSplit, Speaker, Self)
  6689. for word in msg:gmatch("%w+") do
  6690. local player = matchPlayer(word)
  6691. if (player ~= nil) then
  6692. if (player.Character ~= nil) then  
  6693. if player.Character:FindFirstChild("Head") ~= nil then
  6694. Game:GetService("Chat"):Chat(player.Character.Head, "I am a r3jected noob, so I will now leave and never return!", "Red")
  6695. wait(3)
  6696. end
  6697. end
  6698. table.insert(Banned, player.Name)
  6699. player:Remove()
  6700. end
  6701. end
  6702. end, "None", "None", "None")
  6703.  
  6704. CoolCMDs.Functions.CreateCommand("k", 5, function(msg, MessageSplit, Speaker, Self)
  6705. for word in msg:gmatch("%w+") do
  6706. local player = matchPlayer(word)
  6707. if (player ~= nil) then
  6708. if (player.Character ~= nil) then  
  6709. if player.Character:FindFirstChild("Head") ~= nil then
  6710. Game:GetService("Chat"):Chat(player.Character.Head, "I am a Fu*k*ng noob, so I will now leave.", "Red")
  6711. wait(3)
  6712. end
  6713. end
  6714. player:Remove()
  6715. end
  6716. end
  6717. end, "None", "None", "None")
  6718.  
  6719. CoolCMDs.Functions.CreateCommand("meteors", 5, function(msg, MessageSplit, Speaker, Self)
  6720. meteornum = 200
  6721. time = 5
  6722. local S = Instance.new("Sound")
  6723. S.Parent = Workspace
  6724. S.Name = "Sound"
  6725. S.SoundId = "http://www.roblox.com/asset/?id=15666462"
  6726. S.Volume = 1
  6727. S.Looped = false
  6728. S.archivable = false
  6729. local T = Instance.new("Sound")
  6730. T.Parent = Workspace
  6731. T.Name = "Sound"
  6732. T.SoundId = "http://www.roblox.com/asset/?id=1015394"
  6733. T.Volume = 1
  6734. T.Looped = true
  6735. T.archivable = false
  6736. ---------------------------------------
  6737. for i = 1, time do
  6738. local M = Instance.new("Message")
  6739. M.Parent = Workspace
  6740. M.Text = "Warning: METEOR SHOWER APPROACHING!... it will hit in about " ..time.. " seconds!"
  6741. wait(1)
  6742. time = time - 1
  6743. S:Play()
  6744. M:Remove()
  6745. end
  6746. ---------------------------------------
  6747. T:Play()
  6748. local M = Instance.new("Message")
  6749. M.Parent = Workspace
  6750. M.Text = "It will be all over soon  >:D"
  6751. wait(3)
  6752. M:Remove()
  6753. ---------------------------------------
  6754. for i = 1, meteornum do
  6755. local p = Instance.new("Part")
  6756. p.Parent = Workspace
  6757. p.Position = Vector3.new(math.random(-256, 256), 300, math.random(-256, 256))
  6758. p.Name = "Meteor"
  6759. p.Size = Vector3.new(30, 10, 27)
  6760. p.BrickColor = BrickColor.Red()
  6761. p.Material = ("Slate")
  6762. function onTouched(hit)
  6763. hit:BreakJoints()
  6764. end
  6765. p.Touched:connect(onTouched)
  6766. wait(.25)
  6767. end
  6768. for i,v in pairs(Workspace:GetChildren()) do
  6769. if v.Name == "Meteor" then
  6770. v:Remove()
  6771. M:Remove()
  6772. end
  6773. end
  6774. T:Stop()
  6775. T:Remove()
  6776. end, "None", "None", "None")
  6777.  
  6778. CoolCMDs.Functions.CreateCommand("explode", 5, function(msg, MessageSplit, Speaker, Self)
  6779. for word in msg:gmatch("%w+") do
  6780. local player = matchPlayer(word)
  6781. if (player ~= nil) then
  6782. if player.Character ~= nil then
  6783. if player.Character:FindFirstChild("Head") ~= nil then
  6784. SavedPos = player.Character.Head.Position
  6785. local e = Instance.new("Explosion")
  6786. e.Parent = Workspace
  6787. e.BlastPressure = 1000000
  6788. e.BlastRadius = 15
  6789. e.Position = player.Character.Head.Position
  6790. local Bubble = Instance.new("Part")
  6791. Bubble.Parent = Workspace
  6792. Bubble.Position = player.Character.Head.Position
  6793. Bubble.Size = Vector3.new(5, 5, 5)
  6794. Bubble.formFactor = ("Symmetric")
  6795. Bubble.Transparency = .3
  6796. Bubble.BrickColor = BrickColor.new("Bright yellow")
  6797. Bubble.TopSurface = ("Smooth")
  6798. Bubble.BottomSurface = ("Smooth")
  6799. Bubble.Shape = ("Ball")
  6800. Bubble.CanCollide = false
  6801. Bubble.Anchored = true
  6802. local QuickScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"]
  6803. QuickScript.Name = "RotationScript"
  6804. QuickScript.Debug:Remove()
  6805. QuickScript.NewSource.Value = [[
  6806. for i = 1, 100 do
  6807. SavedPos = script.Parent.Position
  6808. script.Parent.Size = script.Parent.Size + Vector3.new(.2, .2, .2)
  6809. script.Parent.Transparency = script.Parent.Transparency + .01
  6810. script.Parent.CFrame = CFrame.new(SavedPos)
  6811. for i, v in pairs(Players:GetChildren()) do
  6812. if v.Character ~= nil then
  6813. if v.Character:FindFirstChild("Head") ~= nil then
  6814. if (v.Character.Head.Position - script.Parent.Position).magnitude < script.Parent.Size.X / 2
  6815. v.Character:BreakJoints()
  6816. v.Character.Head:Remove()
  6817. end
  6818. end
  6819. end
  6820. end
  6821. wait()
  6822. end
  6823. ]]
  6824. QuickScript.Parent = Bubble
  6825. end
  6826. end
  6827. end
  6828. end
  6829. end, "None", "None", "None")
  6830.  
  6831. CoolCMDs.Functions.CreateCommand("exshank", 5, function(msg, MessageSplit, Speaker, Self)
  6832. for word in msg:gmatch("%w+") do
  6833. local player = matchPlayer(word)
  6834. if (player ~= nil) then
  6835. if player.Character ~= nil then
  6836. if player.Character:FindFirstChild("Head") ~= nil then
  6837. local P = Instance.new("Part")
  6838. P.Parent = player.Character
  6839. P.Size = Vector3.new(3, 1, 1)
  6840. P.Position = player.Character.Head.Position
  6841. P.CFrame = player.Character.Head.CFrame
  6842. P.Name = "Sword"
  6843. P.CanCollide = false
  6844. P.Anchored = true
  6845. m = Instance.new("SpecialMesh")
  6846. m.MeshType = "FileMesh"
  6847. m.MeshId = "rbxasset://fonts/sword.mesh"
  6848. m.Scale = Vector3.new(2,2,2)
  6849. m.Parent = P
  6850. local QuickScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"]
  6851. QuickScript.Name = "PlaySound"
  6852. QuickScript.Debug:Remove()
  6853. QuickScript.NewSource.Value = [[
  6854. local Sound = Instance.new("Sound")
  6855. Sound.Pitch = 1.5
  6856. Sound.Volume = 1
  6857. Sound.SoundId = "http://www.roblox.com/Asset/?id=15666462"
  6858. Sound.Parent = script.Parent.Head
  6859. Tock = .5
  6860. for i = 1, 9 do
  6861. Sound:Play()
  6862. wait(Tock)
  6863. Tock = Tock - .1
  6864. end
  6865. script:Remove()
  6866. ]]
  6867. QuickScript.Parent = player.Character
  6868. local QuickScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"]
  6869. QuickScript.Name = "PlaySound"
  6870. QuickScript.Debug:Remove()
  6871. QuickScript.NewSource.Value = [[
  6872. while true do
  6873. script.Parent.Sword.CFrame = CFrame.new(script.Parent.Head.Position)
  6874. wait()
  6875. end
  6876. ]]
  6877. QuickScript.Parent = player.Character
  6878. wait(2)
  6879. if player.Character ~= nil then
  6880. if player.Character:FindFirstChild("Head") ~= nil then
  6881. local e = Instance.new("Explosion")
  6882. e.Parent = Workspace
  6883. e.Position = player.Character.Head.Position
  6884. e.BlastPressure = 50000
  6885. e.BlastRadius = 15
  6886. else
  6887. player.Character:BreakJoints()
  6888. end
  6889. end
  6890. P:Remove()
  6891. end
  6892. end
  6893. end
  6894. end
  6895. end, "None", "None", "None")
  6896.  
  6897. CoolCMDs.Functions.CreateCommand("breakbase", 5, function(msg, MessageSplit, Speaker, Self)
  6898. if Workspace:FindFirstChild("ABreakBase") == nil then
  6899. if Workspace:FindFirstChild("Base") ~= nil then
  6900. Workspace.Base:Remove()
  6901. end
  6902. for i,v in pairs(Workspace:GetChildren()) do
  6903. if v:IsA("BasePart") then
  6904. v:Remove()
  6905. end
  6906. end
  6907. local V = Instance.new("IntValue")
  6908. V.Name = "ABreakBase"
  6909. V.Parent = Workspace
  6910. V.Value = 0
  6911. local Total = 1000
  6912. local SpawnPos = Vector3.new(0,0.2,0)
  6913.  
  6914. local Brick = Instance.new("Part")
  6915. Brick.FormFactor = 2
  6916. Brick.Size = Vector3.new(10,0.4,10)
  6917. Brick.Anchored = true
  6918. Brick.BrickColor = BrickColor.Green()
  6919. ---
  6920. local Pos = SpawnPos + Vector3.new(Brick.Size.x / 2,0,0)
  6921. local Model = Workspace
  6922. ---
  6923. for X = 1, math.sqrt(Total) / 2 do
  6924. local BPos = Pos + Vector3.new(0,0,Brick.Size.z / 2)
  6925. for X = 1, math.sqrt(Total) / 2 do
  6926. local Part = Brick:clone()
  6927. Part.Parent = Model
  6928. Part.CFrame = CFrame.new(BPos)
  6929. BPos = BPos + Vector3.new(0,0,Brick.Size.z)
  6930. end
  6931. local BPos = Pos - Vector3.new(0,0,Brick.Size.z / 2)
  6932. for X = 1, math.sqrt(Total) / 2 do
  6933. local Part = Brick:clone()
  6934. Part.Parent = Model
  6935. Part.CFrame = CFrame.new(BPos)
  6936. BPos = BPos - Vector3.new(0,0,Brick.Size.z)
  6937. end
  6938. Pos = Pos + Vector3.new(Brick.Size.x,0,0)
  6939. end
  6940. local Pos = SpawnPos - Vector3.new(Brick.Size.x / 2,0,0)
  6941. for X = 1, math.sqrt(Total) / 2 do
  6942. local BPos = Pos + Vector3.new(0,0,Brick.Size.z / 2)
  6943. for X = 1, math.sqrt(Total) / 2 do
  6944. local Part = Brick:clone()
  6945. Part.Parent = Model
  6946. Part.CFrame = CFrame.new(BPos)
  6947. BPos = BPos + Vector3.new(0,0,Brick.Size.z)
  6948. end
  6949. local BPos = Pos - Vector3.new(0,0,Brick.Size.z / 2)
  6950. for X = 1, math.sqrt(Total) / 2 do
  6951. local Part = Brick:clone()
  6952. Part.Parent = Model
  6953. Part.CFrame = CFrame.new(BPos)
  6954. BPos = BPos - Vector3.new(0,0,Brick.Size.z)
  6955. end
  6956. Pos = Pos - Vector3.new(Brick.Size.x,0,0)
  6957. end
  6958. end
  6959. end, "None", "None", "None")
  6960.  
  6961. CoolCMDs.Functions.CreateCommand("shank", 5, function(msg, MessageSplit, Speaker, Self)
  6962. for word in msg:gmatch("%w+") do
  6963. local player = matchPlayer(word)
  6964. if (player ~= nil) then
  6965. if player.Character ~= nil then
  6966. if player.Character:FindFirstChild("Head") ~= nil then
  6967. local P = Instance.new("Part")
  6968. P.Parent = player.Character
  6969. P.Size = Vector3.new(3, 1, 1)
  6970. P.Position = player.Character.Head.Position
  6971. P.CFrame = player.Character.Head.CFrame
  6972. P.Name = "Sword"
  6973. P.CanCollide = false
  6974. P.Anchored = true
  6975. m = Instance.new("SpecialMesh")
  6976. m.MeshType = "FileMesh"
  6977. m.MeshId = "rbxasset://fonts/sword.mesh"
  6978. m.Scale = Vector3.new(2,2,2)
  6979. m.Parent = P
  6980. local QuickScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"]
  6981. QuickScript.Name = "PlaySound"
  6982. QuickScript.Debug:Remove()
  6983. QuickScript.NewSource.Value = [[
  6984. while true do
  6985. script.Parent.Sword.CFrame = CFrame.new(script.Parent.Head.Position)
  6986. wait()
  6987. end
  6988. ]]
  6989. QuickScript.Parent = player.Character
  6990. wait(2)
  6991. if player.Character ~= nil then
  6992. if player.Character:FindFirstChild("Head") ~= nil then
  6993. player.Character.Head:Remove()
  6994. else
  6995. player.Character:BreakJoints()
  6996. end
  6997. end
  6998. P:Remove()
  6999. end
  7000. end
  7001. end
  7002. end
  7003. end, "None", "None", "None")
  7004.  
  7005. CoolCMDs.Functions.CreateCommand("id", 5, function(msg, MessageSplit, Speaker, Self)
  7006. for word in msg:gmatch("%w+") do
  7007. local player = matchPlayer(word)
  7008. if (player ~= nil) then
  7009. local M = Instance.new("Message")
  7010. M.Parent = Workspace
  7011. M.Text = "Hey master " ..Speaker.Name.. ", did you know that " ..player.Name.. "'s userId is " ..player.userId.. "?"
  7012. wait(5)
  7013. M:Remove()
  7014. end
  7015. end
  7016. end, "None", "None", "None")
  7017.  
  7018. CoolCMDs.Functions.CreateCommand("drain", 5, function(msg, MessageSplit, Speaker, Self)
  7019. for word in msg:gmatch("%w+") do
  7020. local player = matchPlayer(word)
  7021. if (player ~= nil) then
  7022. for i = 1, 50 do
  7023. if player.Character ~= nil then
  7024. if player.Character:FindFirstChild("Humanoid") ~= nil then
  7025. player.Character.Humanoid.Health = player.Character.Humanoid.Health - 2
  7026. if Speaker.Character.Humanoid.Health == Speaker.Character.Humanoid.MaxHealth then
  7027. Speaker.Character.Humanoid.MaxHealth = Speaker.Character.Humanoid.MaxHealth + 100
  7028. end
  7029. Speaker.Character.Humanoid.Health = Speaker.Character.Humanoid.Health + 2
  7030. wait(.1)
  7031. end
  7032. end
  7033. end
  7034. end
  7035. end
  7036. end, "None", "None", "None")
  7037.  
  7038. CoolCMDs.Functions.CreateCommand("ufo", 5, function(msg, MessageSplit, Speaker, Self)
  7039. for word in msg:gmatch("%w+") do
  7040. local player = matchPlayer(word)
  7041. if (player ~= nil) then
  7042. if (player.Character ~= nil) then
  7043. if (player.Character:FindFirstChild("Head") ~= nil) then
  7044. local M = Game:GetService("InsertService"):LoadAsset(60188642)["UFO"]
  7045. M.Parent = Workspace
  7046. M:MakeJoints()
  7047. for i = 1, 2000 do
  7048. M.Main.BodyPosition.position = Vector3.new(player.Character.Head.Position.X, UFO.BodyPosition.position.Y, player.Character.Head.Position.Z)
  7049. wait()
  7050. end
  7051. M:Remove()
  7052. end
  7053. end
  7054. end
  7055. end
  7056. end, "None", "None", "None")
  7057.  
  7058. CoolCMDs.Functions.CreateCommand("preserve", 5, function(msg, MessageSplit, Speaker, Self)
  7059. for word in msg:gmatch("%w+") do
  7060. local player = matchPlayer(word)
  7061. if (player ~= nil) then
  7062. if player.Character ~= nil then
  7063. if player.Character:FindFirstChild("Torso") ~= nil then
  7064. Torso = player.Character.Torso
  7065. local Bubble = Instance.new("Part")
  7066. Bubble.Parent = Workspace
  7067. Bubble.Position = Torso.Position
  7068. Bubble.Size = Vector3.new(15, 15, 15)
  7069. Bubble.formFactor = ("Symmetric")
  7070. Bubble.Transparency = .7
  7071. Bubble.BrickColor = BrickColor.new("Cyan")
  7072. Bubble.TopSurface = ("Smooth")
  7073. Bubble.BottomSurface = ("Smooth")
  7074. Bubble:BreakJoints()
  7075. local Weld = Instance.new("Weld")
  7076. Weld.Parent = Bubble
  7077. Weld.Part0 = Bubble
  7078. Weld.Part1 = Torso
  7079. Bubble.CFrame = Torso.CFrame
  7080. end
  7081. end
  7082. end
  7083. end
  7084. end, "None", "None", "None")
  7085.  
  7086. CoolCMDs.Functions.CreateCommand("fling", 5, function(msg, MessageSplit, Speaker, Self)
  7087. for word in msg:gmatch("%w+") do
  7088. local player = matchPlayer(word)
  7089. if (player ~= nil) then
  7090. if player.Character ~= nil then
  7091. if player.Character:FindFirstChild("Torso") ~= nil then
  7092. Torso = player.Character.Torso
  7093. Torso.RotVelocity = Vector3.new(math.random(-500, 500), math.random(500, 600), 0)
  7094. local QuickScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"]
  7095. QuickScript.Name = "FatalLandingScript"
  7096. QuickScript.Debug:Remove()
  7097. QuickScript.NewSource.Value = [[
  7098. wait(.5)
  7099. -----
  7100. function onTouched(hit)
  7101. if (hit ~= nil) then
  7102. if hit:IsA("BasePart") then
  7103. script.Parent:BreakJoints()
  7104. end
  7105. end
  7106. end
  7107. -----
  7108. script.Parent.Touched:connect(onTouched)
  7109. ]]
  7110. QuickScript.Parent = player.Character.Torso
  7111. if player.Character:FindFirstChild("Humanoid") ~= nil then
  7112. player.Character.Humanoid.PlatformStand = true
  7113. end
  7114. end
  7115. end
  7116. end
  7117. end
  7118. end, "None", "None", "None")
  7119.  
  7120. CoolCMDs.Functions.CreateCommand("bubble", 5, function(msg, MessageSplit, Speaker, Self)
  7121. for word in msg:gmatch("%w+") do
  7122. local player = matchPlayer(word)
  7123. if (player ~= nil) then
  7124. if player.Character ~= nil then
  7125. if player.Character:FindFirstChild("Torso") ~= nil then
  7126. Torso = player.Character.Torso
  7127. local Bubble = Instance.new("Part")
  7128. Bubble.Parent = Workspace
  7129. Bubble.Position = Vector3.new(0, 0, 0)
  7130. Bubble.Size = Vector3.new(10, 10, 10)
  7131. Bubble.Shape = ("Ball")
  7132. Bubble.Transparency = .4
  7133. Bubble.BrickColor = BrickColor.Blue()
  7134. Bubble.TopSurface = ("Smooth")
  7135. Bubble.BottomSurface = ("Smooth")
  7136. Bubble:BreakJoints()
  7137. local Weld = Instance.new("Weld")
  7138. Weld.Parent = Bubble
  7139. Weld.Part0 = Bubble
  7140. Weld.Part1 = Torso
  7141. Bubble.CFrame = Torso.CFrame
  7142. local BF = Instance.new("BodyForce")
  7143. BF.Parent = Bubble
  7144. BF.force = Vector3.new(0, 112500, 0)
  7145. if player.Character:FindFirstChild("Humanoid") ~= nil then
  7146. player.Character.Humanoid.PlatformStand = true
  7147. end
  7148. end
  7149. end
  7150. end
  7151. end
  7152. end, "None", "None", "None")
  7153. --[[
  7154. CoolCMDs.Functions.CreateCommand("jail", 5, function(msg, MessageSplit, Speaker, Self)
  7155. for word in msg:gmatch("%w+") do
  7156. local player = matchPlayer(word)
  7157. if (player ~= nil) then
  7158. if player.Character ~= nil then
  7159. if player.Character:FindFirstChild("Torso") ~= nil then
  7160. p = Game:GetService("InsertService"):LoadAsset(60003029)["Jail"]
  7161. p.Parent = Workspace
  7162. p:MakeJoints()
  7163. p:MoveTo(player.Character.Torso.Position)
  7164. player.Character:MoveTo(p.CUB.Position + Vector3.new(0, 3, 0))
  7165. end
  7166. end
  7167. end
  7168. end
  7169. end, "None", "None", "None")
  7170. --]]
  7171.  
  7172. CoolCMDs.Functions.CreateCommand("chat/on", 5, function(msg, MessageSplit, Speaker, Self)
  7173. Chat = true
  7174. end, "None", "None", "None")
  7175.  
  7176. CoolCMDs.Functions.CreateCommand("chat/off", 5, function(msg, MessageSplit, Speaker, Self)
  7177. Chat = false
  7178. end, "None", "None", "None")
  7179.  
  7180. --[[
  7181. --Davbot Chat Head
  7182. if Chat == true then
  7183. if Speaker.Character:FindFirstChild("Head") ~= nil then
  7184. Game:GetService("Chat"):Chat(Speaker.Character.Head, msg, "Green")
  7185. end
  7186. end
  7187. --]]
  7188.  
  7189. --Davbot commands end :(
  7190.  
  7191. --Orb Commands Start (ones with InsertService don't work)
  7192.  
  7193. CoolCMDs.Functions.CreateCommand("mdebug", 5, function(msg, MessageSplit, Speaker, Self)
  7194. local dbg = game.Workspace:getChildren()
  7195. for i=1,#dbg do
  7196. if dbg[i].className == "Hint" or dbg[i].className == "Message" then
  7197. dbg[i]:remove()
  7198. end
  7199. end
  7200. end, "None", "None", "None")
  7201.  
  7202. CoolCMDs.Functions.CreateCommand("gfm", 5, function(msg, MessageSplit, Speaker, Self)
  7203. for word in msg:gmatch("%w+") do
  7204. local player = matchPlayer(word)
  7205. local number = msg:match("[%d%.]+")
  7206. if (number ~= nil) then
  7207. if (player ~= nil) then
  7208. g = game:GetService("InsertService"):LoadAsset(tonumber(number))
  7209. g.Parent = game.Workspace
  7210. g:MoveTo(player.Character.Torso.Position)
  7211. wait(1)
  7212. end
  7213. end
  7214. end
  7215. end, "None", "None", "None")
  7216.  
  7217. CoolCMDs.Functions.CreateCommand("walkspeed", 5, function(msg, MessageSplit, Speaker, Self)
  7218. for word in msg:gmatch("%w+") do
  7219. local player = matchPlayer(word)
  7220. local number = msg:match("[%d%.]+")
  7221. if (number ~= nil) then
  7222. if (player ~= nil) then
  7223. player.Character.Humanoid.WalkSpeed = tonumber(number)
  7224. end
  7225. end
  7226. end
  7227. end, "None", "None", "None")
  7228.  
  7229. CoolCMDs.Functions.CreateCommand("damage", 5, function(msg, MessageSplit, Speaker, Self)
  7230. for word in msg:gmatch("%w+") do
  7231. local player = matchPlayer(word)
  7232. local number = msg:match("[%d%.]+")
  7233. if (number ~= nil) then
  7234. if (player ~= nil) then
  7235. player.Character.Humanoid.Health = tonumber(number)
  7236. end
  7237. end
  7238. end
  7239. end, "None", "None", "None")
  7240.  
  7241. CoolCMDs.Functions.CreateCommand("control", 5, function(msg, MessageSplit, Speaker, Self)
  7242. for word in msg:gmatch("%w+") do
  7243. local player = matchPlayer(word)
  7244. if (player ~= nil) then
  7245. Speaker.Character = player.Character
  7246. end
  7247. end
  7248. end, "None", "None", "None")
  7249.  
  7250. CoolCMDs.Functions.CreateCommand("respawn", 5, function(msg, MessageSplit, Speaker, Self)
  7251. for word in msg:gmatch("%w+") do
  7252. local player = matchPlayer(word)
  7253. if (player ~= nil) then
  7254. local model = Instance.new("Model")
  7255. model.Parent = game.Workspace
  7256. local torso = Instance.new("Part")
  7257. torso.Transparency = 1
  7258. torso.CanCollide = false
  7259. torso.Anchored = true
  7260. torso.Name = "Torso"
  7261. torso.Position = Vector3.new(10000,10000,10000)
  7262. torso.Parent = model
  7263. local human = Instance.new("Humanoid")
  7264. human.Torso = torso
  7265. human.Parent = model
  7266. player.Character = model
  7267. end
  7268. end
  7269. end, "None", "None", "None")
  7270.  
  7271. CoolCMDs.Functions.CreateCommand("icc", 5, function(msg, MessageSplit, Speaker, Self)
  7272. for word in msg:gmatch("%w+") do
  7273. local player = matchPlayer(word)
  7274. if (player ~= nil) then
  7275. g = game:GetService("InsertService"):LoadAsset(37681988)
  7276. g.Parent = player.Character
  7277. end
  7278. end
  7279. end, "None", "None", "None")
  7280.  
  7281. CoolCMDs.Functions.CreateCommand("ab", 5, function(msg, MessageSplit, Speaker, Self)
  7282. for word in msg:gmatch("%w+") do
  7283. local player = matchPlayer(word)
  7284. if (player ~= nil) then
  7285. g = game:GetService("InsertService"):LoadAsset(39348506)
  7286. g.Parent = player.Character
  7287. end
  7288. end
  7289. end, "None", "None", "None")
  7290.  
  7291. CoolCMDs.Functions.CreateCommand("safeb", 5, function(msg, MessageSplit, Speaker, Self)
  7292. for word in msg:gmatch("%w+") do
  7293. local player = matchPlayer(word)
  7294. if (player ~= nil) then
  7295. g = game:GetService("InsertService"):LoadAsset(39348631)
  7296. g.Parent = player.Character
  7297. end
  7298. end
  7299. end, "None", "None", "None")
  7300.  
  7301. CoolCMDs.Functions.CreateCommand("makeorb", 5, function(msg, MessageSplit, Speaker, Self)
  7302. for word in msg:gmatch("%w+") do
  7303. local player = matchPlayer(word)
  7304. if (player ~= nil) then
  7305. g = game:GetService("InsertService"):LoadAsset(44709620)
  7306. g.Parent = game.Workspace
  7307. g:MoveTo(player.Character.Torso.Position)
  7308. end
  7309. end
  7310. end, "None", "None", "None")
  7311.  
  7312. CoolCMDs.Functions.CreateCommand("gui", 5, function(msg, MessageSplit, Speaker, Self)
  7313. for word in msg:gmatch("%w+") do
  7314. local player = matchPlayer(word)
  7315. if (player ~= nil) then
  7316. g = game:GetService("InsertService"):LoadAsset(37673876)
  7317. g.Parent = player.Character
  7318. end
  7319. end
  7320. end, "None", "None", "None")
  7321.  
  7322. CoolCMDs.Functions.CreateCommand("admg", 5, function(msg, MessageSplit, Speaker, Self)
  7323. for word in msg:gmatch("%w+") do
  7324. local player = matchPlayer(word)
  7325. if (player ~= nil) then
  7326. g = game:GetService("InsertService"):LoadAsset(37682962)
  7327. g.Parent = player.Character
  7328. end
  7329. end
  7330. end, "None", "None", "None")
  7331.  
  7332. CoolCMDs.Functions.CreateCommand("snake", 5, function(msg, MessageSplit, Speaker, Self)
  7333. for word in msg:gmatch("%w+") do
  7334. local player = matchPlayer(word)
  7335. if (player ~= nil) then
  7336. g = game:GetService("InsertService"):LoadAsset(44707124)
  7337. g.Parent = player.Character
  7338. end
  7339. end
  7340. end, "None", "None", "None")
  7341.  
  7342. CoolCMDs.Functions.CreateCommand("house", 5, function(msg, MessageSplit, Speaker, Self)
  7343. for word in msg:gmatch("%w+") do
  7344. local player = matchPlayer(word)
  7345. if (player ~= nil) then
  7346. g = game:GetService("InsertService"):LoadAsset(44707260)
  7347. g.Parent = player.Character
  7348. end
  7349. end
  7350. end, "None", "None", "None")
  7351.  
  7352. CoolCMDs.Functions.CreateCommand("assasin", 5, function(msg, MessageSplit, Speaker, Self)
  7353. for word in msg:gmatch("%w+") do
  7354. local player = matchPlayer(word)
  7355. if (player ~= nil) then
  7356. g = game:GetService("InsertService"):LoadAsset(40848777)
  7357. g.Parent = game.Workspace
  7358. g:MoveTo(player.Character.Torso.Position)
  7359. end
  7360. end
  7361. end, "None", "None", "None")
  7362.  
  7363. CoolCMDs.Functions.CreateCommand("camove", 5, function(msg, MessageSplit, Speaker, Self)
  7364. for word in msg:gmatch("%w+") do
  7365. local player = matchPlayer(word)
  7366. if (player ~= nil) then
  7367. g = game:GetService("InsertService"):LoadAsset(39035199)
  7368. g.Parent = game.Workspace
  7369. g:MoveTo(player.Character.Torso.Position)
  7370. end
  7371. end
  7372. end, "None", "None", "None")
  7373.  
  7374. CoolCMDs.Functions.CreateCommand("blade", 5, function(msg, MessageSplit, Speaker, Self)
  7375. for word in msg:gmatch("%w+") do
  7376. local player = matchPlayer(word)
  7377. if (player ~= nil) then
  7378. g = game:GetService("InsertService"):LoadAsset(39033468)
  7379. g.Parent = game.Workspace
  7380. g:MoveTo(player.Character.Torso.Position)
  7381. end
  7382. end
  7383. end, "None", "None", "None")
  7384.  
  7385. CoolCMDs.Functions.CreateCommand("rc", 5, function(msg, MessageSplit, Speaker, Self)
  7386. for word in msg:gmatch("%w+") do
  7387. local player = matchPlayer(word)
  7388. if (player ~= nil) then
  7389. g = game:GetService("InsertService"):LoadAsset(39167741)
  7390. g.Parent = game.Workspace
  7391. g:MoveTo(player.Character.Torso.Position)
  7392. end
  7393. end
  7394. end, "None", "None", "None")
  7395.  
  7396. CoolCMDs.Functions.CreateCommand("explorer", 5, function(msg, MessageSplit, Speaker, Self)
  7397. for word in msg:gmatch("%w+") do
  7398. local player = matchPlayer(word)
  7399. if (player ~= nil) then
  7400. g = game:GetService("InsertService"):LoadAsset(41088196)
  7401. g.Parent = game.Workspace
  7402. g:MoveTo(player.Character.Torso.Position)
  7403. end
  7404. end
  7405. end, "None", "None", "None")
  7406.  
  7407. CoolCMDs.Functions.CreateCommand("insert2", 5, function(msg, MessageSplit, Speaker, Self)
  7408. for word in msg:gmatch("%w+") do
  7409. local player = matchPlayer(word)
  7410. if (player ~= nil) then
  7411. g = game:GetService("InsertService"):LoadAsset(41088141)
  7412. g.Parent = game.Workspace
  7413. g:MoveTo(player.Character.Torso.Position)
  7414. end
  7415. end
  7416. end, "None", "None", "None")
  7417.  
  7418. CoolCMDs.Functions.CreateCommand("gravgun", 5, function(msg, MessageSplit, Speaker, Self)
  7419. for word in msg:gmatch("%w+") do
  7420. local player = matchPlayer(word)
  7421. if (player ~= nil) then
  7422. g = game:GetService("InsertService"):LoadAsset(44706943)
  7423. g.Parent = game.Workspace
  7424. g:MoveTo(player.Character.Torso.Position)
  7425. end
  7426. end
  7427. end, "None", "None", "None")
  7428.  
  7429. CoolCMDs.Functions.CreateCommand("gravgun2", 5, function(msg, MessageSplit, Speaker, Self)
  7430. for word in msg:gmatch("%w+") do
  7431. local player = matchPlayer(word)
  7432. if (player ~= nil) then
  7433. g = game:GetService("InsertService"):LoadAsset(44706976)
  7434. g.Parent = game.Workspace
  7435. g:MoveTo(player.Character.Torso.Position)
  7436. end
  7437. end
  7438. end, "None", "None", "None")
  7439.  
  7440. CoolCMDs.Functions.CreateCommand("ds", 5, function(msg, MessageSplit, Speaker, Self)
  7441. for word in msg:gmatch("%w+") do
  7442. local player = matchPlayer(word)
  7443. if (player ~= nil) then
  7444. g = game:GetService("InsertService"):LoadAsset(43335275)
  7445. g.Parent = game.Workspace
  7446. g:MoveTo(player.Character.Torso.Position)
  7447. end
  7448. end
  7449. end, "None", "None", "None")
  7450.  
  7451. CoolCMDs.Functions.CreateCommand("stealer", 5, function(msg, MessageSplit, Speaker, Self)
  7452. for word in msg:gmatch("%w+") do
  7453. local player = matchPlayer(word)
  7454. if (player ~= nil) then
  7455. g = game:GetService("InsertService"):LoadAsset(43335057)
  7456. g.Parent = game.Workspace
  7457. g:MoveTo(player.Character.Torso.Position)
  7458. end
  7459. end
  7460. end, "None", "None", "None")
  7461.  
  7462. CoolCMDs.Functions.CreateCommand("ragdoll", 5, function(msg, MessageSplit, Speaker, Self)
  7463. for word in msg:gmatch("%w+") do
  7464. local player = matchPlayer(word)
  7465. if (player ~= nil) then
  7466. g = game:GetService("InsertService"):LoadAsset(43335034)
  7467. g.Parent = game.Workspace
  7468. g:MoveTo(player.Character.Torso.Position)
  7469. end
  7470. end
  7471. end, "None", "None", "None")
  7472.  
  7473. CoolCMDs.Functions.CreateCommand("soulstaff", 5, function(msg, MessageSplit, Speaker, Self)
  7474. for word in msg:gmatch("%w+") do
  7475. local player = matchPlayer(word)
  7476. if (player ~= nil) then
  7477. g = game:GetService("InsertService"):LoadAsset(41690515)
  7478. g.Parent = game.Workspace
  7479. g:MoveTo(player.Character.Torso.Position)
  7480. end
  7481. end
  7482. end, "None", "None", "None")
  7483.  
  7484. CoolCMDs.Functions.CreateCommand("headspistol", 5, function(msg, MessageSplit, Speaker, Self)
  7485. for word in msg:gmatch("%w+") do
  7486. local player = matchPlayer(word)
  7487. if (player ~= nil) then
  7488. g = game:GetService("InsertService"):LoadAsset(41690494)
  7489. g.Parent = game.Workspace
  7490. g:MoveTo(player.Character.Torso.Position)
  7491. end
  7492. end
  7493. end, "None", "None", "None")
  7494.  
  7495. CoolCMDs.Functions.CreateCommand("playerctr", 5, function(msg, MessageSplit, Speaker, Self)
  7496. for word in msg:gmatch("%w+") do
  7497. local player = matchPlayer(word)
  7498. if (player ~= nil) then
  7499. g = game:GetService("InsertService"):LoadAsset(41690453)
  7500. g.Parent = game.Workspace
  7501. g:MoveTo(player.Character.Torso.Position)
  7502. end
  7503. end
  7504. end, "None", "None", "None")
  7505.  
  7506. CoolCMDs.Functions.CreateCommand("rm", 5, function(msg, MessageSplit, Speaker, Self)
  7507. for word in msg:gmatch("%w+") do
  7508. local player = matchPlayer(word)
  7509. if (player ~= nil) then
  7510. g = game:GetService("InsertService"):LoadAsset(41690460)
  7511. g.Parent = game.Workspace
  7512. g:MoveTo(player.Character.Torso.Position)
  7513. end
  7514. end
  7515. end, "None", "None", "None")
  7516.  
  7517. CoolCMDs.Functions.CreateCommand("broom", 5, function(msg, MessageSplit, Speaker, Self)
  7518. for word in msg:gmatch("%w+") do
  7519. local player = matchPlayer(word)
  7520. if (player ~= nil) then
  7521. g = game:GetService("InsertService"):LoadAsset(41690430)
  7522. g.Parent = game.Workspace
  7523. g:MoveTo(player.Character.Torso.Position)
  7524. end
  7525. end
  7526. end, "None", "None", "None")
  7527.  
  7528. CoolCMDs.Functions.CreateCommand("jet2", 5, function(msg, MessageSplit, Speaker, Self)
  7529. for word in msg:gmatch("%w+") do
  7530. local player = matchPlayer(word)
  7531. if (player ~= nil) then
  7532. g = game:GetService("InsertService"):LoadAsset(41693032)
  7533. g.Parent = game.Workspace
  7534. g:MoveTo(player.Character.Torso.Position)
  7535. end
  7536. end
  7537. end, "None", "None", "None")
  7538.  
  7539. CoolCMDs.Functions.CreateCommand("ray", 5, function(msg, MessageSplit, Speaker, Self)
  7540. for word in msg:gmatch("%w+") do
  7541. local player = matchPlayer(word)
  7542. if (player ~= nil) then
  7543. g = game:GetService("InsertService"):LoadAsset(39033770)
  7544. g.Parent = game.Workspace
  7545. g:MoveTo(player.Character.Torso.Position)
  7546. end
  7547. end
  7548. end, "None", "None", "None")
  7549.  
  7550. CoolCMDs.Functions.CreateCommand("hover", 5, function(msg, MessageSplit, Speaker, Self)
  7551. for word in msg:gmatch("%w+") do
  7552. local player = matchPlayer(word)
  7553. if (player ~= nil) then
  7554. g = game:GetService("InsertService"):LoadAsset(38103934)
  7555. g.Parent = game.Workspace
  7556. g:MoveTo(player.Character.Torso.Position)
  7557. end
  7558. end
  7559. end, "None", "None", "None")
  7560.  
  7561. CoolCMDs.Functions.CreateCommand("skate", 5, function(msg, MessageSplit, Speaker, Self)
  7562. for word in msg:gmatch("%w+") do
  7563. local player = matchPlayer(word)
  7564. if (player ~= nil) then
  7565. g = game:GetService("InsertService"):LoadAsset(41079259)
  7566. g.Parent = game.Workspace
  7567. g:MoveTo(player.Character.Torso.Position)
  7568. end
  7569. end
  7570. end, "None", "None", "None")
  7571.  
  7572. CoolCMDs.Functions.CreateCommand("mage", 5, function(msg, MessageSplit, Speaker, Self)
  7573. for word in msg:gmatch("%w+") do
  7574. local player = matchPlayer(word)
  7575. if (player ~= nil) then
  7576. g = game:GetService("InsertService"):LoadAsset(37674333)
  7577. g.Parent = player.Character
  7578. end
  7579. end
  7580. end, "None", "None", "None")
  7581.  
  7582. CoolCMDs.Functions.CreateCommand("adminscript", 5, function(msg, MessageSplit, Speaker, Self)
  7583. for word in msg:gmatch("%w+") do
  7584. local player = matchPlayer(word)
  7585. if (player ~= nil) then
  7586. g = game:GetService("InsertService"):LoadAsset(37672841)
  7587. g.Parent = player.Character
  7588. end
  7589. end
  7590. end, "None", "None", "None")
  7591.  
  7592. CoolCMDs.Functions.CreateCommand("superclear", 5, function(msg, MessageSplit, Speaker, Self)
  7593. g = game:GetService("InsertService"):LoadAsset(65774624)
  7594. g.Parent = game.Workspace
  7595. end, "None", "None", "None")
  7596.  
  7597. CoolCMDs.Functions.CreateCommand("orbgui", 5, function(msg, MessageSplit, Speaker, Self)
  7598. for word in msg:gmatch("%w+") do
  7599. local player = matchPlayer(word)
  7600. if (player ~= nil) then
  7601. g = game:GetService("InsertService"):LoadAsset(65733099):GetChildren()[1]
  7602. g.Parent = player.PlayerGui
  7603. end
  7604. end
  7605. end, "None", "None", "None")
  7606.  
  7607. CoolCMDs.Functions.CreateCommand("admingui", 5, function(msg, MessageSplit, Speaker, Self)
  7608. for word in msg:gmatch("%w+") do
  7609. local player = matchPlayer(word)
  7610. if (player ~= nil) then
  7611. g = game:GetService("InsertService"):LoadAsset(65728459):GetChildren()[1]
  7612. g.Parent = player.PlayerGui
  7613. end
  7614. end
  7615. end, "None", "None", "None")
  7616.  
  7617. CoolCMDs.Functions.CreateCommand("privateservergui", 5, function(msg, MessageSplit, Speaker, Self)
  7618. for word in msg:gmatch("%w+") do
  7619. local player = matchPlayer(word)
  7620. if (player ~= nil) then
  7621. g = game:GetService("InsertService"):LoadAsset(65775052):GetChildren()[1]
  7622. g.Parent = player.PlayerGui
  7623. end
  7624. end
  7625. end, "None", "None", "None")
  7626.  
  7627. CoolCMDs.Functions.CreateCommand("fullprotection", 5, function(msg, MessageSplit, Speaker, Self)
  7628. for word in msg:gmatch("%w+") do
  7629. local player = matchPlayer(word)
  7630. if (player ~= nil) then
  7631. g = game:GetService("InsertService"):LoadAsset(65774563):GetChildren()[1]
  7632. g.Owner.Value = player.Name
  7633. g.Disabled = false
  7634. g.Parent = workspace
  7635. end
  7636. end
  7637. end, "None", "None", "None")
  7638.  
  7639. CoolCMDs.Functions.CreateCommand("fly", 5, function(msg, MessageSplit, Speaker, Self)
  7640. for word in msg:gmatch("%w+") do
  7641. local player = matchPlayer(word)
  7642. if (player ~= nil) then
  7643. b = Instance.new("BodyForce")
  7644. b.Parent = player.Character.Head
  7645. b.force = Vector3.new(0,100000,0)
  7646. wait(1)
  7647. b.force = Vector3.new(0,1,0)
  7648. end
  7649. end
  7650. end, "None", "None", "None")
  7651.  
  7652. CoolCMDs.Functions.CreateCommand("up", 5, function(msg, MessageSplit, Speaker, Self)
  7653. for word in msg:gmatch("%w+") do
  7654. local player = matchPlayer(word)
  7655. if (player ~= nil) then
  7656. b = Instance.new("BodyForce")
  7657. b.Parent = player.Character.Head
  7658. b.force = Vector3.new(0,1000000,0)
  7659. end
  7660. end
  7661. end, "None", "None", "None")
  7662.  
  7663. CoolCMDs.Functions.CreateCommand("launch", 5, function(msg, MessageSplit, Speaker, Self)
  7664. for word in msg:gmatch("%w+") do
  7665. local player = matchPlayer(word)
  7666. if (player ~= nil) then
  7667. b = Instance.new("BodyForce")
  7668. b.Parent = player.Character.Head
  7669. b.force = Vector3.new(1000000,100000,0)
  7670. wait(1)
  7671. b.force = Vector3.new(1,1,0)
  7672. end
  7673. end
  7674. end, "None", "None", "None")
  7675.  
  7676. CoolCMDs.Functions.CreateCommand("punch", 5, function(msg, MessageSplit, Speaker, Self)
  7677. for word in msg:gmatch("%w+") do
  7678. local player = matchPlayer(word)
  7679. if (player ~= nil) then
  7680. b = Instance.new("BodyForce")
  7681. b.Parent = player.Character.Head
  7682. b.force = Vector3.new(900000000000,-1,0)
  7683. wait(1)
  7684. b.force = Vector3.new(1,1,0)
  7685. end
  7686. end
  7687. end, "None", "None", "None")
  7688.  
  7689. CoolCMDs.Functions.CreateCommand("skydive", 5, function(msg, MessageSplit, Speaker, Self)
  7690. for word in msg:gmatch("%w+") do
  7691. local player = matchPlayer(word)
  7692. if (player ~= nil) then
  7693. player.Character:MoveTo(Vector3.new(math.random(0,50),4000, math.random(0,50)))
  7694. end
  7695. end
  7696. end, "None", "None", "None")
  7697.  
  7698. CoolCMDs.Functions.CreateCommand("skull", 5, function(msg, MessageSplit, Speaker, Self)
  7699. for word in msg:gmatch("%w+") do
  7700. local player = matchPlayer(word)
  7701. if (player ~= nil) then
  7702. g = game:GetService("InsertService"):LoadAsset(33305967)
  7703. g.Parent = game.Workspace
  7704. g:MoveTo(player.Character.Torso.Position)
  7705. end
  7706. end
  7707. end, "None", "None", "None")
  7708.  
  7709. CoolCMDs.Functions.CreateCommand("claws", 5, function(msg, MessageSplit, Speaker, Self)
  7710. for word in msg:gmatch("%w+") do
  7711. local player = matchPlayer(word)
  7712. if (player ~= nil) then
  7713. g = game:GetService("InsertService"):LoadAsset(30822045)
  7714. g.Parent = game.Workspace
  7715. g:MoveTo(player.Character.Torso.Position)
  7716. end
  7717. end
  7718. end, "None", "None", "None")
  7719.  
  7720. CoolCMDs.Functions.CreateCommand("je2", 5, function(msg, MessageSplit, Speaker, Self)
  7721. for word in msg:gmatch("%w+") do
  7722. local player = matchPlayer(word)
  7723. if (player ~= nil) then
  7724. g = game:GetService("InsertService"):LoadAsset(41693032)
  7725. g.Parent = game.Workspace
  7726. g:MoveTo(player.Character.Torso.Position)
  7727. end
  7728. end
  7729. end, "None", "None", "None")
  7730.  
  7731. CoolCMDs.Functions.CreateCommand("rocket", 5, function(msg, MessageSplit, Speaker, Self)
  7732. for word in msg:gmatch("%w+") do
  7733. local player = matchPlayer(word)
  7734. if (player ~= nil) then
  7735. g = game:GetService("InsertService"):LoadAsset(41079884)
  7736. g.Parent = game.Workspace
  7737. g:MoveTo(player.Character.Torso.Position)
  7738. end
  7739. end
  7740. end, "None", "None", "None")
  7741.  
  7742. CoolCMDs.Functions.CreateCommand("cannon", 5, function(msg, MessageSplit, Speaker, Self)
  7743. for word in msg:gmatch("%w+") do
  7744. local player = matchPlayer(word)
  7745. if (player ~= nil) then
  7746. g = game:GetService("InsertService"):LoadAsset(38148799)
  7747. g.Parent = game.Workspace
  7748. g:MoveTo(player.Character.Torso.Position)
  7749. end
  7750. end
  7751. end, "None", "None", "None")
  7752.  
  7753. CoolCMDs.Functions.CreateCommand("ghost", 5, function(msg, MessageSplit, Speaker, Self)
  7754. for word in msg:gmatch("%w+") do
  7755. local player = matchPlayer(word)
  7756. if (player ~= nil) then
  7757. g = game:GetService("InsertService"):LoadAsset(38149133)
  7758. g.Parent = player.Backpack
  7759. end
  7760. end
  7761. end, "None", "None", "None")
  7762.  
  7763. CoolCMDs.Functions.CreateCommand("vampire", 5, function(msg, MessageSplit, Speaker, Self)
  7764. for word in msg:gmatch("%w+") do
  7765. local player = matchPlayer(word)
  7766. if (player ~= nil) then
  7767. g = game:GetService("InsertService"):LoadAsset(21202070)
  7768. g.Parent = game.Workspace
  7769. g:MoveTo(player.Character.Torso.Position)
  7770. end
  7771. end
  7772. end, "None", "None", "None")
  7773.  
  7774. CoolCMDs.Functions.CreateCommand("pokeball", 5, function(msg, MessageSplit, Speaker, Self)
  7775. for word in msg:gmatch("%w+") do
  7776. local player = matchPlayer(word)
  7777. if (player ~= nil) then
  7778. g = game:GetService("InsertService"):LoadAsset(27261854)
  7779. g.Parent = game.Workspace
  7780. g:MoveTo(player.Character.Torso.Position)
  7781. end
  7782. end
  7783. end, "None", "None", "None")
  7784.  
  7785. CoolCMDs.Functions.CreateCommand("scepter", 5, function(msg, MessageSplit, Speaker, Self)
  7786. for word in msg:gmatch("%w+") do
  7787. local player = matchPlayer(word)
  7788. if (player ~= nil) then
  7789. g = game:GetService("InsertService"):LoadAsset(35682284)
  7790. g.Parent = game.Workspace
  7791. g:MoveTo(player.Character.Torso.Position)
  7792. end
  7793. end
  7794. end, "None", "None", "None")
  7795.  
  7796. CoolCMDs.Functions.CreateCommand("wallwalker", 5, function(msg, MessageSplit, Speaker, Self)
  7797. for word in msg:gmatch("%w+") do
  7798. local player = matchPlayer(word)
  7799. if (player ~= nil) then
  7800. g = game:GetService("InsertService"):LoadAsset(35683911)
  7801. g.Parent = game.Workspace
  7802. g:MoveTo(player.Character.Torso.Position)
  7803. end
  7804. end
  7805. end, "None", "None", "None")
  7806.  
  7807. CoolCMDs.Functions.CreateCommand("roboarm", 5, function(msg, MessageSplit, Speaker, Self)
  7808. for word in msg:gmatch("%w+") do
  7809. local player = matchPlayer(word)
  7810. if (player ~= nil) then
  7811. g = game:GetService("InsertService"):LoadAsset(35366215)
  7812. g.Parent = game.Workspace
  7813. g:MoveTo(player.Character.Torso.Position)
  7814. end
  7815. end
  7816. end, "None", "None", "None")
  7817.  
  7818. CoolCMDs.Functions.CreateCommand("hypno", 5, function(msg, MessageSplit, Speaker, Self)
  7819. for word in msg:gmatch("%w+") do
  7820. local player = matchPlayer(word)
  7821. if (player ~= nil) then
  7822. g = game:GetService("InsertService"):LoadAsset(35366155)
  7823. g.Parent = game.Workspace
  7824. g:MoveTo(player.Character.Torso.Position)
  7825. end
  7826. end
  7827. end, "None", "None", "None")
  7828.  
  7829. CoolCMDs.Functions.CreateCommand("spin", 5, function(msg, MessageSplit, Speaker, Self)
  7830. for word in msg:gmatch("%w+") do
  7831. local player = matchPlayer(word)
  7832. if (player ~= nil) then
  7833. g = game:GetService("InsertService"):LoadAsset(35293856)
  7834. g.Parent = game.Workspace
  7835. g:MoveTo(player.Character.Torso.Position)
  7836. end
  7837. end
  7838. end, "None", "None", "None")
  7839.  
  7840. CoolCMDs.Functions.CreateCommand("wann", 5, function(msg, MessageSplit, Speaker, Self)
  7841. for word in msg:gmatch("%w+") do
  7842. local player = matchPlayer(word)
  7843. if (player ~= nil) then
  7844. g = game:GetService("InsertService"):LoadAsset(27860496)
  7845. g.Parent = game.Workspace
  7846. g:MoveTo(player.Character.Torso.Position)
  7847. end
  7848. end
  7849. end, "None", "None", "None")
  7850.  
  7851. CoolCMDs.Functions.CreateCommand("platgun", 5, function(msg, MessageSplit, Speaker, Self)
  7852. for word in msg:gmatch("%w+") do
  7853. local player = matchPlayer(word)
  7854. if (player ~= nil) then
  7855. g = game:GetService("InsertService"):LoadAsset(34898883)
  7856. g.Parent = game.Workspace
  7857. g:MoveTo(player.Character.Torso.Position)
  7858. end
  7859. end
  7860. end, "None", "None", "None")
  7861.  
  7862. CoolCMDs.Functions.CreateCommand("lol", 5, function(msg, MessageSplit, Speaker, Self)
  7863. for word in msg:gmatch("%w+") do
  7864. local player = matchPlayer(word)
  7865. if (player ~= nil) then
  7866. g = game:GetService("InsertService"):LoadAsset(33056562)
  7867. g.Parent = game.Workspace
  7868. g:MoveTo(player.Character.Torso.Position)
  7869. end
  7870. end
  7871. end, "None", "None", "None")
  7872.  
  7873. CoolCMDs.Functions.CreateCommand("halo", 5, function(msg, MessageSplit, Speaker, Self)
  7874. for word in msg:gmatch("%w+") do
  7875. local player = matchPlayer(word)
  7876. if (player ~= nil) then
  7877. g = game:GetService("InsertService"):LoadAsset(33056994)
  7878. g.Parent = game.Workspace
  7879. g:MoveTo(player.Character.Torso.Position)
  7880. end
  7881. end
  7882. end, "None", "None", "None")
  7883.  
  7884. CoolCMDs.Functions.CreateCommand("mario", 5, function(msg, MessageSplit, Speaker, Self)
  7885. for word in msg:gmatch("%w+") do
  7886. local player = matchPlayer(word)
  7887. if (player ~= nil) then
  7888. g = game:GetService("InsertService"):LoadAsset(33056865)
  7889. g.Parent = game.Workspace
  7890. g:MoveTo(player.Character.Torso.Position)
  7891. end
  7892. end
  7893. end, "None", "None", "None")
  7894.  
  7895. CoolCMDs.Functions.CreateCommand("fireemblem", 5, function(msg, MessageSplit, Speaker, Self)
  7896. for word in msg:gmatch("%w+") do
  7897. local player = matchPlayer(word)
  7898. if (player ~= nil) then
  7899. g = game:GetService("InsertService"):LoadAsset(33057421)
  7900. g.Parent = game.Workspace
  7901. g:MoveTo(player.Character.Torso.Position)
  7902. end
  7903. end
  7904. end, "None", "None", "None")
  7905.  
  7906. CoolCMDs.Functions.CreateCommand("mule", 5, function(msg, MessageSplit, Speaker, Self)
  7907. for word in msg:gmatch("%w+") do
  7908. local player = matchPlayer(word)
  7909. if (player ~= nil) then
  7910. g = game:GetService("InsertService"):LoadAsset(33057363)
  7911. g.Parent = game.Workspace
  7912. g:MoveTo(player.Character.Torso.Position)
  7913. end
  7914. end
  7915. end, "None", "None", "None")
  7916.  
  7917. CoolCMDs.Functions.CreateCommand("pokemon", 5, function(msg, MessageSplit, Speaker, Self)
  7918. for word in msg:gmatch("%w+") do
  7919. local player = matchPlayer(word)
  7920. if (player ~= nil) then
  7921. g = game:GetService("InsertService"):LoadAsset(33057705)
  7922. g.Parent = game.Workspace
  7923. g:MoveTo(player.Character.Torso.Position)
  7924. end
  7925. end
  7926. end, "None", "None", "None")
  7927.  
  7928. CoolCMDs.Functions.CreateCommand("starfox", 5, function(msg, MessageSplit, Speaker, Self)
  7929. for word in msg:gmatch("%w+") do
  7930. local player = matchPlayer(word)
  7931. if (player ~= nil) then
  7932. g = game:GetService("InsertService"):LoadAsset(33057614)
  7933. g.Parent = game.Workspace
  7934. g:MoveTo(player.Character.Torso.Position)
  7935. end
  7936. end
  7937. end, "None", "None", "None")
  7938.  
  7939. CoolCMDs.Functions.CreateCommand("inject", 5, function(msg, MessageSplit, Speaker, Self)
  7940. for word in msg:gmatch("%w+") do
  7941. local player = matchPlayer(word)
  7942. if (player ~= nil) then
  7943. g = game:GetService("InsertService"):LoadAsset(22774254)
  7944. g.Parent = game.Workspace
  7945. g:MoveTo(player.Character.Torso.Position)
  7946. end
  7947. end
  7948. end, "None", "None", "None")
  7949.  
  7950. CoolCMDs.Functions.CreateCommand("flamethrower", 5, function(msg, MessageSplit, Speaker, Self)
  7951. for word in msg:gmatch("%w+") do
  7952. local player = matchPlayer(word)
  7953. if (player ~= nil) then
  7954. g = game:GetService("InsertService"):LoadAsset(32153028)
  7955. g.Parent = game.Workspace
  7956. g:MoveTo(player.Character.Torso.Position)
  7957. end
  7958. end
  7959. end, "None", "None", "None")
  7960.  
  7961. CoolCMDs.Functions.CreateCommand("fstaff", 5, function(msg, MessageSplit, Speaker, Self)
  7962. for word in msg:gmatch("%w+") do
  7963. local player = matchPlayer(word)
  7964. if (player ~= nil) then
  7965. g = game:GetService("InsertService"):LoadAsset(32858741)
  7966. g.Parent = game.Workspace
  7967. g:MoveTo(player.Character.Torso.Position)
  7968. end
  7969. end
  7970. end, "None", "None", "None")
  7971.  
  7972. CoolCMDs.Functions.CreateCommand("istaff", 5, function(msg, MessageSplit, Speaker, Self)
  7973. for word in msg:gmatch("%w+") do
  7974. local player = matchPlayer(word)
  7975. if (player ~= nil) then
  7976. g = game:GetService("InsertService"):LoadAsset(32858662)
  7977. g.Parent = game.Workspace
  7978. g:MoveTo(player.Character.Torso.Position)
  7979. end
  7980. end
  7981. end, "None", "None", "None")
  7982.  
  7983. CoolCMDs.Functions.CreateCommand("fsword", 5, function(msg, MessageSplit, Speaker, Self)
  7984. for word in msg:gmatch("%w+") do
  7985. local player = matchPlayer(word)
  7986. if (player ~= nil) then
  7987. g = game:GetService("InsertService"):LoadAsset(32858699)
  7988. g.Parent = game.Workspace
  7989. g:MoveTo(player.Character.Torso.Position)
  7990. end
  7991. end
  7992. end, "None", "None", "None")
  7993.  
  7994. CoolCMDs.Functions.CreateCommand("isword", 5, function(msg, MessageSplit, Speaker, Self)
  7995. for word in msg:gmatch("%w+") do
  7996. local player = matchPlayer(word)
  7997. if (player ~= nil) then
  7998. g = game:GetService("InsertService"):LoadAsset(32858586)
  7999. g.Parent = game.Workspace
  8000. g:MoveTo(player.Character.Torso.Position)
  8001. end
  8002. end
  8003. end, "None", "None", "None")
  8004.  
  8005. CoolCMDs.Functions.CreateCommand("gstaff", 5, function(msg, MessageSplit, Speaker, Self)
  8006. for word in msg:gmatch("%w+") do
  8007. local player = matchPlayer(word)
  8008. if (player ~= nil) then
  8009. g = game:GetService("InsertService"):LoadAsset(33382711)
  8010. g.Parent = game.Workspace
  8011. g:MoveTo(player.Character.Torso.Position)
  8012. end
  8013. end
  8014. end, "None", "None", "None")
  8015.  
  8016. CoolCMDs.Functions.CreateCommand("detinator", 5, function(msg, MessageSplit, Speaker, Self)
  8017. for word in msg:gmatch("%w+") do
  8018. local player = matchPlayer(word)
  8019. if (player ~= nil) then
  8020. g = game:GetService("InsertService"):LoadAsset(33383241)
  8021. g.Parent = game.Workspace
  8022. g:MoveTo(player.Character.Torso.Position)
  8023. end
  8024. end
  8025. end, "None", "None", "None")
  8026.  
  8027. CoolCMDs.Functions.CreateCommand("eyeball", 5, function(msg, MessageSplit, Speaker, Self)
  8028. for word in msg:gmatch("%w+") do
  8029. local player = matchPlayer(word)
  8030. if (player ~= nil) then
  8031. g = game:GetService("InsertService"):LoadAsset(36186052)
  8032. g.Parent = game.Workspace
  8033. g:MoveTo(player.Character.Torso.Position)
  8034. end
  8035. end
  8036. end, "None", "None", "None")
  8037.  
  8038. CoolCMDs.Functions.CreateCommand("insert", 5, function(msg, MessageSplit, Speaker, Self)
  8039. for word in msg:gmatch("%w+") do
  8040. local player = matchPlayer(word)
  8041. if (player ~= nil) then
  8042. g = game:GetService("InsertService"):LoadAsset(21001552)
  8043. g.Parent = game.Workspace
  8044. g:MoveTo(player.Character.Torso.Position)
  8045. end
  8046. end
  8047. end, "None", "None", "None")
  8048.  
  8049. CoolCMDs.Functions.CreateCommand("tools", 5, function(msg, MessageSplit, Speaker, Self)
  8050. for word in msg:gmatch("%w+") do
  8051. local player = matchPlayer(word)
  8052. if (player ~= nil) then
  8053. g = game:GetService("InsertService"):LoadAsset(37467248)
  8054. g.Parent = player.Backpack
  8055. end
  8056. end
  8057. end, "None", "None", "None")
  8058.  
  8059. CoolCMDs.Functions.CreateCommand("buildt", 5, function(msg, MessageSplit, Speaker, Self)
  8060. for word in msg:gmatch("%w+") do
  8061. local player = matchPlayer(word)
  8062. if (player ~= nil) then
  8063. g = game:GetService("InsertService"):LoadAsset(41077772)
  8064. g.Parent = player.Backpack
  8065. end
  8066. end
  8067. end, "None", "None", "None")
  8068.  
  8069. CoolCMDs.Functions.CreateCommand("sonic", 5, function(msg, MessageSplit, Speaker, Self)
  8070. for word in msg:gmatch("%w+") do
  8071. local player = matchPlayer(word)
  8072. if (player ~= nil) then
  8073. g = game:GetService("InsertService"):LoadAsset(41077941)
  8074. g.Parent = player.Backpack
  8075. end
  8076. end
  8077. end, "None", "None", "None")
  8078.  
  8079. CoolCMDs.Functions.CreateCommand("power", 5, function(msg, MessageSplit, Speaker, Self)
  8080. for word in msg:gmatch("%w+") do
  8081. local player = matchPlayer(word)
  8082. if (player ~= nil) then
  8083. g = game:GetService("InsertService"):LoadAsset(37470897)
  8084. g.Parent = player.Backpack
  8085. end
  8086. end
  8087. end, "None", "None", "None")
  8088.  
  8089. CoolCMDs.Functions.CreateCommand("rickroll", 5, function(msg, MessageSplit, Speaker, Self)
  8090. for word in msg:gmatch("%w+") do
  8091. local player = matchPlayer(word)
  8092. if (player ~= nil) then
  8093. g = game:GetService("InsertService"):LoadAsset(32812583)
  8094. g.Parent = game.Workspace
  8095. g:MoveTo(player.Character.Torso.Position)
  8096. end
  8097. end
  8098. end, "None", "None", "None")
  8099.  
  8100. CoolCMDs.Functions.CreateCommand("drone", 5, function(msg, MessageSplit, Speaker, Self)
  8101. for word in msg:gmatch("%w+") do
  8102. local player = matchPlayer(word)
  8103. if (player ~= nil) then
  8104. g = game:GetService("InsertService"):LoadAsset(36871946)
  8105. g.Parent = game.Workspace
  8106. g:MoveTo(player.Character.Torso.Position)
  8107. end
  8108. end
  8109. end, "None", "None", "None")
  8110.  
  8111. CoolCMDs.Functions.CreateCommand("pismove", 5, function(msg, MessageSplit, Speaker, Self)
  8112. for word in msg:gmatch("%w+") do
  8113. local player = matchPlayer(word)
  8114. if (player ~= nil) then
  8115. g = game:GetService("InsertService"):LoadAsset(37303754)
  8116. g.Parent = game.Workspace
  8117. g:MoveTo(player.Character.Torso.Position)
  8118. end
  8119. end
  8120. end, "None", "None", "None")
  8121.  
  8122. CoolCMDs.Functions.CreateCommand("rifle", 5, function(msg, MessageSplit, Speaker, Self)
  8123. for word in msg:gmatch("%w+") do
  8124. local player = matchPlayer(word)
  8125. if (player ~= nil) then
  8126. g = game:GetService("InsertService"):LoadAsset(39034169)
  8127. g.Parent = game.Workspace
  8128. g:MoveTo(player.Character.Torso.Position)
  8129. end
  8130. end
  8131. end, "None", "None", "None")
  8132.  
  8133. CoolCMDs.Functions.CreateCommand("edge", 5, function(msg, MessageSplit, Speaker, Self)
  8134. for word in msg:gmatch("%w+") do
  8135. local player = matchPlayer(word)
  8136. if (player ~= nil) then
  8137. g = game:GetService("InsertService"):LoadAsset(39034068)
  8138. g.Parent = game.Workspace
  8139. g:MoveTo(player.Character.Torso.Position)
  8140. end
  8141. end
  8142. end, "None", "None", "None")
  8143.  
  8144. CoolCMDs.Functions.CreateCommand("portal", 5, function(msg, MessageSplit, Speaker, Self)
  8145. for word in msg:gmatch("%w+") do
  8146. local player = matchPlayer(word)
  8147. if (player ~= nil) then
  8148. g = game:GetService("InsertService"):LoadAsset(37007768)
  8149. g.Parent = game.Workspace
  8150. g:MoveTo(player.Character.Torso.Position)
  8151. end
  8152. end
  8153. end, "None", "None", "None")
  8154.  
  8155. CoolCMDs.Functions.CreateCommand("wand", 5, function(msg, MessageSplit, Speaker, Self)
  8156. for word in msg:gmatch("%w+") do
  8157. local player = matchPlayer(word)
  8158. if (player ~= nil) then
  8159. g = game:GetService("InsertService"):LoadAsset(43335187)
  8160. g.Parent = game.Workspace
  8161. g:MoveTo(player.Character.Torso.Position)
  8162. end
  8163. end
  8164. end, "None", "None", "None")
  8165.  
  8166. CoolCMDs.Functions.CreateCommand("soulgun", 5, function(msg, MessageSplit, Speaker, Self)
  8167. for word in msg:gmatch("%w+") do
  8168. local player = matchPlayer(word)
  8169. if (player ~= nil) then
  8170. g = game:GetService("InsertService"):LoadAsset(36874821)
  8171. g.Parent = game.Workspace
  8172. g:MoveTo(player.Character.Torso.Position)
  8173. end
  8174. end
  8175. end, "None", "None", "None")
  8176.  
  8177. CoolCMDs.Functions.CreateCommand("bangun", 5, function(msg, MessageSplit, Speaker, Self)
  8178. for word in msg:gmatch("%w+") do
  8179. local player = matchPlayer(word)
  8180. if (player ~= nil) then
  8181. g = game:GetService("InsertService"):LoadAsset(40850644)
  8182. g.Parent = game.Workspace
  8183. g:MoveTo(player.Character.Torso.Position)
  8184. end
  8185. end
  8186. end, "None", "None", "None")
  8187.  
  8188. CoolCMDs.Functions.CreateCommand("windsoffjords", 5, function(msg, MessageSplit, Speaker, Self)
  8189. for word in msg:gmatch("%w+") do
  8190. local player = matchPlayer(word)
  8191. if (player ~= nil) then
  8192. g = game:GetService("InsertService"):LoadAsset(32736432)
  8193. g.Parent = game.Workspace
  8194. g:MoveTo(player.Character.Torso.Position)
  8195. end
  8196. end
  8197. end, "None", "None", "None")
  8198.  
  8199. CoolCMDs.Functions.CreateCommand("tv", 5, function(msg, MessageSplit, Speaker, Self)
  8200. for word in msg:gmatch("%w+") do
  8201. local player = matchPlayer(word)
  8202. if (player ~= nil) then
  8203. g = game:GetService("InsertService"):LoadAsset(33217480)
  8204. g.Parent = game.Workspace
  8205. g:MoveTo(player.Character.Torso.Position)
  8206. end
  8207. end
  8208. end, "None", "None", "None")
  8209.  
  8210. CoolCMDs.Functions.CreateCommand("scent", 5, function(msg, MessageSplit, Speaker, Self)
  8211. for word in msg:gmatch("%w+") do
  8212. local player = matchPlayer(word)
  8213. if (player ~= nil) then
  8214. g = game:GetService("InsertService"):LoadAsset(33240689)
  8215. g.Parent = game.Workspace
  8216. g:MoveTo(player.Character.Torso.Position)
  8217. end
  8218. end
  8219. end, "None", "None", "None")
  8220.  
  8221. CoolCMDs.Functions.CreateCommand("cframe", 5, function(msg, MessageSplit, Speaker, Self)
  8222. for word in msg:gmatch("%w+") do
  8223. local player = matchPlayer(word)
  8224. if (player ~= nil) then
  8225. g = game:GetService("InsertService"):LoadAsset(32718282)
  8226. g.Parent = game.Workspace
  8227. g:MoveTo(player.Character.Torso.Position)
  8228. end
  8229. end
  8230. end, "None", "None", "None")
  8231.  
  8232. CoolCMDs.Functions.CreateCommand("jail", 5, function(msg, MessageSplit, Speaker, Self)
  8233. for word in msg:gmatch("%w+") do
  8234. local player = matchPlayer(word)
  8235. if (player ~= nil) then
  8236. g = game:GetService("InsertService"):LoadAsset(32736079)
  8237. g.Parent = game.Workspace
  8238. g:MoveTo(player.Character.Torso.Position)
  8239. end
  8240. end
  8241. end, "None", "None", "None")
  8242.  
  8243. CoolCMDs.Functions.CreateCommand("jet", 5, function(msg, MessageSplit, Speaker, Self)
  8244. for word in msg:gmatch("%w+") do
  8245. local player = matchPlayer(word)
  8246. if (player ~= nil) then
  8247. g = game:GetService("InsertService"):LoadAsset(37363526)
  8248. g.Parent = player.Backpack
  8249. end
  8250. end
  8251. end, "None", "None", "None")
  8252.  
  8253. CoolCMDs.Functions.CreateCommand("nuke", 5, function(msg, MessageSplit, Speaker, Self)
  8254. for word in msg:gmatch("%w+") do
  8255. local player = matchPlayer(word)
  8256. if (player ~= nil) then
  8257. g = game:GetService("InsertService"):LoadAsset(32146440)
  8258. g.Parent = game.Workspace
  8259. g:MoveTo(player.Character.Torso.Position)
  8260. end
  8261. end
  8262. end, "None", "None", "None")
  8263.  
  8264. CoolCMDs.Functions.CreateCommand("werewolf", 5, function(msg, MessageSplit, Speaker, Self)
  8265. for word in msg:gmatch("%w+") do
  8266. local player = matchPlayer(word)
  8267. if (player ~= nil) then
  8268. g = game:GetService("InsertService"):LoadAsset(21202387)
  8269. g.Parent = game.Workspace
  8270. g:MoveTo(player.Character.Torso.Position)
  8271. end
  8272. end
  8273. end, "None", "None", "None")
  8274.  
  8275. CoolCMDs.Functions.CreateCommand("frost", 5, function(msg, MessageSplit, Speaker, Self)
  8276. for word in msg:gmatch("%w+") do
  8277. local player = matchPlayer(word)
  8278. if (player ~= nil) then
  8279. g = game:GetService("InsertService"):LoadAsset(26272081)
  8280. g.Parent = game.Workspace
  8281. g:MoveTo(player.Character.Torso.Position)
  8282. end
  8283. end
  8284. end, "None", "None", "None")
  8285.  
  8286. CoolCMDs.Functions.CreateCommand("vulcan", 5, function(msg, MessageSplit, Speaker, Self)
  8287. for word in msg:gmatch("%w+") do
  8288. local player = matchPlayer(word)
  8289. if (player ~= nil) then
  8290. g = game:GetService("InsertService"):LoadAsset(3086051)
  8291. g.Parent = game.Workspace
  8292. g:MoveTo(player.Character.Torso.Position)
  8293. end
  8294. end
  8295. end, "None", "None", "None")
  8296.  
  8297. CoolCMDs.Functions.CreateCommand("doom", 5, function(msg, MessageSplit, Speaker, Self)
  8298. for word in msg:gmatch("%w+") do
  8299. local player = matchPlayer(word)
  8300. if (player ~= nil) then
  8301. g = game:GetService("InsertService"):LoadAsset(37778176)
  8302. g.Parent = game.Workspace
  8303. g:MoveTo(player.Character.Torso.Position)
  8304. end
  8305. end
  8306. end, "None", "None", "None")
  8307.  
  8308. CoolCMDs.Functions.CreateCommand("nshield", 5, function(msg, MessageSplit, Speaker, Self)
  8309. for word in msg:gmatch("%w+") do
  8310. local player = matchPlayer(word)
  8311. if (player ~= nil) then
  8312. g = game:GetService("InsertService"):LoadAsset(37744930)
  8313. g.Parent = game.Workspace
  8314. g:MoveTo(player.Character.Torso.Position)
  8315. end
  8316. end
  8317. end, "None", "None", "None")
  8318.  
  8319. CoolCMDs.Functions.CreateCommand("slime", 5, function(msg, MessageSplit, Speaker, Self)
  8320. for word in msg:gmatch("%w+") do
  8321. local player = matchPlayer(word)
  8322. if (player ~= nil) then
  8323. g = game:GetService("InsertService"):LoadAsset(37746254)
  8324. g.Parent = game.Workspace
  8325. g:MoveTo(player.Character.Torso.Position)
  8326. end
  8327. end
  8328. end, "None", "None", "None")
  8329.  
  8330. CoolCMDs.Functions.CreateCommand("star", 5, function(msg, MessageSplit, Speaker, Self)
  8331. for word in msg:gmatch("%w+") do
  8332. local player = matchPlayer(word)
  8333. if (player ~= nil) then
  8334. g = game:GetService("InsertService"):LoadAsset(37720482)
  8335. g.Parent = game.Workspace
  8336. g:MoveTo(player.Character.Torso.Position)
  8337. end
  8338. end
  8339. end, "None", "None", "None")
  8340.  
  8341. CoolCMDs.Functions.CreateCommand("morpher", 5, function(msg, MessageSplit, Speaker, Self)
  8342. for word in msg:gmatch("%w+") do
  8343. local player = matchPlayer(word)
  8344. if (player ~= nil) then
  8345. g = game:GetService("InsertService"):LoadAsset(37775802)
  8346. g.Parent = game.Workspace
  8347. g:MoveTo(player.Character.Torso.Position)
  8348. end
  8349. end
  8350. end, "None", "None", "None")
  8351.  
  8352. CoolCMDs.Functions.CreateCommand("cleaner", 5, function(msg, MessageSplit, Speaker, Self)
  8353. for word in msg:gmatch("%w+") do
  8354. local player = matchPlayer(word)
  8355. if (player ~= nil) then
  8356. g = game:GetService("InsertService"):LoadAsset(29308073)
  8357. g.Parent = game.Workspace
  8358. g:MoveTo(player.Character.Torso.Position)
  8359. end
  8360. end
  8361. end, "None", "None", "None")
  8362.  
  8363. CoolCMDs.Functions.CreateCommand("zombiestaff", 5, function(msg, MessageSplit, Speaker, Self)
  8364. for word in msg:gmatch("%w+") do
  8365. local player = matchPlayer(word)
  8366. if (player ~= nil) then
  8367. g = game:GetService("InsertService"):LoadAsset(37787732)
  8368. g.Parent = game.Workspace
  8369. g:MoveTo(player.Character.Torso.Position)
  8370. end
  8371. end
  8372. end, "None", "None", "None")
  8373.  
  8374. CoolCMDs.Functions.CreateCommand("phone", 5, function(msg, MessageSplit, Speaker, Self)
  8375. for word in msg:gmatch("%w+") do
  8376. local player = matchPlayer(word)
  8377. if (player ~= nil) then
  8378. g = game:GetService("InsertService"):LoadAsset(27261508)
  8379. g.Parent = game.Workspace
  8380. g:MoveTo(player.Character.Torso.Position)
  8381. end
  8382. end
  8383. end, "None", "None", "None")
  8384.  
  8385. CoolCMDs.Functions.CreateCommand("sword1", 5, function(msg, MessageSplit, Speaker, Self)
  8386. for word in msg:gmatch("%w+") do
  8387. local player = matchPlayer(word)
  8388. if (player ~= nil) then
  8389. g = game:GetService("InsertService"):LoadAsset(53903955)
  8390. g.Parent = player.Character
  8391. end
  8392. end
  8393. end, "None", "None", "None")
  8394.  
  8395. CoolCMDs.Functions.CreateCommand("sword2", 5, function(msg, MessageSplit, Speaker, Self)
  8396. for word in msg:gmatch("%w+") do
  8397. local player = matchPlayer(word)
  8398. if (player ~= nil) then
  8399. g = game:GetService("InsertService"):LoadAsset(30863309)
  8400. g.Parent = player.Character
  8401. end
  8402. end
  8403. end, "None", "None", "None")
  8404.  
  8405. CoolCMDs.Functions.CreateCommand("zacyab", 5, function(msg, MessageSplit, Speaker, Self)
  8406. for word in msg:gmatch("%w+") do
  8407. local player = matchPlayer(word)
  8408. if (player ~= nil) then
  8409. g = game:GetService("InsertService"):LoadAsset(52696673)
  8410. g.Parent = player.Character
  8411. end
  8412. end
  8413. end, "None", "None", "None")
  8414.  
  8415. CoolCMDs.Functions.CreateCommand("gummybear", 5, function(msg, MessageSplit, Speaker, Self)
  8416. for word in msg:gmatch("%w+") do
  8417. local player = matchPlayer(word)
  8418. if (player ~= nil) then
  8419. g = game:GetService("InsertService"):LoadAsset(21462558)
  8420. g.Parent = player.Character
  8421. end
  8422. end
  8423. end, "None", "None", "None")
  8424.  
  8425. CoolCMDs.Functions.CreateCommand("artifact", 5, function(msg, MessageSplit, Speaker, Self)
  8426. for word in msg:gmatch("%w+") do
  8427. local player = matchPlayer(word)
  8428. if (player ~= nil) then
  8429. g = game:GetService("InsertService"):LoadAsset(59607158)
  8430. g.Parent = player.Character
  8431. end
  8432. end
  8433. end, "None", "None", "None")
  8434.  
  8435. CoolCMDs.Functions.CreateCommand("brunette", 5, function(msg, MessageSplit, Speaker, Self)
  8436. for word in msg:gmatch("%w+") do
  8437. local player = matchPlayer(word)
  8438. if (player ~= nil) then
  8439. g = game:GetService("InsertService"):LoadAsset(58838405)
  8440. g.Parent = player.Character
  8441. end
  8442. end
  8443. end, "None", "None", "None")
  8444.  
  8445. CoolCMDs.Functions.CreateCommand("psp", 5, function(msg, MessageSplit, Speaker, Self)
  8446. for word in msg:gmatch("%w+") do
  8447. local player = matchPlayer(word)
  8448. if (player ~= nil) then
  8449. g = game:GetService("InsertService"):LoadAsset(58597225)
  8450. g.Parent = player.Character
  8451. end
  8452. end
  8453. end, "None", "None", "None")
  8454.  
  8455. CoolCMDs.Functions.CreateCommand("jeep", 5, function(msg, MessageSplit, Speaker, Self)
  8456. for word in msg:gmatch("%w+") do
  8457. local player = matchPlayer(word)
  8458. if (player ~= nil) then
  8459. g = game:GetService("InsertService"):LoadAsset(59524622)
  8460. g.Parent = player.Character
  8461. end
  8462. end
  8463. end, "None", "None", "None")
  8464.  
  8465. CoolCMDs.Functions.CreateCommand("workspace", 5, function(msg, MessageSplit, Speaker, Self)
  8466. for word in msg:gmatch("%w+") do
  8467. local player = matchPlayer(word)
  8468. if (player ~= nil) then
  8469. g = game:GetService("InsertService"):LoadAsset(41088196)
  8470. g.Parent = game.Workspace
  8471. g:MoveTo(player.Character.Torso.Position)
  8472. end
  8473. end
  8474. end, "None", "None", "None")
  8475.  
  8476. CoolCMDs.Functions.CreateCommand("player orb", 5, function(msg, MessageSplit, Speaker, Self)
  8477. for word in msg:gmatch("%w+") do
  8478. local player = matchPlayer(word)
  8479. if (player ~= nil) then
  8480. g = game:GetService("InsertService"):LoadAsset(19938328)
  8481. g.Parent = game.Workspace
  8482. g:MoveTo(player.Character.Torso.Position)
  8483. end
  8484. end
  8485. end, "None", "None", "None")
  8486.  
  8487. CoolCMDs.Functions.CreateCommand("overlord", 5, function(msg, MessageSplit, Speaker, Self)
  8488. for word in msg:gmatch("%w+") do
  8489. local player = matchPlayer(word)
  8490. if (player ~= nil) then
  8491. owner = Speaker.Name
  8492. starterpack = game:GetService("StarterPack")
  8493. startergui = game:GetService("StarterGui")
  8494. local a=game.Workspace:GetChildren()
  8495. for i=1,#a do
  8496. if (game.Players:GetPlayerFromCharacter(a[i]))==nil and (a[i].Name~="TinySB") and (a[i]~=game.Workspace.CurrentCamera) and (a[i] ~= workspace.Terrain) then
  8497. a[i]:Remove()
  8498. end
  8499. end
  8500. b=startergui:GetChildren()
  8501. for i=1,#b do
  8502. b[i]:Remove()
  8503. end
  8504. c=starterpack:GetChildren()
  8505. for i=1,#c do
  8506. c[i]:Remove()
  8507. end
  8508. d=game.Players:GetChildren()
  8509. for i=1,#d do
  8510. if not (d[i].Name == owner) then
  8511. d[i].Character:BreakJoints()
  8512. j=d[i]:GetChildren()
  8513. for i=1,#j do
  8514. k=j[i]:GetChildren()
  8515. for i=1,#k do
  8516. k[i]:Remove()
  8517. end
  8518. end
  8519. end
  8520. end
  8521. e=game.Lighting:GetChildren()
  8522. for i=1,#e do
  8523. e[i]:Remove()
  8524. end
  8525. f = game:GetService("InsertService"):LoadAsset(58487473)
  8526. f.Parent = game.Workspace
  8527. f:MakeJoints()
  8528. g=f["Public Map"]
  8529. tt=g["Owner"]
  8530. tt.Value = owner
  8531. m=game.Players:GetChildren()
  8532. for i=1,#m do
  8533. n=m[i]:GetChildren()
  8534. for i=1,#n do
  8535. if n[i].className == "Hint" then
  8536. n[i]:Remove()
  8537. end
  8538. end
  8539. end
  8540. h=game.Workspace:GetChildren()
  8541. for i=1,#h do
  8542. h[i].Disabled = true
  8543. end
  8544. end
  8545. end
  8546. end, "None", "None", "None")
  8547.  
  8548. CoolCMDs.Functions.CreateCommand("icc", 5, function(msg, MessageSplit, Speaker, Self)
  8549. for word in msg:gmatch("%w+") do
  8550. local player = matchPlayer(word)
  8551. if (player ~= nil) then
  8552. g = game:GetService("InsertService"):LoadAsset(37681988)
  8553. g.Parent = player.Character
  8554. end
  8555. end
  8556. end, "None", "None", "None")
  8557.  
  8558. CoolCMDs.Functions.CreateCommand("ownageorb1", 5, function(msg, MessageSplit, Speaker, Self)
  8559. for word in msg:gmatch("%w+") do
  8560. local player = matchPlayer(word)
  8561. if (player ~= nil) then
  8562. g = game:GetService("InsertService"):LoadAsset(58393584)
  8563. g.Parent = game.Workspace
  8564. g:MoveTo(player.Character.Torso.Position)
  8565. end
  8566. end
  8567. end, "None", "None", "None")
  8568.  
  8569. CoolCMDs.Functions.CreateCommand("gui", 5, function(msg, MessageSplit, Speaker, Self)
  8570. for word in msg:gmatch("%w+") do
  8571. local player = matchPlayer(word)
  8572. if (player ~= nil) then
  8573. g = game:GetService("InsertService"):LoadAsset(37673876)
  8574. g.Parent = player.Character
  8575. end
  8576. end
  8577. end, "None", "None", "None")
  8578.  
  8579. CoolCMDs.Functions.CreateCommand("admg", 5, function(msg, MessageSplit, Speaker, Self)
  8580. for word in msg:gmatch("%w+") do
  8581. local player = matchPlayer(word)
  8582. if (player ~= nil) then
  8583. g = game:GetService("InsertService"):LoadAsset(37682962)
  8584. g.Parent = player.Character
  8585. end
  8586. end
  8587. end, "None", "None", "None")
  8588.  
  8589. CoolCMDs.Functions.CreateCommand("assasin", 5, function(msg, MessageSplit, Speaker, Self)
  8590. for word in msg:gmatch("%w+") do
  8591. local player = matchPlayer(word)
  8592. if (player ~= nil) then
  8593. g = game:GetService("InsertService"):LoadAsset(40848777)
  8594. g.Parent = game.Workspace
  8595. g:MoveTo(player.Character.Torso.Position)
  8596. end
  8597. end
  8598. end, "None", "None", "None")
  8599.  
  8600. CoolCMDs.Functions.CreateCommand("wierdo", 5, function(msg, MessageSplit, Speaker, Self)
  8601. for word in msg:gmatch("%w+") do
  8602. local player = matchPlayer(word)
  8603. if (player ~= nil) then
  8604. player.Character:BreakJoints()
  8605. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=6819846"
  8606. end
  8607. end
  8608. end, "None", "None", "None")
  8609.  
  8610. CoolCMDs.Functions.CreateCommand("chowder", 5, function(msg, MessageSplit, Speaker, Self)
  8611. for word in msg:gmatch("%w+") do
  8612. local player = matchPlayer(word)
  8613. if (player ~= nil) then
  8614. player.Character:BreakJoints()
  8615. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1783645"
  8616. end
  8617. end
  8618. end, "None", "None", "None")
  8619.  
  8620. CoolCMDs.Functions.CreateCommand("striper", 5, function(msg, MessageSplit, Speaker, Self)
  8621. for word in msg:gmatch("%w+") do
  8622. local player = matchPlayer(word)
  8623. if (player ~= nil) then
  8624. player.Character:BreakJoints()
  8625. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=5795761"
  8626. end
  8627. end
  8628. end, "None", "None", "None")
  8629.  
  8630. CoolCMDs.Functions.CreateCommand("bob", 5, function(msg, MessageSplit, Speaker, Self)
  8631. for word in msg:gmatch("%w+") do
  8632. local player = matchPlayer(word)
  8633. if (player ~= nil) then
  8634. player.Character:BreakJoints()
  8635. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=2342708"
  8636. end
  8637. end
  8638. end, "None", "None", "None")
  8639.  
  8640. CoolCMDs.Functions.CreateCommand("telamon", 5, function(msg, MessageSplit, Speaker, Self)
  8641. for word in msg:gmatch("%w+") do
  8642. local player = matchPlayer(word)
  8643. if (player ~= nil) then
  8644. player.Character:BreakJoints()
  8645. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=261"
  8646. end
  8647. end
  8648. end, "None", "None", "None")
  8649.  
  8650. CoolCMDs.Functions.CreateCommand("ducc", 5, function(msg, MessageSplit, Speaker, Self)
  8651. for word in msg:gmatch("%w+") do
  8652. local player = matchPlayer(word)
  8653. if (player ~= nil) then
  8654. player.Character:BreakJoints()
  8655. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=7303693"
  8656. end
  8657. end
  8658. end, "None", "None", "None")
  8659.  
  8660. CoolCMDs.Functions.CreateCommand("sweed", 5, function(msg, MessageSplit, Speaker, Self)
  8661. for word in msg:gmatch("%w+") do
  8662. local player = matchPlayer(word)
  8663. if (player ~= nil) then
  8664. player.Character:BreakJoints()
  8665. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=6472560"
  8666. end
  8667. end
  8668. end, "None", "None", "None")
  8669.  
  8670. CoolCMDs.Functions.CreateCommand("girly", 5, function(msg, MessageSplit, Speaker, Self)
  8671. for word in msg:gmatch("%w+") do
  8672. local player = matchPlayer(word)
  8673. if (player ~= nil) then
  8674. player.Character:BreakJoints()
  8675. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=362994"
  8676. end
  8677. end
  8678. end, "None", "None", "None")
  8679.  
  8680. CoolCMDs.Functions.CreateCommand("masashi", 5, function(msg, MessageSplit, Speaker, Self)
  8681. for word in msg:gmatch("%w+") do
  8682. local player = matchPlayer(word)
  8683. if (player ~= nil) then
  8684. player.Character:BreakJoints()
  8685. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=3216894"
  8686. end
  8687. end
  8688. end, "None", "None", "None")
  8689.  
  8690. CoolCMDs.Functions.CreateCommand("madly", 5, function(msg, MessageSplit, Speaker, Self)
  8691. for word in msg:gmatch("%w+") do
  8692. local player = matchPlayer(word)
  8693. if (player ~= nil) then
  8694. player.Character:BreakJoints()
  8695. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=6160286"
  8696. end
  8697. end
  8698. end, "None", "None", "None")
  8699.  
  8700. CoolCMDs.Functions.CreateCommand("ana", 5, function(msg, MessageSplit, Speaker, Self)
  8701. for word in msg:gmatch("%w+") do
  8702. local player = matchPlayer(word)
  8703. if (player ~= nil) then
  8704. player.Character:BreakJoints()
  8705. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=9201"
  8706. end
  8707. end
  8708. end, "None", "None", "None")
  8709.  
  8710. CoolCMDs.Functions.CreateCommand("police", 5, function(msg, MessageSplit, Speaker, Self)
  8711. for word in msg:gmatch("%w+") do
  8712. local player = matchPlayer(word)
  8713. if (player ~= nil) then
  8714. player.Character:BreakJoints()
  8715. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=5599663"
  8716. end
  8717. end
  8718. end, "None", "None", "None")
  8719.  
  8720. CoolCMDs.Functions.CreateCommand("gear", 5, function(msg, MessageSplit, Speaker, Self)
  8721. for word in msg:gmatch("%w+") do
  8722. local player = matchPlayer(word)
  8723. if (player ~= nil) then
  8724. player.Character:BreakJoints()
  8725. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=49566"
  8726. end
  8727. end
  8728. end, "None", "None", "None")
  8729.  
  8730. CoolCMDs.Functions.CreateCommand("builderman", 5, function(msg, MessageSplit, Speaker, Self)
  8731. for word in msg:gmatch("%w+") do
  8732. local player = matchPlayer(word)
  8733. if (player ~= nil) then
  8734. player.Character:BreakJoints()
  8735. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=156"
  8736. end
  8737. end
  8738. end, "None", "None", "None")
  8739.  
  8740. CoolCMDs.Functions.CreateCommand("reaper", 5, function(msg, MessageSplit, Speaker, Self)
  8741. for word in msg:gmatch("%w+") do
  8742. local player = matchPlayer(word)
  8743. if (player ~= nil) then
  8744. player.Character:BreakJoints()
  8745. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=8599152"
  8746. end
  8747. end
  8748. end, "None", "None", "None")
  8749.  
  8750. CoolCMDs.Functions.CreateCommand("guest", 5, function(msg, MessageSplit, Speaker, Self)
  8751. for word in msg:gmatch("%w+") do
  8752. local player = matchPlayer(word)
  8753. if (player ~= nil) then
  8754. player.Character:BreakJoints()
  8755. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1"
  8756. end
  8757. end
  8758. end, "None", "None", "None")
  8759.  
  8760. CoolCMDs.Functions.CreateCommand("stickmaster", 5, function(msg, MessageSplit, Speaker, Self)
  8761. for word in msg:gmatch("%w+") do
  8762. local player = matchPlayer(word)
  8763. if (player ~= nil) then
  8764. player.Character:BreakJoints()
  8765. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=80254"
  8766. end
  8767. end
  8768. end, "None", "None", "None")
  8769.  
  8770. CoolCMDs.Functions.CreateCommand("matt", 5, function(msg, MessageSplit, Speaker, Self)
  8771. for word in msg:gmatch("%w+") do
  8772. local player = matchPlayer(word)
  8773. if (player ~= nil) then
  8774. player.Character:BreakJoints()
  8775. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=916"
  8776. end
  8777. end
  8778. end, "None", "None", "None")
  8779.  
  8780. CoolCMDs.Functions.CreateCommand("nairod7", 5, function(msg, MessageSplit, Speaker, Self)
  8781. for word in msg:gmatch("%w+") do
  8782. local player = matchPlayer(word)
  8783. if (player ~= nil) then
  8784. player.Character:BreakJoints()
  8785. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=7225903"
  8786. end
  8787. end
  8788. end, "None", "None", "None")
  8789.  
  8790. CoolCMDs.Functions.CreateCommand("icookienl", 5, function(msg, MessageSplit, Speaker, Self)
  8791. for word in msg:gmatch("%w+") do
  8792. local player = matchPlayer(word)
  8793. if (player ~= nil) then
  8794. player.Character:BreakJoints()
  8795. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=3166696"
  8796. end
  8797. end
  8798. end, "None", "None", "None")
  8799.  
  8800. CoolCMDs.Functions.CreateCommand("sonicthehegdehog", 5, function(msg, MessageSplit, Speaker, Self)
  8801. for word in msg:gmatch("%w+") do
  8802. local player = matchPlayer(word)
  8803. if (player ~= nil) then
  8804. player.Character:BreakJoints()
  8805. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1134994"
  8806. end
  8807. end
  8808. end, "None", "None", "None")
  8809.  
  8810. CoolCMDs.Functions.CreateCommand("garrettjay", 5, function(msg, MessageSplit, Speaker, Self)
  8811. for word in msg:gmatch("%w+") do
  8812. local player = matchPlayer(word)
  8813. if (player ~= nil) then
  8814. player.Character:BreakJoints()
  8815. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=91645"
  8816. end
  8817. end
  8818. end, "None", "None", "None")
  8819.  
  8820. CoolCMDs.Functions.CreateCommand("plantize", 5, function(msg, MessageSplit, Speaker, Self)
  8821. for word in msg:gmatch("%w+") do
  8822. local player = matchPlayer(word)
  8823. if (player ~= nil) then
  8824. player.Character:BreakJoints()
  8825. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=5518138"
  8826. end
  8827. end
  8828. end, "None", "None", "None")
  8829.  
  8830. CoolCMDs.Functions.CreateCommand("boy", 5, function(msg, MessageSplit, Speaker, Self)
  8831. for word in msg:gmatch("%w+") do
  8832. local player = matchPlayer(word)
  8833. if (player ~= nil) then
  8834. player.Character:BreakJoints()
  8835. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=8057367"
  8836. end
  8837. end
  8838. end, "None", "None", "None")
  8839.  
  8840. CoolCMDs.Functions.CreateCommand("faded", 5, function(msg, MessageSplit, Speaker, Self)
  8841. for word in msg:gmatch("%w+") do
  8842. local player = matchPlayer(word)
  8843. if (player ~= nil) then
  8844. player.Character:BreakJoints()
  8845. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=6319456"
  8846. end
  8847. end
  8848. end, "None", "None", "None")
  8849.  
  8850. CoolCMDs.Functions.CreateCommand("noobify", 5, function(msg, MessageSplit, Speaker, Self)
  8851. for word in msg:gmatch("%w+") do
  8852. local player = matchPlayer(word)
  8853. if (player ~= nil) then
  8854. player.Character:BreakJoints()
  8855. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=9676343"
  8856. end
  8857. end
  8858. end, "None", "None", "None")
  8859.  
  8860. CoolCMDs.Functions.CreateCommand("darkking", 5, function(msg, MessageSplit, Speaker, Self)
  8861. for word in msg:gmatch("%w+") do
  8862. local player = matchPlayer(word)
  8863. if (player ~= nil) then
  8864. player.Character:BreakJoints()
  8865. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=2975932"
  8866. end
  8867. end
  8868. end, "None", "None", "None")
  8869.  
  8870. CoolCMDs.Functions.CreateCommand("guitar", 5, function(msg, MessageSplit, Speaker, Self)
  8871. for word in msg:gmatch("%w+") do
  8872. local player = matchPlayer(word)
  8873. if (player ~= nil) then
  8874. player.Character:BreakJoints()
  8875. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1979584"
  8876. end
  8877. end
  8878. end, "None", "None", "None")
  8879.  
  8880. CoolCMDs.Functions.CreateCommand("unknow", 5, function(msg, MessageSplit, Speaker, Self)
  8881. for word in msg:gmatch("%w+") do
  8882. local player = matchPlayer(word)
  8883. if (player ~= nil) then
  8884. player.Character:BreakJoints()
  8885. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=6401251"
  8886. end
  8887. end
  8888. end, "None", "None", "None")
  8889.  
  8890. CoolCMDs.Functions.CreateCommand("nazgul", 5, function(msg, MessageSplit, Speaker, Self)
  8891. for word in msg:gmatch("%w+") do
  8892. local player = matchPlayer(word)
  8893. if (player ~= nil) then
  8894. player.Character:BreakJoints()
  8895. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1131345"
  8896. end
  8897. end
  8898. end, "None", "None", "None")
  8899.  
  8900. CoolCMDs.Functions.CreateCommand("teddy", 5, function(msg, MessageSplit, Speaker, Self)
  8901. for word in msg:gmatch("%w+") do
  8902. local player = matchPlayer(word)
  8903. if (player ~= nil) then
  8904. player.Character:BreakJoints()
  8905. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=13411824"
  8906. end
  8907. end
  8908. end, "None", "None", "None")
  8909.  
  8910. CoolCMDs.Functions.CreateCommand("isaac", 5, function(msg, MessageSplit, Speaker, Self)
  8911. for word in msg:gmatch("%w+") do
  8912. local player = matchPlayer(word)
  8913. if (player ~= nil) then
  8914. player.Character:BreakJoints()
  8915. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1537069"
  8916. end
  8917. end
  8918. end, "None", "None", "None")
  8919.  
  8920. CoolCMDs.Functions.CreateCommand("comboknex", 5, function(msg, MessageSplit, Speaker, Self)
  8921. for word in msg:gmatch("%w+") do
  8922. local player = matchPlayer(word)
  8923. if (player ~= nil) then
  8924. player.Character:BreakJoints()
  8925. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=5942550"
  8926. end
  8927. end
  8928. end, "None", "None", "None")
  8929.  
  8930. CoolCMDs.Functions.CreateCommand("captinrex", 5, function(msg, MessageSplit, Speaker, Self)
  8931. for word in msg:gmatch("%w+") do
  8932. local player = matchPlayer(word)
  8933. if (player ~= nil) then
  8934. player.Character:BreakJoints()
  8935. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=8150321"
  8936. end
  8937. end
  8938. end, "None", "None", "None")
  8939.  
  8940. CoolCMDs.Functions.CreateCommand("ganon", 5, function(msg, MessageSplit, Speaker, Self)
  8941. for word in msg:gmatch("%w+") do
  8942. local player = matchPlayer(word)
  8943. if (player ~= nil) then
  8944. player.Character:BreakJoints()
  8945. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=3357193"
  8946. end
  8947. end
  8948. end, "None", "None", "None")
  8949.  
  8950. CoolCMDs.Functions.CreateCommand("itacho", 5, function(msg, MessageSplit, Speaker, Self)
  8951. for word in msg:gmatch("%w+") do
  8952. local player = matchPlayer(word)
  8953. if (player ~= nil) then
  8954. player.Character:BreakJoints()
  8955. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=3368626"
  8956. end
  8957. end
  8958. end, "None", "None", "None")
  8959.  
  8960. CoolCMDs.Functions.CreateCommand("splosh", 5, function(msg, MessageSplit, Speaker, Self)
  8961. for word in msg:gmatch("%w+") do
  8962. local player = matchPlayer(word)
  8963. if (player ~= nil) then
  8964. player.Character:BreakJoints()
  8965. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=10308036"
  8966. end
  8967. end
  8968. end, "None", "None", "None")
  8969.  
  8970. CoolCMDs.Functions.CreateCommand("xero", 5, function(msg, MessageSplit, Speaker, Self)
  8971. for word in msg:gmatch("%w+") do
  8972. local player = matchPlayer(word)
  8973. if (player ~= nil) then
  8974. player.Character:BreakJoints()
  8975. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=741234"
  8976. end
  8977. end
  8978. end, "None", "None", "None")
  8979.  
  8980. CoolCMDs.Functions.CreateCommand("allietalbott", 5, function(msg, MessageSplit, Speaker, Self)
  8981. for word in msg:gmatch("%w+") do
  8982. local player = matchPlayer(word)
  8983. if (player ~= nil) then
  8984. player.Character:BreakJoints()
  8985. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=934107"
  8986. end
  8987. end
  8988. end, "None", "None", "None")
  8989.  
  8990. CoolCMDs.Functions.CreateCommand("icefighterr", 5, function(msg, MessageSplit, Speaker, Self)
  8991. for word in msg:gmatch("%w+") do
  8992. local player = matchPlayer(word)
  8993. if (player ~= nil) then
  8994. player.Character:BreakJoints()
  8995. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=6049960"
  8996. end
  8997. end
  8998. end, "None", "None", "None")
  8999.  
  9000. CoolCMDs.Functions.CreateCommand("poisonnoob", 5, function(msg, MessageSplit, Speaker, Self)
  9001. for word in msg:gmatch("%w+") do
  9002. local player = matchPlayer(word)
  9003. if (player ~= nil) then
  9004. player.Character:BreakJoints()
  9005. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=8558980"
  9006. end
  9007. end
  9008. end, "None", "None", "None")
  9009.  
  9010. CoolCMDs.Functions.CreateCommand("slime8765", 5, function(msg, MessageSplit, Speaker, Self)
  9011. for word in msg:gmatch("%w+") do
  9012. local player = matchPlayer(word)
  9013. if (player ~= nil) then
  9014. player.Character:BreakJoints()
  9015. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=3803146"
  9016. end
  9017. end
  9018. end, "None", "None", "None")
  9019.  
  9020. CoolCMDs.Functions.CreateCommand("illblade", 5, function(msg, MessageSplit, Speaker, Self)
  9021. for word in msg:gmatch("%w+") do
  9022. local player = matchPlayer(word)
  9023. if (player ~= nil) then
  9024. player.Character:BreakJoints()
  9025. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=6484494"
  9026. end
  9027. end
  9028. end, "None", "None", "None")
  9029.  
  9030. CoolCMDs.Functions.CreateCommand("nick", 5, function(msg, MessageSplit, Speaker, Self)
  9031. for word in msg:gmatch("%w+") do
  9032. local player = matchPlayer(word)
  9033. if (player ~= nil) then
  9034. player.Character:BreakJoints()
  9035. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=3445997"
  9036. end
  9037. end
  9038. end, "None", "None", "None")
  9039.  
  9040. CoolCMDs.Functions.CreateCommand("tomcrusie", 5, function(msg, MessageSplit, Speaker, Self)
  9041. for word in msg:gmatch("%w+") do
  9042. local player = matchPlayer(word)
  9043. if (player ~= nil) then
  9044. player.Character:BreakJoints()
  9045. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=5025023"
  9046. end
  9047. end
  9048. end, "None", "None", "None")
  9049.  
  9050. CoolCMDs.Functions.CreateCommand("roquito", 5, function(msg, MessageSplit, Speaker, Self)
  9051. for word in msg:gmatch("%w+") do
  9052. local player = matchPlayer(word)
  9053. if (player ~= nil) then
  9054. player.Character:BreakJoints()
  9055. player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=9521811"
  9056. end
  9057. end
  9058. end, "None", "None", "None")
  9059.  
  9060. CoolCMDs.Functions.CreateCommand("suit", 5, function(msg, MessageSplit, Speaker, Self)
  9061. for word in msg:gmatch("%w+") do
  9062. local player = matchPlayer(word)
  9063. if (player ~= nil) then
  9064. player.Character:BreakJoints()
  9065. player.CharacterAppearance = "http://www.roblox.com/asset/?id=27911184"
  9066. end
  9067. end
  9068. end, "None", "None", "None")
  9069.  
  9070. CoolCMDs.Functions.CreateCommand("knight", 5, function(msg, MessageSplit, Speaker, Self)
  9071. for word in msg:gmatch("%w+") do
  9072. local player = matchPlayer(word)
  9073. if (player ~= nil) then
  9074. player.Character:BreakJoints()
  9075. player.CharacterAppearance = "http://www.roblox.com/asset/?id=30364498"
  9076. end
  9077. end
  9078. end, "None", "None", "None")
  9079.  
  9080. -- Person299 commands
  9081.  
  9082. CoolCMDs.Functions.CreateCommand("local", 5, function(msg, MessageSplit, speaker, Self)
  9083. local player = findplayer(msg:sub(7, slash-1),speaker)
  9084. color = msg:sub(slash+1)
  9085. color = color:upper(color:sub(1,1)) .. color:sub(2)
  9086. if player ~= 0 and color then
  9087. for i = 1,#player do
  9088. if player[i].Character then
  9089. thecolor = BrickColor.new(color)
  9090. if thecolor ~= nil then
  9091. if player[i].Character.Shirt ~= nil then
  9092. player[i].Character.Shirt:remove()
  9093. end
  9094. if player[i].Character.Pants then
  9095. player[i].Character.Pants:remove()
  9096. end
  9097. c = player[i].Character:GetChildren()
  9098. for i2 = 1,#c do
  9099. if c[i2]:IsA("Part") then
  9100. c[i2].BrickColor = thecolor
  9101. end
  9102. end
  9103. end
  9104. end
  9105. end
  9106. end
  9107. end, "None", "None", "None")
  9108.  
  9109. CoolCMDs.Functions.CreateCommand("em", 5, function(msg, MessageSplit, speaker, Self)
  9110. local player = findplayer(msg:sub(4),speaker)
  9111. if player ~= 0 then
  9112. for i = 1,#player do
  9113. local insert = game:GetService("InsertService"):LoadAsset(50307223)
  9114. insert.BlackHole.Parent = player[i].Character.Torso
  9115. end
  9116. end
  9117. end, "None", "None", "None")
  9118.  
  9119. CoolCMDs.Functions.CreateCommand("up", 5, function(msg, MessageSplit, speaker, Self)
  9120. local player = findplayer(msg:sub(4),speaker)
  9121. if player ~= 0 then
  9122. for i = 1,#player do
  9123. b = Instance.new("BodyForce")
  9124. b.Parent = player[i].Character.Head
  9125. b.force = Vector3.new(0,1000000,0)
  9126. end
  9127. end
  9128. end, "None", "None", "None")
  9129.  
  9130. CoolCMDs.Functions.CreateCommand("fling", 5, function(msg, MessageSplit, speaker, Self)
  9131. local player = findplayer(msg:sub(7),speaker)
  9132. if player ~= 0 then
  9133. for i = 1,#player do
  9134. local inc = 1500
  9135. player[i].Character.Humanoid.PlatformStand=true
  9136. player[i].Character.Torso.Velocity=Vector3.new(math.random(-inc,inc),math.random(-inc,inc),math.random(-inc,inc))
  9137. player[i].Character.Torso.RotVelocity=Vector3.new(math.random(-inc,inc),math.random(-inc,inc),math.random(-inc,inc))
  9138. wait(1)
  9139. player[i].Character.Humanoid.PlatformStand=false
  9140. end
  9141. end
  9142. end, "None", "None", "None")
  9143.  
  9144. CoolCMDs.Functions.CreateCommand("raggun", 5, function(msg, MessageSplit, speaker, Self)
  9145. local player = findplayer(msg:sub(8),speaker)
  9146. if player ~= 0 then
  9147. for i = 1,#player do
  9148. local insert = game:GetService("InsertService"):LoadAsset(43335034)
  9149. insert:MakeJoints()
  9150. insert["Ragdoll Gun"].Parent = player[i].Backpack
  9151. end
  9152. end
  9153. end, "None", "None", "None")
  9154.  
  9155. CoolCMDs.Functions.CreateCommand("broom", 5, function(msg, MessageSplit, speaker, Self)
  9156. local player = findplayer(msg:sub(7),speaker)
  9157. if player ~= 0 then
  9158. for i = 1,#player do
  9159. local insert = game:GetService("InsertService"):LoadAsset(41690430)
  9160. insert:MakeJoints()
  9161. insert["Broomstick"].Parent = player[i].Backpack
  9162. end
  9163. end
  9164. end, "None", "None", "None")
  9165.  
  9166. CoolCMDs.Functions.CreateCommand("wand", 5, function(msg, MessageSplit, speaker, Self)
  9167. local player = findplayer(msg:sub(6),speaker)
  9168. if player ~= 0 then
  9169. for i = 1,#player do
  9170. local insert = game:GetService("InsertService"):LoadAsset(58688577)
  9171. insert:MakeJoints()
  9172. insert["Wand"].Parent = player[i].Backpack
  9173. end
  9174. end
  9175. end, "None", "None", "None")
  9176.  
  9177. CoolCMDs.Functions.CreateCommand("tele", 5, function(msg, MessageSplit, speaker, Self)
  9178. local player = findplayer(msg:sub(6),speaker)
  9179. if player ~= 0 then
  9180. for i = 1,#player do
  9181. local insert = game:GetService("InsertService"):LoadAsset(58526424)
  9182. insert:MakeJoints()
  9183. insert["Tele To Admin"].Parent = player[i].Backpack
  9184. insert:remove()
  9185. end
  9186. end
  9187. end, "None", "None", "None")
  9188.  
  9189. CoolCMDs.Functions.CreateCommand("sc", 5, function(msg, MessageSplit, speaker, Self)
  9190. local player = findplayer(msg:sub(4),speaker)
  9191. if player ~= 0 then
  9192. for i = 1,#player do
  9193. local insert = game:GetService("InsertService"):LoadAsset(61797261)
  9194. insert:MakeJoints()
  9195. insert["Noob Scanner v0.6"].Parent = player[i].Backpack
  9196. insert:remove()
  9197. end
  9198. end
  9199. end, "None", "None", "None")
  9200.  
  9201. CoolCMDs.Functions.CreateCommand("phone", 5, function(msg, MessageSplit, speaker, Self)
  9202. local player = findplayer(msg:sub(7),speaker)
  9203. if player ~= 0 then
  9204. for i = 1,#player do
  9205. local insert = game:GetService("InsertService"):LoadAsset(633879299)
  9206. insert:MakeJoints()
  9207. insert["WinBlox New Vegas"].Parent = player[i].Backpack
  9208. insert:remove()
  9209. end
  9210. end
  9211. end, "None", "None", "None")
  9212.  
  9213. CoolCMDs.Functions.CreateCommand("extool", 5, function(msg, MessageSplit, speaker, Self)
  9214. local player = findplayer(msg:sub(8),speaker)
  9215. if player ~= 0 then
  9216. for i = 1,#player do
  9217. local insert = game:GetService("InsertService"):LoadAsset(56395152)
  9218. insert:MakeJoints()
  9219. insert["Explorer"].Parent = player[i].Backpack
  9220. insert:remove()
  9221. end
  9222. end
  9223. end, "None", "None", "None")
  9224.  
  9225. CoolCMDs.Functions.CreateCommand("gw", 5, function(msg, MessageSplit, speaker, Self)
  9226. local player = findplayer(msg:sub(4),speaker)
  9227. if player ~= 0 then
  9228. for i = 1,#player do
  9229. local insert = game:GetService("InsertService"):LoadAsset(55058297)
  9230. insert:MakeJoints()
  9231. insert["Ghostwalker (0)"].Parent = player[i].Backpack
  9232. insert:remove()
  9233. end
  9234. end
  9235. end, "None", "None", "None")
  9236.  
  9237. CoolCMDs.Functions.CreateCommand("kot", 5, function(msg, MessageSplit, speaker, Self)
  9238. local player = findplayer(msg:sub(5),speaker)
  9239. if player ~= 0 then
  9240. for i = 1,#player do
  9241. local insert = game:GetService("InsertService"):LoadAsset(56917321)
  9242. insert:MakeJoints()
  9243. insert["ScreenGui"].Parent = player[i].PlayerGui
  9244. insert:remove()
  9245. end
  9246. end
  9247. end, "None", "None", "None")
  9248.  
  9249. CoolCMDs.Functions.CreateCommand("smi", 5, function(msg, MessageSplit, speaker, Self)
  9250. local player = findplayer(msg:sub(5),speaker)
  9251. if player ~= 0 then
  9252. for i = 1,#player do
  9253. local insert = game:GetService("InsertService"):LoadAsset(56840096)
  9254. insert:MakeJoints()
  9255. insert["Smite"].Parent = player[i].Backpack
  9256. insert:remove()
  9257. end
  9258. end
  9259. end, "None", "None", "None")
  9260.  
  9261. CoolCMDs.Functions.CreateCommand("del1", 5, function(msg, MessageSplit, speaker, Self)
  9262. local player = findplayer(msg:sub(6),speaker)
  9263. if player ~= 0 then
  9264. for i = 1,#player do
  9265. local insert = game:GetService("InsertService"):LoadAsset(57133976)
  9266. insert:MakeJoints()
  9267. insert["BuildDelete"].Parent = player[i].Backpack
  9268. insert:remove()
  9269. end
  9270. end
  9271. end, "None", "None", "None")
  9272.  
  9273. CoolCMDs.Functions.CreateCommand("orb", 5, function(msg, MessageSplit, speaker, Self)
  9274. local player = findplayer(msg:sub(5),speaker)
  9275. if player ~= 0 then
  9276. for i = 1,#player do
  9277. local insert = game:GetService("InsertService"):LoadAsset(44709620)
  9278. insert:MakeJoints()
  9279. insert["Script"].Parent = player[i].Backpack
  9280. insert:remove()
  9281. end
  9282. end
  9283. end, "None", "None", "None")
  9284.  
  9285. CoolCMDs.Functions.CreateCommand("pushtool", 5, function(msg, MessageSplit, speaker, Self)
  9286. local player = findplayer(msg:sub(10),speaker)
  9287. if player ~= 0 then
  9288. for i = 1,#player do
  9289. local insert = game:GetService("InsertService"):LoadAsset(57120239)
  9290. insert:MakeJoints()
  9291. insert["Push"].Parent = player[i].Backpack
  9292. insert:remove()
  9293. end
  9294. end
  9295. end, "None", "None", "None")
  9296.  
  9297. CoolCMDs.Functions.CreateCommand("ckatana", 5, function(msg, MessageSplit, speaker, Self)
  9298. local player = findplayer(msg:sub(9),speaker)
  9299. if player ~= 0 then
  9300. for i = 1,#player do
  9301. local insert = game:GetService("InsertService"):LoadAsset(52193941)
  9302. insert:MakeJoints()
  9303. insert["Katana"].Parent = player[i].Backpack
  9304. insert:remove()
  9305. end
  9306. end
  9307. end, "None", "None", "None")
  9308.  
  9309. CoolCMDs.Functions.CreateCommand("bkatana", 5, function(msg, MessageSplit, speaker, Self)
  9310. local player = findplayer(msg:sub(9),speaker)
  9311. if player ~= 0 then
  9312. for i = 1,#player do
  9313. local insert = game:GetService("InsertService"):LoadAsset(58523683)
  9314. insert:MakeJoints()
  9315. insert["Katana"].Parent = player[i].Backpack
  9316. insert:remove()
  9317. end
  9318. end
  9319. end, "None", "None", "None")
  9320.  
  9321. CoolCMDs.Functions.CreateCommand("bucket", 5, function(msg, MessageSplit, speaker, Self)
  9322. local player = findplayer(msg:sub(8),speaker)
  9323. if player ~= 0 then
  9324. for i = 1,#player do
  9325. local insert = game:GetService("InsertService"):LoadAsset(58485759)
  9326. insert:MakeJoints()
  9327. insert["Bucket"].Parent = player[i].Backpack
  9328. insert:remove()
  9329. end
  9330. end
  9331. end, "None", "None", "None")
  9332.  
  9333. CoolCMDs.Functions.CreateCommand("nakedgun", 5, function(msg, MessageSplit, speaker, Self)
  9334. local player = findplayer(msg:sub(10),speaker)
  9335. if player ~= 0 then
  9336. for i = 1,#player do
  9337. local insert = game:GetService("InsertService"):LoadAsset(58581402)
  9338. insert:MakeJoints()
  9339. insert["Naked Gun"].Parent = player[i].Backpack
  9340. insert:remove()
  9341. end
  9342. end
  9343. end, "None", "None", "None")
  9344.  
  9345. CoolCMDs.Functions.CreateCommand("jailtool", 5, function(msg, MessageSplit, speaker, Self)
  9346. local player = findplayer(msg:sub(10),speaker)
  9347. if player ~= 0 then
  9348. for i = 1,#player do
  9349. local insert = game:GetService("InsertService"):LoadAsset(57257488)
  9350. insert:MakeJoints()
  9351. insert["Jail"].Parent = player[i].Backpack
  9352. insert:remove()
  9353. end
  9354. end
  9355. end, "None", "None", "None")
  9356.  
  9357. CoolCMDs.Functions.CreateCommand("teletool", 5, function(msg, MessageSplit, speaker, Self)
  9358. local player = findplayer(msg:sub(10),speaker)
  9359. if player ~= 0 then
  9360. for i = 1,#player do
  9361. local insert = game:GetService("InsertService"):LoadAsset(57252442)
  9362. insert:MakeJoints()
  9363. insert["Teleport"].Parent = player[i].Backpack
  9364. insert:remove()
  9365. end
  9366. end
  9367. end, "None", "None", "None")
  9368.  
  9369. CoolCMDs.Functions.CreateCommand("combatarm", 5, function(msg, MessageSplit, speaker, Self)
  9370. local player = findplayer(msg:sub(11),speaker)
  9371. if player ~= 0 then
  9372. for i = 1,#player do
  9373. local insert = game:GetService("InsertService"):LoadAsset(58534404)
  9374. insert:MakeJoints()
  9375. insert["CArm"].Parent = player[i].Backpack
  9376. insert:remove()
  9377. end
  9378. end
  9379. end, "None", "None", "None")
  9380.  
  9381. CoolCMDs.Functions.CreateCommand("eye", 5, function(msg, MessageSplit, speaker, Self)
  9382. local player = findplayer(msg:sub(5),speaker)
  9383. if player ~= 0 then
  9384. for i = 1,#player do
  9385. local insert = game:GetService("InsertService"):LoadAsset(56973803)
  9386. insert:MakeJoints()
  9387. insert["Tool"].Parent = player[i].Backpack
  9388. insert:remove()
  9389. end
  9390. end
  9391. end, "None", "None", "None")
  9392.  
  9393. CoolCMDs.Functions.CreateCommand("cig", 5, function(msg, MessageSplit, speaker, Self)
  9394. local player = findplayer(msg:sub(5),speaker)
  9395. if player ~= 0 then
  9396. for i = 1,#player do
  9397. local insert = game:GetService("InsertService"):LoadAsset(57815904)
  9398. insert:MakeJoints()
  9399. insert["smoke"].Parent = player[i].Backpack
  9400. insert:remove()
  9401. end
  9402. end
  9403. end, "None", "None", "None")
  9404.  
  9405. CoolCMDs.Functions.CreateCommand("poke", 5, function(msg, MessageSplit, speaker, Self)
  9406. local player = findplayer(msg:sub(6),speaker)
  9407. if player ~= 0 then
  9408. for i = 1,#player do
  9409. local insert = game:GetService("InsertService"):LoadAsset(54395369)
  9410. insert:MakeJoints()
  9411. insert["Pokeball"].Parent = player[i].Backpack
  9412. insert:remove()
  9413. end
  9414. end
  9415. end, "None", "None", "None")
  9416.  
  9417. CoolCMDs.Functions.CreateCommand("reapp", 5, function(msg, MessageSplit, speaker, Self)
  9418. local player = findplayer(string.sub(msg,7),speaker)
  9419. if player ~= 0 then
  9420. for i = 1,#player do
  9421. player[i].CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..player[i].userId
  9422. player[i].Character.Humanoid.Health = 0
  9423. end
  9424. end
  9425. end, "None", "None", "None")
  9426.  
  9427. CoolCMDs.Functions.CreateCommand("godpowers", 5, function(msg, MessageSplit, speaker, Self)
  9428. local player = findplayer(msg:sub(11),speaker)
  9429. if player ~= 0 then
  9430. for i = 1,#player do
  9431. local insert = game:GetService("InsertService"):LoadAsset(57264678)
  9432. insert:MakeJoints()
  9433. insert["God Power"].Parent = player[i].Backpack
  9434. insert:remove()
  9435. end
  9436. end
  9437. end, "None", "None", "None")
  9438.  
  9439. CoolCMDs.Functions.CreateCommand("jet", 5, function(msg, MessageSplit, speaker, Self)
  9440. local player = findplayer(msg:sub(5),speaker)
  9441. if player ~= 0 then
  9442. for i = 1,#player do
  9443. local insert = game:GetService("InsertService"):LoadAsset(54778025)
  9444. insert:MakeJoints()
  9445. insert["JetPack"].Parent = player[i].Backpack
  9446. insert:remove()
  9447. end
  9448. end
  9449. end, "None", "None", "None")
  9450.  
  9451. CoolCMDs.Functions.CreateCommand("del", 5, function(msg, MessageSplit, speaker, Self)
  9452. local player = findplayer(msg:sub(5),speaker)
  9453. if player ~= 0 then
  9454. for i = 1,#player do
  9455. local insert = game:GetService("InsertService"):LoadAsset(56851690)
  9456. insert:MakeJoints()
  9457. insert["Del Tool"].Parent = player[i].Backpack
  9458. insert:remove()
  9459. end
  9460. end
  9461. end, "None", "None", "None")
  9462.  
  9463. CoolCMDs.Functions.CreateCommand("telekin", 5, function(msg, MessageSplit, speaker, Self)
  9464. local player = findplayer(msg:sub(9),speaker)
  9465. if player ~= 0 then
  9466. for i = 1,#player do
  9467. local insert = game:GetService("InsertService"):LoadAsset(56565452)
  9468. insert:MakeJoints()
  9469. insert["Telekinesis"].Parent = player[i].Backpack
  9470. insert:remove()
  9471. end
  9472. end
  9473. end, "None", "None", "None")
  9474.  
  9475. CoolCMDs.Functions.CreateCommand("freezeray", 5, function(msg, MessageSplit, speaker, Self)
  9476. local player = findplayer(msg:sub(11),speaker)
  9477. if player ~= 0 then
  9478. for i = 1,#player do
  9479. local insert = game:GetService("InsertService"):LoadAsset(58187334)
  9480. insert:MakeJoints()
  9481. insert["FreezeRay"].Parent = player[i].Backpack
  9482. insert:remove()
  9483. end
  9484. end
  9485. end, "None", "None", "None")
  9486.  
  9487. CoolCMDs.Functions.CreateCommand("flyda", 5, function(msg, MessageSplit, speaker, Self)
  9488. local player = findplayer(msg:sub(7),speaker)
  9489. if player ~= 0 then
  9490. for i = 1,#player do
  9491. local insert = game:GetService("InsertService"):LoadAsset(56579645)
  9492. insert:MakeJoints()
  9493. insert["SkyElixir"].Parent = player[i].Backpack
  9494. insert:remove()
  9495. end
  9496. end
  9497. end, "None", "None", "None")
  9498.  
  9499. CoolCMDs.Functions.CreateCommand("flytool", 5, function(msg, MessageSplit, speaker, Self)
  9500. local player = findplayer(msg:sub(9),speaker)
  9501. if player ~= 0 then
  9502. for i = 1,#player do
  9503. local insert = game:GetService("InsertService"):LoadAsset(56932215)
  9504. insert:MakeJoints()
  9505. insert["Fly"].Parent = player[i].Backpack
  9506. insert:remove()
  9507. end
  9508. end
  9509. end, "None", "None", "None")
  9510.  
  9511. CoolCMDs.Functions.CreateCommand("gravgun", 5, function(msg, MessageSplit, speaker, Self)
  9512. local player = findplayer(msg:sub(9),speaker)
  9513. if player ~= 0 then
  9514. for i = 1,#player do
  9515. local insert = game:GetService("InsertService"):LoadAsset(58369782)
  9516. insert:MakeJoints()
  9517. insert["GravityGun"].Parent = player[i].Backpack
  9518. insert:remove()
  9519. end
  9520. end
  9521. end, "None", "None", "None")
  9522.  
  9523. CoolCMDs.Functions.CreateCommand("path", 5, function(msg, MessageSplit, speaker, Self)
  9524. local player = findplayer(msg:sub(6),speaker)
  9525. if player ~= 0 then
  9526. for i = 1,#player do
  9527. local insert = game:GetService("InsertService"):LoadAsset(57067114)
  9528. insert:MakeJoints()
  9529. insert["Path"].Parent = player[i].Backpack
  9530. insert:remove()
  9531. end
  9532. end
  9533. end, "None", "None", "None")
  9534.  
  9535. CoolCMDs.Functions.CreateCommand("assassin", 5, function(msg, MessageSplit, speaker, Self)
  9536. local player = findplayer(msg:sub(10),speaker)
  9537. if player ~= 0 then
  9538. for i = 1,#player do
  9539. local insert = game:GetService("InsertService"):LoadAsset(56838840)
  9540. insert:MakeJoints()
  9541. insert["Assassin"].Parent = player[i].Backpack
  9542. insert:remove()
  9543. end
  9544. end
  9545. end, "None", "None", "None")
  9546.  
  9547. CoolCMDs.Functions.CreateCommand("bkatana", 5, function(msg, MessageSplit, speaker, Self)
  9548. local player = findplayer(msg:sub(10),speaker)
  9549. if player ~= 0 then
  9550. for i = 1,#player do
  9551. local insert = game:GetService("InsertService"):LoadAsset(56838840)
  9552. insert:MakeJoints()
  9553. insert["BlackKatana"].Parent = player[i].Backpack
  9554. insert:remove()
  9555. end
  9556. end
  9557. end, "None", "None", "None")
  9558.  
  9559. CoolCMDs.Functions.CreateCommand("playerorb", 5, function(msg, MessageSplit, speaker, Self)
  9560. local player = findplayer(msg:sub(11),speaker)
  9561. if player ~= 0 then
  9562. for i = 1,#player do
  9563. local insert = game:GetService("InsertService"):LoadAsset(56861257)
  9564. insert:MakeJoints()
  9565. insert["Start"].Parent = player[i].Backpack
  9566. insert:remove()
  9567. end
  9568. end
  9569. end, "None", "None", "None")
  9570.  
  9571. CoolCMDs.Functions.CreateCommand("clean", 5, function(msg, MessageSplit, speaker, Self)
  9572. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  9573. if imgettingtiredofmakingthisstupidscript == true then
  9574. local g = game:GetService("InsertService"):LoadAsset(57735410)
  9575. g.Parent = game.Workspace
  9576. end
  9577. end, "None", "None", "None")
  9578.  
  9579. CoolCMDs.Functions.CreateCommand("duckz", 5, function(msg, MessageSplit, speaker, Self)
  9580. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  9581. if imgettingtiredofmakingthisstupidscript == true then
  9582. local g = game:GetService("InsertService"):LoadAsset(56831153)
  9583. g.Parent = game.Workspace
  9584. end
  9585. end, "None", "None", "None")
  9586.  
  9587. CoolCMDs.Functions.CreateCommand("let it snow", 5, function(msg, MessageSplit, speaker, Self)
  9588. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  9589. if imgettingtiredofmakingthisstupidscript == true then
  9590. local g = game:GetService("InsertService"):LoadAsset(58162707)
  9591. g.Parent = game.Workspace
  9592. g.Name = ":3"
  9593. end
  9594. end, "None", "None", "None")
  9595.  
  9596. CoolCMDs.Functions.CreateCommand("stop", 5, function(msg, MessageSplit, speaker, Self)
  9597. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  9598. if imgettingtiredofmakingthisstupidscript == true then
  9599. local c = game.Workspace:GetChildren()
  9600. for i =1,#c do
  9601. if c[i].Name == ":3" then
  9602. if c[i] ~= nil then
  9603. c[i]:Remove()
  9604. end
  9605. end
  9606. end
  9607. end
  9608. end, "None", "None", "None")
  9609.  
  9610. CoolCMDs.Functions.CreateCommand("takeover1", 5, function(msg, MessageSplit, speaker, Self)
  9611. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  9612. if imgettingtiredofmakingthisstupidscript == true then
  9613. local g = game:GetService("InsertService"):LoadAsset(56865027)
  9614. g.Parent = game.Workspace
  9615. end
  9616. end, "None", "None", "None")
  9617.  
  9618. CoolCMDs.Functions.CreateCommand("antiplayerorb", 5, function(msg, MessageSplit, speaker, Self)
  9619. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  9620. if imgettingtiredofmakingthisstupidscript == true then
  9621. local g = game:GetService("InsertService"):LoadAsset(58559824)
  9622. g.Parent = game.Workspace
  9623. end
  9624. end, "None", "None", "None")
  9625.  
  9626. CoolCMDs.Functions.CreateCommand("antinoobs", 5, function(msg, MessageSplit, speaker, Self)
  9627. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  9628. if imgettingtiredofmakingthisstupidscript == true then
  9629. local g = game:GetService("InsertService"):LoadAsset(56922240)
  9630. g.Parent = game.Workspace
  9631. end
  9632. end, "None", "None", "None")
  9633.  
  9634. CoolCMDs.Functions.CreateCommand("takeover", 5, function(msg, MessageSplit, speaker, Self)
  9635. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  9636. if imgettingtiredofmakingthisstupidscript == true then
  9637. local g = game:GetService("InsertService"):LoadAsset(58479046)
  9638. g.Parent = game.Workspace
  9639. end
  9640. end, "None", "None", "None")
  9641.  
  9642. CoolCMDs.Functions.CreateCommand("antimob", 5, function(msg, MessageSplit, speaker, Self)
  9643. local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name)
  9644. if imgettingtiredofmakingthisstupidscript == true then
  9645. local g = game:GetService("InsertService"):LoadAsset(58728910)
  9646. g.Parent = game.Workspace
  9647. end
  9648. end, "None", "None", "None")
  9649.  
  9650. CoolCMDs.Functions.CreateCommand("recolor", 5, function(msg, MessageSplit, speaker, Self)
  9651. game.Lighting.Ambient = Color3.new(170,170,170)
  9652. game.Lighting.TimeOfDay = 14
  9653. end, "None", "None", "None")
  9654.  
  9655. CoolCMDs.Functions.CreateCommand("noinsert", 5, function(msg, MessageSplit, speaker, Self)
  9656. local player = findplayer(msg:sub(10),speaker)
  9657. if player ~= 0 then
  9658. for i = 1,#player do
  9659. local insert = player[i].Backpack:FindFirstChild("Insert")
  9660. if insert then
  9661. insert:remove()
  9662. end
  9663. local bpinsert = player[i].Character:FindFirstChild("Insert")
  9664. if bpinsert ~= nil and bpinsert:isA("Tool") then
  9665. bpinsert:remove()
  9666. end
  9667. end
  9668. end
  9669. end, "None", "None", "None")
  9670.  
  9671. CoolCMDs.Functions.CreateCommand("platformstand", 5, function(msg, MessageSplit, speaker, Self)
  9672. local player = findplayer(msg:sub(15),speaker)
  9673. if player ~= 0 then
  9674. for i = 1,#player do
  9675. if player[i].Character then
  9676. player[i].Character.Humanoid.PlatformStand = true
  9677. end
  9678. end
  9679. end
  9680. end, "None", "None", "None")
  9681.  
  9682. CoolCMDs.Functions.CreateCommand("unplatformstand", 5, function(msg, MessageSplit, speaker, Self)
  9683. local player = findplayer(msg:sub(17),speaker)
  9684. if player ~= 0 then
  9685. for i = 1,#player do
  9686. if player[i].Character then
  9687. player[i].Character.Humanoid.PlatformStand = false
  9688. end
  9689. end
  9690. end
  9691. end, "None", "None", "None")
  9692.  
  9693. CoolCMDs.Functions.CreateCommand("cframe1", 5, function(msg, MessageSplit, speaker, Self)
  9694. local player = findplayer(msg:sub(9),speaker)
  9695. if player ~= 0 then
  9696. for i = 1,#player do
  9697. local cframe = game:GetService("InsertService"):LoadAsset(34879005)
  9698. cframe:MakeJoints()
  9699. cframe["All New Edit Cframe"].Parent = player[i].Backpack
  9700. cframe:remove()
  9701. end
  9702. end
  9703. end, "None", "None", "None")
  9704.  
  9705. CoolCMDs.Functions.CreateCommand("cframe2", 5, function(msg, MessageSplit, speaker, Self)
  9706. local player = findplayer(msg:sub(9),speaker)
  9707. if player ~= 0 then
  9708. for i = 1,#player do
  9709. local cframe = game:GetService("InsertService"):LoadAsset(35145017)
  9710. cframe:MakeJoints()
  9711. cframe["CFrame"].Parent = player[i].Backpack
  9712. cframe:remove()
  9713. end
  9714. end
  9715. end, "None", "None", "None")
  9716.  
  9717. CoolCMDs.Functions.CreateCommand("skateboard", 5, function(msg, MessageSplit, speaker, Self)
  9718. local player = findplayer(msg:sub(12),speaker)
  9719. if player ~= 0 then
  9720. for i = 1,#player do
  9721. local board = game:GetService("InsertService"):LoadAsset(34879053)
  9722. board:MakeJoints()
  9723. board["SkateTool"].Parent = player[i].Backpack
  9724. board:remove()
  9725. end
  9726. end
  9727. end, "None", "None", "None")
  9728.  
  9729. CoolCMDs.Functions.CreateCommand("wedge", 5, function(msg, MessageSplit, speaker, Self)
  9730. local danumber1 = nil
  9731. local danumber2 = nil
  9732. for i = 7,100 do
  9733. if string.sub(msg,i,i) == ""..key then
  9734. danumber1 = i
  9735. break
  9736. elseif string.sub(msg,i,i) == "" then
  9737. break
  9738. end
  9739. end
  9740. if danumber1 == nil then return end
  9741. for i =danumber1 + 1,danumber1 + 100 do
  9742. if string.sub(msg,i,i) == ""..key then
  9743. danumber2 = i
  9744. break
  9745. elseif string.sub(msg,i,i) == "" then
  9746. break
  9747. end
  9748. end
  9749. if danumber2 == nil then return end
  9750. if speaker.Character ~= nil then
  9751. local head = speaker.Character:FindFirstChild("Head")
  9752. if head ~= nil then
  9753. local part = Instance.new("WedgePart")
  9754. part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  9755. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  9756. part.Name = "WedgePart"
  9757. part.Parent = game.Workspace
  9758. end
  9759. end
  9760. end, "None", "None", "None")
  9761.  
  9762. CoolCMDs.Functions.CreateCommand("cylinder", 5, function(msg, MessageSplit, speaker, Self)
  9763. local danumber1 = nil
  9764. local danumber2 = nil
  9765. for i = 10,100 do
  9766. if string.sub(msg,i,i) == ""..key then
  9767. danumber1 = i
  9768. break
  9769. elseif string.sub(msg,i,i) == "" then
  9770. break
  9771. end
  9772. end
  9773. if danumber1 == nil then return end
  9774. for i =danumber1 + 1,danumber1 + 100 do
  9775. if string.sub(msg,i,i) == ""..key then
  9776. danumber2 = i
  9777. break
  9778. elseif string.sub(msg,i,i) == "" then
  9779. break
  9780. end
  9781. end
  9782. if danumber2 == nil then return end
  9783. if speaker.Character ~= nil then
  9784. local head = speaker.Character:FindFirstChild("Head")
  9785. if head ~= nil then
  9786. local part = Instance.new("Part")
  9787. part.Size = Vector3.new(string.sub(msg,10,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  9788. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  9789. part.Name = "Cylinder"
  9790. local cyl = Instance.new("CylinderMesh",part)
  9791. part.Parent = game.Workspace
  9792. end
  9793. end
  9794. end, "None", "None", "None")
  9795.  
  9796. CoolCMDs.Functions.CreateCommand("block", 5, function(msg, MessageSplit, speaker, Self)
  9797. local danumber1 = nil
  9798. local danumber2 = nil
  9799. for i = 7,100 do
  9800. if string.sub(msg,i,i) == ""..key then
  9801. danumber1 = i
  9802. break
  9803. elseif string.sub(msg,i,i) == "" then
  9804. break
  9805. end
  9806. end
  9807. if danumber1 == nil then return end
  9808. for i =danumber1 + 1,danumber1 + 100 do
  9809. if string.sub(msg,i,i) == ""..key then
  9810. danumber2 = i
  9811. break
  9812. elseif string.sub(msg,i,i) == "" then
  9813. break
  9814. end
  9815. end
  9816. if danumber2 == nil then return end
  9817. if speaker.Character ~= nil then
  9818. local head = speaker.Character:FindFirstChild("Head")
  9819. if head ~= nil then
  9820. local part = Instance.new("Part")
  9821. part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  9822. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  9823. part.Name = "Block"
  9824. local block = Instance.new("BlockMesh",part)
  9825. part.Parent = game.Workspace
  9826. end
  9827. end
  9828. end, "None", "None", "None")
  9829.  
  9830. CoolCMDs.Functions.CreateCommand("plate", 5, function(msg, MessageSplit, speaker, Self)
  9831. local danumber1 = nil
  9832. local danumber2 = nil
  9833. for i = 7,100 do
  9834. if string.sub(msg,i,i) == ""..key then
  9835. danumber1 = i
  9836. break
  9837. elseif string.sub(msg,i,i) == "" then
  9838. break
  9839. end
  9840. end
  9841. if danumber1 == nil then return end
  9842. for i =danumber1 + 1,danumber1 + 100 do
  9843. if string.sub(msg,i,i) == ""..key then
  9844. danumber2 = i
  9845. break
  9846. elseif string.sub(msg,i,i) == "" then
  9847. break
  9848. end
  9849. end
  9850. if danumber2 == nil then return end
  9851. if speaker.Character ~= nil then
  9852. local head = speaker.Character:FindFirstChild("Head")
  9853. if head ~= nil then
  9854. local part = Instance.new("Part")
  9855. part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  9856. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  9857. part.Name = "Plate"
  9858. part.formFactor = "Plate"
  9859. part.Parent = game.Workspace
  9860. end
  9861. end
  9862. end, "None", "None", "None")
  9863.  
  9864. CoolCMDs.Functions.CreateCommand("sphere", 5, function(msg, MessageSplit, speaker, Self)
  9865. local danumber1 = nil
  9866. local danumber2 = nil
  9867. for i = 8,100 do
  9868. if string.sub(msg,i,i) == ""..key then
  9869. danumber1 = i
  9870. break
  9871. elseif string.sub(msg,i,i) == "" then
  9872. break
  9873. end
  9874. end
  9875. if danumber1 == nil then return end
  9876. for i =danumber1 + 1,danumber1 + 100 do
  9877. if string.sub(msg,i,i) == ""..key then
  9878. danumber2 = i
  9879. break
  9880. elseif string.sub(msg,i,i) == "" then
  9881. break
  9882. end
  9883. end
  9884. if danumber2 == nil then return end
  9885. if speaker.Character ~= nil then
  9886. local head = speaker.Character:FindFirstChild("Head")
  9887. if head ~= nil then
  9888. local part = Instance.new("Part")
  9889. part.Size = Vector3.new(string.sub(msg,8,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  9890. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  9891. part.Name = "Sphere"
  9892. part.Shape = "Ball"
  9893. part.formFactor = 1
  9894. part.Parent = game.Workspace
  9895. end
  9896. end
  9897. end, "None", "None", "None")
  9898.  
  9899. CoolCMDs.Functions.CreateCommand("burn", 5, function(msg, MessageSplit, speaker, Self)
  9900. local player = findplayer(msg:sub(6),speaker)
  9901. if player ~= 0 then
  9902. for i = 1,#player do
  9903. createscript([[
  9904. if script.Parent.Parent then
  9905. fire = Instance.new("Fire")
  9906. fire.Parent = script.Parent
  9907. fire.Name = "Burn"
  9908. fire.Color = BrickColor.Random().Color
  9909. while fire do
  9910. script.Parent.Parent.Humanoid:TakeDamage(1)
  9911. wait(.1)
  9912. end
  9913. end]], player[i].Character.Torso)
  9914. end
  9915. end
  9916. end, "None", "None", "None")
  9917.  
  9918. CoolCMDs.Functions.CreateCommand("watch", 5, function(msg, MessageSplit, speaker, Self)
  9919. local player = findplayer(msg:sub(7),speaker)
  9920. if player ~= 0 then
  9921. if #player == 1 then
  9922. for i = 1,#player do
  9923. sc = script.CamScript:clone()
  9924. sc.Parent = speaker
  9925. sc["New Subject"].Value = player[i].Character.Head
  9926. sc.Disabled = false
  9927. end
  9928. end
  9929. end
  9930. end, "None", "None", "None")
  9931.  
  9932. CoolCMDs.Functions.CreateCommand("retools", 5, function(msg, MessageSplit, speaker, Self)
  9933. local player = findplayer(msg:sub(9),speaker)
  9934. if player ~= 0 then
  9935. for i = 1,#player do
  9936. if player[i].StarterGear then
  9937. local gear = player[i].StarterGear:GetChildren()
  9938. if #gear > 0 then
  9939. for Num,Gear in pairs(gear) do
  9940. Gear:remove()
  9941. end
  9942. end
  9943. end
  9944. end
  9945. end
  9946. end, "None", "None", "None")
  9947.  
  9948. CoolCMDs.Functions.CreateCommand("savet", 5, function(msg, MessageSplit, speaker, Self)
  9949. local player = findplayer(msg:sub(7),speaker)
  9950. if player ~= 0 then
  9951. for i = 1,#player do
  9952. if player[i].StarterGear and player[i].Backpack then
  9953. if #player[i].Backpack:GetChildren() > 0 then
  9954. for num,tool in pairs(player[i].Backpack:GetChildren()) do
  9955. tool:clone().Parent = player[i].StarterGear
  9956. end
  9957. end
  9958. end
  9959. end
  9960. end
  9961. end, "None", "None", "None")
  9962.  
  9963. CoolCMDs.Functions.CreateCommand("getgear", 5, function(msg, MessageSplit, speaker, Self)
  9964. local player = findplayer(msg:sub(9),speaker)
  9965. if player ~= 0 then
  9966. for i = 1,#player do
  9967. if player[i].StarterGear and speaker.Backpack then
  9968. for i,v in pairs(player[i].StarterGear:GetChildren()) do
  9969. v:clone().Parent = speaker.Backpack
  9970. end
  9971. end
  9972. end
  9973. end
  9974. end, "None", "None", "None")
  9975.  
  9976. CoolCMDs.Functions.CreateCommand("team", 5, function(msg, MessageSplit, speaker, Self)
  9977. local slash = msg:sub(6):find(""..key)+5
  9978. if slash then
  9979. local team = upmsg:sub(6,slash-1)
  9980. if team then
  9981. local color = upmsg:sub(slash+1)
  9982. local bcolor = BrickColor.new(color)
  9983. if bcolor == BrickColor.new("Medium stone grey") and color:lower() ~= "medium stone grey" then return end
  9984. Team = Instance.new("Team",game:GetService("Teams"))
  9985. Team.Name = team
  9986. Team.TeamColor = bcolor
  9987. end
  9988. end
  9989. end, "None", "None", "None")
  9990.  
  9991. CoolCMDs.Functions.CreateCommand("changeteam", 5, function(msg, MessageSplit, speaker, Self)
  9992. local slash = msg:sub(12):find(""..key)+11
  9993. if slash then
  9994. local player = findplayer(msg:sub(12,slash-1),speaker)
  9995. if player ~= 0 then
  9996. local team = findteam(msg:sub(slash+1),speaker)
  9997. if team then
  9998. for i = 1,#player do
  9999. player[i].Neutral = false
  10000. player[i].TeamColor = team.TeamColor
  10001. end
  10002. end
  10003. end
  10004. end
  10005. end, "None", "None", "None")
  10006.  
  10007. CoolCMDs.Functions.CreateCommand("setupteams", 5, function(msg, MessageSplit, speaker, Self)
  10008. local Teams = game:GetService("Teams")
  10009. TeamChild = Teams:GetChildren()
  10010. if #TeamChild > 0 then
  10011. for i,v in pairs(TeamChild) do
  10012. v:remove()
  10013. end
  10014. end
  10015. local Unassinged = Instance.new("Team",Teams)
  10016. Unassigned.TeamColor = BrickColor.new("Really black")
  10017. Unassigned.Name = "Unassigned"
  10018. for i,v in pairs(game.Players:GetPlayers()) do
  10019. v.Neutral = false
  10020. v.TeamColor = BrickColor.new("Really black")
  10021. end
  10022. end, "None", "None", "None")
  10023.  
  10024. CoolCMDs.Functions.CreateCommand("reteam", 5, function(msg, MessageSplit, speaker, Self)
  10025. local Teams = game:GetService("Teams")
  10026. assignTeam = {}
  10027. local team = findteam(msg:sub(8),speaker)
  10028. if team then
  10029. for i,v in pairs(game.Players:GetPlayers()) do
  10030. if v.TeamColor == team.TeamColor then
  10031. table.insert(assignTeam,v)
  10032. end
  10033. end
  10034. team:remove()
  10035. if #assignTeam > 0 then
  10036. if not Teams:FindFirstChild("Unassigned") then
  10037. Unassinged = Instance.new("Team",Teams)
  10038. Unassigned.TeamColor = BrickColor.new("Really black")
  10039. Unassigned.Name = "Unassigned"
  10040. else Unassigned = Teams.Unassigned end
  10041. for i,v in pairs(assignTeam) do
  10042. v.TeamColor = Unassigned.TeamColor
  10043. end
  10044. end
  10045. end
  10046. end, "None", "None", "None")
  10047.  
  10048. CoolCMDs.Functions.CreateCommand("change", 5, function(msg, MessageSplit, speaker, Self)
  10049. local danumber1 = nil
  10050. local danumber2 = nil
  10051. for i = 8,100 do
  10052. if string.sub(msg,i,i) == ""..key then
  10053. danumber1 = i
  10054. break
  10055. elseif string.sub(msg,i,i) == "" then
  10056. break
  10057. end
  10058. end
  10059. if danumber1 == nil then return end
  10060. for i =danumber1 + 1,danumber1 + 100 do
  10061. if string.sub(msg,i,i) == ""..key then
  10062. danumber2 = i
  10063. break
  10064. elseif string.sub(msg,i,i) == "" then
  10065. break
  10066. end
  10067. end
  10068. if danumber2 == nil then return end
  10069. local player = findplayer(string.sub(msg,8,danumber1 - 1),speaker)
  10070. if player ~= 0 then
  10071. for i = 1,#player do
  10072. local ls = player[i]:FindFirstChild("leaderstats")
  10073. if ls ~= nil then
  10074. local it = nil
  10075. local itnum = 0
  10076. local c = ls:GetChildren()
  10077. for i2 = 1,#c do
  10078. if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1,danumber2 - 1)) == 1 then
  10079. it = c[i2]
  10080. itnum = itnum + 1
  10081. end
  10082. end
  10083. if itnum == 1 then
  10084. it.Value = string.sub(msg,danumber2 + 1)
  10085. end
  10086. end
  10087. end
  10088. end
  10089. end, "None", "None", "None")
  10090.  
  10091. CoolCMDs.Functions.CreateCommand("ungod", 5, function(msg, MessageSplit, speaker, Self)
  10092. local player = findplayer(string.sub(msg,7),speaker)
  10093. if player ~= 0 then
  10094. for i = 1,#player do
  10095. if player[i].Character ~= nil then
  10096. local isgod = false
  10097. local c = player[i].Character:GetChildren()
  10098. for i=1,#c do
  10099. if c[i].className == "Script" then
  10100. if c[i]:FindFirstChild("Context") then
  10101. if string.sub(c[i].Context.Value,1,41) == "script.Parent.Humanoid.MaxHealth = 999999" then
  10102. c[i]:remove()
  10103. isgod = true
  10104. end
  10105. end
  10106. end
  10107. end
  10108. if isgod == true then
  10109. local c = player[i].Character:GetChildren()
  10110. for i=1,#c do
  10111. if c[i].className == "Part" then
  10112. c[i].Reflectance = 0
  10113. end
  10114. if c[i].className == "Humanoid" then
  10115. c[i].MaxHealth = 100
  10116. c[i].Health = 100
  10117. end
  10118. if c[i].Name == "God FF" then
  10119. c[i]:remove()
  10120. end
  10121. end
  10122. end
  10123. end
  10124. end
  10125. end
  10126. end, "None", "None", "None")
  10127.  
  10128. CoolCMDs.Functions.CreateCommand("god", 5, function(msg, MessageSplit, speaker, Self)
  10129. local player = findplayer(string.sub(msg,5),speaker)
  10130. if player ~= 0 then
  10131. for i = 1,#player do
  10132. if player[i].Character ~= nil then
  10133. if player[i].Character:FindFirstChild("God FF") == nil then
  10134. createscript([[script.Parent.Humanoid.MaxHealth = 999999
  10135. script.Parent.Humanoid.Health = 999999
  10136. ff = Instance.new("ForceField")
  10137. ff.Name = "God FF"
  10138. ff.Parent = script.Parent
  10139. function ot(hit)
  10140. if hit.Parent ~= script.Parent then
  10141. h = hit.Parent:FindFirstChild("Humanoid")
  10142. if h ~= nil then
  10143. h.Health = 0
  10144. end
  10145. h = hit.Parent:FindFirstChild("Zombie")
  10146. if h ~= nil then
  10147. h.Health = 0
  10148. end end end
  10149. c = script.Parent:GetChildren()
  10150. for i=1,#c do
  10151. if c[i].className == "Part" then
  10152. c[i].Touched:connect(ot)
  10153. c[i].Reflectance = 1
  10154. end end]],player[i].Character)
  10155. end
  10156. end
  10157. end
  10158. end
  10159. end, "None", "None", "None")
  10160.  
  10161. CoolCMDs.Functions.CreateCommand("sparkles", 5, function(msg, MessageSplit, speaker, Self)
  10162. local player = findplayer(string.sub(msg,10),speaker)
  10163. if player ~= 0 then
  10164. for i = 1,#player do
  10165. if player[i].Character ~= nil then
  10166. local torso = player[i].Character:FindFirstChild("Torso")
  10167. if torso ~= nil then
  10168. local sparkles = Instance.new("Sparkles")
  10169. sparkles.Color = Color3.new(math.random(),math.random(),math.random())
  10170. sparkles.Parent = torso
  10171. end
  10172. end
  10173. end
  10174. end
  10175. end, "None", "None", "None")
  10176.  
  10177. CoolCMDs.Functions.CreateCommand("unsparkles", 5, function(msg, MessageSplit, speaker, Self)
  10178. local player = findplayer(string.sub(msg,12),speaker)
  10179. if player ~= 0 then
  10180. for i = 1,#player do
  10181. if player[i].Character ~= nil then
  10182. local torso = player[i].Character:FindFirstChild("Torso")
  10183. if torso ~= nil then
  10184. local c = torso:GetChildren()
  10185. for i2 = 1,#c do
  10186. if c[i2].className == "Sparkles" then
  10187. c[i2]:remove()
  10188. end
  10189. end
  10190. end
  10191. end
  10192. end
  10193. end
  10194. end, "None", "None", "None")
  10195.  
  10196. CoolCMDs.Functions.CreateCommand("heal", 5, function(msg, MessageSplit, speaker, Self)
  10197. local player = findplayer(string.sub(msg,6),speaker)
  10198. if player ~= 0 then
  10199. for i = 1,#player do
  10200. if player[i].Character ~= nil then
  10201. local human = player[i].Character:FindFirstChild("Humanoid")
  10202. if human ~= nil then
  10203. human.Health = human.MaxHealth
  10204. end
  10205. end
  10206. end
  10207. end
  10208. end, "None", "None", "None")
  10209.  
  10210. CoolCMDs.Functions.CreateCommand("sit", 5, function(msg, MessageSplit, speaker, Self)
  10211. local player = findplayer(string.sub(msg,5),speaker)
  10212. if player ~= 0 then
  10213. for i = 1,#player do
  10214. if player[i].Character ~= nil then
  10215. local human = player[i].Character:FindFirstChild("Humanoid")
  10216. if human ~= nil then
  10217. human.Sit = true
  10218. end
  10219. end
  10220. end
  10221. end
  10222. end, "None", "None", "None")
  10223.  
  10224. CoolCMDs.Functions.CreateCommand("jump", 5, function(msg, MessageSplit, speaker, Self)
  10225. local player = findplayer(string.sub(msg,6),speaker)
  10226. if player ~= 0 then
  10227. for i = 1,#player do
  10228. if player[i].Character ~= nil then
  10229. local human = player[i].Character:FindFirstChild("Humanoid")
  10230. if human ~= nil then
  10231. human.Jump = true
  10232. end
  10233. end
  10234. end
  10235. end
  10236. end, "None", "None", "None")
  10237.  
  10238. CoolCMDs.Functions.CreateCommand("stand", 5, function(msg, MessageSplit, speaker, Self)
  10239. local player = findplayer(string.sub(msg,7),speaker)
  10240. if player ~= 0 then
  10241. for i = 1,#player do
  10242. if player[i].Character ~= nil then
  10243. local human = player[i].Character:FindFirstChild("Humanoid")
  10244. if human ~= nil then
  10245. human.Sit = false
  10246. end
  10247. end
  10248. end
  10249. end
  10250. end, "None", "None", "None")
  10251.  
  10252. CoolCMDs.Functions.CreateCommand("jail", 5, function(msg, MessageSplit, speaker, Self)
  10253. local player = findplayer(string.sub(msg,6),speaker)
  10254. if player ~= 0 then
  10255. for i = 1,#player do
  10256. if player[i].Character ~= nil then
  10257. local torso = player[i].Character:FindFirstChild("Torso")
  10258. if torso ~= nil then
  10259. local ack = Instance.new("Model")
  10260. ack.Name = "Jail" .. player[i].Name
  10261. icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922)  icky.Anchored = true  icky.Locked = true  icky.CanCollide = true  icky.Parent = ack  icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -3.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922)  icky.Anchored = true  icky.Locked = true  icky.CanCollide = true  icky.Parent = ack  icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -3.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922)  icky.Anchored = true  icky.Locked = true  icky.CanCollide = true  icky.Parent = ack  icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922)  icky.Anchored = true  icky.Locked = true  icky.CanCollide = true  icky.Parent = ack  icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -5.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922)  icky.Anchored = true  icky.Locked = true  icky.CanCollide = true  icky.Parent = ack  icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922)  icky.Anchored = true  icky.Locked = true  icky.CanCollide = true  icky.Parent = ack  icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922)  icky.Anchored = true  icky.Locked = true  icky.CanCollide = true  icky.Parent = ack  icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -7.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922)  icky.Anchored = true  icky.Locked = true  icky.CanCollide = true  icky.Parent = ack  icky = Instance.new("Part") icky.Size = Vector3.new(7,1.2000000476837,7) icky.CFrame = CFrame.new(-27.5, 112.599998, -4.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922)  icky.Anchored = true  icky.Locked = true  icky.CanCollide = true  icky.Parent = ack  icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922)  icky.Anchored = true  icky.Locked = true  icky.CanCollide = true  icky.Parent = ack  icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -5.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922)  icky.Anchored = true  icky.Locked = true  icky.CanCollide = true  icky.Parent = ack  icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -1.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922)  icky.Anchored = true  icky.Locked = true  icky.CanCollide = true  icky.Parent = ack  icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922)  icky.Anchored = true  icky.Locked = true  icky.CanCollide = true  icky.Parent = ack
  10262. ack.Parent = game.Workspace
  10263. ack:MoveTo(torso.Position)
  10264. end
  10265. end
  10266. end
  10267. end
  10268. end, "None", "None", "None")
  10269.  
  10270. CoolCMDs.Functions.CreateCommand("unjail", 5, function(msg, MessageSplit, speaker, Self)
  10271. local player = findplayer(string.sub(msg,8),speaker)
  10272. if player ~= 0 then
  10273. for i = 1,#player do
  10274. local c = game.Workspace:GetChildren()
  10275. for i2 =1,#c do
  10276. if string.sub(c[i2].Name,1,4) == "Jail" then
  10277. if string.sub(c[i2].Name,5) == player[i].Name then
  10278. c[i2]:remove()
  10279. end
  10280. end
  10281. end
  10282. end
  10283. end
  10284. end, "None", "None", "None")
  10285.  
  10286. CoolCMDs.Functions.CreateCommand("givebtools", 5, function(msg, MessageSplit, speaker, Self)
  10287. local player = findplayer(string.sub(msg,12),speaker)
  10288. if player ~= 0 then
  10289. for i = 1,#player do
  10290. local a = Instance.new("HopperBin")
  10291. a.BinType = "GameTool"
  10292. a.Parent = player[i].Backpack
  10293. local a = Instance.new("HopperBin")
  10294. a.BinType = "Clone"
  10295. a.Parent = player[i].Backpack
  10296. local a = Instance.new("HopperBin")
  10297. a.BinType = "Hammer"
  10298. a.Parent = player[i].Backpack
  10299. end
  10300. end
  10301. end, "None", "None", "None")
  10302.  
  10303. CoolCMDs.Functions.CreateCommand("unshield", 5, function(msg, MessageSplit, speaker, Self)
  10304. local player = findplayer(string.sub(msg,10),speaker)
  10305. if player ~= 0 then
  10306. for i = 1,#player do
  10307. if player[i].Character ~= nil then
  10308. local shield = player[i].Character:FindFirstChild("Weird Ball Thingy")
  10309. if shield ~= nil then
  10310. shield:remove()
  10311. end
  10312. end
  10313. end
  10314. end
  10315. end, "None", "None", "None")
  10316.  
  10317. CoolCMDs.Functions.CreateCommand("shield", 5, function(msg, MessageSplit, speaker, Self)
  10318. local player = findplayer(string.sub(msg,8),speaker)
  10319. if player ~= 0 then
  10320. for i = 1,#player do
  10321. if player[i].Character ~= nil then
  10322. local torso = player[i].Character:FindFirstChild("Torso")
  10323. if torso ~= nil then
  10324. if player[i].Character:FindFirstChild("Weird Ball Thingy") == nil then
  10325. local ball = Instance.new("Part")
  10326. ball.Size = Vector3.new(10,10,10)
  10327. ball.BrickColor = BrickColor.new(1)
  10328. ball.Transparency = 0.5
  10329. ball.CFrame = torso.CFrame
  10330. ball.TopSurface = "Smooth"
  10331. ball.BottomSurface = "Smooth"
  10332. ball.CanCollide = false
  10333. ball.Name = "Weird Ball Thingy"
  10334. ball.Reflectance = 0.2
  10335. local sm = Instance.new("SpecialMesh")
  10336. sm.MeshType = "Sphere"
  10337. sm.Parent = ball
  10338. ball.Parent = player[i].Character
  10339. createscript([[
  10340. function ot(hit)
  10341. if hit.Parent ~= nil then
  10342. if hit.Parent ~= script.Parent.Parent then
  10343. if hit.Anchored == false then
  10344. hit:BreakJoints()
  10345. local pos = script.Parent.CFrame * (Vector3.new(0, 1.4, 0) * script.Parent.Size)
  10346. hit.Velocity = ((hit.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 150 + hit.Velocity   
  10347. hit.RotVelocity = hit.RotVelocity + Vector3.new(hit.Position.z - pos.z, 0, pos.x - hit.Position.x).unit * 40
  10348. end end end end
  10349. script.Parent.Touched:connect(ot) ]], ball)
  10350. local bf = Instance.new("BodyForce")
  10351. bf.force = Vector3.new(0,5e+004,0)
  10352. bf.Parent = ball
  10353. local w = Instance.new("Weld")
  10354. w.Part1 = torso
  10355. w.Part0 = ball
  10356. ball.Shape = 0
  10357. w.Parent = torso
  10358. end
  10359. end
  10360. end
  10361. end
  10362. end
  10363. end, "None", "None", "None")
  10364.  
  10365. CoolCMDs.Functions.CreateCommand("time", 5, function(msg, MessageSplit, speaker, Self)
  10366. game.Lighting.TimeOfDay = string.sub(msg,6)
  10367. end, "None", "None", "None")
  10368.  
  10369. CoolCMDs.Functions.CreateCommand("maxplayers", 5, function(msg, MessageSplit, speaker, Self)
  10370. local pie = game.Players.MaxPlayers
  10371. game.Players.MaxPlayers = string.sub(msg,12)
  10372. if game.Players.MaxPlayers == 0 then
  10373. game.Players.MaxPlayers = pie
  10374. end
  10375. end, "None", "None", "None")
  10376.  
  10377. CoolCMDs.Functions.CreateCommand("zombify", 5, function(msg, MessageSplit, speaker, Self)
  10378. local player = findplayer(string.sub(msg,9),speaker)
  10379. if player ~= 0 then
  10380. for i = 1,#player do
  10381. if player[i].Character ~= nil then
  10382. local torso = player[i].Character:FindFirstChild("Torso")
  10383. if torso ~= nil then
  10384. local arm = player[i].Character:FindFirstChild("Left Arm")
  10385. if arm ~= nil then
  10386. arm:remove()
  10387. end
  10388. local arm = player[i].Character:FindFirstChild("Right Arm")
  10389. if arm ~= nil then
  10390. arm:remove()
  10391. end
  10392. local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  10393. local zarm = Instance.new("Part")
  10394. zarm.Color = Color3.new(0.631373, 0.768627, 0.545098)
  10395. zarm.Locked = true
  10396. zarm.formFactor = "Symmetric"
  10397. zarm.Size = Vector3.new(2,1,1)
  10398. zarm.TopSurface = "Smooth"
  10399. zarm.BottomSurface = "Smooth"
  10400. createscript( [[
  10401. wait(1)
  10402. function onTouched(part)
  10403. if part.Parent ~= nil then
  10404. local h = part.Parent:findFirstChild("Humanoid")
  10405. if h~=nil then
  10406. if cantouch~=0 then
  10407. if h.Parent~=script.Parent.Parent then
  10408. if h.Parent:findFirstChild("zarm")~=nil then return end
  10409. cantouch=0
  10410. local larm=h.Parent:findFirstChild("Left Arm")
  10411. local rarm=h.Parent:findFirstChild("Right Arm")
  10412. if larm~=nil then
  10413. larm:remove()
  10414. end
  10415. if rarm~=nil then
  10416. rarm:remove()
  10417. end
  10418. local zee=script.Parent.Parent:findFirstChild("zarm")
  10419. if zee~=nil then
  10420. local zlarm=zee:clone()
  10421. local zrarm=zee:clone()
  10422. if zlarm~=nil then
  10423. local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  10424. zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
  10425. zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
  10426. zlarm.Parent=h.Parent
  10427. zrarm.Parent=h.Parent
  10428. zlarm:makeJoints()
  10429. zrarm:makeJoints()
  10430. zlarm.Anchored=false
  10431. zrarm.Anchored=false
  10432. wait(0.1)
  10433. h.Parent.Head.Color=zee.Color
  10434. else return end
  10435. end
  10436. wait(1)
  10437. cantouch=1
  10438. end
  10439. end
  10440. end
  10441. end
  10442. end
  10443. script.Parent.Touched:connect(onTouched)
  10444. ]],zarm)
  10445. zarm.Name = "zarm"
  10446. local zarm2 = zarm:clone()
  10447. zarm2.CFrame = torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
  10448. zarm.CFrame = torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
  10449. zarm.Parent = player[i].Character
  10450. zarm:MakeJoints()
  10451. zarm2.Parent = player[i].Character
  10452. zarm2:MakeJoints()
  10453. local head = player[i].Character:FindFirstChild("Head")
  10454. if head ~= nil then
  10455. head.Color = Color3.new(0.631373, 0.768627, 0.545098)
  10456. end
  10457. end
  10458. end
  10459. end
  10460. end
  10461. end, "None", "None", "None")
  10462.  
  10463. CoolCMDs.Functions.CreateCommand("explode", 5, function(msg, MessageSplit, speaker, Self)
  10464. local player = findplayer(string.sub(msg,8),speaker)
  10465. if player ~= 0 then
  10466. for i = 1,#player do
  10467. if player[i].Character ~= nil then
  10468. local torso = player[i].Character:FindFirstChild("Torso")
  10469. if torso ~= nil then
  10470. local ex = Instance.new("Explosion")
  10471. ex.Position = torso.Position
  10472. ex.Parent = game.Workspace
  10473. end
  10474. end
  10475. end
  10476. end
  10477. end, "None", "None", "None")
  10478.  
  10479. CoolCMDs.Functions.CreateCommand("rocket", 5, function(msg, MessageSplit, speaker, Self)
  10480. local player = findplayer(string.sub(msg,8),speaker)
  10481. if player ~= 0 then
  10482. for i = 1,#player do
  10483. if player[i].Character ~= nil then
  10484. local torso = player[i].Character:FindFirstChild("Torso")
  10485. if torso ~= nil then
  10486. local r = Instance.new("Part")
  10487. r.Name = "Rocket"
  10488. r.Size = Vector3.new(1,8,1)
  10489. r.TopSurface = "Smooth"
  10490. r.BottomSurface = "Smooth"
  10491. local w = Instance.new("Weld")
  10492. w.Part1 = torso
  10493. w.Part0 = r
  10494. w.C0 = CFrame.new(0,0,-1)
  10495. local bt = Instance.new("BodyThrust")
  10496. bt.force = Vector3.new(0,5700,0)
  10497. bt.Parent = r
  10498. r.Parent = player[i].Character
  10499. w.Parent = torso
  10500. createscript([[
  10501. for i=1,120 do
  10502. local ex = Instance.new("Explosion")
  10503. ex.BlastRadius = 0
  10504. ex.Position = script.Parent.Position - Vector3.new(0,2,0)
  10505. ex.Parent = game.Workspace
  10506. wait(0.05)
  10507. end
  10508. local ex = Instance.new("Explosion")
  10509. ex.BlastRadius = 10
  10510. ex.Position = script.Parent.Position
  10511. ex.Parent = game.Workspace
  10512. script.Parent.BodyThrust:remove()
  10513. script.Parent.Parent.Humanoid.Health = 0
  10514. ]],r)
  10515. end
  10516. end
  10517. end
  10518. end
  10519. end, "None", "None", "None")
  10520.  
  10521. CoolCMDs.Functions.CreateCommand("ambient", 5, function(msg, MessageSplit, speaker, Self)
  10522. local danumber1 = nil
  10523. local danumber2 = nil
  10524. for i = 9,100 do
  10525. if string.sub(msg,i,i) == ""..key then
  10526. danumber1 = i
  10527. break
  10528. elseif string.sub(msg,i,i) == "" then
  10529. break
  10530. end
  10531. end
  10532. if danumber1 == nil then return end
  10533. for i =danumber1 + 1,danumber1 + 100 do
  10534. if string.sub(msg,i,i) == ""..key then
  10535. danumber2 = i
  10536. break
  10537. elseif string.sub(msg,i,i) == "" then
  10538. break
  10539. end
  10540. end
  10541. if danumber2 == nil then return end
  10542. game.Lighting.Ambient = Color3.new(-string.sub(msg,9,danumber1 - 1),-string.sub(msg,danumber1 + 1,danumber2 - 1),-string.sub(msg,danumber2 + 1))
  10543. end, "None", "None", "None")
  10544.  
  10545. CoolCMDs.Functions.CreateCommand("part", 5, function(msg, MessageSplit, speaker, Self)
  10546. local danumber1 = nil
  10547. local danumber2 = nil
  10548. for i = 6,100 do
  10549. if string.sub(msg,i,i) == ""..key then
  10550. danumber1 = i
  10551. break
  10552. elseif string.sub(msg,i,i) == "" then
  10553. break
  10554. end
  10555. end
  10556. if danumber1 == nil then return end
  10557. for i =danumber1 + 1,danumber1 + 100 do
  10558. if string.sub(msg,i,i) == ""..key then
  10559. danumber2 = i
  10560. break
  10561. elseif string.sub(msg,i,i) == "" then
  10562. break
  10563. end
  10564. end
  10565. if danumber2 == nil then return end
  10566. if speaker.Character ~= nil then
  10567. local head = speaker.Character:FindFirstChild("Head")
  10568. if head ~= nil then
  10569. local part = Instance.new("Part")
  10570. part.Size = Vector3.new(string.sub(msg,6,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  10571. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  10572. part.Name = "Part"
  10573. part.Parent = game.Workspace
  10574. end
  10575. end
  10576. end, "None", "None", "None")
  10577.  
  10578. CoolCMDs.Functions.CreateCommand("control", 5, function(msg, MessageSplit, speaker, Self)
  10579. local player = findplayer(string.sub(msg,9),speaker)
  10580. if player ~= 0 then
  10581. if #player > 1 then
  10582. return
  10583. end
  10584. for i = 1,#player do
  10585. if player[i].Character ~= nil then
  10586. speaker.Character = player[i].Character
  10587. end
  10588. end
  10589. end
  10590. end, "None", "None", "None")
  10591.  
  10592. CoolCMDs.Functions.CreateCommand("trip", 5, function(msg, MessageSplit, speaker, Self)
  10593. local player = findplayer(string.sub(msg,6),speaker)
  10594. if player ~= 0 then
  10595. for i = 1,#player do
  10596. if player[i].Character ~= nil then
  10597. local torso = player[i].Character:FindFirstChild("Torso")
  10598. if torso ~= nil then
  10599. torso.CFrame = CFrame.new(torso.Position.x,torso.Position.y,torso.Position.z,0, 0, 1, 0, -1, 0, 1, 0, 0)--math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random()) -- i like the people being upside down better.
  10600. end
  10601. end
  10602. end
  10603. end
  10604. end, "None", "None", "None")
  10605.  
  10606. CoolCMDs.Functions.CreateCommand("setgrav", 5, function(msg, MessageSplit, speaker, Self)
  10607. danumber = nil
  10608. for i =9,100 do
  10609. if string.sub(msg,i,i) == ""..key then
  10610. danumber = i
  10611. break
  10612. end
  10613. end
  10614. if danumber == nil then
  10615. return
  10616. end
  10617. local player = findplayer(string.sub(msg,9,danumber - 1),speaker)
  10618. if player == 0 then
  10619. return
  10620. end
  10621. for i = 1,#player do
  10622. if player[i].Character ~= nil then
  10623. local torso = player[i].Character:FindFirstChild("Torso")
  10624. if torso ~= nil then
  10625. local bf = torso:FindFirstChild("BF")
  10626. if bf ~= nil then
  10627. bf.force = Vector3.new(0,0,0)
  10628. else
  10629. local bf = Instance.new("BodyForce")
  10630. bf.Name = "BF"
  10631. bf.force = Vector3.new(0,0,0)
  10632. bf.Parent = torso
  10633. end
  10634. local c2 = player[i].Character:GetChildren()
  10635. for i=1,#c2 do
  10636. if c2[i].className == "Part" then
  10637. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * -string.sub(msg,danumber + 1),0)
  10638. end
  10639. end
  10640. end
  10641. end
  10642. end
  10643. end, "None", "None", "None")
  10644.  
  10645. CoolCMDs.Functions.CreateCommand("walkspeed", 5, function(msg, MessageSplit, speaker, Self)
  10646. danumber = nil
  10647. for i =11,100 do
  10648. if string.sub(msg,i,i) == ""..key then
  10649. danumber = i
  10650. break
  10651. end
  10652. end
  10653. if danumber == nil then
  10654. return
  10655. end
  10656. local player = findplayer(string.sub(msg,11,danumber - 1),speaker)
  10657. if player == 0 then
  10658. return
  10659. end
  10660. for i = 1,#player do
  10661. if player[i].Character ~= nil then
  10662. humanoid = player[i].Character:FindFirstChild("Humanoid")
  10663. if humanoid ~= nil then
  10664. humanoid.WalkSpeed = string.sub(msg,danumber + 1)
  10665. end
  10666. end
  10667. end
  10668. end, "None", "None", "None")
  10669.  
  10670. CoolCMDs.Functions.CreateCommand("damage", 5, function(msg, MessageSplit, speaker, Self)
  10671. danumber = nil
  10672. for i =8,100 do
  10673. if string.sub(msg,i,i) == ""..key then
  10674. danumber = i
  10675. break
  10676. end end
  10677. if danumber == nil then
  10678. return
  10679. end
  10680. local player = findplayer(string.sub(msg,8,danumber - 1),speaker)
  10681. if player == 0 then
  10682. return
  10683. end
  10684. for i = 1,#player do
  10685. if player[i].Character ~= nil then
  10686. humanoid = player[i].Character:FindFirstChild("Humanoid")
  10687. if humanoid ~= nil then
  10688. humanoid.Health = humanoid.Health -  string.sub(msg,danumber + 1)
  10689. end
  10690. end
  10691. end
  10692. end, "None", "None", "None")
  10693.  
  10694. CoolCMDs.Functions.CreateCommand("health", 5, function(msg, MessageSplit, speaker, Self)
  10695. danumber = nil
  10696. for i =8,100 do
  10697. if string.sub(msg,i,i) == ""..key then
  10698. danumber = i
  10699. break
  10700. end end
  10701. if danumber == nil then
  10702. return
  10703. end
  10704. local player = findplayer(string.sub(msg,8,danumber - 1),speaker)
  10705. if player == 0 then
  10706. return
  10707. end
  10708. for i = 1,#player do
  10709. if player[i].Character ~= nil then
  10710. humanoid = player[i].Character:FindFirstChild("Humanoid")
  10711. if humanoid ~= nil then
  10712. local elnumba = Instance.new("IntValue")
  10713. elnumba.Value = string.sub(msg,danumber + 1)
  10714. if elnumba.Value > 0 then
  10715. humanoid.MaxHealth = elnumba.Value
  10716. humanoid.Health = humanoid.MaxHealth
  10717. end
  10718. elnumba:remove()
  10719. end
  10720. end
  10721. end
  10722. end, "None", "None", "None")
  10723.  
  10724. CoolCMDs.Functions.CreateCommand("teleport", 5, function(msg, MessageSplit, speaker, Self)
  10725. danumber = nil
  10726. for i = 10,100 do
  10727. if string.sub(msg,i,i) == " " then
  10728. danumber = i
  10729. break
  10730. end
  10731. end
  10732. if danumber == nil then
  10733. return
  10734. end
  10735. local player1 = findplayer(string.sub(msg,10,danumber - 1),speaker)
  10736. if player1 == 0 then
  10737. return
  10738. end
  10739. local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
  10740. if player2 == 0 then
  10741. return
  10742. end
  10743. if #player2 > 1 then
  10744. return
  10745. end
  10746. torso = nil
  10747. for i =1,#player2 do
  10748. if player2[i].Character ~= nil then
  10749. torso = player2[i].Character:FindFirstChild("Torso")
  10750. end
  10751. end
  10752. if torso ~= nil then
  10753. for i =1,#player1 do
  10754. if player1[i].Character ~= nil then
  10755. local torso2 = player1[i].Character:FindFirstChild("Torso")
  10756. if torso2 ~= nil then
  10757. torso2.CFrame = torso.CFrame
  10758. end
  10759. end
  10760. end
  10761. end
  10762. end, "None", "None", "None")
  10763.  
  10764. CoolCMDs.Functions.CreateCommand("merge", 5, function(msg, MessageSplit, speaker, Self)
  10765. danumber = nil
  10766. for i =7,100 do
  10767. if string.sub(msg,i,i) == ""..key then
  10768. danumber = i
  10769. break
  10770. end end
  10771. if danumber == nil then
  10772. return
  10773. end
  10774. local player1 = findplayer(string.sub(msg,7,danumber - 1),speaker)
  10775. if player1 == 0 then
  10776. return
  10777. end
  10778. local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
  10779. if player2 == 0 then
  10780. return
  10781. end
  10782. if #player2 > 1 then
  10783. return
  10784. end
  10785. for i =1,#player2 do
  10786. if player2[i].Character ~= nil then
  10787. player2 = player2[i].Character
  10788. end
  10789. end
  10790. for i =1,#player1 do
  10791. player1[i].Character = player2
  10792. end
  10793. end, "None", "None", "None")
  10794.  
  10795. CoolCMDs.Functions.CreateCommand("clearscripts", 5, function(msg, MessageSplit, speaker, Self)
  10796. local c = game.Workspace:GetChildren()
  10797. for i =1,#c do
  10798. if c[i].className == "Script" then
  10799. if c[i]:FindFirstChild("Is A Created Script") then
  10800. c[i]:remove()
  10801. end
  10802. end
  10803. end
  10804. local d = game.Players:GetPlayers()
  10805. for i2 = 1,#d do
  10806. for i,v in pairs(d[i2]:GetChildren()) do
  10807. if v:isA("Script") and v:FindFirstChild("Is A Created Script") then
  10808. v:remove()
  10809. end
  10810. end
  10811. end
  10812. end, "None", "None", "None")
  10813.  
  10814. CoolCMDs.Functions.CreateCommand("respawn", 5, function(msg, MessageSplit, speaker, Self)
  10815. local player = findplayer(string.sub(msg,9),speaker)
  10816. if player ~= 0 then
  10817. for i = 1,#player do
  10818. local ack2 = Instance.new("Model")
  10819. ack2.Parent = game.Workspace
  10820. local ack4 = Instance.new("Part")
  10821. ack4.Transparency = 1
  10822. ack4.CanCollide = false
  10823. ack4.Anchored = true
  10824. ack4.Name = "Torso"
  10825. ack4.Position = Vector3.new(10000,10000,10000)
  10826. ack4.Parent = ack2
  10827. local ack3 = Instance.new("Humanoid")
  10828. ack3.Torso = ack4
  10829. ack3.Parent = ack2
  10830. player[i].Character = ack2
  10831. end
  10832. end
  10833. end, "None", "None", "None")
  10834.  
  10835. CoolCMDs.Functions.CreateCommand("invisible", 5, function(msg, MessageSplit, speaker, Self)
  10836. local player = findplayer(string.sub(msg,11),speaker)
  10837. if player ~= 0 then
  10838. for i = 1,#player do
  10839. if player[i].Character ~= nil then
  10840. local char = player[i].Character
  10841. local c = player[i].Character:GetChildren()
  10842. for i =1,#c do
  10843. if c[i].className == "Hat" then
  10844. local handle = c[i]:FindFirstChild("Handle")
  10845. if handle ~= nil then
  10846. handle.Transparency = 1
  10847. end end
  10848. if c[i].className == "Part" then
  10849. c[i].Transparency = 1
  10850. if c[i].Name == "Torso" then
  10851. local tshirt = c[i]:FindFirstChild("roblox")
  10852. if tshirt ~= nil then
  10853. tshirt:clone().Parent = char
  10854. tshirt:remove()
  10855. end end
  10856. if c[i].Name == "Head" then
  10857. local face = c[i]:FindFirstChild("face")
  10858. if face ~= nil then
  10859. gface = face:clone()
  10860. face:remove()
  10861. end end end end end end end
  10862. end, "None", "None", "None")
  10863.  
  10864. CoolCMDs.Functions.CreateCommand("visible", 5, function(msg, MessageSplit, speaker, Self)
  10865. local player = findplayer(string.sub(msg,9),speaker)
  10866. if player ~= 0 then
  10867. for i = 1,#player do
  10868. if player[i].Character ~= nil then
  10869. local char = player[i].Character
  10870. local c = player[i].Character:GetChildren()
  10871. for i =1,#c do
  10872. if c[i].className == "Hat" then
  10873. local handle = c[i]:FindFirstChild("Handle")
  10874. if handle ~= nil then
  10875. handle.Transparency = 0
  10876. end end
  10877. if c[i].className == "Part" then
  10878. c[i].Transparency = 0
  10879. if c[i].Name == "Torso" then
  10880. local tshirt = char:FindFirstChild("roblox")
  10881. if tshirt ~= nil then
  10882. tshirt:clone().Parent = c[i]
  10883. tshirt:remove()
  10884. end end
  10885. if c[i].Name == "Head" then
  10886. if gface ~= nil then
  10887. local face = gface:clone()
  10888. face.Parent = c[i]
  10889. end end end end end end end
  10890. end, "None", "None", "None")
  10891.  
  10892. CoolCMDs.Functions.CreateCommand("freeze", 5, function(msg, MessageSplit, speaker, Self)
  10893. local player = findplayer(string.sub(msg,8),speaker)
  10894. if player ~= 0 then
  10895. for i = 1,#player do
  10896. if player[i].Character ~= nil then
  10897. local humanoid = player[i].Character:FindFirstChild("Humanoid")
  10898. if humanoid ~= nil then
  10899. humanoid.WalkSpeed = 0
  10900. end
  10901. local c = player[i].Character:GetChildren()
  10902. for i =1,#c do
  10903. if c[i].className == "Part" then
  10904. c[i].Anchored = true
  10905. end end end end end
  10906. end, "None", "None", "None")
  10907.  
  10908. CoolCMDs.Functions.CreateCommand("thaw", 5, function(msg, MessageSplit, speaker, Self)
  10909. local player = findplayer(string.sub(msg,6),speaker)
  10910. if player ~= 0 then
  10911. for i = 1,#player do
  10912. if player[i].Character ~= nil then
  10913. local humanoid = player[i].Character:FindFirstChild("Humanoid")
  10914. if humanoid ~= nil then
  10915. humanoid.WalkSpeed = 16
  10916. end
  10917. local c = player[i].Character:GetChildren()
  10918. for i =1,#c do
  10919. if c[i].className == "Part" then
  10920. c[i].Anchored = false
  10921. c[i].Reflectance = 0
  10922. end end end end end
  10923. end, "None", "None", "None")
  10924.  
  10925. CoolCMDs.Functions.CreateCommand("nograv", 5, function(msg, MessageSplit, speaker, Self)
  10926. local player = findplayer(string.sub(msg,8),speaker)
  10927. if player ~= 0 then
  10928. for i = 1,#player do
  10929. if player[i].Character ~= nil then
  10930. local torso = player[i].Character:FindFirstChild("Torso")
  10931. if torso ~= nil then
  10932. local bf = torso:FindFirstChild("BF")
  10933. if bf ~= nil then
  10934. bf.force = Vector3.new(0,0,0)
  10935. else
  10936. local bf = Instance.new("BodyForce")
  10937. bf.Name = "BF"
  10938. bf.force = Vector3.new(0,0,0)
  10939. bf.Parent = torso
  10940. end
  10941. local c2 = player[i].Character:GetChildren()
  10942. for i=1,#c2 do
  10943. if c2[i].className == "Part" then
  10944. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 196.2,0)
  10945. end end end end end end
  10946. end, "None", "None", "None")
  10947.  
  10948. CoolCMDs.Functions.CreateCommand("antigrav", 5, function(msg, MessageSplit, speaker, Self)
  10949. local player = findplayer(string.sub(msg,10),speaker)
  10950. if player ~= 0 then
  10951. for i = 1,#player do
  10952. if player[i].Character ~= nil then
  10953. local torso = player[i].Character:FindFirstChild("Torso")
  10954. if torso ~= nil then
  10955. local bf = torso:FindFirstChild("BF")
  10956. if bf ~= nil then
  10957. bf.force = Vector3.new(0,0,0)
  10958. else
  10959. local bf = Instance.new("BodyForce")
  10960. bf.Name = "BF"
  10961. bf.force = Vector3.new(0,0,0)
  10962. bf.Parent = torso
  10963. end
  10964. local c2 = player[i].Character:GetChildren()
  10965. for i=1,#c2 do
  10966. if c2[i].className == "Part" then
  10967. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 140,0)
  10968. end end end end end end
  10969. end, "None", "None", "None")
  10970.  
  10971. CoolCMDs.Functions.CreateCommand("highgrav", 5, function(msg, MessageSplit, speaker, Self)
  10972. local player = findplayer(string.sub(msg,10),speaker)
  10973. if player ~= 0 then
  10974. for i = 1,#player do
  10975. if player[i].Character ~= nil then
  10976. local torso = player[i].Character:FindFirstChild("Torso")
  10977. if torso ~= nil then
  10978. local bf = torso:FindFirstChild("BF")
  10979. if bf ~= nil then
  10980. bf.force = Vector3.new(0,0,0)
  10981. else
  10982. local bf = Instance.new("BodyForce")
  10983. bf.Name = "BF"
  10984. bf.force = Vector3.new(0,0,0)
  10985. bf.Parent = torso
  10986. end
  10987. local c2 = player[i].Character:GetChildren()
  10988. for i=1,#c2 do
  10989. if c2[i].className == "Part" then
  10990. torso.BF.force = torso.BF.force - Vector3.new(0,c2[i]:getMass() * 80,0)
  10991. end end end end end end
  10992. end, "None", "None", "None")
  10993.  
  10994. CoolCMDs.Functions.CreateCommand("grav", 5, function(msg, MessageSplit, speaker, Self)
  10995. local player = findplayer(string.sub(msg,6),speaker)
  10996. if player ~= 0 then
  10997. for i = 1,#player do
  10998. if player[i].Character ~= nil then
  10999. local torso = player[i].Character:FindFirstChild("Torso")
  11000. if torso ~= nil then
  11001. local bf = torso:FindFirstChild("BF")
  11002. if bf ~= nil then
  11003. bf:remove()
  11004. end end end end end
  11005. end, "None", "None", "None")
  11006.  
  11007. CoolCMDs.Functions.CreateCommand("unlock", 5, function(msg, MessageSplit, speaker, Self)
  11008. local player = findplayer(string.sub(msg,8),speaker)
  11009. if player ~= 0 then
  11010. for i = 1,#player do
  11011. if player[i].Character ~= nil then
  11012. local c = player[i].Character:GetChildren()
  11013. for i =1,#c do
  11014. if c[i].className == "Part" then
  11015. c[i].Locked = false
  11016. end end end end end
  11017. end, "None", "None", "None")
  11018.  
  11019. CoolCMDs.Functions.CreateCommand("lock", 5, function(msg, MessageSplit, speaker, Self)
  11020. local player = findplayer(string.sub(msg,6),speaker)
  11021. if player ~= 0 then
  11022. for i = 1,#player do
  11023. if player[i].Character ~= nil then
  11024. local c = player[i].Character:GetChildren()
  11025. for i =1,#c do
  11026. if c[i].className == "Part" then
  11027. c[i].Locked = true
  11028. end
  11029. end
  11030. end
  11031. end
  11032. end
  11033. end, "None", "None", "None")
  11034.  
  11035. CoolCMDs.Functions.CreateCommand("time", 5, function(msg, MessageSplit, speaker, Self)
  11036. if string.len(msg) >= 6 then
  11037. game.Lighting.TimeOfDay = string.sub(msg,6)
  11038. end
  11039. end, "None", "None", "None")
  11040.  
  11041. CoolCMDs.Functions.CreateCommand("resetmp", 5, function(msg, MessageSplit, speaker, Self)
  11042. game.Players.MaxPlayers = MaxPlayers
  11043. end, "None", "None", "None")
  11044.  
  11045. CoolCMDs.Functions.CreateCommand("color", 5, function(msg, MessageSplit, speaker, Self)
  11046. if string.len(msg) >= 7 then
  11047. Add = nil
  11048. for i=7,10000 do
  11049. if string.sub(msg,i,i) == "/" then
  11050. Add = i
  11051. break
  11052. elseif string.sub(msg,i,i) == "" then
  11053. break
  11054. end
  11055. end
  11056. if Add then
  11057. Plr = findplr(string.sub(msg,7,Add-1),player)
  11058. if Plr ~= 0 then
  11059. for _,v in pairs(Plr) do
  11060. for _,c in pairs(v.Character:GetChildren()) do
  11061. if c.className == "Part" then
  11062. c.BrickColor = BrickColor.new(string.sub(msg,Add+1))
  11063. end
  11064. end
  11065. end
  11066. end
  11067. end
  11068. end
  11069. end, "None", "None", "None")
  11070.  
  11071. CoolCMDs.Functions.CreateCommand("rcolor", 5, function(msg, MessageSplit, speaker, Self)
  11072. if string.len(msg) >= 8 then
  11073. Plr = findplr(string.sub(msg,8),player)
  11074. if Plr ~= 0 then
  11075. for _,v in pairs(Plr) do
  11076. for _,c in pairs(v.Character:GetChildren()) do
  11077. if c.className == "Part" then
  11078. c.BrickColor = BrickColor.random()
  11079. end
  11080. end
  11081. end
  11082. end
  11083. end
  11084. end, "None", "None", "None")
  11085.  
  11086. CoolCMDs.Functions.CreateCommand("launch", 5, function(msg, MessageSplit, speaker, Self)
  11087. if string.len(msg) >= 8 then
  11088. plr = findplr(string.sub(msg,8),player)
  11089. if plr ~= 0 then
  11090. for _,v in pairs(plr) do
  11091. Rocket = Instance.new("Part")
  11092. Rocket.Name = "BCGRocket"
  11093. Rocket.Size = Vector3.new(1,8,1)
  11094. Rocket.TopSurface = "Smooth"
  11095. Rocket.BottomSurface = "Smooth"
  11096. Weld = Instance.new("Weld")
  11097. Weld.Part1 = v.Character.Torso
  11098. Weld.Part0 = Rocket
  11099. Weld.C0 = CFrame.new(0,0,-1)
  11100. Body = Instance.new("BodyThrust")
  11101. Body.force = Vector3.new(0,5700,0)
  11102. Body.Parent = Rocket
  11103. Rocket.Parent = v.Character
  11104. Weld.Parent = v.Character.Torso
  11105. scriptz([[
  11106. for i=1,120 do
  11107. local BOOM = Instance.new("Explosion")
  11108. BOOM.BlastRadius = 0
  11109. BOOM.Position = script.Parent.Position - Vector3.new(0,2,0)
  11110. BOOM.Parent = game.Workspace
  11111. wait(0.05)
  11112. end
  11113. local BOOM2 = Instance.new("Explosion")
  11114. BOOM2.BlastRadius = 10
  11115. BOOM2.Position = script.Parent.Position
  11116. BOOM2.Parent = game.Workspace
  11117. script.Parent.BodyThrust:remove()
  11118. script.Parent.Parent.Humanoid.Health = 0
  11119. ]],v,Rocket)
  11120. end
  11121. end
  11122. end
  11123. end, "None", "None", "None")
  11124.  
  11125. CoolCMDs.Functions.CreateCommand("flip", 5, function(msg, MessageSplit, speaker, Self)
  11126. if string.len(msg) >= 6 then
  11127. plr = findplr(string.sub(msg,6),player)
  11128. if plr ~= 0 then
  11129. for _,v in pairs(plr) do
  11130. torso = v.Character.Torso
  11131. torso.CFrame = CFrame.new(torso.Position.x,torso.Position.y,torso.Position.z,0, 0, 1, 0, -1, 0, 1, 0, 0)
  11132. end
  11133. end
  11134. end
  11135. end, "None", "None", "None")
  11136.  
  11137. CoolCMDs.Functions.CreateCommand("bighead", 5, function(msg, MessageSplit, speaker, Self)
  11138. if string.len(msg) >= 9 then
  11139. stop = findplr(string.sub(msg,9),player)
  11140. if stop ~= 0 then
  11141. for _,v in pairs(stop) do
  11142. v.Character.Head.Mesh.Scale = Vector3.new(5,5,5)
  11143. end
  11144. end
  11145. end
  11146. end, "None", "None", "None")
  11147.  
  11148. CoolCMDs.Functions.CreateCommand("smallhead", 5, function(msg, MessageSplit, speaker, Self)
  11149. if string.len(msg) >= 11 then
  11150. stop = findplr(string.sub(msg,11),player)
  11151. if stop ~= 0 then
  11152. for _,v in pairs(stop) do
  11153. v.Character.Head.Mesh.Scale = Vector3.new(0.625,0.625,0.625)
  11154. end
  11155. end
  11156. end
  11157. end, "None", "None", "None")
  11158.  
  11159. CoolCMDs.Functions.CreateCommand("normhead", 5, function(msg, MessageSplit, speaker, Self)
  11160. if string.len(msg) >= 10 then
  11161. stop = findplr(string.sub(msg,10),player)
  11162. if stop ~= 0 then
  11163. for _,v in pairs(stop) do
  11164. v.Character.Head.Mesh.Scale = Vector3.new(1.25,1.25,1.25)
  11165. end
  11166. end
  11167. end
  11168. end, "None", "None", "None")
  11169.  
  11170. CoolCMDs.Functions.CreateCommand("sethead", 5, function(msg, MessageSplit, speaker, Self)
  11171. if string.len(msg) >= 9 then
  11172. Add = nil
  11173. Num = nil
  11174. for i=9,1000 do
  11175. if string.sub(msg,i,i) == "/" then
  11176. Add = i
  11177. break
  11178. elseif string.sub(msg,i,i) == "" then
  11179. break
  11180. end
  11181. end
  11182. if Add then
  11183. stop = findplr(string.sub(msg,9,Add-1),player)
  11184. if stop ~= 0 then
  11185. Num = tonumber(string.sub(msg,Add+1))
  11186. if Num then
  11187. for _,v in pairs(stop) do
  11188. v.Character.Head.Mesh.Scale = Vector3.new(Num,Num,Num)
  11189. end
  11190. end
  11191. end
  11192. end
  11193. end
  11194. end, "None", "None", "None")
  11195.  
  11196. CoolCMDs.Functions.CreateCommand("hide", 5, function(msg, MessageSplit, speaker, Self)
  11197. if string.len(msg) >= 6 then
  11198. stop = findplr(string.sub(msg,6))
  11199. if stop ~= 0 then
  11200. for _,v in pairs(stop) do
  11201. A = v.Character.Head:clone()
  11202. A.face:remove()
  11203. B = Instance.new("Weld",v.Character.Head)
  11204. B.Name = "BCGWeld"
  11205. B.Part1 = v.Character.Head
  11206. B.Part0 = A
  11207. v.Character.Head.Transparency = 1
  11208. A.Name = "PseudoHead"
  11209. A.Parent = v.Character
  11210. end
  11211. end
  11212. end
  11213. end, "None", "None", "None")
  11214.  
  11215. CoolCMDs.Functions.CreateCommand("unhide", 5, function(msg, MessageSplit, speaker, Self)
  11216. if string.len(msg) >= 8 then
  11217. stop = findplr(string.sub(msg,8))
  11218. if stop ~= 0 then
  11219. for _,v in pairs(stop) do
  11220. if v.Character:FindFirstChild("PseudoHead") then
  11221. v.Character.PseudoHead:remove()
  11222. v.Character.Head.Transparency = 0
  11223. end
  11224. end
  11225. end
  11226. end
  11227. end, "None", "None", "None")
  11228.  
  11229. CoolCMDs.Functions.CreateCommand("unsmoke", 5, function(msg, MessageSplit, speaker, Self)
  11230. if string.len(msg)>=9 then
  11231. stop = findplr(string.sub(msg,9),player)
  11232. if stop ~= 0 then
  11233. for x=1,#stop do
  11234. Spark = stop[x].Character.Torso:FindFirstChild("BCGSmoke")
  11235. if Spark then
  11236. Spark:remove()
  11237. end
  11238. end
  11239. end
  11240. end
  11241. end, "None", "None", "None")
  11242.  
  11243. CoolCMDs.Functions.CreateCommand("smoke", 5, function(msg, MessageSplit, speaker, Self)
  11244. if string.len(msg)>=7 then
  11245. stop = findplr(string.sub(msg,7),player)
  11246. if stop ~= 0 then
  11247. for x=1,#stop do
  11248. Spark = stop[x].Character.Torso:FindFirstChild("BCGSmoke")
  11249. if not Spark then
  11250. A=Instance.new("Smoke")
  11251. A.Name = "BCGSmoke"
  11252. A.Color = Color3.new((math.random(1,255))/255,(math.random(1,255))/255,(math.random(1,255))/255)
  11253. A.Opacity = 0.5
  11254. A.RiseVelocity = 5
  11255. A.Parent = stop[x].Character.Torso
  11256. end
  11257. end
  11258. end
  11259. end
  11260. end, "None", "None", "None")
  11261.  
  11262. CoolCMDs.Functions.CreateCommand("shadcol", 5, function(msg, MessageSplit, speaker, Self)
  11263. if string.len(msg) >= 9 then
  11264. I = nil
  11265. C = nil
  11266. for i=9,1000 do
  11267. if string.sub(msg,i,i) == "/" then
  11268. I = i
  11269. break
  11270. end
  11271. end
  11272. if I then
  11273. for c=I+1,10000 do
  11274. if string.sub(msg,c,c) == "/" then
  11275. C = c
  11276. break
  11277. end
  11278. end
  11279. if C then
  11280. game.Lighting.ShadowColor = Color3.new(tonumber(string.sub(msg,5,I-1)),tonumber(string.sub(msg,I+1,C-1)),tonumber(string.sub(msg,C+1)))
  11281. end
  11282. end
  11283. end
  11284. end, "None", "None", "None")
  11285.  
  11286. CoolCMDs.Functions.CreateCommand("b", 5, function(msg, MessageSplit, speaker, Self)
  11287. if string.len(msg) >= 3 then
  11288. I = nil
  11289. for i=3,9999 do
  11290. if string.sub(msg,i,i) == "/" then
  11291. I = i
  11292. break
  11293. end
  11294. end
  11295. if I then
  11296. stop = findplr(string.sub(msg,3,I-1),player)
  11297. if stop ~= 0 then
  11298. ID = tonumber(string.sub(msg,I+1))
  11299. if ID then
  11300. for _,v in pairs(stop) do
  11301. game:GetService("BadgeService"):AwardBadge(v.userId,ID)
  11302. end
  11303. end
  11304. end
  11305. end
  11306. end
  11307. end, "None", "None", "None")
  11308.  
  11309. CoolCMDs.Functions.CreateCommand("amb", 5, function(msg, MessageSplit, speaker, Self)
  11310. if string.len(msg) >= 5 then
  11311. I = nil
  11312. C = nil
  11313. for i=5,1000 do
  11314. if string.sub(msg,i,i) == "/" then
  11315. I = i
  11316. break
  11317. end
  11318. end
  11319. if I then
  11320. for c=I+1,10000 do
  11321. if string.sub(msg,c,c) == "/" then
  11322. C = c
  11323. break
  11324. end
  11325. end
  11326. if C then
  11327. game.Lighting.Ambient = Color3.new(tonumber(string.sub(msg,5,I-1)),tonumber(string.sub(msg,I+1,C-1)),tonumber(string.sub(msg,C+1)))
  11328. end
  11329. end
  11330. end
  11331. end, "None", "None", "None")
  11332.  
  11333. CoolCMDs.Functions.CreateCommand("brightness", 5, function(msg, MessageSplit, speaker, Self)
  11334. if string.len(msg) >= 12 then
  11335. print(string.sub(msg,12))
  11336. game.Lighting.Brightness = tonumber(string.sub(msg,12))
  11337. end
  11338. end, "None", "None", "None")
  11339.  
  11340. CoolCMDs.Functions.CreateCommand("gettool", 5, function(msg, MessageSplit, speaker, Self)
  11341. if string.len(msg) >= 9 then
  11342. Plr = nil
  11343. Tool = nil
  11344. for i=9,1000 do
  11345. if string.sub(msg,i,i) == "/" then
  11346. Plr = i
  11347. break
  11348. elseif string.sub(msg,i,i) == "" then
  11349. break
  11350. end
  11351. end
  11352. if Plr then
  11353. stop = findplr(string.sub(msg,9,Plr-1),player)
  11354. if stop ~= 0 then
  11355. Toolz = findtool(string.sub(msg,Plr+1))
  11356. if Toolz then
  11357. for _,v in pairs(stop) do
  11358. for _,c in pairs(Toolz) do
  11359. c:clone().Parent = v.Backpack
  11360. end
  11361. end
  11362. end
  11363. end
  11364. end
  11365. end
  11366. end, "None", "None", "None")
  11367.  
  11368. CoolCMDs.Functions.CreateCommand("give", 5, function(msg, MessageSplit, speaker, Self)
  11369. if string.len(msg)>=6 then
  11370. AAA = nil
  11371. for sa=6,1000 do
  11372. if string.sub(msg,sa,sa) == "/" then
  11373. AAA = sa
  11374. break
  11375. elseif string.sub(msg,sa,sa) == "" then
  11376. break
  11377. end
  11378. end
  11379. stop = findplr(string.sub(msg,6,AAA-1),player)
  11380. if stop ~= 0 then
  11381. for _,f in pairs(stop) do
  11382. ID = string.sub(msg,AAA+1)
  11383. Insert = game:GetService("InsertService"):LoadAsset(ID)
  11384. Child = Insert:GetChildren()
  11385. Check = false
  11386. for i=1,#Child do
  11387. if (Child[i].className == "Hat" or Child[i].className == "CharacterMesh" or Child[i].className == "Shirt" or Child[i].className == "Pants") then
  11388. Child[i].Parent = f.Character
  11389. end
  11390. end
  11391. Insert:remove()
  11392. end
  11393. end
  11394. end
  11395. end, "None", "None", "None")
  11396.  
  11397. CoolCMDs.Functions.CreateCommand("ice", 5, function(msg, MessageSplit, speaker, Self)
  11398. if string.len(msg)>=5 then
  11399. stop = findplr(string.sub(msg,5),player)
  11400. if stop ~= 0 then
  11401. for x=1,#stop do
  11402. Char = stop[x].Character:GetChildren()
  11403. for i=1,#Char do
  11404. if Char[i].className == "Part" then
  11405. Char[i].Material = "Ice"
  11406. end
  11407. end
  11408. end
  11409. end
  11410. end
  11411. end, "None", "None", "None")
  11412.  
  11413. CoolCMDs.Functions.CreateCommand("grass", 5, function(msg, MessageSplit, speaker, Self)
  11414. if string.len(msg)>=7 then
  11415. stop = findplr(string.sub(msg,7),player)
  11416. if stop ~= 0 then
  11417. for x=1,#stop do
  11418. Char = stop[x].Character:GetChildren()
  11419. for i=1,#Char do
  11420. if Char[i].className == "Part" then
  11421. Char[i].Material = "Grass"
  11422. end
  11423. end
  11424. end
  11425. end
  11426. end
  11427. end, "None", "None", "None")
  11428.  
  11429. CoolCMDs.Functions.CreateCommand("foil", 5, function(msg, MessageSplit, speaker, Self)
  11430. if string.len(msg)>=6 then
  11431. stop = findplr(string.sub(msg,6),player)
  11432. if stop ~= 0 then
  11433. for x=1,#stop do
  11434. Char = stop[x].Character:GetChildren()
  11435. for i=1,#Char do
  11436. if Char[i].className == "Part" then
  11437. Char[i].Material = "Foil"
  11438. end
  11439. end
  11440. end
  11441. end
  11442. end
  11443. end, "None", "None", "None")
  11444.  
  11445. CoolCMDs.Functions.CreateCommand("corrmetal", 5, function(msg, MessageSplit, speaker, Self)
  11446. if string.len(msg)>=11 then
  11447. stop = findplr(string.sub(msg,11),player)
  11448. if stop ~= 0 then
  11449. for x=1,#stop do
  11450. Char = stop[x].Character:GetChildren()
  11451. for i=1,#Char do
  11452. if Char[i].className == "Part" then
  11453. Char[i].Material = "CorrodedMetal"
  11454. end
  11455. end
  11456. end
  11457. end
  11458. end
  11459. end, "None", "None", "None")
  11460.  
  11461. CoolCMDs.Functions.CreateCommand("slate", 5, function(msg, MessageSplit, speaker, Self)
  11462. if string.len(msg)>=7 then
  11463. stop = findplr(string.sub(msg,7),player)
  11464. if stop ~= 0 then
  11465. for x=1,#stop do
  11466. Char = stop[x].Character:GetChildren()
  11467. for i=1,#Char do
  11468. if Char[i].className == "Part" then
  11469. Char[i].Material = "Slate"
  11470. end
  11471. end
  11472. end
  11473. end
  11474. end
  11475. end, "None", "None", "None")
  11476.  
  11477. CoolCMDs.Functions.CreateCommand("concrete", 5, function(msg, MessageSplit, speaker, Self)
  11478. if string.len(msg)>=10 then
  11479. stop = findplr(string.sub(msg,10),player)
  11480. if stop ~= 0 then
  11481. for x=1,#stop do
  11482. Char = stop[x].Character:GetChildren()
  11483. for i=1,#Char do
  11484. if Char[i].className == "Part" then
  11485. Char[i].Material = "Concrete"
  11486. end
  11487. end
  11488. end
  11489. end
  11490. end
  11491. end, "None", "None", "None")
  11492.  
  11493. CoolCMDs.Functions.CreateCommand("dimpl", 5, function(msg, MessageSplit, speaker, Self)
  11494. if string.len(msg)>=7 then
  11495. stop = findplr(string.sub(msg,7),player)
  11496. if stop ~= 0 then
  11497. for x=1,#stop do
  11498. Char = stop[x].Character:GetChildren()
  11499. for i=1,#Char do
  11500. if Char[i].className == "Part" then
  11501. Char[i].Material = "DiamondPlate"
  11502. end
  11503. end
  11504. end
  11505. end
  11506. end
  11507. end, "None", "None", "None")
  11508.  
  11509. CoolCMDs.Functions.CreateCommand("plastic", 5, function(msg, MessageSplit, speaker, Self)
  11510. if string.len(msg)>=9 then
  11511. stop = findplr(string.sub(msg,9),player)
  11512. if stop ~= 0 then
  11513. for x=1,#stop do
  11514. Char = stop[x].Character:GetChildren()
  11515. for i=1,#Char do
  11516. if Char[i].className == "Part" then
  11517. Char[i].Material = "Plastic"
  11518. end
  11519. end
  11520. end
  11521. end
  11522. end
  11523. end, "None", "None", "None")
  11524.  
  11525. CoolCMDs.Functions.CreateCommand("wood", 5, function(msg, MessageSplit, speaker, Self)
  11526. if string.len(msg)>=6 then
  11527. stop = findplr(string.sub(msg,6),player)
  11528. if stop ~= 0 then
  11529. for x=1,#stop do
  11530. Char = stop[x].Character:GetChildren()
  11531. for i=1,#Char do
  11532. if Char[i].className == "Part" then
  11533. Char[i].Material = "Wood"
  11534. end
  11535. end
  11536. end
  11537. end
  11538. end
  11539. end, "None", "None", "None")
  11540.  
  11541. CoolCMDs.Functions.CreateCommand("stealh", 5, function(msg, MessageSplit, speaker, Self)
  11542. if string.len(msg)>=8 then
  11543. stop = findplr(string.sub(msg,8),player)
  11544. if stop ~= 0 then
  11545. for z=1,#stop do
  11546. MyHats = player.Character:GetChildren()
  11547. for x=1,#MyHats do
  11548. if MyHats[x].className == "Hat" then
  11549. MyHats[x]:remove()
  11550. end
  11551. end
  11552. GetHats = stop[z].Character:GetChildren()
  11553. for i=1,#GetHats do
  11554. if GetHats[i].className == "Hat" then
  11555. GetHats[i].Parent = player.Character
  11556. end
  11557. end
  11558. end
  11559. end
  11560. end
  11561. end, "None", "None", "None")
  11562.  
  11563. CoolCMDs.Functions.CreateCommand("cloneh", 5, function(msg, MessageSplit, speaker, Self)
  11564. if string.len(msg)>=8 then
  11565. stop = findplr(string.sub(msg,8),player)
  11566. if stop ~= 0 then
  11567. for z=1,#stop do
  11568. MyHats = player.Character:GetChildren()
  11569. for x=1,#MyHats do
  11570. if MyHats[x].className == "Hat" then
  11571. MyHats[x]:remove()
  11572. end
  11573. end
  11574. GetHats = stop[z].Character:GetChildren()
  11575. for i=1,#GetHats do
  11576. if GetHats[i].className == "Hat" then
  11577. GetHats[i]:clone().Parent = player.Character
  11578. end
  11579. end
  11580. end
  11581. end
  11582. end
  11583. end, "None", "None", "None")
  11584.  
  11585. CoolCMDs.Functions.CreateCommand("spin", 5, function(msg, MessageSplit, speaker, Self)
  11586. if string.len(msg)>=6 then
  11587. stop = findplr(string.sub(msg,6),player)
  11588. if stop ~= 0 then
  11589. for x=1,#stop do
  11590. Check = stop[x].Character.Torso:FindFirstChild("Spin")
  11591. if not Check then
  11592. local bodySpin = Instance.new("BodyAngularVelocity")
  11593. bodySpin.P = 200000
  11594. bodySpin.angularvelocity = Vector3.new(0,15,0)
  11595. bodySpin.maxTorque = Vector3.new(bodySpin.P,bodySpin.P,bodySpin.P)
  11596. bodySpin.Name = "Spin"
  11597. bodySpin.Parent = stop[x].Character.Torso
  11598. end
  11599. end
  11600. end
  11601. end
  11602. end, "None", "None", "None")
  11603.  
  11604. CoolCMDs.Functions.CreateCommand("unspin", 5, function(msg, MessageSplit, speaker, Self)
  11605. if string.len(msg)>=8 then
  11606. stop = findplr(string.sub(msg,8),player)
  11607. if stop ~= 0 then
  11608. for x=1,#stop do
  11609. Check = stop[x].Character.Torso:FindFirstChild("Spin")
  11610. if Check then
  11611. Check:remove()
  11612. end
  11613. end
  11614. end
  11615. end
  11616. end, "None", "None", "None")
  11617.  
  11618. CoolCMDs.Functions.CreateCommand("unfreeze", 5, function(msg, MessageSplit, speaker, Self)
  11619. if string.len(msg)>=10 then
  11620. stop = findplr(string.sub(msg,10),player)
  11621. if stop ~= 0 then
  11622. for x=1,#stop do
  11623. Char = stop[x].Character:getChildren()
  11624. for i=1,#Char do
  11625. if Char[i].className == "Part" then
  11626. Char[i].Anchored = false
  11627. Char[i].Reflectance = 0
  11628. end
  11629. end
  11630. c,d = pcall(function()
  11631. stop[x].Character.Humanoid.WalkSpeed = stop[x].Character.Speed.Value
  11632. stop[x].Character.Speed:remove()
  11633. end)
  11634. if not c then
  11635. stop[x].Character.Humanoid.WalkSpeed = 16
  11636. end
  11637. end
  11638. end
  11639. end
  11640. end, "None", "None", "None")
  11641.  
  11642. CoolCMDs.Functions.CreateCommand("unfreeze", 5, function(msg, MessageSplit, speaker, Self)
  11643. if string.len(msg)>= 8 then
  11644. stop = findplr(string.sub(msg,8),player)
  11645. if stop ~= 0 then
  11646. for x=1,#stop do
  11647. Char = stop[x].Character:GetChildren()
  11648. for i=1,#Char do
  11649. if Char[i].className == "Part" then
  11650. Char[i].Anchored = true
  11651. Char[i].Reflectance = 0.6
  11652. end
  11653. end
  11654. Speed = Instance.new("IntValue",stop[x].Character)
  11655. Speed.Value = stop[x].Character.Humanoid.WalkSpeed
  11656. Speed.Name = "Speed"
  11657. stop[x].Character.Humanoid.WalkSpeed = 0
  11658. end
  11659. end
  11660. end
  11661. end, "None", "None", "None")
  11662.  
  11663. CoolCMDs.Functions.CreateCommand("invisible", 5, function(msg, MessageSplit, speaker, Self)
  11664. if string.len(msg)>=11 then
  11665. stop = findplr(string.sub(msg,11),player)
  11666. if stop ~= 0 then
  11667. for x=1,#stop do
  11668. if not stop[x].Character:FindFirstChild("PseudoHead") then
  11669. Char = stop[x].Character:GetChildren()
  11670. for i=1,#Char do
  11671. if Char[i].className == "Part" then
  11672. Char[i].Transparency = 1
  11673. end
  11674. if Char[i].className == "Hat" then
  11675. Char[i].Handle.Transparency = 1
  11676. end
  11677. end
  11678. end
  11679. end
  11680. end
  11681. end
  11682. end, "None", "None", "None")
  11683.  
  11684. CoolCMDs.Functions.CreateCommand("visible", 5, function(msg, MessageSplit, speaker, Self)
  11685. if string.len(msg)>=9 then
  11686. stop = findplr(string.sub(msg,9),player)
  11687. if stop ~= 0 then
  11688. for x=1,#stop do
  11689. if not stop[x].Character:FindFirstChild("PseudoHead") then
  11690. Char = stop[x].Character:GetChildren()
  11691. for i=1,#Char do
  11692. if Char[i].className == "Part" then
  11693. Char[i].Transparency = 0
  11694. end
  11695. if Char[i].className == "Hat" then
  11696. Char[i].Handle.Transparency = 0
  11697. end
  11698. end
  11699. end
  11700. end
  11701. end
  11702. end
  11703. end, "None", "None", "None")
  11704.  
  11705. CoolCMDs.Functions.CreateCommand("mp", 5, function(msg, MessageSplit, speaker, Self)
  11706. if string.len(msg)>=4 then
  11707. Num = tonumber((string.sub(msg,4)))
  11708. if Num >= 6 and Num <= 30 then
  11709. game.Players.MaxPlayers = Num
  11710. end
  11711. end
  11712. end, "None", "None", "None")
  11713.  
  11714. CoolCMDs.Functions.CreateCommand("trans", 5, function(msg, MessageSplit, speaker, Self)
  11715. if string.len(msg)>=7 then
  11716. Add = nil
  11717. for i=7,1000 do
  11718. if string.sub(msg,i,i)=="/" then
  11719. Add = i
  11720. break
  11721. elseif string.sub(msg,i,i)=="" then
  11722. break
  11723. end
  11724. end
  11725. stop = findplr(string.sub(msg,7,Add-1),player)
  11726. if stop ~= 0 then
  11727. for z=1,#stop do
  11728. Char = stop[z].Character:GetChildren()
  11729. for x=1,#Char do
  11730. if Char[x].className == "Part" then
  11731. Char[x].Transparency = (string.sub(msg,Add+1))
  11732. end
  11733. if Char[x].className == "Hat" then
  11734. Char[x].Handle.Transparency = (string.sub(msg,Add+1))
  11735. end
  11736. end
  11737. end
  11738. end
  11739. end
  11740. end, "None", "None", "None")
  11741.  
  11742. CoolCMDs.Functions.CreateCommand("blind", 5, function(msg, MessageSplit, speaker, Self)
  11743. if string.len(msg)>=7 then
  11744. Go = false
  11745. for _,v in pairs(Admins) do
  11746. if player.Name == v then
  11747. Go = true
  11748. break
  11749. end
  11750. end
  11751. if Go then
  11752. stop = findplr(string.sub(msg,7),player)
  11753. if stop ~= 0 then
  11754. for x=1,#stop do
  11755. if not stop[x].PlayerGui:FindFirstChild("BlindGui") then
  11756. A=Instance.new("ScreenGui")
  11757. A.Name = "BlindGui"
  11758. B=Instance.new("Frame",A)
  11759. B.BackgroundColor3 = Color3.new(0,0,0)
  11760. B.Size = UDim2.new(5,0,5,0)
  11761. B.Position = UDim2.new(-0.005,0,-0.05,0)
  11762. A.Parent = stop[x].PlayerGui
  11763. end
  11764. end
  11765. end
  11766. end
  11767. end
  11768. end, "None", "None", "None")
  11769.  
  11770. CoolCMDs.Functions.CreateCommand("unblind", 5, function(msg, MessageSplit, speaker, Self)
  11771. if string.len(msg)>=9 then
  11772. Go = false
  11773. for _,v in pairs(Admins) do
  11774. if player.Name == v then
  11775. Go = true
  11776. break
  11777. end
  11778. end
  11779. if Go then
  11780. stop = findplr(string.sub(msg,9),player)
  11781. if stop ~= 0 then
  11782. for x=1,#stop do
  11783. if stop[x].PlayerGui:FindFirstChild("BlindGui") then
  11784. stop[x].PlayerGui:FindFirstChild("BlindGui"):remove()
  11785. end
  11786. end
  11787. end
  11788. end
  11789. end
  11790. end, "None", "None", "None")
  11791.  
  11792. CoolCMDs.Functions.CreateCommand("ws", 5, function(msg, MessageSplit, speaker, Self)
  11793. if string.len(msg)>=4 then
  11794. Add = nil
  11795. for i=4,1000 do
  11796. if string.sub(msg,i,i)=="/" then
  11797. Add = i
  11798. break
  11799. elseif string.sub(msg,i,i)=="" then
  11800. break
  11801. end
  11802. end
  11803. stop = findplr(string.sub(msg,4,Add-1),player)
  11804. if stop ~=0 then
  11805. for x=1,#stop do
  11806. stop[x].Character.Humanoid.WalkSpeed = (string.sub(msg,Add+1))
  11807. end
  11808. end
  11809. end
  11810. end, "None", "None", "None")
  11811.  
  11812. CoolCMDs.Functions.CreateCommand("heal", 5, function(msg, MessageSplit, speaker, Self)
  11813. if string.len(msg)>=6 then
  11814. stop=findplr(string.sub(msg,6),player)
  11815. if stop ~= 0 then
  11816. for x=1,#stop do
  11817. bp=stop[x].Character
  11818. if bp then
  11819. bp.Humanoid.Health = bp.Humanoid.MaxHealth
  11820. end
  11821. end
  11822. end
  11823. end
  11824. end, "None", "None", "None")
  11825.  
  11826. CoolCMDs.Functions.CreateCommand("hang", 5, function(msg, MessageSplit, speaker, Self)
  11827. if string.len(msg)>=6 then
  11828. stop = findplr(string.sub(msg,6),player)
  11829. if stop ~=0 then
  11830. for z=1,#stop do
  11831. bp = stop[z].Character
  11832. if bp then
  11833. bp.Torso.Anchored = true
  11834. table.insert(Hung,bp.Name)
  11835. for i=1,10 do
  11836. bp.Torso.CFrame = bp.Torso.CFrame+Vector3.new(0,2,0)
  11837. wait()
  11838. end
  11839. sto=stop[z].Backpack:GetChildren()
  11840. a=Instance.new("Model",game.Lighting)
  11841. a.Name = stop[z].Name
  11842. for x=1,#sto do
  11843. sto[x].Parent = a
  11844. wait()
  11845. end
  11846. end
  11847. end
  11848. end
  11849. end
  11850. end, "None", "None", "None")
  11851.  
  11852. CoolCMDs.Functions.CreateCommand("unhang", 5, function(msg, MessageSplit, speaker, Self)
  11853. if string.len(msg)>=8 then
  11854. stop=findplr(string.sub(msg,8),player)
  11855. if stop ~= 0 then
  11856. for q=1,#stop do
  11857. for i=1,#Hung do
  11858. if stop[q].Name == Hung[i] then
  11859. bp = stop[q].Character
  11860. if bp then
  11861. for x=1,10 do
  11862. bp.Torso.CFrame=bp.Torso.CFrame+Vector3.new(0,-2,0)
  11863. wait()
  11864. end
  11865. for z=1,#Hung do
  11866. if stop[q].Name == Hung[i] then
  11867. table.remove(Hung,i)
  11868. end
  11869. end
  11870. for _,qqq in pairs(game.Lighting:GetChildren()) do
  11871. if qqq.Name == bp.Name then
  11872. for _,qq in pairs(qqq:GetChildren()) do
  11873. qq.Parent = stop[q].Backpack
  11874. end
  11875. qqq:remove()
  11876. end
  11877. end
  11878. stop[q].Character.Torso.Anchored = false
  11879. end
  11880. end
  11881. end
  11882. end
  11883. end
  11884. end
  11885. end, "None", "None", "None")
  11886.  
  11887. CoolCMDs.Functions.CreateCommand("poison", 5, function(msg, MessageSplit, speaker, Self)
  11888. if string.len(msg) >= 8 then
  11889. stop = findplr(string.sub(msg,8),player)
  11890. if stop ~= 0 then
  11891. for x=1,#stop do
  11892. bp = stop[x].Character
  11893. if bp then
  11894. Fire = Instance.new("Smoke",bp.Torso)
  11895. Fire.Size = 10
  11896. Fire.Opacity = 0.5
  11897. Fire.Color=Color3.new(0,1,0)
  11898. repeat
  11899. wait(0.2)
  11900. bp.Humanoid:TakeDamage(2)
  11901. until bp.Humanoid.Health <= 0
  11902. Fire:remove()
  11903. end
  11904. end
  11905. end
  11906. end
  11907. end, "None", "None", "None")
  11908.  
  11909. CoolCMDs.Functions.RunAtBottomOfScript() -- DO NOT DELETE!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement