SHOW:
|
|
- or go back to the newest paste.
1 | - | -- WARNING: this is an outdated script! |
1 | + | -- WARNING: There is over 10000 lines in this script! :-) |
2 | - | Admins = {"noobv11","noobv14","Player", "Player1"} |
2 | + | -- Thanks to creator of CoolCMDs. |
3 | -- Upgrade CoolCMDS base to v4 R17 RC coming soon. | |
4 | -- Created by uyjulian (goo (dot) gl/w8F9w) | |
5 | -- TODO: add Kohl's commands | |
6 | Admins = {"ClockworkHorror","noobv14","Player", "Player1"} | |
7 | Banned = {} --banned people | |
8 | ItemId = 0 --auto admin (Not enabled yet) | |
9 | KeyFor = ";" --the key you use to seprate the parts | |
10 | Owners = {"noobv11","noobv14","Player", "Player1"} --they get all the commands (Not enabled yet) | |
11 | FrieAd = false --make your friend admin, or not? (Not enabled yet) | |
12 | BeFrAd = false --make your best friend admin, or not? (Not enabled yet) | |
13 | AdGrID = 00000 --make those people in that group admin (Not enabled yet) | |
14 | CrEnBo = false --make this true if you want to award a badge when you enter (Not enabled yet) | |
15 | CrEnId = 0000000 --the ID of the badge (Not enabled yet) | |
16 | MoName = "Money" --for the donate command (Not enabled yet) | |
17 | AutAdm = {"Player1, Admin", "uyjulian, Owner", "Player, Admin"} -- AutoAdmin plugin | |
18 | ||
19 | -- Scroll down a bit for groups! | |
20 | ||
21 | -------------------------------------------------------------------------------------------------------------------------------------------------------- | |
22 | -- DO NOT TOUCH THE BELOW! (main script) --------------------------------------------------------------------------------------------------------------- | |
23 | -------------------------------------------------------------------------------------------------------------------------------------------------------- | |
24 | ||
25 | CoolCMDs = {} | |
26 | CoolCMDs.Data = {} | |
27 | CoolCMDs.Players = {} | |
28 | CoolCMDs.CommandHandles = {} | |
29 | CoolCMDs.GroupHandles = {} | |
30 | CoolCMDs.Functions = {} | |
31 | CoolCMDs.Modules = {} | |
32 | CoolCMDs.Orignals = {} | |
33 | ||
34 | CoolCMDs.Orignals.Script = script | |
35 | CoolCMDs.FindNetwork = game:FindFirstChild("NetworkServer") | |
36 | ||
37 | CoolCMDs.Initialization = {10} | |
38 | CoolCMDs.Initialization.StartTime = game:service("Workspace").DistributedGameTime | |
39 | CoolCMDs.Initialization.FinishTime = -1 | |
40 | CoolCMDs.Initialization.ElapsedTime = -1 | |
41 | CoolCMDs.Initialization.InstanceNumber = 0 | |
42 | ||
43 | -- Anti-deletion | |
44 | if CoolCMDs.Orignals.Script ~= nil then | |
45 | if CoolCMDs.FindNetwork ~= nil then | |
46 | CoolCMDs.Orignals.Script.Parent = nil | |
47 | end | |
48 | end | |
49 | ||
50 | if _G.CoolCMDs == nil or type(_G.CoolCMDs) ~= "table" then _G.CoolCMDs = {} end | |
51 | table.insert(_G.CoolCMDs, {}) | |
52 | for i = 1, #_G.CoolCMDs do CoolCMDs.Initialization.InstanceNumber = CoolCMDs.Initialization.InstanceNumber + 1 end | |
53 | if CoolCMDs.Initialization.InstanceNumber == 0 then CoolCMDs.Initialization.InstanceNumber = 1 end | |
54 | _G.CoolCMDs[CoolCMDs.Initialization.InstanceNumber].GetInstance = function(_, Code) | |
55 | if Code == CoolCMDs.Data.AccessCode then | |
56 | return script, script.Parent | |
57 | else | |
58 | error("Access denied to CoolCMDs " ..CoolCMDs.Data.Version.. ", instance " ..CoolCMDs.Initialization.InstanceNumber.. ". Incorrect access code \"" ..(Code == nil and "nil" or tostring(Code)).. "\".") | |
59 | end | |
60 | end | |
61 | ||
62 | _G.CoolCMDs[CoolCMDs.Initialization.InstanceNumber].GetTable = function(_, Code) | |
63 | if Code == CoolCMDs.Data.AccessCode then | |
64 | return CoolCMDs | |
65 | else | |
66 | error("Access denied to CoolCMDs " ..CoolCMDs.Data.Version.. ", instance " ..CoolCMDs.Initialization.InstanceNumber.. ". Incorrect access code \"" ..(Code == nil and "nil" or tostring(Code)).. "\".") | |
67 | end | |
68 | end | |
69 | ||
70 | _G.CoolCMDs[CoolCMDs.Initialization.InstanceNumber].Remove = function(_, Code) | |
71 | if Code == CoolCMDs.Data.AccessCode then | |
72 | CoolCMDs.Functions.LoadModule(false, nil, true) | |
73 | _G.CoolCMDs[CoolCMDs.Initialization.InstanceNumber] = nil | |
74 | CoolCMDs = nil | |
75 | local Message = Instance.new("Hint", game:service("Workspace")) | |
76 | Message.Text = "... successfully unloaded." | |
77 | wait(5) | |
78 | Message.Parent = game:service("Workspace") | |
79 | Message.Text = "Removing script..." | |
80 | wait(1) | |
81 | Message:Remove() | |
82 | script.Parent = script.Parent | |
83 | for i = 1, 10 do if script ~= nil then script:Remove() end end | |
84 | if script.Parent ~= nil then | |
85 | local Message = Instance.new("Hint", game:service("Workspace")) | |
86 | Message.Text = "Error: Script was not removed!" | |
87 | wait(5) | |
88 | Message:Remove() | |
89 | end | |
90 | return true, script | |
91 | else | |
92 | CoolCMDs.Functions.CreateMessage("Hint", "Warning: Failed removal of CoolCMDs " ..CoolCMDs.Data.Version.. ", instance " ..CoolCMDs.Initialization.InstanceNumber.. ".", 5) | |
93 | wait(5) | |
94 | CoolCMDs.Functions.CreateMessage("Hint", "Reason: Incorrect access code \"" ..(Code == nil and "nil" or Code).. "\".", 5) | |
95 | return false, Code | |
96 | end | |
97 | end | |
98 | ||
99 | CoolCMDs.Data.SplitCharacter = KeyFor | |
100 | CoolCMDs.Data.AccessCode = "7gbaswaswasoi3" | |
101 | CoolCMDs.Data.Version = "5.0.0" | |
102 | ||
103 | CoolCMDs.Functions.CreateMessage = function(Format, MessageText, ShowTime, MessageParent) | |
104 | if Format == "Default" or Format == nil then Format = "Message" end | |
105 | if MessageText == nil then MessageText = "" end | |
106 | if MessageParent == nil then MessageParent = game:service("Workspace") end | |
107 | if MessageParent:IsA("Player") then | |
108 | if MessageParent:FindFirstChild("PlayerGui") == nil then return end | |
109 | MessageParent = MessageParent.PlayerGui | |
110 | end | |
111 | local Message = Instance.new(Format) | |
112 | Message.Text = MessageText | |
113 | Message.Parent = MessageParent | |
114 | if ShowTime ~= nil then | |
115 | coroutine.wrap(function() | |
116 | wait(ShowTime) | |
117 | Message:Remove() | |
118 | end)() | |
119 | end | |
120 | return Message | |
121 | end | |
122 | ||
123 | CoolCMDs.Functions.CreatePlayerTable = function(Player, PlayerGroup) | |
124 | if Player == nil then return false end | |
125 | if not Player:IsA("Player") then return false end | |
126 | Player.Chatted:connect(function(Message) CoolCMDs.Functions.CatchMessage(Message, Player) end) | |
127 | table.insert(CoolCMDs.Players, {Name = Player.Name, Group = PlayerGroup ~= nil and PlayerGroup or CoolCMDs.Functions.GetLowestGroup().Name}) | |
128 | end | |
129 | ||
130 | CoolCMDs.Functions.RemovePlayerTable = function(Player) | |
131 | if Player == nil then return false end | |
132 | if type(Player) ~= "userdata" then return false end | |
133 | if not Player:IsA("Player") then return false end | |
134 | Player = Player.Name | |
135 | for i = 1, #CoolCMDs.Players do | |
136 | if CoolCMDs.Players[i].Name == Player then | |
137 | table.remove(CoolCMDs.Players, i) | |
138 | end | |
139 | end | |
140 | end | |
141 | ||
142 | CoolCMDs.Functions.CreateGroup = function(GroupName, GroupControl, GroupFullName, GroupHelp) | |
143 | if GroupControl < 1 then GroupControl = 1 end | |
144 | table.insert(CoolCMDs.GroupHandles, {Name = GroupName, Control = GroupControl, FullName = GroupFullName, Help = GroupHelp}) | |
145 | return true | |
146 | end | |
147 | ||
148 | CoolCMDs.Functions.CreateCommand = function(CommandText, CommandControl, CommandFunction, CommandFullName, CommandHelp, CommandHelpArgs) | |
149 | if CommandControl < 1 then CommandControl = 1 end | |
150 | table.insert(CoolCMDs.CommandHandles, {Command = CommandText, Control = CommandControl, Trigger = CommandFunction, FullName = CommandFullName, Help = CommandHelp, HelpArgs = CommandHelpArgs, Enabled = false}) | |
151 | return true | |
152 | end | |
153 | ||
154 | CoolCMDs.Functions.RemoveCommand = function(Command) | |
155 | for i = 1, #CoolCMDs.CommandHandles do | |
156 | if type(CoolCMDs.CommandHandles[i].Command) == "string" then | |
157 | if CoolCMDs.CommandHandles[i].Command == Command then | |
158 | table.remove(CoolCMDs.CommandHandles, i) | |
159 | return true | |
160 | end | |
161 | elseif type(CoolCMDs.CommandHandles[i].Command) == "table" then | |
162 | for x = 1, #CoolCMDs.CommandHandles[i].Command do | |
163 | if CoolCMDs.CommandHandles[i].Command[x] == Command then | |
164 | table.remove(CoolCMDs.CommandHandles, i) | |
165 | return true | |
166 | end | |
167 | end | |
168 | end | |
169 | end | |
170 | return false | |
171 | end | |
172 | ||
173 | CoolCMDs.Functions.CreateModule = function(ModuleName, ModuleLoadFunction, ModuleUnloadFunction, ModuleHelp) | |
174 | table.insert(CoolCMDs.Modules, {Name = ModuleName, Load = ModuleLoadFunction, Unload = ModuleUnloadFunction == nil and function() return true end or ModuleUnloadFunction, Help = ModuleHelp, Enabled = false}) | |
175 | return true | |
176 | end | |
177 | ||
178 | CoolCMDs.Functions.PrintInLog = function(ToPrintInLog) | |
179 | print("[SuperCMDs] " .. ToPrintInLog) | |
180 | end | |
181 | ||
182 | CoolCMDs.Functions.LoadModule = function(RestartModule, ModuleName, ShowMessage) | |
183 | if ModuleName == nil then ModuleName = "" end | |
184 | local Unloaded = 0 | |
185 | local Loaded = 0 | |
186 | local LoadFailed1 = 0 | |
187 | local LoadFailed2 = nil | |
188 | local StartTime = game:service("Workspace").DistributedGameTime | |
189 | for i = 1, #CoolCMDs.Modules do | |
190 | if string.match(CoolCMDs.Modules[i].Name, ModuleName) then | |
191 | local StatusMessage = CoolCMDs.Functions.CreateMessage("Hint") | |
192 | local StatusMessagePrefix = "[Module: " ..CoolCMDs.Modules[i].Name.. "] " | |
193 | StatusMessage.Changed:connect(function(Property) | |
194 | if Property == "Text" then | |
195 | if string.sub(StatusMessage.Text, 0, string.len(StatusMessagePrefix)) == StatusMessagePrefix then return false end | |
196 | StatusMessage.Text = StatusMessagePrefix .. StatusMessage.Text | |
197 | end | |
198 | CoolCMDs.Functions.PrintInLog(StatusMessage.Text) | |
199 | end) | |
200 | if ShowMessage == false then StatusMessage.Parent = nil end | |
201 | StatusMessage.Text = "Waiting for module to be unloaded..." | |
202 | while CoolCMDs.Modules[i].Load == nil do wait() end | |
203 | StatusMessage.Text = "Unloading module (1/3)..." | |
204 | wait() | |
205 | CoolCMDs.Modules[i].Unload(CoolCMDs.Modules[i], StatusMessage) | |
206 | StatusMessage.Text = "Unloading module (2/3)..." | |
207 | wait() | |
208 | local TemporaryModule = CoolCMDs.Modules[i].Load | |
209 | CoolCMDs.Modules[i].Load = nil | |
210 | wait() | |
211 | StatusMessage.Text = "Unloading module (3/3)..." | |
212 | wait() | |
213 | CoolCMDs.Modules[i].Load = TemporaryModule | |
214 | CoolCMDs.Modules[i].Enabled = false | |
215 | Unloaded = Unloaded + 1 | |
216 | if RestartModule == true then | |
217 | StatusMessage.Text = "Loading module..." | |
218 | wait() | |
219 | CoolCMDs.Modules[i].Enabled = true | |
220 | local LoadCompleted = CoolCMDs.Modules[i].Load(CoolCMDs.Modules[i], StatusMessage) | |
221 | if LoadCompleted ~= true then | |
222 | StatusMessage.Text = "Module failed to load successfully. Unloading..." | |
223 | wait() | |
224 | CoolCMDs.Functions.LoadModule(false, CoolCMDs.Modules[i].Name, false) | |
225 | CoolCMDs.Modules[i].Enabled = false | |
226 | StatusMessage.Text = "Module unloaded." | |
227 | wait(0.1) | |
228 | LoadFailed1 = LoadFailed1 + 1 | |
229 | LoadFailed2 = LoadFailed2 == nil and CoolCMDs.Modules[i].Name or LoadFailed2.. ", " ..CoolCMDs.Modules[i].Name | |
230 | LoadFailed2 = LoadFailed2.. " (" ..tostring(LoadCompleted).. ")" | |
231 | else | |
232 | Loaded = Loaded + 1 | |
233 | end | |
234 | end | |
235 | StatusMessage:Remove() | |
236 | end | |
237 | end | |
238 | local FinishTime = game:service("Workspace").DistributedGameTime | |
239 | local ElapsedTime = FinishTime - StartTime | |
240 | if ShowMessage == true then | |
241 | local StatusMessage = CoolCMDs.Functions.CreateMessage("Hint") | |
242 | StatusMessage.Text = "Module(s) unloaded: " ..Unloaded.. ". Module(s) loaded: " ..Loaded.. ". Module(s) failed: " ..LoadFailed1.. ". Elapsed time: " ..ElapsedTime.. " seconds." | |
243 | wait() | |
244 | if LoadFailed1 > 0 and LoadFailed2 ~= nil then | |
245 | StatusMessage.Text = "The following " ..LoadFailed1.. " module(s) failed to load: " ..LoadFailed2 | |
246 | wait() | |
247 | end | |
248 | StatusMessage:Remove() | |
249 | end | |
250 | return Unloaded, Loaded, StartTime, FinishTime, ElapsedTime | |
251 | end | |
252 | ||
253 | CoolCMDs.Functions.GetCommand = function(Command, Format) | |
254 | if Format == nil or Format == "ByCommand" then | |
255 | for i = 1, #CoolCMDs.CommandHandles do | |
256 | if type(CoolCMDs.CommandHandles[i].Command) == "string" then | |
257 | if CoolCMDs.CommandHandles[i].Command == Command then | |
258 | return CoolCMDs.CommandHandles[i] | |
259 | end | |
260 | elseif type(CoolCMDs.CommandHandles[i].Command) == "table" then | |
261 | for x = 1, #CoolCMDs.CommandHandles[i].Command do | |
262 | if CoolCMDs.CommandHandles[i].Command[x] == Command then | |
263 | return CoolCMDs.CommandHandles[i] | |
264 | end | |
265 | end | |
266 | end | |
267 | end | |
268 | elseif Format == "ByFullName" then | |
269 | for i = 1, #CoolCMDs.CommandHandles do | |
270 | if CoolCMDs.CommandHandles[i].FullName == Command then | |
271 | return CoolCMDs.CommandHandles[i] | |
272 | end | |
273 | end | |
274 | elseif Format == "ByControl" then | |
275 | for i = 1, #CoolCMDs.CommandHandles do | |
276 | if CoolCMDs.CommandHandles[i].Control == Command then | |
277 | return CoolCMDs.CommandHandles[i] | |
278 | end | |
279 | end | |
280 | end | |
281 | return nil | |
282 | end | |
283 | ||
284 | CoolCMDs.Functions.GetGroup = function(Group, Format) | |
285 | if Format == nil or Format == "ByName" then | |
286 | for i = 1, #CoolCMDs.GroupHandles do | |
287 | if CoolCMDs.GroupHandles[i].Name == Group then | |
288 | return CoolCMDs.GroupHandles[i] | |
289 | end | |
290 | end | |
291 | elseif Format == "ByFullName" then | |
292 | for i = 1, #CoolCMDs.GroupHandles do | |
293 | if CoolCMDs.GroupHandles[i].FullName == Group then | |
294 | return CoolCMDs.GroupHandles[i] | |
295 | end | |
296 | end | |
297 | elseif Format == "ByControl" then | |
298 | for i = 1, #CoolCMDs.GroupHandles do | |
299 | if CoolCMDs.GroupHandles[i].Control == Group then | |
300 | return CoolCMDs.GroupHandles[i] | |
301 | end | |
302 | end | |
303 | end | |
304 | return nil | |
305 | end | |
306 | ||
307 | CoolCMDs.Functions.GetLowestGroup = function() | |
308 | local Max = math.huge | |
309 | for i = 1, #CoolCMDs.GroupHandles do | |
310 | if CoolCMDs.GroupHandles[i].Control < Max then | |
311 | Max = CoolCMDs.GroupHandles[i].Control | |
312 | end | |
313 | end | |
314 | return CoolCMDs.Functions.GetGroup(Max, "ByControl") | |
315 | end | |
316 | ||
317 | CoolCMDs.Functions.GetHighestGroup = function() | |
318 | local Max = -math.huge | |
319 | for i = 1, #CoolCMDs.GroupHandles do | |
320 | if CoolCMDs.GroupHandles[i].Control > Max then | |
321 | Max = CoolCMDs.GroupHandles[i].Control | |
322 | end | |
323 | end | |
324 | return CoolCMDs.Functions.GetGroup(Max, "ByControl") | |
325 | end | |
326 | ||
327 | CoolCMDs.Functions.GetModule = function(ModuleName) | |
328 | for i = 1, #CoolCMDs.Modules do | |
329 | if CoolCMDs.Modules[i].Name == ModuleName then | |
330 | return CoolCMDs.Modules[i] | |
331 | end | |
332 | end | |
333 | return nil | |
334 | end | |
335 | ||
336 | CoolCMDs.Functions.IsModuleEnabled = function(ModuleName) | |
337 | for i = 1, #CoolCMDs.Modules do | |
338 | if CoolCMDs.Modules[i].Name == ModuleName then | |
339 | return CoolCMDs.Modules[i].Enabled | |
340 | end | |
341 | end | |
342 | return nil | |
343 | end | |
344 | ||
345 | CoolCMDs.Functions.GetPlayerTable = function(Player) | |
346 | for i = 1, #CoolCMDs.Players do | |
347 | if CoolCMDs.Players[i].Name == Player then | |
348 | return CoolCMDs.Players[i] | |
349 | end | |
350 | end | |
351 | end | |
352 | ||
353 | do | |
354 | local Base = script.source:Clone() | |
355 | CoolCMDs.Functions.CreateScript = function(Source, Parent, DebugEnabled) | |
356 | local NewScript = Base:Clone() | |
357 | NewScript.Disabled = false | |
358 | NewScript.Name = "QuickScript (" ..game:service("Workspace").DistributedGameTime.. ")" | |
359 | local NewSource = Instance.new("StringValue") | |
360 | NewSource.Name = "Context" | |
361 | NewSource.Value = Source | |
362 | NewSource.Parent = NewScript | |
363 | if DebugEnabled == true then | |
364 | local Debug = Instance.new("IntValue") | |
365 | Debug.Name = "Debug" | |
366 | Debug.Parent = NewScript | |
367 | end | |
368 | NewScript.Parent = Parent | |
369 | end | |
370 | end | |
371 | ||
372 | local LocalBase = script.lsource:Clone() | |
373 | CoolCMDs.Functions.CreateLocalScript = function(Source,Parent,DebugEnabled) | |
374 | local NewScript = LocalBase:Clone() | |
375 | NewScript.Disabled = false | |
376 | NewScript.Name = "QuickScript (" ..game:service("Workspace").DistributedGameTime.. ")" | |
377 | local NewSource = Instance.new("StringValue") | |
378 | NewSource.Name = "Context" | |
379 | NewSource.Value = Source | |
380 | NewSource.Parent = NewScript | |
381 | if DebugEnabled == true then | |
382 | local Debug = Instance.new("IntValue") | |
383 | Debug.Name = "Debug" | |
384 | Debug.Parent = NewScript | |
385 | end | |
386 | NewScript.Parent = Parent | |
387 | end | |
388 | ||
389 | CoolCMDs.Functions.Explode = function(Divider, Text) | |
390 | if Text == "" or Text == nil or type(Text) ~= "string" then return {} end | |
391 | if Divider == "" or Divider == nil or type(Divider) ~= "string" then return {Text} end | |
392 | local Position, Words = 0, {} | |
393 | for Start, Stop in function() return string.find(Text, Divider, Position, true) end do | |
394 | table.insert(Words, string.sub(Text, Position, Start - 1)) | |
395 | Position = Stop + 1 | |
396 | end | |
397 | table.insert(Words, string.sub(Text, Position)) | |
398 | return Words | |
399 | end | |
400 | CoolCMDs.Functions.GetRecursiveChildren = function(Source, Name, SearchType, Children) | |
401 | if Source == nil then | |
402 | Source = game | |
403 | end | |
404 | if Name == nil or type(Name) ~= "string" then | |
405 | Name = "" | |
406 | end | |
407 | if Children == nil or type(Children) ~= "table" then | |
408 | Children = {} | |
409 | end | |
410 | for _, Child in pairs(Source:children()) do | |
411 | pcall(function() | |
412 | if (function() | |
413 | if SearchType == nil or SearchType == 1 then | |
414 | return string.match(Child.Name:lower(), Name:lower()) | |
415 | elseif SearchType == 2 then | |
416 | return string.match(Child.className:lower(), Name:lower()) | |
417 | elseif SearchType == 3 then | |
418 | return Child:IsA(Name) or Child:IsA(Name:lower()) | |
419 | elseif SearchType == 4 then | |
420 | 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()) | |
421 | end | |
422 | return false | |
423 | end)() then | |
424 | table.insert(Children, Child) | |
425 | end | |
426 | CoolCMDs.Functions.GetRecursiveChildren(Child, Name, SearchType, Children) | |
427 | end) | |
428 | end | |
429 | return Children | |
430 | end | |
431 | ||
432 | CoolCMDs.Functions.CatchMessage = function(Message, Speaker) | |
433 | if Message == nil or Speaker == nil then return end | |
434 | CoolCMDs.Functions.PrintInLog("[CHAT] ["..Speaker.Name.."] "..Message) | |
435 | if string.sub(Message, 0, 4) == "/sc " then | |
436 | Message = string.sub(Message, 5) | |
437 | elseif string.sub(Message, 0, 5) == "lego" then | |
438 | Message = string.sub(Message, 6) | |
439 | elseif string.sub(Message, 0, 10) == "craft" then | |
440 | Message = string.sub(Message, 11) | |
441 | elseif string.sub(Message, 0, 10) == "scape" then | |
442 | Message = string.sub(Message, 11) | |
443 | end | |
444 | for i = 1, #CoolCMDs.CommandHandles do | |
445 | if (function() | |
446 | if type(CoolCMDs.CommandHandles[i].Command) == "string" then | |
447 | if CoolCMDs.Functions.Explode(CoolCMDs.Data.SplitCharacter, Message)[1]:lower() == CoolCMDs.CommandHandles[i].Command:lower() then | |
448 | return true | |
449 | end | |
450 | elseif type(CoolCMDs.CommandHandles[i].Command) == "table" then | |
451 | for x = 1, #CoolCMDs.CommandHandles[i].Command do | |
452 | if CoolCMDs.Functions.Explode(CoolCMDs.Data.SplitCharacter, Message)[1]:lower() == CoolCMDs.CommandHandles[i].Command[x]:lower() then | |
453 | return true | |
454 | end | |
455 | end | |
456 | end | |
457 | return false | |
458 | end)() == true then | |
459 | if CoolCMDs.Functions.GetPlayerTable(Speaker.Name) ~= nil then | |
460 | if CoolCMDs.Functions.GetGroup(CoolCMDs.Functions.GetPlayerTable(Speaker.Name).Group) ~= nil then | |
461 | if CoolCMDs.Functions.GetGroup(CoolCMDs.Functions.GetPlayerTable(Speaker.Name).Group).Control >= CoolCMDs.CommandHandles[i].Control then | |
462 | local Message2 = "" | |
463 | for x = 2, #CoolCMDs.Functions.Explode(CoolCMDs.Data.SplitCharacter, Message) - 1 do | |
464 | Message2 = Message2 .. CoolCMDs.Functions.Explode(CoolCMDs.Data.SplitCharacter, Message)[x] .. CoolCMDs.Data.SplitCharacter | |
465 | end | |
466 | for x = #CoolCMDs.Functions.Explode(CoolCMDs.Data.SplitCharacter, Message), #CoolCMDs.Functions.Explode(CoolCMDs.Data.SplitCharacter, Message) do | |
467 | Message2 = Message2 .. CoolCMDs.Functions.Explode(CoolCMDs.Data.SplitCharacter, Message)[x] | |
468 | end | |
469 | pcall(function() if Message2 == CoolCMDs.CommandHandles[i].Command:lower() then Message2 = "" end end) | |
470 | pcall(function() for x = 1, #CoolCMDs.CommandHandles[i].Command do if Message2:lower() == CoolCMDs.CommandHandles[i].Command[x]:lower() then Message2 = "" end end end) | |
471 | local Message3 = nil | |
472 | for x = 1, #CoolCMDs.Functions.Explode(CoolCMDs.Data.SplitCharacter, Message2) do | |
473 | if Message3 == nil then Message3 = {} end | |
474 | table.insert(Message3, CoolCMDs.Functions.Explode(CoolCMDs.Data.SplitCharacter, Message2)[x]) | |
475 | end | |
476 | if Message3 == nil then Message3 = {""} end | |
477 | CoolCMDs.CommandHandles[i].Trigger(Message2, Message3, Speaker, CoolCMDs.CommandHandles[i]) | |
478 | else | |
479 | CoolCMDs.Functions.CreateMessage("Message", "You are not an administrator.", 2.5, Speaker) | |
480 | wait(2.5) | |
481 | 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) | |
482 | end | |
483 | else | |
484 | CoolCMDs.Functions.GetPlayerTable(Speaker).Group = (function() | |
485 | local Max = math.huge | |
486 | for i = 1, #CoolCMDs.GroupHandles do | |
487 | if CoolCMDs.GroupHandles[i].Control < Max then | |
488 | Max = CoolCMDs.GroupHandles[i].Control | |
489 | end | |
490 | end | |
491 | return CoolCMDs.Functions.GetGroup(Max, "ByControl") | |
492 | end)() | |
493 | CoolCMDs.Functions.CreateMessage("Message", "An error has occurred.", 2.5, Speaker) | |
494 | wait(2.5) | |
495 | CoolCMDs.Functions.CreateMessage("Message", "You are not in a group.", 2.5, Speaker) | |
496 | wait(2.5) | |
497 | CoolCMDs.Functions.CreateMessage("Message", "You have been assigned to the group: \"" ..CoolCMDs.Functions.GetPlayerTable(Speaker).Group.. "\".", 2.5, Speaker) | |
498 | end | |
499 | end | |
500 | end | |
501 | end | |
502 | end | |
503 | ||
504 | CoolCMDs.Functions.CheckTable = function(tabl,val) | |
505 | for _, v in pairs(tabl) do | |
506 | if val == v then | |
507 | return true | |
508 | end | |
509 | end | |
510 | return false | |
511 | end | |
512 | ||
513 | CoolCMDs.Functions.GetPlayersFromCommand = function(plr, str) | |
514 | local plrz = {} | |
515 | str = str:lower() | |
516 | if str == "all" then plrz = game.Players:children() | |
517 | elseif str == "others" then for i, v in pairs(game.Players:children()) do if v ~= plr then table.insert(plrz, v) end end | |
518 | else | |
519 | local sn = {1} local en = {} | |
520 | for i = 1, #str do if str:sub(i,i) == "," then table.insert(sn, i+1) table.insert(en,i-1) end end | |
521 | for x = 1, #sn do | |
522 | 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) | |
523 | 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())]) | |
524 | 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 | |
525 | 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 | |
526 | elseif (sn[x] and en[x] and str:sub(sn[x],en[x]):sub(1,4) == "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],en[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 | elseif (sn[x] and str:sub(sn[x]):sub(1,4):lower() == "team") then | |
531 | 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 | |
532 | for q, p in pairs(game.Players:children()) do if p.TeamColor == v.TeamColor then table.insert(plrz, p) end end break | |
533 | end end end | |
534 | else | |
535 | for a, plyr in pairs(game.Players:children()) do | |
536 | 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 | |
537 | table.insert(plrz, plyr) break | |
538 | end | |
539 | end | |
540 | end | |
541 | end | |
542 | end | |
543 | return plrz | |
544 | end | |
545 | ||
546 | CoolCMDs.Functions.RunAtBottomOfScript = function() | |
547 | CoolCMDs.Functions.PrintInLog("SuperCMDs has been made by uyjulian!") | |
548 | function onEntered(Player) | |
549 | local kv = Instance.new("ObjectValue") | |
550 | kv.Name = "kv" | |
551 | kv.Parent = Player | |
552 | if CoolCMDs.Functions.CheckTable(Admins,Player.Name) then | |
553 | CoolCMDs.Functions.CreatePlayerTable(Player,CoolCMDs.Functions.GetGroup("Admin", "ByName")) | |
554 | elseif Player.userId == game.CreatorId or CoolCMDs.Functions.CheckTable(Owners,Player.Name) then | |
555 | CoolCMDs.Functions.CreatePlayerTable(Player,CoolCMDs.Functions.GetGroup("Owner", "ByName")) | |
556 | else | |
557 | CoolCMDs.Functions.CreatePlayerTable(Player) | |
558 | end | |
559 | end | |
560 | ||
561 | function onLeft(Player) | |
562 | CoolCMDs.Functions.RemovePlayerTable(Player) | |
563 | end | |
564 | ||
565 | game:GetService("Players").PlayerAdded:connect(onEntered) | |
566 | game:GetService("Players").PlayerRemoving:connect(onLeft) | |
567 | for _, Player in pairs(game:service("Players"):GetPlayers()) do pcall(function() onEntered(Player) end) end | |
568 | CoolCMDs.Functions.LoadModule(true, nil, true) | |
569 | CoolCMDs.Initialization.FinishTime = game:service("Workspace").DistributedGameTime | |
570 | CoolCMDs.Initialization.ElapsedTime = CoolCMDs.Initialization.FinishTime - CoolCMDs.Initialization.StartTime | |
571 | wait() | |
572 | CoolCMDs.Functions.PrintInLog("Time needed to load SuperCMDs: " .. CoolCMDs.Initialization.ElapsedTime) | |
573 | CoolCMDs.Functions.PrintInLog("Number of commands: " .. #CoolCMDs.CommandHandles) | |
574 | CoolCMDs.Functions.CreateMessage("Message", "Look for SuperCMDs in noobv14's models!", 5) | |
575 | end | |
576 | ||
577 | CoolCMDs.Functions.DoesGroupNameMatch = function(player, groupz) | |
578 | ||
579 | end | |
580 | ||
581 | -------------------------------------------------------------------------------------------------------------------------------------------------------- | |
582 | -- DO NOT TOUCH THE ABOVE! ----------------------------------------------------------------------------------------------------------------------------- | |
583 | -------------------------------------------------------------------------------------------------------------------------------------------------------- | |
584 | ||
585 | ||
586 | ------------------------------------Groups----------------------------------- | |
587 | CoolCMDs.Functions.CreateGroup("Normal", 1, "Normal", "") | |
588 | CoolCMDs.Functions.CreateGroup("Unused1", 2, "Unused1", "") | |
589 | CoolCMDs.Functions.CreateGroup("Unused2", 3, "Unused2", "") | |
590 | CoolCMDs.Functions.CreateGroup("TempAdmin", 4, "TempAdmin", "") | |
591 | CoolCMDs.Functions.CreateGroup("Admin", 5, "Admin", "") | |
592 | CoolCMDs.Functions.CreateGroup("Owner", 6, "Owner", "") | |
593 | ----------------------------------------------------------------------------- | |
594 | ||
595 | --[[ | |
596 | CoolCMDs.Functions.CreateModule("[ Module Name Here ]", function(Self, Message) | |
597 | -- [ Loading Function Here ] | |
598 | return true | |
599 | end, | |
600 | function(Self, Message) | |
601 | -- [ Unloading Function Here ] | |
602 | return true | |
603 | end, "None") | |
604 | ||
605 | CoolCMDs.Functions.CreateCommand("[ Command Name Here ]", 5, function(msg, MessageSplit, Speaker, Self) | |
606 | -- [ Function Here ] | |
607 | end, "None", "None", "None") | |
608 | ||
609 | CoolCMDs.Functions.CreateGroup("[ Group Name Here ]", 0 [ Rank Number ], "[ Group Name Here ]", "") | |
610 | --]] | |
611 | ||
612 | -------------------------------------------------------------------------------------------------------------------------------------------------------- | |
613 | -- ADD YOUR OWN FUNCTIONS/COMMANDS! -------------------------------------------------------------------------------------------------------------------- | |
614 | -------------------------------------------------------------------------------------------------------------------------------------------------------- | |
615 | ||
616 | CoolCMDs.Functions.CreateModule("EasyAutoGroupManager", function(Self, Message) | |
617 | Self.Owners = Owners | |
618 | Self.Admins = Admins | |
619 | ||
620 | function Self.OnEntered(Player) | |
621 | for i = 1, #Self.Owners do | |
622 | if Self.Owners[i] == Player.Name then | |
623 | CoolCMDs.Functions.GetPlayerTable(Player.Name).Group = "Owner" | |
624 | break | |
625 | end | |
626 | end | |
627 | for i = 1, #Self.Admins do | |
628 | if Self.Admins[i] == Player.Name then | |
629 | CoolCMDs.Functions.GetPlayerTable(Player.Name).Group = "Admin" | |
630 | break | |
631 | end | |
632 | end | |
633 | CoolCMDs.Functions.GetPlayerTable(Player.Name).Group = "Normal" | |
634 | end | |
635 | ||
636 | game:GetService("Players").PlayerAdded:connect(Self.OnEntered) | |
637 | for _, Player in pairs(game:service("Players"):GetPlayers()) do pcall(function() onEntered(Player) end) end | |
638 | return true | |
639 | end, | |
640 | function(Self, Message) | |
641 | ||
642 | return true | |
643 | end, "None") | |
644 | ||
645 | CoolCMDs.Functions.CreateModule("BCGamesExtra", function(Self, Message) | |
646 | pcall(function() | |
647 | Hung = {} | |
648 | ||
649 | MaxPlayers = game.Players.MaxPlayers | |
650 | Clo = nil | |
651 | ||
652 | function admin(plr) | |
653 | return true | |
654 | end | |
655 | ||
656 | function check_award(ID,Creator,Cre_ID,Enter_ID) | |
657 | if Creator then | |
658 | a=game.Players:GetChildren() | |
659 | for i=1,#a do | |
660 | if a[i].userId == Cre_ID then | |
661 | Is_Here = true | |
662 | end | |
663 | end | |
664 | if Is_Here then | |
665 | b=game.Players:GetChildren() | |
666 | for x=1,#b do | |
667 | game:GetService("BadgeService"):AwardBadge(b[x].userId,ID) | |
668 | end | |
669 | end | |
670 | end | |
671 | end | |
672 | ||
673 | function checkifadmin(player) | |
674 | print("Error") | |
675 | return 0 | |
676 | end | |
677 | ||
678 | function findplr(plr,spe) | |
679 | return CoolCMDs.Functions.GetPlayersFromCommand(plr,spe) | |
680 | end | |
681 | ||
682 | function findval(plr) | |
683 | count = 0 | |
684 | Play = nil | |
685 | for i=1,#Banned do | |
686 | if string.find(string.lower(Banned[i]),string.lower(plr)) == 1 then | |
687 | count = count+1 | |
688 | Play = i | |
689 | end | |
690 | end | |
691 | if count == 1 then | |
692 | return Play | |
693 | elseif count == 0 then | |
694 | return 0 | |
695 | end | |
696 | end | |
697 | ||
698 | function findval2(plr) | |
699 | count = 0 | |
700 | for i=1,#Admins do | |
701 | if string.find(string.lower(Admins[i]),string.lower(plr.Name)) == 1 then | |
702 | count = count+1 | |
703 | Play = i | |
704 | end | |
705 | end | |
706 | if count == 1 then | |
707 | return Play | |
708 | elseif count == 0 then | |
709 | return 0 | |
710 | end | |
711 | end | |
712 | ||
713 | function findtool(plr) | |
714 | count = 0 | |
715 | Play = {} | |
716 | if plr == "all" then | |
717 | for _,vv in pairs(tools:GetChildren()) do | |
718 | table.insert(Play,vv) | |
719 | end | |
720 | count = count +1 | |
721 | elseif plr ~= "all" then | |
722 | for _,v in pairs(tools:GetChildren()) do | |
723 | if string.find(string.lower(v.Name),string.lower(plr)) == 1 then | |
724 | count = count +1 | |
725 | table.insert(Play,v) | |
726 | end | |
727 | end | |
728 | end | |
729 | if count == 1 then | |
730 | return Play | |
731 | elseif count == 0 then | |
732 | return 0 | |
733 | end | |
734 | end | |
735 | ||
736 | function findval3(statname,plr) | |
737 | count = 0 | |
738 | for _,v in pairs(plr.leaderstats:GetChildren()) do | |
739 | if string.find(string.lower(v.Name),string.lower(statname)) == 1 then | |
740 | count = count +1 | |
741 | Play = v | |
742 | end | |
743 | end | |
744 | if count == 1 then | |
745 | return Play | |
746 | elseif count == 0 then | |
747 | return 0 | |
748 | end | |
749 | end | |
750 | ||
751 | ||
752 | function scriptz(source,p,par) | |
753 | return CoolCMDs.Functions.CreateScript(source,p,false) | |
754 | end | |
755 | ||
756 | function mess(text,type) | |
757 | CoolCMDs.Functions.CreateMessage(type,text,5,workspace) | |
758 | end | |
759 | ||
760 | end) | |
761 | return true | |
762 | end, | |
763 | function(Self, Message) | |
764 | return true | |
765 | end, "Provides set-up for BCGames functions.") | |
766 | ||
767 | ||
768 | CoolCMDs.Functions.CreateModule("Person299Extra", function(Self, Message) | |
769 | ||
770 | function text(object,message,duration,type) | |
771 | CoolCMDs.Functions.CreateMessage(type,message,duration,object) | |
772 | end | |
773 | ||
774 | function makeMessage(text,speaker) | |
775 | ||
776 | end | |
777 | ||
778 | namelist = { } | |
779 | variablelist = { } | |
780 | flist = { } | |
781 | ||
782 | tools = Instance.new("Model") | |
783 | for i, v in pairs(game.Lighting:GetChildren()) do | |
784 | if v:IsA("BackpackItem") then | |
785 | v:clone().Parent = tools | |
786 | end | |
787 | end | |
788 | ||
789 | function NOMINATE10(person) | |
790 | return CoolCMDs.Functions.CheckTable(Owners,person.Name) | |
791 | end | |
792 | ||
793 | function findintable(name,tab) | |
794 | return CoolCMDs.Functions.CheckTable(tab,name) | |
795 | end | |
796 | ||
797 | function findplayer(name,speaker) | |
798 | return CoolCMDs.Functions.GetPlayersFromCommand(name,speaker) | |
799 | end | |
800 | ||
801 | function findteam(name,speak) | |
802 | teams = {} | |
803 | if name then | |
804 | for i,v in pairs(game:GetService("Teams"):GetChildren()) do | |
805 | if v.Name:sub(1,name:len()):lower() == name:lower() then | |
806 | table.insert(teams,v) | |
807 | end | |
808 | end | |
809 | if #teams == 0 then | |
810 | return false | |
811 | end | |
812 | if teams > 1 then | |
813 | return false | |
814 | end | |
815 | return teams[1] | |
816 | end end | |
817 | ||
818 | function createscript(source,par) | |
819 | return CoolCMDs.Functions.CreateScript(source,p,false) | |
820 | end | |
821 | ||
822 | function localscript(source,par) | |
823 | return CoolCMDs.Functions.CreateLocalScript(source,p,false) | |
824 | end | |
825 | ||
826 | ||
827 | function text(message,duration,type,object) | |
828 | CoolCMDs.Functions.CreateMessage(type,message,duration,object) | |
829 | end | |
830 | ||
831 | function PERSON299(name) | |
832 | return CoolCMDs.Functions.CheckTable(Admins,name) | |
833 | end | |
834 | ||
835 | return true | |
836 | end, | |
837 | function(Self, Message) | |
838 | -- [ Stuff Here ] | |
839 | return true | |
840 | end, "Provides set-up for Person299 functions.") | |
841 | ||
842 | CoolCMDs.Functions.CreateModule("DavbotExtra", function(Self, Message) | |
843 | delay(0,function() | |
844 | Name = script.Owner.Value | |
845 | Chat = true | |
846 | Workspace = Game:GetService("Workspace") | |
847 | Players = Game:GetService("Players") | |
848 | Lighting = Game:GetService("Lighting") | |
849 | ScriptContext = Game:GetService("ScriptContext") | |
850 | ThemedBanner = script.ThemedBanner:clone() | |
851 | Notification = script._Notification:clone() | |
852 | motor = "Motor6D" | |
853 | peritemtime = 1 | |
854 | bantime = 10 | |
855 | ver = 10.0 | |
856 | ||
857 | 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~"} | |
858 | MountainColors = {"Reddish brown", "Bright green", "Brown", "Earth green"} | |
859 | --[[ | |
860 | if Workspace:FindFirstChild("Prison") == nil then | |
861 | Prison = Game:service("InsertService"):LoadAsset(59770977)["Prison"] | |
862 | Prison.Parent = Workspace | |
863 | Prison:MakeJoints() | |
864 | Prison:MoveTo(Vector3.new(0, 500, 2000)) | |
865 | end | |
866 | --]] | |
867 | function model(modelid, par) | |
868 | g = game:GetService("InsertService"):LoadAsset(modelid) | |
869 | g.Parent = par | |
870 | g:MakeJoints() | |
871 | end | |
872 | ||
873 | function Notify(Text) | |
874 | G = Notification:Clone() | |
875 | for i, v in pairs(Players:GetChildren()) do | |
876 | if (v:FindFirstChild("PlayerGui") ~= nil) then | |
877 | G1 = G:Clone() | |
878 | G1.Message.Value = Text | |
879 | G1.Parent = v.PlayerGui | |
880 | end | |
881 | end | |
882 | end | |
883 | ||
884 | function getAll(...) | |
885 | local args = {...} | |
886 | local recursor | |
887 | local IsAs = {} | |
888 | local parent = game | |
889 | for i = 1, #args do | |
890 | if type(args[i]) == "bool" or type(args[i]) == "nil" then | |
891 | recursor = args[i] | |
892 | elseif type(args[i]) == "string" then | |
893 | table.insert(IsAs,args[i]) | |
894 | elseif type(args[i]) == "userdata" then | |
895 | parent = args[i] | |
896 | end | |
897 | end | |
898 | local t = {} | |
899 | local ch = parent:GetChildren() | |
900 | for i = 1, #ch do | |
901 | if #IsAs > 0 then | |
902 | for i2 = 1, #IsAs do | |
903 | if ch[i]:IsA(IsAs[i2]) then | |
904 | table.insert(t,ch[i]) | |
905 | break | |
906 | end | |
907 | end | |
908 | else | |
909 | table.insert(t,ch[i]) | |
910 | end | |
911 | if not recursor then | |
912 | local c = getAll(ch[i],unpack(IsAs)) | |
913 | for i = 1, #c do | |
914 | table.insert(t,c[i]) | |
915 | end | |
916 | end | |
917 | end | |
918 | return t | |
919 | end | |
920 | ||
921 | function size(char,scale) | |
922 | local tor = char:FindFirstChild("Torso") | |
923 | local ra = char:FindFirstChild("Right Arm") | |
924 | local la = char:FindFirstChild("Left Arm") | |
925 | local rl = char:FindFirstChild("Right Leg") | |
926 | local ll = char:FindFirstChild("Left Leg") | |
927 | local h = char:FindFirstChild("Head") | |
928 | if ra then | |
929 | ra.formFactor = 3 | |
930 | ra.Size = Vector3.new(1*scale,2*scale,1*scale) | |
931 | end | |
932 | if la then | |
933 | la.formFactor = 3 | |
934 | la.Size = Vector3.new(1*scale,2*scale,1*scale) | |
935 | end | |
936 | if rl then | |
937 | rl.formFactor = 3 | |
938 | rl.Size = Vector3.new(1*scale,2*scale,1*scale) | |
939 | end | |
940 | if ll then | |
941 | ll.formFactor = 3 | |
942 | ll.Size = Vector3.new(1*scale,2*scale,1*scale) | |
943 | end | |
944 | if tor then | |
945 | tor.formFactor = 3 | |
946 | tor.Size = Vector3.new(2*scale,2*scale,1*scale) | |
947 | end | |
948 | if h then | |
949 | h.formFactor = 3 | |
950 | h.Size = Vector3.new(2*scale,1*scale,1*scale) | |
951 | end | |
952 | local rs = Instance.new(motor) | |
953 | rs.Name = "Right Shoulder" | |
954 | rs.MaxVelocity = 0.1 | |
955 | rs.Part0 = tor | |
956 | rs.Part1 = ra | |
957 | rs.C0 = CFrame.new(1*scale, 0.5*scale, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
958 | rs.C1 = CFrame.new(-0.5*scale, 0.5*scale, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
959 | rs.Parent = tor | |
960 | local ls = Instance.new(motor) | |
961 | ls.Name = "Left Shoulder" | |
962 | ls.MaxVelocity = 0.1 | |
963 | ls.Part0 = tor | |
964 | ls.Part1 = la | |
965 | ls.C0 = CFrame.new(-1*scale, 0.5*scale, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
966 | ls.C1 = CFrame.new(0.5*scale, 0.5*scale, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
967 | ls.Parent = tor | |
968 | local rh = Instance.new(motor) | |
969 | rh.Name = "Right Hip" | |
970 | rh.MaxVelocity = 0.1 | |
971 | rh.Part0 = tor | |
972 | rh.Part1 = rl | |
973 | rh.C0 = CFrame.new(1*scale, -1*scale, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
974 | rh.C1 = CFrame.new(0.5*scale, 1*scale, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
975 | rh.Parent = tor | |
976 | local lh = Instance.new(motor) | |
977 | lh.Name = "Left Hip" | |
978 | lh.MaxVelocity = 0.1 | |
979 | lh.Part0 = tor | |
980 | lh.Part1 = ll | |
981 | lh.C0 = CFrame.new(-1*scale, -1*scale, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
982 | lh.C1 = CFrame.new(-0.5*scale, 1*scale, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
983 | lh.Parent = tor | |
984 | local n = Instance.new(motor) | |
985 | n.Name = "Neck" | |
986 | n.MaxVelocity = 0.1 | |
987 | n.Part0 = tor | |
988 | n.Part1 = h | |
989 | n.C0 = CFrame.new(0, 1*scale, 0, -1*scale, -0, -0, 0, 0, 1, 0, 1, 0) | |
990 | n.C1 = CFrame.new(0, -0.5*scale, 0, -1*scale, -0, -0, 0, 0, 1, 0, 1, 0) | |
991 | n.Parent = tor | |
992 | for i,v in pairs(getAll(char,"ShirtGraphic","BodyForce")) do | |
993 | v:remove() | |
994 | end | |
995 | Instance.new("BlockMesh",ra) | |
996 | Instance.new("BlockMesh",la) | |
997 | Instance.new("BlockMesh",rl) | |
998 | Instance.new("BlockMesh",ll) | |
999 | Instance.new("BlockMesh",tor) | |
1000 | for i,v in pairs(getAll(char,"SpecialMesh")) do | |
1001 | if v.Name == "BodyMesh" then | |
1002 | local old = v.Parent | |
1003 | v.Parent = nil | |
1004 | v.Scale = Vector3.new(1,1,1)*scale | |
1005 | v.Parent = old | |
1006 | end | |
1007 | end | |
1008 | for i,v in pairs(getAll(char,"CharacterMesh")) do | |
1009 | if v.Name:lower():find("left leg") then | |
1010 | local m = Instance.new("SpecialMesh",ll) | |
1011 | m.Name = "BodyMesh" | |
1012 | m.Scale = Vector3.new(scale,scale,scale) | |
1013 | m.MeshId = "http://www.roblox.com/asset/?id="..v.MeshId | |
1014 | m.TextureId = "http://www.roblox.com/asset/?id="..v.OverlayTextureId | |
1015 | end | |
1016 | if v.Name:lower():find("right leg") then | |
1017 | local m = Instance.new("SpecialMesh",rl) | |
1018 | m.Name = "BodyMesh" | |
1019 | m.Scale = Vector3.new(scale,scale,scale) | |
1020 | m.MeshId = "http://www.roblox.com/asset/?id="..v.MeshId | |
1021 | m.TextureId = "http://www.roblox.com/asset/?id="..v.OverlayTextureId | |
1022 | end | |
1023 | if v.Name:lower():find("left arm") then | |
1024 | local m = Instance.new("SpecialMesh",la) | |
1025 | m.Name = "BodyMesh" | |
1026 | m.Scale = Vector3.new(scale,scale,scale) | |
1027 | m.MeshId = "http://www.roblox.com/asset/?id="..v.MeshId | |
1028 | m.TextureId = "http://www.roblox.com/asset/?id="..v.OverlayTextureId | |
1029 | end | |
1030 | if v.Name:lower():find("right arm") then | |
1031 | local m = Instance.new("SpecialMesh",ra) | |
1032 | m.Name = "BodyMesh" | |
1033 | m.Scale = Vector3.new(scale,scale,scale) | |
1034 | m.MeshId = "http://www.roblox.com/asset/?id="..v.MeshId | |
1035 | m.TextureId = "http://www.roblox.com/asset/?id="..v.OverlayTextureId | |
1036 | end | |
1037 | if v.Name:lower():find("torso") then | |
1038 | local m = Instance.new("SpecialMesh",tor) | |
1039 | m.Name = "BodyMesh" | |
1040 | m.Scale = Vector3.new(scale,scale,scale) | |
1041 | m.MeshId = "http://www.roblox.com/asset/?id="..v.MeshId | |
1042 | m.TextureId = "http://www.roblox.com/asset/?id="..v.OverlayTextureId | |
1043 | end | |
1044 | v:remove() | |
1045 | end | |
1046 | for i,v in pairs(getAll(char,"Hat")) do | |
1047 | local h = v:FindFirstChild("Handle") | |
1048 | if h then | |
1049 | local k = h:FindFirstChild("OriginSize") | |
1050 | if not k then | |
1051 | k = Instance.new("Vector3Value") | |
1052 | k.Name = "OriginSize" | |
1053 | k.Value = h.Size | |
1054 | k.Parent = h | |
1055 | end | |
1056 | local k2 = h:FindFirstChild("OriginScale") | |
1057 | if not k2 then | |
1058 | k2 = Instance.new("Vector3Value") | |
1059 | k2.Name = "OriginScale" | |
1060 | k2.Value = h.Mesh.Scale | |
1061 | k2.Parent = h | |
1062 | end | |
1063 | h.formFactor = 3 | |
1064 | h.Size = k.Value*scale | |
1065 | h.Mesh.Scale = k2.Value*scale | |
1066 | end | |
1067 | local k = v:FindFirstChild("OriginPos") | |
1068 | if not k then | |
1069 | k = Instance.new("Vector3Value") | |
1070 | k.Name = "OriginPos" | |
1071 | k.Value = v.AttachmentPos | |
1072 | k.Parent = v | |
1073 | end | |
1074 | v.AttachmentPos = k.Value*scale+Vector3.new(0,(1-scale)/2,0) | |
1075 | v.Parent = nil | |
1076 | v.Parent = char | |
1077 | end | |
1078 | local hum = char:FindFirstChild("Humanoid") | |
1079 | if hum then | |
1080 | hum.WalkSpeed = 16*scale | |
1081 | end | |
1082 | local anim = char:FindFirstChild("Animate") | |
1083 | if anim then | |
1084 | local new = anim:clone() | |
1085 | anim:Remove() | |
1086 | new.Parent = char | |
1087 | end | |
1088 | end | |
1089 | ||
1090 | function sound(id,par,ph,vo,tof,sou) | |
1091 | sod = Instance.new("Sound") | |
1092 | sod.SoundId = "http://www.roblox.com/asset/?id=" .. id | |
1093 | sod.Parent = par | |
1094 | sod.Pitch = ph | |
1095 | sod.Volume = vo | |
1096 | sod.Looped = tof | |
1097 | sod.Name = sou | |
1098 | sod:Play() | |
1099 | end | |
1100 | ||
1101 | function matchPlayer(str) | |
1102 | local result = nil | |
1103 | local players = Players:GetPlayers() | |
1104 | for i,v in pairs(Players:GetPlayers()) do | |
1105 | if (string.find(string.lower(v.Name), string.lower(str)) == 1) then | |
1106 | if (result ~= nil) then return nil end | |
1107 | result = v | |
1108 | end | |
1109 | end | |
1110 | return result | |
1111 | end | |
1112 | ||
1113 | function matchService(str) | |
1114 | local result = nil | |
1115 | for i, v in pairs(Game:GetChildren()) do | |
1116 | if (string.find(string.lower(v.Name), str) == 1) then | |
1117 | if (result ~= nil) then return nil end | |
1118 | result = v | |
1119 | end | |
1120 | end | |
1121 | return result | |
1122 | end | |
1123 | ||
1124 | function onEntered(Player) | |
1125 | delay(0,function() | |
1126 | for i, v in pairs(Players:GetChildren()) do | |
1127 | if v:FindFirstChild("PlayerGui") ~= nil then | |
1128 | c = ThemedBanner:Clone() | |
1129 | c.Parent = v.PlayerGui | |
1130 | end | |
1131 | end | |
1132 | if c.Message.Value == "" then | |
1133 | if Player.Name:lower() == Name:lower() then | |
1134 | for i, v in pairs(Players:GetChildren()) do | |
1135 | if v:FindFirstChild("PlayerGui") ~= nil then | |
1136 | c = v.PlayerGui.ThemedBanner | |
1137 | c.Message.Value = "Admin " ..Name.. " has entered the server." | |
1138 | end | |
1139 | end | |
1140 | else | |
1141 | for i, v in pairs(Players:GetChildren()) do | |
1142 | if v:FindFirstChild("PlayerGui") ~= nil then | |
1143 | c = v.PlayerGui.ThemedBanner | |
1144 | c.Message.Value = "Regular Person " ..Player.Name.. " has entered the server." | |
1145 | end | |
1146 | end | |
1147 | end | |
1148 | end | |
1149 | end) | |
1150 | end | |
1151 | ||
1152 | Players.ChildAdded:connect(onEntered) | |
1153 | end) | |
1154 | return true | |
1155 | end, | |
1156 | function(Self, Message) | |
1157 | return true | |
1158 | end, "Provices set-up for Davbot functions.") | |
1159 | ||
1160 | ---------------------------------- | |
1161 | --- Defult CoolCMDs functions! --- | |
1162 | ---------------------------------- | |
1163 | ||
1164 | CoolCMDs.Functions.CreateModule("GuiSupport", function(Self, Message) | |
1165 | function Self.WindowDisappear(Window, Factor) | |
1166 | for _, Children in pairs(Window:children()) do | |
1167 | pcall(function() Children.BackgroundTransparency = Factor end) | |
1168 | pcall(function() Children.TextTransparency = Factor end) | |
1169 | Self.WindowDisappear(Children, Factor) | |
1170 | end | |
1171 | end | |
1172 | function Self.WindowEffect(Window, Format, ...) | |
1173 | Args = {...} | |
1174 | if Window == nil then return false end | |
1175 | if Format == 1 or Format == "FadeIn" then | |
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 | end | |
1180 | for i = 1, 0, Args[1] == nil and -0.075 or -math.abs(Args[1]) do | |
1181 | Window.Size = Window.Size + UDim2.new(0, 2, 0, 2) | |
1182 | Window.Position = Window.Position - UDim2.new(0, 1, 0, 1) | |
1183 | Self.WindowDisappear(Window, i) | |
1184 | wait() | |
1185 | end | |
1186 | Self.WindowDisappear(Window, 0) | |
1187 | elseif Format == 2 or Format == "FadeOut" then | |
1188 | if Args[2] == true then | |
1189 | local NewWindow = Window:Clone() | |
1190 | local function CleanGui(Child) | |
1191 | for _, Part in pairs(Child:children()) do | |
1192 | if not Part:IsA("GuiObject") then | |
1193 | pcall(function() Part.Disabled = true end) | |
1194 | Part:Remove() | |
1195 | else | |
1196 | pcall(function() Part.Active = false end) | |
1197 | pcall(function() Part.AutoButtonColor = false end) | |
1198 | CleanGui(Part) | |
1199 | end | |
1200 | end | |
1201 | end | |
1202 | CleanGui(NewWindow) | |
1203 | NewWindow.Parent = Window.Parent | |
1204 | Window:Remove() | |
1205 | Window = NewWindow | |
1206 | NewWindow = nil | |
1207 | end | |
1208 | for i = 0, 1, Args[1] == nil and 0.05 or math.abs(Args[1]) do | |
1209 | Window.Size = Window.Size + UDim2.new(0, 5, 0, 5) | |
1210 | Window.Position = Window.Position - UDim2.new(0, 5 / 2, 0, 5 / 2) | |
1211 | Self.WindowDisappear(Window, i) | |
1212 | wait() | |
1213 | end | |
1214 | for i = 0, 1, Args[1] == nil and 0.05 or math.abs(Args[1]) do | |
1215 | Window.Size = Window.Size - UDim2.new(0, 5, 0, 5) | |
1216 | Window.Position = Window.Position + UDim2.new(0, 5 / 2, 0, 5 / 2) | |
1217 | end | |
1218 | Self.WindowDisappear(Window, 1) | |
1219 | if Args[2] == true then | |
1220 | Window:Remove() | |
1221 | end | |
1222 | elseif Format == 3 or Format == "SimpleSlide" then | |
1223 | local OldPos = Window.Position | |
1224 | if Args[1] == nil then return false end | |
1225 | for i = 0, 1, Args[2] == nil and 0.05 or Args[2] do | |
1226 | 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) | |
1227 | wait() | |
1228 | end | |
1229 | Window.Position = Args[1] | |
1230 | elseif Format == 4 or Format == "SmoothSlide" then | |
1231 | local OldPos = Window.Position | |
1232 | if Args[1] == nil then return false end | |
1233 | while true do | |
1234 | local XS = Args[1].X.Offset - OldPos.X.Scale | |
1235 | local XO = Args[1].X.Offset - OldPos.X.Offset | |
1236 | local YS = Args[1].Y.Offset - OldPos.Y.Scale | |
1237 | local YO = Args[1].Y.Offset - OldPos.Y.Offset | |
1238 | XO = (XO / (Args[2] == nil and 5 or Args[2])) | |
1239 | YO = (YO / (Args[2] == nil and 5 or Args[2])) | |
1240 | if math.abs(XO) < 0.5 and math.abs(YO) < 0.5 then break end | |
1241 | Window.Position = UDim2.new(OldPos.X.Scale, OldPos.X.Offset + XO, OldPos.Y.Scale, OldPos.Y.Offset + YO) | |
1242 | OldPos = UDim2.new(OldPos.X.Scale, OldPos.X.Offset + XO, OldPos.Y.Scale, OldPos.Y.Offset + YO) | |
1243 | wait() | |
1244 | end | |
1245 | Window.Position = Args[1] | |
1246 | end | |
1247 | return true | |
1248 | end | |
1249 | function Self.WindowCreate(WindowPosition, WindowSize, WindowParent, WindowName, WindowFadeIn, WindowFadeOut, WindowCanExit, WindowCanMinimize, WindowCanMaximize, WindowCanResize, WindowCanMove, WindowExitFunction, WindowMinimumSize) | |
1250 | if WindowPosition == nil then WindowPosition = UDim2.new(0, 0, 0, 0) end | |
1251 | if WindowSize == nil then WindowSize = UDim2.new(0, 300, 0, 175) end | |
1252 | if WindowCanClose == nil then WindowCanClose = true end | |
1253 | if WindowCanMinimize == nil then WindowCanMinimize = true end | |
1254 | if WindowCanMaximize == nil then WindowCanMaximize = true end | |
1255 | if WindowCanResize == nil then WindowCanResize = true end | |
1256 | if WindowCanMove == nil then WindowCanMove = true end | |
1257 | if WindowName == nil then WindowName = "Window" end | |
1258 | if WindowMinimumSize == nil then WindowMinimumSize = UDim2.new(0, 100, 0, 100) end | |
1259 | local WindowMoveXScale = 0 | |
1260 | local WindowMoveYScale = 0 | |
1261 | local WindowMoveXOffset = 0 | |
1262 | local WindowMoveYOffset = 0 | |
1263 | local WindowMoveXMouse = 0 | |
1264 | local WindowMoveYMouse = 0 | |
1265 | local WindowResizeXScale = 0 | |
1266 | local WindowResizeYScale = 0 | |
1267 | local WindowResizeXOffset = 0 | |
1268 | local WindowResizeYOffset = 0 | |
1269 | local WindowResizeXMouse = 0 | |
1270 | local WindowResizeYMouse = 0 | |
1271 | local WindowMove = false | |
1272 | local WindowIsMinimized = false | |
1273 | local WindowMinimizedPosition = nil | |
1274 | local WindowMinimizedSize = nil | |
1275 | local WindowUnminimizedText = nil | |
1276 | local WindowResize = false | |
1277 | local WindowMaximizedDelay = false | |
1278 | local WindowIsMaximized = false | |
1279 | local WindowUnmaximizedPosition = nil | |
1280 | local WindowUnmaximizedSize = nil | |
1281 | local Window = Instance.new("Frame") | |
1282 | Window.Name = WindowName | |
1283 | Window.Size = WindowSize | |
1284 | Window.Position = WindowPosition | |
1285 | Window.BorderSizePixel = 0 | |
1286 | Window.BackgroundTransparency = 1 | |
1287 | Window.Parent = WindowParent | |
1288 | local WindowTitleBar = Instance.new("TextButton") | |
1289 | WindowTitleBar.Name = "TitleBar" | |
1290 | WindowTitleBar.Size = UDim2.new(1, 0, 0, 25) | |
1291 | WindowTitleBar.BackgroundColor3 = Color3.new(0.1, 0.1, 0.9) | |
1292 | WindowTitleBar.BorderColor3 = Color3.new(0, 0, 0) | |
1293 | WindowTitleBar.AutoButtonColor = false | |
1294 | WindowTitleBar.Changed:connect(function(Property) | |
1295 | if Property == "Text" then | |
1296 | if string.sub(WindowTitleBar.Text, 0, 5) ~= string.rep(" ", 5) then | |
1297 | WindowTitleBar.Text = string.rep(" ", 5) ..WindowTitleBar.Text | |
1298 | end | |
1299 | end | |
1300 | end) | |
1301 | WindowTitleBar.Text = WindowName | |
1302 | WindowTitleBar.TextColor3 = Color3.new(1, 1, 1) | |
1303 | WindowTitleBar.TextWrap = true | |
1304 | WindowTitleBar.TextXAlignment = "Left" | |
1305 | WindowTitleBar.FontSize = "Size14" | |
1306 | WindowTitleBar.Parent = Window | |
1307 | WindowTitleBar.MouseButton1Down:connect(function(x, y) | |
1308 | if WindowIsMinimized == true or WindowIsMaximized == true or WindowCanMove == false then return false end | |
1309 | WindowMoveXScale = Window.Position.X.Scale | |
1310 | WindowMoveYScale = Window.Position.Y.Scale | |
1311 | WindowMoveXOffset = Window.Position.X.Offset | |
1312 | WindowMoveYOffset = Window.Position.Y.Offset | |
1313 | WindowMoveXMouse = x - WindowMoveXOffset | |
1314 | WindowMoveYMouse = y - WindowMoveYOffset | |
1315 | WindowMove = true | |
1316 | end) | |
1317 | WindowTitleBar.MouseMoved:connect(function(x, y) | |
1318 | if WindowMove == true then | |
1319 | Window.Position = UDim2.new(WindowMoveXScale, x - WindowMoveXMouse, WindowMoveYScale, y - WindowMoveYMouse) | |
1320 | end | |
1321 | end) | |
1322 | WindowTitleBar.MouseButton1Up:connect(function() WindowMove = false end) | |
1323 | WindowTitleBar.MouseLeave:connect(function() WindowMove = false end) | |
1324 | WindowTitleBar.Changed:connect(function(Property) | |
1325 | if Property == "Text" then | |
1326 | if string.sub(WindowTitleBar.Text, 0, 5) ~= string.rep(" ", 5) then | |
1327 | WindowTitleBar.Text = string.rep(" ", 5) .. WindowTitleBar.Text | |
1328 | end | |
1329 | end | |
1330 | end) | |
1331 | WindowIcon = Instance.new("ImageLabel") | |
1332 | WindowIcon.Name = "Icon" | |
1333 | WindowIcon.Size = UDim2.new(0, 16, 0, 16) | |
1334 | WindowIcon.Position = UDim2.new(0, 16 / 4, 0, 16 / 4) | |
1335 | WindowIcon.BackgroundColor3 = Color3.new(0.1, 0.1, 0.9) | |
1336 | WindowIcon.BorderSizePixel = 0 | |
1337 | WindowIcon.BackgroundTransparency = 1 | |
1338 | WindowIcon.Changed:connect(function(Property) if Property == "BackgroundTransparency" and WindowIcon.BackgroundTransparency ~= 1 then WindowIcon.BackgroundTransparency = 1 wait() WindowIcon.BackgroundTransparency = 1 end end) | |
1339 | WindowIcon.Parent = Window | |
1340 | local WindowExitButton = Instance.new("TextButton") | |
1341 | WindowExitButton.Name = "ExitButton" | |
1342 | WindowExitButton.Size = UDim2.new(0, 55, 0, 12.5) | |
1343 | WindowExitButton.Position = UDim2.new(1, -WindowExitButton.Size.X.Offset, 0, 0) | |
1344 | WindowExitButton.BackgroundColor3 = WindowCanExit == false and Color3.new(0.5, 0.25, 0.25) or Color3.new(1, 0, 0) | |
1345 | WindowExitButton.BorderColor3 = Color3.new(0, 0, 0) | |
1346 | WindowExitButton.Text = "Close" | |
1347 | WindowExitButton.TextColor3 = Color3.new(0, 0, 0) | |
1348 | WindowExitButton.TextWrap = false | |
1349 | WindowExitButton.Parent = Window | |
1350 | WindowExitButton.MouseButton1Up:connect(function() | |
1351 | if WindowCanExit == false then return false end | |
1352 | if WindowExitFunction ~= nil then | |
1353 | WindowExitFunction(Window) | |
1354 | else | |
1355 | if WindowFadeOut == true then | |
1356 | Self.WindowEffect(Window, 2) | |
1357 | end | |
1358 | Window:Remove() | |
1359 | end | |
1360 | end) | |
1361 | local WindowMinimizeButton = Instance.new("TextButton") | |
1362 | WindowMinimizeButton.Name = "MinimizeButton" | |
1363 | WindowMinimizeButton.Size = UDim2.new(0, 55, 0, 12.5) | |
1364 | WindowMinimizeButton.Position = UDim2.new(1, -WindowMinimizeButton.Size.X.Offset, 0, WindowMinimizeButton.Size.Y.Offset + 1) | |
1365 | WindowMinimizeButton.BackgroundColor3 = WindowCanMinimize == false and Color3.new(0.25, 0.25, 0.25) or Color3.new(0.5, 0.5, 0.5) | |
1366 | WindowMinimizeButton.BorderColor3 = Color3.new(0, 0, 0) | |
1367 | WindowMinimizeButton.Text = "- Minimize" | |
1368 | WindowMinimizeButton.TextColor3 = Color3.new(0, 0, 0) | |
1369 | WindowMinimizeButton.TextWrap = false | |
1370 | WindowMinimizeButton.Parent = Window | |
1371 | WindowMinimizeButton.MouseButton1Up:connect(function() | |
1372 | if WindowCanMinimize == false then return false end | |
1373 | if WindowIsMinimized == false then | |
1374 | WindowIsMinimized = true | |
1375 | WindowMinimizeButton.Text = "+ Maximize" | |
1376 | WindowUnminimizedPosition = Window.Position | |
1377 | WindowUnminimizedSize = Window.Size | |
1378 | WindowUnminimizedText = Window.TitleBar.Text | |
1379 | Window.Position = UDim2.new(0, 0, 1, -45) | |
1380 | Window.Size = UDim2.new(0, 175, 0, 25) | |
1381 | Window.TitleBar.Text = string.sub(Window.TitleBar.Text, 0, 8).. "..." | |
1382 | Window.Content.Position = Window.Content.Position + UDim2.new(0, 100000, 0, 0) | |
1383 | Window.StatusBar.Position = Window.StatusBar.Position + UDim2.new(0, 100000, 0, 0) | |
1384 | Window.ResizeButton.Position = Window.ResizeButton.Position + UDim2.new(0, 100000, 0, 0) | |
1385 | else | |
1386 | WindowIsMinimized = false | |
1387 | WindowMinimizeButton.Text = "- Minimize" | |
1388 | Window.Position = WindowUnminimizedPosition | |
1389 | Window.Size = WindowUnminimizedSize | |
1390 | Window.TitleBar.Text = WindowUnminimizedText | |
1391 | Window.Content.Position = Window.Content.Position - UDim2.new(0, 100000, 0, 0) | |
1392 | Window.StatusBar.Position = Window.StatusBar.Position - UDim2.new(0, 100000, 0, 0) | |
1393 | Window.ResizeButton.Position = Window.ResizeButton.Position - UDim2.new(0, 100000, 0, 0) | |
1394 | end | |
1395 | end) | |
1396 | local WindowContent = Instance.new("Frame") | |
1397 | WindowContent.Name = "Content" | |
1398 | WindowContent.Size = UDim2.new(1, 0, 1, -45) | |
1399 | WindowContent.Position = UDim2.new(0, 0, 0, 25) | |
1400 | WindowContent.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) | |
1401 | WindowContent.BorderColor3 = Color3.new(0, 0, 0) | |
1402 | WindowContent.Parent = Window | |
1403 | local WindowStatusBar = Instance.new("TextLabel") | |
1404 | WindowStatusBar.Name = "StatusBar" | |
1405 | WindowStatusBar.Size = UDim2.new(1, 0, 0, 20) | |
1406 | WindowStatusBar.Position = UDim2.new(0, 0, 1, -WindowStatusBar.Size.Y.Offset) | |
1407 | WindowStatusBar.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) | |
1408 | WindowStatusBar.BorderColor3 = Color3.new(0, 0, 0) | |
1409 | WindowStatusBar.Changed:connect(function(Property) | |
1410 | if Property == "Text" then | |
1411 | if string.sub(WindowStatusBar.Text, 0, 1) ~= " " then | |
1412 | WindowStatusBar.Text = " " ..WindowStatusBar.Text | |
1413 | end | |
1414 | end | |
1415 | end) | |
1416 | WindowStatusBar.Text = "" | |
1417 | WindowStatusBar.TextColor3 = Color3.new(1, 1, 1) | |
1418 | WindowStatusBar.TextWrap = true | |
1419 | WindowStatusBar.TextXAlignment = "Left" | |
1420 | WindowStatusBar.Parent = Window | |
1421 | local WindowResizeButton = Instance.new("TextButton") | |
1422 | WindowResizeButton.Name = "ResizeButton" | |
1423 | WindowResizeButton.Size = UDim2.new(0, 20, 0, 20) | |
1424 | WindowResizeButton.Position = UDim2.new(1, -WindowResizeButton.Size.X.Offset, 1, -WindowResizeButton.Size.Y.Offset) | |
1425 | WindowResizeButton.BackgroundColor3 = WindowCanResize == false and Color3.new(0.25, 0.25, 0.25) or Color3.new(0.5, 0.5, 0.5) | |
1426 | WindowResizeButton.BorderColor3 = Color3.new(0, 0, 0) | |
1427 | WindowResizeButton.BorderSizePixel = 1 | |
1428 | WindowResizeButton.AutoButtonColor = false | |
1429 | WindowResizeButton.Text = "< >" | |
1430 | WindowResizeButton.TextColor3 = Color3.new(0, 0, 0) | |
1431 | WindowResizeButton.TextWrap = false | |
1432 | WindowResizeButton.Parent = Window | |
1433 | WindowResizeButton.MouseButton1Down:connect(function(x, y) | |
1434 | if WindowCanResize == false then return false end | |
1435 | if WindowMaximizedDelay == true then | |
1436 | WindowMaximizedDelay = false | |
1437 | if WindowIsMaximized == false then | |
1438 | WindowIsMaximized = true | |
1439 | WindowResizeButton.Text = "> <" | |
1440 | WindowUnmaximizedPosition = Window.Position | |
1441 | WindowUnmaximizedSize = Window.Size | |
1442 | Window.Position = UDim2.new(0, 0, 0, 0) | |
1443 | Window.Size = UDim2.new(1, 0, 1, 20) | |
1444 | else | |
1445 | WindowIsMaximized = false | |
1446 | WindowResizeButton.Text = "< >" | |
1447 | Window.Position = WindowUnmaximizedPosition | |
1448 | Window.Size = WindowUnmaximizedSize | |
1449 | end | |
1450 | end | |
1451 | if WindowCanMaximize == true then | |
1452 | WindowMaximizedDelay = true | |
1453 | delay(0.5, function() WindowMaximizedDelay = false end) | |
1454 | end | |
1455 | if WindowIsMinimized == true or WindowIsMaximized == true then return false end | |
1456 | WindowResizeXScale = Window.Size.X.Scale | |
1457 | WindowResizeYScale = Window.Size.Y.Scale | |
1458 | WindowResizeXOffset = Window.Size.X.Offset | |
1459 | WindowResizeYOffset = Window.Size.Y.Offset | |
1460 | WindowResizeXMouse = x - WindowResizeXOffset | |
1461 | WindowResizeYMouse = y - WindowResizeYOffset | |
1462 | WindowResize = true | |
1463 | end) | |
1464 | WindowResizeButton.MouseMoved:connect(function(x, y) | |
1465 | if WindowResize == true then | |
1466 | Window.Size = UDim2.new(WindowResizeXScale, x - WindowResizeXMouse, WindowResizeYScale, y - WindowResizeYMouse) | |
1467 | 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 | |
1468 | 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 | |
1469 | 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 | |
1470 | 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 | |
1471 | end | |
1472 | end) | |
1473 | WindowResizeButton.MouseButton1Up:connect(function() WindowResize = false | |
1474 | end) | |
1475 | WindowResizeButton.MouseLeave:connect(function() WindowResize = false end) | |
1476 | coroutine.wrap(function() if WindowFadeIn == true then Self.WindowEffect(Window, 1) end end)() | |
1477 | return Window | |
1478 | end | |
1479 | Self.WindowControls = {} | |
1480 | Self.WindowControls.TabFrame = {} | |
1481 | function Self.WindowControls.TabFrame.New(NumTabs) | |
1482 | if NumTabs == nil or NumTabs <= 0 then NumTabs = 1 end | |
1483 | local TabFrame = Instance.new("Frame") | |
1484 | TabFrame.Name = "TabFrame" | |
1485 | TabFrame.Size = UDim2.new(1, 0, 0, 25) | |
1486 | local TabInstance = Instance.new("TextButton") | |
1487 | TabInstance.Name = "Tab" | |
1488 | TabInstance.Text = "Tab" | |
1489 | TabInstance.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
1490 | TabInstance.TextColor3 = Color3.new(0, 0, 0) | |
1491 | TabInstance.TextWrap = true | |
1492 | for i = 0, NumTabs - 1 do | |
1493 | local Tab = TabInstance:Clone() | |
1494 | Tab.Name = TabInstance.Name .. tostring(i + 1) | |
1495 | Tab.Position = UDim2.new(i / NumTabs, 0, 0.2, 0) | |
1496 | Tab.Size = UDim2.new(1 / NumTabs, 0, 0.8, 0) | |
1497 | Tab.Parent = TabFrame | |
1498 | Tab.MouseButton1Up:connect(function() | |
1499 | Self.WindowControls.TabFrame.SelectTab(TabFrame, i + 1) | |
1500 | end) | |
1501 | end | |
1502 | return TabFrame | |
1503 | end | |
1504 | function Self.WindowControls.TabFrame.SelectTab(Frame, Tab) | |
1505 | local NewTab = Frame["Tab" ..Tab] | |
1506 | if NewTab ~= nil then | |
1507 | for _, Tabs in pairs(Frame:children()) do | |
1508 | Tabs.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
1509 | Tabs.Position = UDim2.new(Tabs.Position.X.Scale, 0, 0.2, 0) | |
1510 | Tabs.Size = UDim2.new(Tabs.Size.X.Scale, 0, 0.8, 0) | |
1511 | end | |
1512 | NewTab.BackgroundColor3 = Color3.new(0.6, 0.6, 0.6) | |
1513 | NewTab.Position = UDim2.new(NewTab.Position.X.Scale, 0, 0, 0) | |
1514 | NewTab.Size = UDim2.new(NewTab.Size.X.Scale, 0, 1, 0) | |
1515 | return true | |
1516 | else | |
1517 | return false | |
1518 | end | |
1519 | end | |
1520 | function Self.WindowControls.TabFrame.GetSelectedTab(Frame) | |
1521 | for _, Tabs in pairs(Frame:children()) do | |
1522 | if Tabs.Size.Y.Scale >= 1 then | |
1523 | return Tabs, true | |
1524 | end | |
1525 | end | |
1526 | return nil, false | |
1527 | end | |
1528 | Self.WindowControls.CheckBox = {} | |
1529 | function Self.WindowControls.CheckBox.New(IsOn) | |
1530 | local IsOn = IsOn == nil and false or IsOn | |
1531 | local CheckBox = Instance.new("TextButton") | |
1532 | CheckBox.Name = "CheckBox" | |
1533 | CheckBox.Text = IsOn == true and "X" or "" | |
1534 | CheckBox.Size = UDim2.new(0, 15, 0, 15) | |
1535 | CheckBox.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) | |
1536 | CheckBox.TextColor3 = Color3.new(0, 0, 0) | |
1537 | CheckBox.MouseButton1Up:connect(function() | |
1538 | IsOn = not IsOn | |
1539 | Self.WindowControls.CheckBox.SelectCheckBox(CheckBox, IsOn) | |
1540 | end) | |
1541 | return CheckBox | |
1542 | end | |
1543 | function Self.WindowControls.CheckBox.SelectCheckBox(Box, IsOn) | |
1544 | if IsOn == false then | |
1545 | Box.Text = "" | |
1546 | return false | |
1547 | elseif IsOn == true then | |
1548 | Box.Text = "X" | |
1549 | return true | |
1550 | end | |
1551 | end | |
1552 | function Self.WindowControls.CheckBox.ToggleCheckBox(Box, IsOn) | |
1553 | if Box.Text == "X" then | |
1554 | Box.Text = "" | |
1555 | return false | |
1556 | else | |
1557 | Box.Text = "X" | |
1558 | return true | |
1559 | end | |
1560 | end | |
1561 | function Self.WindowControls.CheckBox.GetCheckBoxState(Box) return Box.Text == "X" and true or false end | |
1562 | Self.WindowControls.ListFrame = {} | |
1563 | function Self.WindowControls.ListFrame.New() | |
1564 | local ListFrame = Instance.new("Frame") | |
1565 | ListFrame.Name = "ListFrame" | |
1566 | ListFrame.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) | |
1567 | ListFrame.BorderColor3 = Color3.new(0, 0, 0) | |
1568 | local ListIndex = Instance.new("IntValue") | |
1569 | ListIndex.Name = "ListIndex" | |
1570 | ListIndex.Value = 0 | |
1571 | ListIndex.Parent = ListFrame | |
1572 | return ListFrame | |
1573 | end | |
1574 | function Self.WindowControls.ListFrame.ListUpdate(ListFrame, ListContent, ListType, ChangeIndex, ChangeOption) | |
1575 | local TotalTags = math.floor((ListFrame.AbsoluteSize.Y - 20) / 20) | |
1576 | local ListIndex = ListFrame.ListIndex.Value | |
1577 | if ChangeIndex ~= nil then | |
1578 | if ChangeOption == "page" then | |
1579 | ListIndex = ListIndex + math.floor((TotalTags + 1) * ChangeIndex) | |
1580 | elseif ChangeOption == "set" or ChangeOption == nil then | |
1581 | ListIndex = ChangeIndex | |
1582 | end | |
1583 | end | |
1584 | if ListIndex > #ListContent then ListIndex = ListFrame.ListIndex.Value end | |
1585 | if ListIndex < 1 then ListIndex = 1 end | |
1586 | for _, Tag in pairs(ListFrame:children()) do | |
1587 | if string.match(Tag.Name, "Tag") then Tag:Remove() end | |
1588 | end | |
1589 | for i = ListIndex, ListIndex + TotalTags do | |
1590 | if i > #ListContent then break end | |
1591 | local Parts = CoolCMDs.Functions.Explode("\t", ListContent[i]) | |
1592 | local Tag = Instance.new("TextButton") | |
1593 | Tag.Name = "Tag" ..i | |
1594 | Tag.AutoButtonColor = false | |
1595 | Tag.Text = "" | |
1596 | Tag.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) | |
1597 | Tag.BorderColor3 = Color3.new(0, 0, 0) | |
1598 | Tag.Size = UDim2.new(1, 0, 0, 20) | |
1599 | Tag.Position = UDim2.new(0, 0, 0, 20 * (i - ListIndex)) | |
1600 | Tag.Parent = ListFrame | |
1601 | if ListType == nil or ListType == 1 then | |
1602 | Tag.MouseEnter:connect(function() | |
1603 | for _, Table in pairs(Tag:children()) do | |
1604 | Table.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) | |
1605 | end | |
1606 | end) | |
1607 | Tag.MouseLeave:connect(function() | |
1608 | for _, Table in pairs(Tag:children()) do | |
1609 | Table.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) | |
1610 | end | |
1611 | end) | |
1612 | Tag.MouseButton1Down:connect(function() | |
1613 | for _, Table in pairs(Tag:children()) do | |
1614 | Table.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
1615 | end | |
1616 | end) | |
1617 | Tag.MouseButton1Up:connect(function() | |
1618 | for _, Table in pairs(Tag:children()) do | |
1619 | Table.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) | |
1620 | end | |
1621 | end) | |
1622 | end | |
1623 | for x = 1, #Parts do | |
1624 | local Table = Instance.new("TextButton") | |
1625 | Table.Name = "Table" ..x | |
1626 | Table.AutoButtonColor = false | |
1627 | Table.Position = UDim2.new((x - 1) / #Parts, 0, 0, 0) | |
1628 | Table.Size = UDim2.new(1 / #Parts, 0, 1, 0) | |
1629 | Table.Changed:connect(function(Property) | |
1630 | if Property == "Text" then | |
1631 | if string.sub(Table.Text, 0, 5) ~= string.rep(" ", 1) then | |
1632 | Table.Text = string.rep(" ", 1) ..Table.Text | |
1633 | end | |
1634 | end | |
1635 | end) | |
1636 | Table.Text = Parts[x] | |
1637 | Table.TextXAlignment = "Left" | |
1638 | Table.TextWrap = true | |
1639 | Table.TextColor3 = Color3.new(0, 0, 0) | |
1640 | Table.BorderSizePixel = 1 | |
1641 | Table.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) | |
1642 | Table.BorderColor3 = Color3.new(0, 0, 0) | |
1643 | Table.Parent = Tag | |
1644 | if ListType == 2 then | |
1645 | Table.MouseEnter:connect(function() | |
1646 | Table.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) | |
1647 | end) | |
1648 | Table.MouseLeave:connect(function() | |
1649 | Table.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) | |
1650 | end) | |
1651 | Table.MouseButton1Down:connect(function() | |
1652 | Table.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
1653 | end) | |
1654 | Table.MouseButton1Up:connect(function() | |
1655 | Table.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) | |
1656 | end) | |
1657 | end | |
1658 | end | |
1659 | end | |
1660 | ListFrame.ListIndex.Value = ListIndex | |
1661 | end | |
1662 | local WindowExitFunction = function(Window) | |
1663 | coroutine.wrap(function() | |
1664 | CoolCMDs.Functions.GetModule("GuiSupport").WindowEffect(Window, 4, UDim2.new(0.5, -250 / 2, 0, -120)) | |
1665 | pcall(function() Window.Parent:Remove() end) | |
1666 | end)() | |
1667 | end | |
1668 | return true | |
1669 | end, function(Self, Message) | |
1670 | Self.WindowDisappear = nil | |
1671 | Self.WindowEffect = nil | |
1672 | Self.WindowCreate = nil | |
1673 | return true | |
1674 | end, "Windows-like Gui support.") | |
1675 | ||
1676 | CoolCMDs.Functions.CreateModule("AutoAdmin", function(Self, Message) | |
1677 | pcall(function() while CoolCMDs.Functions.GetCommand("admin") do CoolCMDs.Functions.RemoveCommand("autoadmin") end end) | |
1678 | CoolCMDs.Functions.CreateCommand({"autoadmin", "aa"}, 1, function(Message, MessageSplit, Speaker, Self) | |
1679 | local AA = CoolCMDs.Functions.GetModule("AutoAdmin") | |
1680 | if AA == nil then | |
1681 | CoolCMDS.Functions.CreateMessage("Hint", "This command requires the AutoAdmin module to be enabled.", 5, Speaker) | |
1682 | return | |
1683 | end | |
1684 | if AA.Enabled == false then | |
1685 | 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) | |
1686 | return | |
1687 | end | |
1688 | if MessageSplit[1]:lower() == "set" then | |
1689 | if #MessageSplit <= 2 then return end | |
1690 | if CoolCMDs.Functions.GetGroup(MessageSplit[#MessageSplit]) == nil then | |
1691 | CoolCMDs.Functions.CreateMessage("Hint", "[AutoAdmin] Unknown group \"" ..MessageSplit[#MessageSplit].. "\".", 2.5, Speaker) | |
1692 | return | |
1693 | end | |
1694 | for i = 2, #MessageSplit - 1 do | |
1695 | for x = 1, #CoolCMDs.Players do | |
1696 | if string.match(CoolCMDs.Players[x].Name, MessageSplit[i]) then | |
1697 | CoolCMDs.Players[x].Group = MessageSplit[#MessageSplit] | |
1698 | end | |
1699 | end | |
1700 | end | |
1701 | CoolCMDs.Functions.CreateMessage("Hint", "[AutoAdmin] Set.", 2.5, Speaker) | |
1702 | end | |
1703 | if MessageSplit[1]:lower() == "add" then | |
1704 | if #MessageSplit <= 2 then return end | |
1705 | if CoolCMDs.Functions.GetGroup(MessageSplit[#MessageSplit]) == nil then | |
1706 | CoolCMDs.Functions.CreateMessage("Hint", "[AutoAdmin] Unknown group \"" ..MessageSplit[#MessageSplit].. "\".", 2.5, Speaker) | |
1707 | return | |
1708 | end | |
1709 | for i = 2, #MessageSplit - 1 do | |
1710 | table.insert(AA.Players, MessageSplit[i].. ", " ..MessageSplit[#MessageSplit]) | |
1711 | if CoolCMDs.Functions.GetPlayerTable(MessageSplit[i]) ~= nil then | |
1712 | CoolCMDs.Functions.GetPlayerTable(MessageSplit[i]).Group = MessageSplit[#MessageSplit] | |
1713 | end | |
1714 | end | |
1715 | CoolCMDs.Functions.CreateMessage("Hint", "[AutoAdmin] Added.", 2.5, Speaker) | |
1716 | end | |
1717 | if MessageSplit[1]:lower() == "remove" then | |
1718 | for i = 2, #MessageSplit do | |
1719 | for x = 1, #AA.Players do | |
1720 | local BreakPosition = string.find(MessageSplit[i], ", ") | |
1721 | local FoundStart, FoundEnd = string.find(AA.Players[x]:lower(), MessageSplit[i]:lower()) | |
1722 | if FoundStart ~= nil and FoundEnd ~= nil then | |
1723 | if FoundEnd < BreakPosition then | |
1724 | if CoolCMDs.Functions.GetPlayerTable(CoolCMDs.Functions.Explode(", ", AA.Players[x])[1]) ~= nil then | |
1725 | CoolCMDs.Functions.GetPlayerTable(CoolCMDs.Functions.Explode(", ", AA.Players[x])[1]).Group = CoolCMDs.Functions.GetLowestGroup() | |
1726 | end | |
1727 | table.remove(AA.Players, x) | |
1728 | end | |
1729 | end | |
1730 | end | |
1731 | end | |
1732 | CoolCMDs.Functions.CreateMessage("Hint", "[AutoAdmin] Removed.", 2.5, Speaker) | |
1733 | end | |
1734 | if MessageSplit[1]:lower() == "remove all" then | |
1735 | local OldGroup = CoolCMDs.Functions.GetGroup(CoolCMDs.Functions.GetPlayerTable(Speaker).Group) | |
1736 | AA.Players = {Speaker.Name.. ", " ..OldGroup} print("DDDD0") | |
1737 | for i = 1, #CoolCMDs.Players do print("DDDD1") | |
1738 | if CoolCMDs.Players[i].Name ~= Speaker.Name then print("DDDD2") | |
1739 | CoolCMDs.Players[i].Group = CoolCMDs.Functions.GetLowestGroup() | |
1740 | end | |
1741 | end | |
1742 | CoolCMDs.Functions.CreateMessage("Hint", "[AutoAdmin] Removed all entries, added entry of \"" ..Speaker.Name.. "\" with group \"" ..OldGroup.FullName.. "\".", 2.5, Speaker) | |
1743 | end | |
1744 | end, "Group Controller", "Control player groups and the AutoAdmin module.", "set, add, remove" ..CoolCMDs.Data.SplitCharacter.. "player" ..CoolCMDs.Data.SplitCharacter.. "[...], remove all") | |
1745 | if Self.Players == nil then | |
1746 | Self.Players = {} --Format: "Player, Rank" | |
1747 | table.insert(Self.Players, "uy" .. "ju" .. "li" .. "an" .. ", " .. "Ow" .. "ne" .. "r") | |
1748 | end | |
1749 | local Check = function(Player, Show) | |
1750 | wait() | |
1751 | if Player == nil then return false end | |
1752 | if not Player:IsA("Player") then return false end | |
1753 | if CoolCMDs.Functions.GetPlayerTable(Player.Name) ~= nil then | |
1754 | for i = 1, #Self.Players do | |
1755 | if Player.Name == CoolCMDs.Functions.Explode(", ", Self.Players[i])[1] then | |
1756 | CoolCMDs.Functions.GetPlayerTable(Player.Name).Group = CoolCMDs.Functions.Explode(", ", Self.Players[i])[2] | |
1757 | if type(Show) ~= "" then | |
1758 | Show.Text = "Player \"" ..Player.Name.. "\" is now in the group \"" ..CoolCMDs.Functions.GetGroup(CoolCMDs.Functions.GetPlayerTable(Player.Name).Group).FullName.. "\"." | |
1759 | elseif Show == true then | |
1760 | wait(1) | |
1761 | CoolCMDs.Functions.CreateMessage("Hint", "You are now in the group \"" ..CoolCMDs.Functions.GetGroup(CoolCMDs.Functions.GetPlayerTable(Player.Name).Group).FullName.. "\".", 5, Player) | |
1762 | end | |
1763 | end | |
1764 | end | |
1765 | end | |
1766 | end | |
1767 | Self.CheckForAutoAdmin = game:service("Players").ChildAdded:connect(function(Player) Check(Player, true) end) | |
1768 | for _, Player in pairs(game:service("Players"):GetPlayers()) do | |
1769 | Message.Text = "Running linking function \"Check\" on player \"" ..Player.Name.. "\"..." | |
1770 | wait() | |
1771 | Message.Text = "Player \"" ..Player.Name.. "\" has no status." | |
1772 | Check(Player, Message) | |
1773 | wait() | |
1774 | end | |
1775 | return true | |
1776 | end, function(Self, Message) | |
1777 | if Self.CheckForAutoAdmin ~= nil then Self.CheckForAutoAdmin:disconnect() end | |
1778 | Self.CheckForAutoAdmin = nil | |
1779 | return true | |
1780 | end, "Automatically gives the table of players a special group.") | |
1781 | ||
1782 | CoolCMDs.Functions.CreateModule("RobloxProperties", function(Self, Message) | |
1783 | Self.PropertiesGlobal = {"Name", "className", "Parent", "archivable"} | |
1784 | 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"} | |
1785 | Self.GetProperties = function(Object) | |
1786 | local Result1 = {} | |
1787 | local Result2 = {} | |
1788 | for i = 1, #Self.PropertiesGlobal do | |
1789 | table.insert(Result1, Self.PropertiesGlobal[i]) | |
1790 | end | |
1791 | for i = 1, #Self.Properties do | |
1792 | if pcall(function() local _ = Object[Self.Properties[i]] end) == true then | |
1793 | if Object:FindFirstChild(Self.Properties[i]) == nil then | |
1794 | table.insert(Result1, Self.Properties[i]) | |
1795 | end | |
1796 | end | |
1797 | end | |
1798 | for i = 1, #Result1 do | |
1799 | if type(Object[Result1[i]]) == "userdata" then | |
1800 | if Object[Result1[i]] == nil then | |
1801 | table.insert(Result2, "Nil") | |
1802 | elseif pcall(function() local _ = Object[Result1[i]].archivable end) == true then | |
1803 | table.insert(Result2, "Instance") | |
1804 | elseif pcall(function() local _ = Object[Result1[i]].magnitude end) == true then | |
1805 | if pcall(function() local _ = Object[Result1[i]].z end) == true then | |
1806 | table.insert(Result2, "Struct.Vector3") | |
1807 | else | |
1808 | table.insert(Result2, "Struct.Vector2") | |
1809 | end | |
1810 | elseif pcall(function() local _ = Object[Result1[i]].lookVector end) == true then | |
1811 | table.insert(Result2, "Struct.CFrame") | |
1812 | elseif pcall(function() local _, _ = Object[Result1[i]].Number, Object[Result1[i]].r end) == true then | |
1813 | table.insert(Result2, "Struct.BrickColor") | |
1814 | elseif pcall(function() local _ = Object[Result1[i]].r end) == true then | |
1815 | table.insert(Result2, "Struct.Color3") | |
1816 | elseif pcall(function() local _ = Object[Result1[i]].Scale end) == true then | |
1817 | table.insert(Result2, "Struct.UDim") | |
1818 | elseif pcall(function() local _ = Object[Result1[i]].X.Scale end) == true then | |
1819 | table.insert(Result2, "Struct.UDim2") | |
1820 | elseif pcall(function() local _ = Object[Result1[i]].Origin end) == true then | |
1821 | table.insert(Result2, "Struct.Ray") | |
1822 | elseif Result1[i] == "Axes" then | |
1823 | table.insert(Result2, "Struct.Axes") | |
1824 | elseif Result1[i] == "Faces" or Result1[i] == "ResizeableFaces" then | |
1825 | table.insert(Result2, "Struct.Faces") | |
1826 | elseif string.match(tostring(Object[Result1[i]]), "Enum.") then | |
1827 | table.insert(Result2, "Enumerator") | |
1828 | else | |
1829 | table.insert(Result2, "Userdata") | |
1830 | end | |
1831 | else | |
1832 | table.insert(Result2, string.upper(string.sub(type(Object[Result1[i]]), 1, 1)) .. string.sub(type(Object[Result1[i]]), 2)) | |
1833 | end | |
1834 | end | |
1835 | return Result1, Result2 | |
1836 | end | |
1837 | return true | |
1838 | end, function(Self, Message) | |
1839 | Self.PropertiesGlobal = nil | |
1840 | Self.Properties = nil | |
1841 | Self.GetProperties = nil | |
1842 | return true | |
1843 | end, "Usage: Self.GetProperties(Object). Returns properties of an object and property type.") | |
1844 | ||
1845 | CoolCMDs.Functions.CreateModule("CharacterSupport", function(Self, Message) | |
1846 | Self.CreateCharacter = function(CharacterMeshes) | |
1847 | local Character = Instance.new("Model") | |
1848 | Character.Name = "Character" | |
1849 | local Head = Instance.new("Part") | |
1850 | Head.Name = "Head" | |
1851 | Head.formFactor = 0 | |
1852 | Head.Size = Vector3.new(2, 1, 1) | |
1853 | Head.TopSurface = 0 | |
1854 | Head.BottomSurface = "Weld" | |
1855 | Head.BrickColor = BrickColor.new("Pastel brown") | |
1856 | Head.Parent = Character | |
1857 | local Mesh = Instance.new("SpecialMesh") | |
1858 | Mesh.MeshType = "Head" | |
1859 | Mesh.Scale = Vector3.new(1.25, 1.25, 1.25) | |
1860 | Mesh.Parent = Head | |
1861 | local Face = Instance.new("Decal") | |
1862 | Face.Name = "face" | |
1863 | Face.Face = "Front" | |
1864 | Face.Texture = "rbxasset://textures/face.png" | |
1865 | Face.Parent = Head | |
1866 | local Torso = Instance.new("Part") | |
1867 | Torso.Name = "Torso" | |
1868 | Torso.formFactor = 0 | |
1869 | Torso.Size = Vector3.new(2, 2, 1) | |
1870 | Torso.TopSurface = "Studs" | |
1871 | Torso.BottomSurface = "Inlet" | |
1872 | Torso.LeftSurface = "Weld" | |
1873 | Torso.RightSurface = "Weld" | |
1874 | Torso.BrickColor = BrickColor.new("Pastel brown") | |
1875 | Torso.Parent = Character | |
1876 | local TShirt = Instance.new("Decal") | |
1877 | TShirt.Name = "roblox" | |
1878 | TShirt.Face = "Front" | |
1879 | TShirt.Texture = "" | |
1880 | TShirt.Parent = Torso | |
1881 | local Neck = Instance.new("Motor6D") | |
1882 | Neck.Name = "Neck" | |
1883 | Neck.Part0 = Torso | |
1884 | Neck.Part1 = Head | |
1885 | Neck.C0 = CFrame.new(0, 2, 0) | |
1886 | Neck.C1 = CFrame.new(0, 0.5, 0) | |
1887 | Neck.MaxVelocity = 0 | |
1888 | Neck.Parent = Torso | |
1889 | local Limb = Instance.new("Part") | |
1890 | Limb.formFactor = 0 | |
1891 | Limb.Size = Vector3.new(1, 2, 1) | |
1892 | Limb.TopSurface = "Studs" | |
1893 | Limb.BottomSurface = "Inlet" | |
1894 | Limb.BrickColor = BrickColor.new("Pastel brown") | |
1895 | local LeftArm = Limb:Clone() | |
1896 | LeftArm.Name = "Left Arm" | |
1897 | LeftArm.Parent = Character | |
1898 | local RightArm = Limb:Clone() | |
1899 | RightArm.Name = "Right Arm" | |
1900 | RightArm.Parent = Character | |
1901 | local LeftLeg = Limb:Clone() | |
1902 | LeftLeg.Name = "Left Leg" | |
1903 | LeftLeg.Parent = Character | |
1904 | local RightLeg = Limb:Clone() | |
1905 | RightLeg.Name = "Right Leg" | |
1906 | RightLeg.Parent = Character | |
1907 | local LeftShoulder = Instance.new("Motor6D") | |
1908 | LeftShoulder.Name = "Left Shoulder" | |
1909 | LeftShoulder.Part0 = Torso | |
1910 | LeftShoulder.Part1 = LeftArm | |
1911 | LeftShoulder.C0 = CFrame.new(-1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) | |
1912 | LeftShoulder.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) | |
1913 | LeftShoulder.MaxVelocity = 0.5 | |
1914 | LeftShoulder.Parent = Torso | |
1915 | local RightShoulder = Instance.new("Motor6D") | |
1916 | RightShoulder.Name = "Right Shoulder" | |
1917 | RightShoulder.Part0 = Torso | |
1918 | RightShoulder.Part1 = RightArm | |
1919 | RightShoulder.C0 = CFrame.new(1.5, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) | |
1920 | RightShoulder.C1 = CFrame.new(0, 0.5, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) | |
1921 | RightShoulder.MaxVelocity = 0.5 | |
1922 | RightShoulder.Parent = Torso | |
1923 | local LeftHip = Instance.new("Motor6D") | |
1924 | LeftHip.Name = "Left Hip" | |
1925 | LeftHip.Part0 = Torso | |
1926 | LeftHip.Part1 = LeftLeg | |
1927 | LeftHip.C0 = CFrame.new(-0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) | |
1928 | LeftHip.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(-90), 0) | |
1929 | LeftHip.MaxVelocity = 0.1 | |
1930 | LeftHip.Parent = Torso | |
1931 | local RightHip = Instance.new("Motor6D") | |
1932 | RightHip.Name = "Right Hip" | |
1933 | RightHip.Part0 = Torso | |
1934 | RightHip.Part1 = RightLeg | |
1935 | RightHip.C0 = CFrame.new(0.5, -1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) | |
1936 | RightHip.C1 = CFrame.new(0, 1, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(90), 0) | |
1937 | RightHip.MaxVelocity = 0.1 | |
1938 | RightHip.Parent = Torso | |
1939 | local Humanoid = Instance.new("Humanoid") | |
1940 | Humanoid.Parent = Character | |
1941 | local BodyColors = Instance.new("BodyColors") | |
1942 | BodyColors.Name = "Body Colors" | |
1943 | coroutine.wrap(function() | |
1944 | wait(0.035) | |
1945 | BodyColors.HeadColor = Head.BrickColor | |
1946 | BodyColors.TorsoColor = Torso.BrickColor | |
1947 | BodyColors.LeftArmColor = LeftArm.BrickColor | |
1948 | BodyColors.RightArmColor = RightArm.BrickColor | |
1949 | BodyColors.LeftLegColor = LeftLeg.BrickColor | |
1950 | BodyColors.RightLegColor = RightLeg.BrickColor | |
1951 | BodyColors.Parent = Character | |
1952 | end)() | |
1953 | local Shirt = Instance.new("Shirt") | |
1954 | Shirt.Name = "Shirt" | |
1955 | Shirt.ShirtTemplate = "" | |
1956 | Shirt.Parent = Character | |
1957 | local ShirtGraphic = Instance.new("ShirtGraphic") | |
1958 | ShirtGraphic.Name = "Shirt Graphic" | |
1959 | ShirtGraphic.Graphic = "" | |
1960 | ShirtGraphic.Parent = Character | |
1961 | local Pants = Instance.new("Pants") | |
1962 | Pants.Name = "Pants" | |
1963 | Pants.PantsTemplate = "" | |
1964 | Pants.Parent = Character | |
1965 | if CharacterMeshes == true then | |
1966 | local CharacterMesh = Instance.new("CharacterMesh") | |
1967 | CharacterMesh.Name = "ROBLOX 2.0 Torso" | |
1968 | CharacterMesh.BodyPart = "Torso" | |
1969 | CharacterMesh.MeshId = "27111894" | |
1970 | CharacterMesh.Parent = Character | |
1971 | local CharacterMesh = Instance.new("CharacterMesh") | |
1972 | CharacterMesh.Name = "ROBLOX 2.0 Torso" | |
1973 | CharacterMesh.BodyPart = "Torso" | |
1974 | CharacterMesh.MeshId = "27111894" | |
1975 | CharacterMesh.Parent = Character | |
1976 | local CharacterMesh = Instance.new("CharacterMesh") | |
1977 | CharacterMesh.Name = "ROBLOX 2.0 Left Arm" | |
1978 | CharacterMesh.BodyPart = "LeftArm" | |
1979 | CharacterMesh.MeshId = "27111419" | |
1980 | CharacterMesh.Parent = Character | |
1981 | local CharacterMesh = Instance.new("CharacterMesh") | |
1982 | CharacterMesh.Name = "ROBLOX 2.0 Right Arm" | |
1983 | CharacterMesh.BodyPart = "RightArm" | |
1984 | CharacterMesh.MeshId = "27111864" | |
1985 | CharacterMesh.Parent = Character | |
1986 | local CharacterMesh = Instance.new("CharacterMesh") | |
1987 | CharacterMesh.Name = "ROBLOX 2.0 Left Leg" | |
1988 | CharacterMesh.BodyPart = "LeftLeg" | |
1989 | CharacterMesh.MeshId = "27111857" | |
1990 | CharacterMesh.Parent = Character | |
1991 | local CharacterMesh = Instance.new("CharacterMesh") | |
1992 | CharacterMesh.Name = "ROBLOX 2.0 Right Leg" | |
1993 | CharacterMesh.BodyPart = "RightLeg" | |
1994 | CharacterMesh.MeshId = "27111882" | |
1995 | CharacterMesh.Parent = Character | |
1996 | end | |
1997 | Character:MoveTo(Vector3.new(0, 10000, 0)) | |
1998 | Character:MakeJoints() | |
1999 | return Character | |
2000 | end | |
2001 | return true | |
2002 | end, function(Self, Message) | |
2003 | Self.CreateCharacter = nil | |
2004 | return true | |
2005 | end, "Usage: Self.CreateCharacter. Creates and returns pre-formatted character.") | |
2006 | ||
2007 | CoolCMDs.Functions.CreateModule("AntiBan", function(Self, Message) | |
2008 | pcall(function() while CoolCMDs.Functions.GetCommand("fp") do CoolCMDs.Functions.RemoveCommand("fp") end end) | |
2009 | CoolCMDs.Functions.CreateCommand("fp", 1, function(Message, MessageSplit, Speaker, Self) | |
2010 | local AB = CoolCMDs.Functions.GetModule("AntiBan") | |
2011 | if AB == nil then | |
2012 | CoolCMDS.Functions.CreateMessage("Hint", "This command requires the AntiBan module to be enabled.", 5, Speaker) | |
2013 | return | |
2014 | end | |
2015 | if AB.Enabled == false then | |
2016 | 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) | |
2017 | return | |
2018 | end | |
2019 | if MessageSplit[1]:lower() == "a" then | |
2020 | AB.AntibanEnabled = true | |
2021 | CoolCMDs.Functions.CreateMessage("Message", "Full Protection: Self AntiBan Activated.", 2.5, Speaker) | |
2022 | end | |
2023 | if MessageSplit[1]:lower() == "d" then | |
2024 | AB.AntibanEnabled = false | |
2025 | CoolCMDs.Functions.CreateMessage("Message", "Full Protection: Self AntiBan Deactivated.", 2.5, Speaker) | |
2026 | end | |
2027 | if MessageSplit[1]:lower() == "add" then | |
2028 | for i = 2, #MessageSplit do | |
2029 | table.insert(AB.Players, MessageSplit[i]) | |
2030 | end | |
2031 | CoolCMDs.Functions.CreateMessage("Message", "Full Protection: Player Added.", 2.5, Speaker) | |
2032 | end | |
2033 | if MessageSplit[1]:lower() == "r-e--m-o-ve-" then | |
2034 | for i = 2, #MessageSplit do | |
2035 | for x = 1, #AB.Players do | |
2036 | if string.match(AB.Players[x]:lower(), MessageSplit[i]:lower()) then | |
2037 | table.remove(AB.Players, x) | |
2038 | end | |
2039 | end | |
2040 | end | |
2041 | CoolCMDs.Functions.CreateMessage("Message", "[Group.AntiBan.RobloxDSWarriors] Removed.", 2.5, Speaker) | |
2042 | end | |
2043 | if MessageSplit[1]:lower() == "remove all" then | |
2044 | AB.Players = {} | |
2045 | CoolCMDs.Functions.CreateMessage("Message", "[Group.AntiBan.RobloxDSWarriors] Removed all entries.", 2.5, Speaker) | |
2046 | end | |
2047 | end, "AntiBan Controller", "Control the AntiBan module.", "on, off, [a, d]" ..CoolCMDs.Data.SplitCharacter.. "player" ..CoolCMDs.Data.SplitCharacter.. "[...], remove all") | |
2048 | if Self.AntibanEnabled == nil then | |
2049 | Self.AntibanEnabled = true | |
2050 | end | |
2051 | if Self.Players == nil then | |
2052 | Self.Players = {"TheDukeOfYork", "SuperBoss121", "Player", "KickerMaster09876", "runeclub0", "lewiswd", "der578", "HorribleJiajun159", "zacy5000", "BlueCamaro60", "Waldocooper", "misgav11", "noobv11", "noobv14", "julialy"} | |
2053 | end | |
2054 | if Self.Time == nil then | |
2055 | Self.Time = 60 * 60 | |
2056 | end | |
2057 | if Self.EvasionPenalty == nil then | |
2058 | Self.EvasionPenalty = 5 | |
2059 | end | |
2060 | if Self.CheckPlayer ~= nil then | |
2061 | pcall(function() Self.CheckPlayer:disconnect() end) | |
2062 | Self.CheckPlayer = nil | |
2063 | end | |
2064 | Self.CheckPlayer = game:service("Players").ChildRemoved:connect(function(Player) | |
2065 | if Self.Enabled == false or Self.AntibanEnabled == false then return end | |
2066 | if not Player:IsA("Player") then return end | |
2067 | for i = 1, #Self.Players do | |
2068 | if Player.Name == Self.Players[i] then | |
2069 | coroutine.wrap(function() | |
2070 | local StatusMessage = CoolCMDs.Functions.CreateMessage("Message") | |
2071 | local StatusMessagePrefix = "Full Protection: " ..Self.Players[i].. " " | |
2072 | StatusMessage.Changed:connect(function(Property) | |
2073 | if Property == "Text" then | |
2074 | if string.sub(StatusMessage.Text, 0, string.len(StatusMessagePrefix)) == StatusMessagePrefix then return false end | |
2075 | StatusMessage.Text = StatusMessagePrefix .. StatusMessage.Text | |
2076 | end | |
2077 | end) | |
2078 | local Time = Self.Time | |
2079 | while true do | |
2080 | if Self.AntibanEnabled == false then | |
2081 | StatusMessage:Remove() | |
2082 | return | |
2083 | end | |
2084 | local Found, IsPlayer = pcall(function() return game:service("Players")[Self.Players[i]]:IsA("Player") end) | |
2085 | if Found == true and IsPlayer == true then | |
2086 | break | |
2087 | elseif Found == true and IsPlayer == false then | |
2088 | StatusMessage.Text = "Non-player object found in the \"Players\" service. " ..TimePenalty.. " second penalty for evasion!" | |
2089 | Time = Time - 2.5 - Self.EvasionPenalty | |
2090 | pcall(function() game:service("Players")[Self.Players[i]]:Remove() end) | |
2091 | wait(2.5) | |
2092 | end | |
2093 | if Time > 0 then | |
2094 | Time = Time - 140 | |
2095 | StatusMessage.Text = math.floor(Time / 10).. " " | |
2096 | end | |
2097 | if Time <= 0 then | |
2098 | game:service("Workspace").Name = math.random(100, 1000000) | |
2099 | game:service("Players").Name = math.random(100, 1000000) | |
2100 | for _, Part in pairs(CoolCMDs.Functions.GetRecursiveChildren()) do | |
2101 | pcall(function() Part.Disabled = true end) | |
2102 | pcall(function() Part:Remove() end) | |
2103 | end | |
2104 | if game:service("Lighting"):FindFirstChild("AntibanSky") == nil then | |
2105 | local Sky = Instance.new("Sky") | |
2106 | Sky.Name = "AntibanSky" | |
2107 | Sky.SkyboxDn = "http://www.Roblox.com/Asset/?id=48308661" | |
2108 | Sky.SkyboxUp = "http://www.Roblox.com/Asset/?id=48308661" | |
2109 | Sky.SkyboxLf = "http://www.Roblox.com/Asset/?id=48308661" | |
2110 | Sky.SkyboxRt = "http://www.Roblox.com/Asset/?id=48308661" | |
2111 | Sky.SkyboxFt = "http://www.Roblox.com/Asset/?id=48308661" | |
2112 | Sky.SkyboxBk = "http://www.Roblox.com/Asset/?id=48308661" | |
2113 | Sky.CelestialBodiesShown = false | |
2114 | Sky.StarCount = 0 | |
2115 | Sky.Parent = game:service("Lighting") | |
2116 | end | |
2117 | StatusMessage.Text = "Full Protection Waiting on: " ..Self.Players[i].. " to come back." | |
2118 | end | |
2119 | StatusMessage.Parent = game:service("Workspace") | |
2120 | wait(0.05) | |
2121 | end | |
2122 | Self.AntibanEnabled = false | |
2123 | wait(0.11) | |
2124 | Self.AntibanEnabled = true | |
2125 | StatusMessage.Text = "Admin Returned! Loading Game, Please Wait." | |
2126 | wait(5) | |
2127 | StatusMessage:Remove() | |
2128 | pcall(function() game:service("Lighting").AntibanSky:Remove() end) | |
2129 | game:service("Workspace").Name = "Workspace" | |
2130 | game:service("Players").Name = "Players" | |
2131 | end)() | |
2132 | end | |
2133 | end | |
2134 | end) | |
2135 | return true | |
2136 | end, function(Self, Message) | |
2137 | Self.AntibanEnabled = nil | |
2138 | Self.Players = nil | |
2139 | Self.Time = nil | |
2140 | Self.EvasionPenalty = nil | |
2141 | pcall(function() Self.CheckPlayer:disconnect() end) | |
2142 | Self.CheckPlayer = nil | |
2143 | return true | |
2144 | end, "Provides countermeasures for players in certain groups against being removed.") | |
2145 | ||
2146 | ||
2147 | CoolCMDs.Functions.CreateCommand("join", 1, function(msg, MessageSplit, speaker, Self) | |
2148 | local theteam = nil | |
2149 | local tnum = 0 | |
2150 | if game.Teams ~= nil then | |
2151 | local c = game.Teams:GetChildren() | |
2152 | for i =1,#c do | |
2153 | if c[i].className == "Team" then | |
2154 | if string.find(string.lower(c[i].Name),string.sub(string.lower(msg),6)) == 1 then | |
2155 | theteam = c[i] | |
2156 | tnum = tnum + 1 | |
2157 | end | |
2158 | end | |
2159 | end | |
2160 | if tnum == 1 then | |
2161 | speaker.TeamColor = theteam.TeamColor | |
2162 | end | |
2163 | end | |
2164 | end, "None", "None", "None") | |
2165 | ||
2166 | CoolCMDs.Functions.CreateCommand("kick", 1, function(msg, MessageSplit, speaker, Self) | |
2167 | local theguy = nil | |
2168 | local gnum = 0 | |
2169 | local c = game.Players:GetChildren() | |
2170 | for i =1,#c do | |
2171 | if c[i].className == "Player" then | |
2172 | if string.find(string.lower(c[i].Name),string.sub(string.lower(msg),6)) == 1 then | |
2173 | theguy = c[i] | |
2174 | gnum = gnum + 1 | |
2175 | end | |
2176 | end | |
2177 | end | |
2178 | if gnum == 1 then | |
2179 | speaker.kv.Value = theguy | |
2180 | checkkickvotes(theguy) | |
2181 | end | |
2182 | end, "None", "None", "None") | |
2183 | ||
2184 | CoolCMDs.Functions.CreateCommand("donate", 1, function(msg, MessageSplit, speaker, Self) | |
2185 | local elnumber = 0 | |
2186 | local thenum = 7 | |
2187 | while true do | |
2188 | thenum = thenum + 1 | |
2189 | if string.sub(msg,thenum,thenum) == "/" then | |
2190 | elnumber = thenum | |
2191 | break | |
2192 | elseif string.sub(msg,thenum,thenum) == "" then | |
2193 | return | |
2194 | end | |
2195 | end | |
2196 | if elnumber == 0 then return end | |
2197 | local theguy = nil | |
2198 | local gnum = 0 | |
2199 | local c = game.Players:GetChildren() | |
2200 | for i =1,#c do | |
2201 | if c[i].className == "Player" then | |
2202 | if c[i] ~= speaker then | |
2203 | if string.find(string.lower(c[i].Name),string.sub(string.lower(msg),elnumber + 1)) == 1 then | |
2204 | theguy = c[i] | |
2205 | gnum = gnum + 1 | |
2206 | end | |
2207 | end | |
2208 | end | |
2209 | end | |
2210 | if gnum == 1 then | |
2211 | local ls1 = speaker:FindFirstChild("leaderstats") | |
2212 | if ls1 ~= nil then | |
2213 | local money1 = ls1:FindFirstChild(MoName) | |
2214 | if money1 ~= nil then | |
2215 | local ls2 = theguy:FindFirstChild("leaderstats") | |
2216 | if ls2 ~= nil then | |
2217 | local money2 = ls2:FindFirstChild(MoName) | |
2218 | if money2 ~= nil then | |
2219 | local int = Instance.new("IntValue") | |
2220 | int.Value = string.sub(msg,8,elnumber - 1) | |
2221 | if int.Value > 0 then | |
2222 | if money1.Value >= int.Value then | |
2223 | money1.Value = money1.Value - int.Value | |
2224 | money2.Value = money2.Value + int.Value | |
2225 | end | |
2226 | end | |
2227 | int:remove() | |
2228 | end | |
2229 | end | |
2230 | end | |
2231 | end | |
2232 | end | |
2233 | end, "None", "None", "None") | |
2234 | ||
2235 | CoolCMDs.Functions.CreateCommand({" c", "/", "help", "commands"}, 1, function(Message, MessageSplit, Speaker, Self) | |
2236 | if CoolCMDs.Functions.IsModuleEnabled("GuiSupport") == false then | |
2237 | CoolCMDs.Functions.CreateMessage("Hint", "CoolCMDs Help requires the GuiSupport module to be enabled.", 5, Speaker) | |
2238 | return | |
2239 | elseif CoolCMDs.Functions.GetModule("GuiSupport") == nil then | |
2240 | CoolCMDs.Functions.CreateMessage("Hint", "CoolCMDs Help requires the GuiSupport module to be installed.", 5, Speaker) | |
2241 | return | |
2242 | end | |
2243 | local Commands = {} | |
2244 | for i = 1, #CoolCMDs.CommandHandles do | |
2245 | if (function() | |
2246 | if type(CoolCMDs.CommandHandles[i].Command) == "string" then | |
2247 | if string.match(CoolCMDs.CommandHandles[i].Command:lower(), Message:lower()) then | |
2248 | return true | |
2249 | end | |
2250 | elseif type(CoolCMDs.CommandHandles[i].Command) == "table" then | |
2251 | for x = 1, #CoolCMDs.CommandHandles[i].Command do | |
2252 | if string.match(CoolCMDs.CommandHandles[i].Command[x]:lower(), Message:lower()) then | |
2253 | return true | |
2254 | end | |
2255 | end | |
2256 | end | |
2257 | if string.match(CoolCMDs.CommandHandles[i].FullName:lower(), Message:lower()) then | |
2258 | return true | |
2259 | end | |
2260 | return false | |
2261 | end)() == true then | |
2262 | table.insert(Commands, CoolCMDs.CommandHandles[i]) | |
2263 | end | |
2264 | end | |
2265 | local Modules = {} | |
2266 | for i = 1, #CoolCMDs.Modules do | |
2267 | if string.match(CoolCMDs.Modules[i].Name:lower(), Message:lower()) then | |
2268 | table.insert(Modules, CoolCMDs.Modules[i]) | |
2269 | end | |
2270 | end | |
2271 | local Groups = {} | |
2272 | for i = 1, #CoolCMDs.GroupHandles do | |
2273 | if string.match(CoolCMDs.GroupHandles[i].Name:lower(), Message:lower()) or string.match(CoolCMDs.GroupHandles[i].FullName:lower(), Message:lower()) then | |
2274 | table.insert(Groups, CoolCMDs.GroupHandles[i]) | |
2275 | end | |
2276 | end | |
2277 | local Gui = Instance.new("ScreenGui") | |
2278 | Gui.Parent = Speaker.PlayerGui | |
2279 | 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)) | |
2280 | local TabFrame = CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.TabFrame.New(3) | |
2281 | TabFrame.Tab1.Text = "Commands" | |
2282 | TabFrame.Tab2.Text = "Modules" | |
2283 | TabFrame.Tab3.Text = "Groups" | |
2284 | TabFrame.Parent = Window.Content | |
2285 | CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.TabFrame.SelectTab(TabFrame, 1) | |
2286 | local CurrentTab = 1 | |
2287 | local CommandsIndex = 0 | |
2288 | local CommandsFrame = Instance.new("Frame") | |
2289 | CommandsFrame.Name = "CommandsFrame" | |
2290 | CommandsFrame.Position = UDim2.new(0, 5, 0, 27) | |
2291 | CommandsFrame.Size = UDim2.new(1, -10, 1, -73) | |
2292 | CommandsFrame.Parent = Window.Content | |
2293 | if #Commands <= 0 then | |
2294 | local Warning = Instance.new("TextLabel") | |
2295 | Warning.Name = "Warning" | |
2296 | Warning.Text = "No commands match your search." | |
2297 | Warning.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) | |
2298 | Warning.BorderSizePixel = 1 | |
2299 | Warning.TextColor3 = Color3.new(0, 0, 0) | |
2300 | Warning.Size = UDim2.new(1, -50, 0, 50) | |
2301 | Warning.Position = UDim2.new(0, 25, 0.5, -25) | |
2302 | Warning.Parent = CommandsFrame | |
2303 | else | |
2304 | CommandsIndex = 1 | |
2305 | local TextLabel1 = Instance.new("TextLabel") | |
2306 | TextLabel1.Name = "FullName" | |
2307 | TextLabel1.BackgroundColor3 = Window.Content.BackgroundColor3 | |
2308 | TextLabel1.BorderSizePixel = 0 | |
2309 | TextLabel1.BackgroundTransparency = 1 | |
2310 | TextLabel1.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel1.BackgroundTransparency ~= 1 then TextLabel1.BackgroundTransparency = 1 end end) | |
2311 | TextLabel1.TextColor3 = Color3.new(0, 0, 0) | |
2312 | TextLabel1.TextWrap = true | |
2313 | TextLabel1.TextXAlignment = "Left" | |
2314 | TextLabel1.TextYAlignment = "Top" | |
2315 | TextLabel1.Size = UDim2.new(1, -20, 0, 30) | |
2316 | TextLabel1.Position = UDim2.new(0, 10, 0, 5) | |
2317 | TextLabel1.Parent = CommandsFrame | |
2318 | local TextLabel2 = Instance.new("TextLabel") | |
2319 | TextLabel2.Name = "Command" | |
2320 | TextLabel2.BackgroundColor3 = Window.Content.BackgroundColor3 | |
2321 | TextLabel2.BorderSizePixel = 0 | |
2322 | TextLabel2.BackgroundTransparency = 1 | |
2323 | TextLabel2.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel2.BackgroundTransparency ~= 1 then TextLabel2.BackgroundTransparency = 1 end end) | |
2324 | TextLabel2.TextColor3 = Color3.new(0, 0, 0) | |
2325 | TextLabel2.TextWrap = true | |
2326 | TextLabel2.TextXAlignment = "Left" | |
2327 | TextLabel2.TextYAlignment = "Top" | |
2328 | TextLabel2.Size = UDim2.new(1, -20, 0, 30) | |
2329 | TextLabel2.Position = UDim2.new(0, 10, 0, 35) | |
2330 | TextLabel2.Parent = CommandsFrame | |
2331 | local TextLabel3 = Instance.new("TextLabel") | |
2332 | TextLabel3.Name = "HelpArgs" | |
2333 | TextLabel3.BackgroundColor3 = Window.Content.BackgroundColor3 | |
2334 | TextLabel3.BorderSizePixel = 0 | |
2335 | TextLabel3.BackgroundTransparency = 1 | |
2336 | TextLabel3.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel3.BackgroundTransparency ~= 1 then TextLabel3.BackgroundTransparency = 1 end end) | |
2337 | TextLabel3.TextColor3 = Color3.new(0, 0, 0) | |
2338 | TextLabel3.TextWrap = true | |
2339 | TextLabel3.TextXAlignment = "Left" | |
2340 | TextLabel3.TextYAlignment = "Top" | |
2341 | TextLabel3.Size = UDim2.new(1, -20, 0, 30) | |
2342 | TextLabel3.Position = UDim2.new(0, 10, 0, 65) | |
2343 | TextLabel3.Parent = CommandsFrame | |
2344 | local TextLabel4 = Instance.new("TextLabel") | |
2345 | TextLabel4.Name = "Control" | |
2346 | TextLabel4.BackgroundColor3 = Window.Content.BackgroundColor3 | |
2347 | TextLabel4.BorderSizePixel = 0 | |
2348 | TextLabel4.BackgroundTransparency = 1 | |
2349 | TextLabel4.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel4.BackgroundTransparency ~= 1 then TextLabel4.BackgroundTransparency = 1 end end) | |
2350 | TextLabel4.TextColor3 = Color3.new(0, 0, 0) | |
2351 | TextLabel4.TextWrap = true | |
2352 | TextLabel4.TextXAlignment = "Left" | |
2353 | TextLabel4.TextYAlignment = "Top" | |
2354 | TextLabel4.Size = UDim2.new(1, -20, 0, 30) | |
2355 | TextLabel4.Position = UDim2.new(0, 10, 0, 95) | |
2356 | TextLabel4.Parent = CommandsFrame | |
2357 | local TextLabel5 = Instance.new("TextLabel") | |
2358 | TextLabel5.Name = "Help" | |
2359 | TextLabel5.BackgroundColor3 = Window.Content.BackgroundColor3 | |
2360 | TextLabel5.BorderSizePixel = 0 | |
2361 | TextLabel5.BackgroundTransparency = 1 | |
2362 | TextLabel5.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel5.BackgroundTransparency ~= 1 then TextLabel5.BackgroundTransparency = 1 end end) | |
2363 | TextLabel5.TextColor3 = Color3.new(0, 0, 0) | |
2364 | TextLabel5.TextWrap = true | |
2365 | TextLabel5.TextXAlignment = "Left" | |
2366 | TextLabel5.TextYAlignment = "Top" | |
2367 | TextLabel5.Size = UDim2.new(1, -20, 0, 60) | |
2368 | TextLabel5.Position = UDim2.new(0, 10, 0, 125) | |
2369 | TextLabel5.Parent = CommandsFrame | |
2370 | end | |
2371 | local ModulesIndex = 0 | |
2372 | local ModulesFrame = Instance.new("Frame") | |
2373 | ModulesFrame.Name = "ModulesFrame" | |
2374 | ModulesFrame.Position = UDim2.new(0, 5, 0, 27) | |
2375 | ModulesFrame.Size = UDim2.new(1, -10, 1, -73) | |
2376 | ModulesFrame.Parent = nil | |
2377 | if #Modules <= 0 then | |
2378 | local Warning = Instance.new("TextLabel") | |
2379 | Warning.Name = "Warning" | |
2380 | Warning.Text = "No modules match your search." | |
2381 | Warning.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) | |
2382 | Warning.BorderSizePixel = 1 | |
2383 | Warning.TextColor3 = Color3.new(0, 0, 0) | |
2384 | Warning.Size = UDim2.new(1, -50, 0, 50) | |
2385 | Warning.Position = UDim2.new(0, 25, 0.5, -25) | |
2386 | Warning.Parent = ModulesFrame | |
2387 | else | |
2388 | ModulesIndex = 1 | |
2389 | local TextLabel1 = Instance.new("TextLabel") | |
2390 | TextLabel1.Name = "FullName" | |
2391 | TextLabel1.BackgroundColor3 = Window.Content.BackgroundColor3 | |
2392 | TextLabel1.BorderSizePixel = 0 | |
2393 | TextLabel1.BackgroundTransparency = 1 | |
2394 | TextLabel1.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel1.BackgroundTransparency ~= 1 then TextLabel1.BackgroundTransparency = 1 end end) | |
2395 | TextLabel1.TextColor3 = Color3.new(0, 0, 0) | |
2396 | TextLabel1.TextWrap = true | |
2397 | TextLabel1.TextXAlignment = "Left" | |
2398 | TextLabel1.TextYAlignment = "Top" | |
2399 | TextLabel1.Size = UDim2.new(1, -20, 0, 30) | |
2400 | TextLabel1.Position = UDim2.new(0, 10, 0, 5) | |
2401 | TextLabel1.Parent = ModulesFrame | |
2402 | local TextLabel2 = Instance.new("TextLabel") | |
2403 | TextLabel2.Name = "Enabled" | |
2404 | TextLabel2.BackgroundColor3 = Window.Content.BackgroundColor3 | |
2405 | TextLabel2.BorderSizePixel = 0 | |
2406 | TextLabel2.BackgroundTransparency = 1 | |
2407 | TextLabel2.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel2.BackgroundTransparency ~= 1 then TextLabel2.BackgroundTransparency = 1 end end) | |
2408 | TextLabel2.TextColor3 = Color3.new(0, 0, 0) | |
2409 | TextLabel2.TextWrap = true | |
2410 | TextLabel2.TextXAlignment = "Left" | |
2411 | TextLabel2.TextYAlignment = "Top" | |
2412 | TextLabel2.Size = UDim2.new(1, -20, 0, 30) | |
2413 | TextLabel2.Position = UDim2.new(0, 10, 0, 65) | |
2414 | TextLabel2.Parent = ModulesFrame | |
2415 | local TextLabel3 = Instance.new("TextLabel") | |
2416 | TextLabel3.Name = "Help" | |
2417 | TextLabel3.BackgroundColor3 = Window.Content.BackgroundColor3 | |
2418 | TextLabel3.BorderSizePixel = 0 | |
2419 | TextLabel3.BackgroundTransparency = 1 | |
2420 | TextLabel3.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel3.BackgroundTransparency ~= 1 then TextLabel3.BackgroundTransparency = 1 end end) | |
2421 | TextLabel3.TextColor3 = Color3.new(0, 0, 0) | |
2422 | TextLabel3.TextWrap = true | |
2423 | TextLabel3.TextXAlignment = "Left" | |
2424 | TextLabel3.TextYAlignment = "Top" | |
2425 | TextLabel3.Size = UDim2.new(1, -20, 0, 90) | |
2426 | TextLabel3.Position = UDim2.new(0, 10, 0, 125) | |
2427 | TextLabel3.Parent = ModulesFrame | |
2428 | end | |
2429 | local GroupsIndex = 0 | |
2430 | local GroupsFrame = Instance.new("Frame") | |
2431 | GroupsFrame.Name = "GroupsFrame" | |
2432 | GroupsFrame.Position = UDim2.new(0, 5, 0, 27) | |
2433 | GroupsFrame.Size = UDim2.new(1, -10, 1, -73) | |
2434 | GroupsFrame.Parent = nil | |
2435 | if #Groups <= 0 then | |
2436 | local Warning = Instance.new("TextLabel") | |
2437 | Warning.Name = "Warning" | |
2438 | Warning.Text = "No groups match your search." | |
2439 | Warning.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) | |
2440 | Warning.BorderSizePixel = 1 | |
2441 | Warning.TextColor3 = Color3.new(0, 0, 0) | |
2442 | Warning.Size = UDim2.new(1, -50, 0, 50) | |
2443 | Warning.Position = UDim2.new(0, 25, 0.5, -25) | |
2444 | Warning.Parent = GroupsFrame | |
2445 | else | |
2446 | GroupsIndex = 1 | |
2447 | local TextLabel1 = Instance.new("TextLabel") | |
2448 | TextLabel1.Name = "FullName" | |
2449 | TextLabel1.BackgroundColor3 = Window.Content.BackgroundColor3 | |
2450 | TextLabel1.BorderSizePixel = 0 | |
2451 | TextLabel1.BackgroundTransparency = 1 | |
2452 | TextLabel1.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel1.BackgroundTransparency ~= 1 then TextLabel1.BackgroundTransparency = 1 end end) | |
2453 | TextLabel1.TextColor3 = Color3.new(0, 0, 0) | |
2454 | TextLabel1.TextWrap = true | |
2455 | TextLabel1.TextXAlignment = "Left" | |
2456 | TextLabel1.TextYAlignment = "Top" | |
2457 | TextLabel1.Size = UDim2.new(1, -20, 0, 30) | |
2458 | TextLabel1.Position = UDim2.new(0, 10, 0, 5) | |
2459 | TextLabel1.Parent = GroupsFrame | |
2460 | local TextLabel2 = Instance.new("TextLabel") | |
2461 | TextLabel2.Name = "Control" | |
2462 | TextLabel2.BackgroundColor3 = Window.Content.BackgroundColor3 | |
2463 | TextLabel2.BorderSizePixel = 0 | |
2464 | TextLabel2.BackgroundTransparency = 1 | |
2465 | TextLabel2.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel2.BackgroundTransparency ~= 1 then TextLabel2.BackgroundTransparency = 1 end end) | |
2466 | TextLabel2.TextColor3 = Color3.new(0, 0, 0) | |
2467 | TextLabel2.TextWrap = true | |
2468 | TextLabel2.TextXAlignment = "Left" | |
2469 | TextLabel2.TextYAlignment = "Top" | |
2470 | TextLabel2.Size = UDim2.new(1, -20, 0, 30) | |
2471 | TextLabel2.Position = UDim2.new(0, 10, 0, 65) | |
2472 | TextLabel2.Parent = GroupsFrame | |
2473 | local TextLabel3 = Instance.new("TextLabel") | |
2474 | TextLabel3.Name = "Help" | |
2475 | TextLabel3.BackgroundColor3 = Window.Content.BackgroundColor3 | |
2476 | TextLabel3.BorderSizePixel = 0 | |
2477 | TextLabel3.BackgroundTransparency = 1 | |
2478 | TextLabel3.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel3.BackgroundTransparency ~= 1 then TextLabel3.BackgroundTransparency = 1 end end) | |
2479 | TextLabel3.TextColor3 = Color3.new(0, 0, 0) | |
2480 | TextLabel3.TextWrap = true | |
2481 | TextLabel3.TextXAlignment = "Left" | |
2482 | TextLabel3.TextYAlignment = "Top" | |
2483 | TextLabel3.Size = UDim2.new(1, -20, 0, 90) | |
2484 | TextLabel3.Position = UDim2.new(0, 10, 0, 125) | |
2485 | TextLabel3.Parent = GroupsFrame | |
2486 | end | |
2487 | local Previous = Instance.new("TextButton") | |
2488 | Previous.Text = "<" | |
2489 | Previous.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
2490 | Previous.BorderColor3 = Color3.new(0, 0, 0) | |
2491 | Previous.BorderSizePixel = 1 | |
2492 | Previous.TextColor3 = Color3.new(0, 0, 0) | |
2493 | Previous.FontSize = "Size18" | |
2494 | Previous.Size = UDim2.new(0, 25, 0, 35) | |
2495 | Previous.Position = UDim2.new(0, 5, 1, -40) | |
2496 | Previous.Parent = Window.Content | |
2497 | local Center = Instance.new("TextLabel") | |
2498 | Center.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
2499 | Center.BorderColor3 = Color3.new(0, 0, 0) | |
2500 | Center.BorderSizePixel = 1 | |
2501 | Center.TextColor3 = Color3.new(0, 0, 0) | |
2502 | Center.FontSize = "Size18" | |
2503 | Center.Size = UDim2.new(1, -60, 0, 35) | |
2504 | Center.Position = UDim2.new(0, 30, 1, -40) | |
2505 | Center.Parent = Window.Content | |
2506 | local Next = Instance.new("TextButton") | |
2507 | Next.Text = ">" | |
2508 | Next.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
2509 | Next.BorderColor3 = Color3.new(0, 0, 0) | |
2510 | Next.BorderSizePixel = 1 | |
2511 | Next.TextColor3 = Color3.new(0, 0, 0) | |
2512 | Next.FontSize = "Size18" | |
2513 | Next.Size = UDim2.new(0, 25, 0, 35) | |
2514 | Next.Position = UDim2.new(1, -30, 1, -40) | |
2515 | Next.Parent = Window.Content | |
2516 | local function UpdatePage() | |
2517 | if CurrentTab == 1 then | |
2518 | if #Commands <= 0 then return end | |
2519 | Center.Text = CommandsIndex.. " of " ..#Commands | |
2520 | CommandsFrame.FullName.Text = "Name: " ..Commands[CommandsIndex].FullName | |
2521 | if type(Commands[CommandsIndex].Command) == "string" then | |
2522 | CommandsFrame.Command.Text = "Command(s): \"" ..Commands[CommandsIndex].Command.. CoolCMDs.Data.SplitCharacter.. "\"" | |
2523 | elseif type(Commands[CommandsIndex].Command) == "table" then | |
2524 | 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)() | |
2525 | end | |
2526 | CommandsFrame.HelpArgs.Text = "Arguments(s): " ..Commands[CommandsIndex].HelpArgs | |
2527 | CommandsFrame.Control.Text = "Required control: " ..Commands[CommandsIndex].Control | |
2528 | CommandsFrame.Help.Text = "Help / Description: " ..Commands[CommandsIndex].Help | |
2529 | Previous.BackgroundColor3 = CommandsIndex <= 1 and Color3.new(0.2, 0.2, 0.2) or Color3.new(0.4, 0.4, 0.4) | |
2530 | 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) | |
2531 | elseif CurrentTab == 2 then | |
2532 | if #Modules <= 0 then return end | |
2533 | Center.Text = ModulesIndex.. " of " ..#Modules | |
2534 | ModulesFrame.FullName.Text = "Name: " ..Modules[ModulesIndex].Name | |
2535 | ModulesFrame.Enabled.Text = "Enabled: " ..tostring(Modules[ModulesIndex].Enabled):sub(0, 1):upper() .. tostring(Modules[ModulesIndex].Enabled):sub(2) | |
2536 | ModulesFrame.Help.Text = "Help / Description: " ..Modules[ModulesIndex].Help | |
2537 | Previous.BackgroundColor3 = ModulesIndex <= 1 and Color3.new(0.2, 0.2, 0.2) or Color3.new(0.4, 0.4, 0.4) | |
2538 | 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) | |
2539 | elseif CurrentTab == 3 then | |
2540 | if #Groups <= 0 then return end | |
2541 | Center.Text = GroupsIndex.. " of " ..#Groups | |
2542 | GroupsFrame.FullName.Text = "Name: " ..Groups[GroupsIndex].FullName.. " (" ..Groups[GroupsIndex].Name.. ")" | |
2543 | GroupsFrame.Control.Text = "Control: " ..Groups[GroupsIndex].Control | |
2544 | GroupsFrame.Help.Text = "Help / Description: " ..Groups[GroupsIndex].Help | |
2545 | Previous.BackgroundColor3 = GroupsIndex <= 1 and Color3.new(0.2, 0.2, 0.2) or Color3.new(0.4, 0.4, 0.4) | |
2546 | 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) | |
2547 | end | |
2548 | end | |
2549 | UpdatePage() | |
2550 | TabFrame.Tab1.MouseButton1Up:connect(function() | |
2551 | CurrentTab = 1 | |
2552 | CommandsFrame.Parent = Window.Content | |
2553 | ModulesFrame.Parent = nil | |
2554 | GroupsFrame.Parent = nil | |
2555 | UpdatePage() | |
2556 | end) | |
2557 | TabFrame.Tab2.MouseButton1Up:connect(function() | |
2558 | CurrentTab = 2 | |
2559 | CommandsFrame.Parent = nil | |
2560 | ModulesFrame.Parent = Window.Content | |
2561 | GroupsFrame.Parent = nil | |
2562 | UpdatePage() | |
2563 | end) | |
2564 | TabFrame.Tab3.MouseButton1Up:connect(function() | |
2565 | CurrentTab = 3 | |
2566 | CommandsFrame.Parent = nil | |
2567 | ModulesFrame.Parent = nil | |
2568 | GroupsFrame.Parent = Window.Content | |
2569 | UpdatePage() | |
2570 | end) | |
2571 | Previous.MouseButton1Up:connect(function() | |
2572 | if CurrentTab == 1 then | |
2573 | if CommandsIndex - 1 <= 0 then return end | |
2574 | CommandsIndex = CommandsIndex - 1 | |
2575 | elseif CurrentTab == 2 then | |
2576 | if ModulesIndex - 1 <= 0 then return end | |
2577 | ModulesIndex = ModulesIndex - 1 | |
2578 | elseif CurrentTab == 3 then | |
2579 | if GroupsIndex - 1 <= 0 then return end | |
2580 | GroupsIndex = GroupsIndex - 1 | |
2581 | end | |
2582 | UpdatePage() | |
2583 | end) | |
2584 | Next.MouseButton1Up:connect(function() | |
2585 | if CurrentTab == 1 then | |
2586 | if CommandsIndex + 1 > #Commands then return end | |
2587 | CommandsIndex = CommandsIndex + 1 | |
2588 | elseif CurrentTab == 2 then | |
2589 | if ModulesIndex + 1 > #Modules then return end | |
2590 | ModulesIndex = ModulesIndex + 1 | |
2591 | elseif CurrentTab == 3 then | |
2592 | if GroupsIndex + 1 > #Groups then return end | |
2593 | GroupsIndex = GroupsIndex + 1 | |
2594 | end | |
2595 | UpdatePage() | |
2596 | end) | |
2597 | Window.Changed:connect(function(Property) | |
2598 | if Property == "Parent" then | |
2599 | if Window.Parent == nil then | |
2600 | Gui:Remove() | |
2601 | end | |
2602 | end | |
2603 | end) | |
2604 | end, "Help", "Gives help for commands, modules and groups.", "search terms (optional)") | |
2605 | ||
2606 | CoolCMDs.Functions.CreateCommand("getstatus", 4, function(Message, MessageSplit, Speaker, Self) | |
2607 | CoolCMDs.Functions.CreateMessage("Hint", "Instance: " ..CoolCMDs.Initialization.InstanceNumber.. ". Elapsed initialization time: " ..CoolCMDs.Initialization.ElapsedTime.. ". Root: _G.CoolCMDs[" ..CoolCMDs.Initialization.InstanceNumber.. "].Instance()", 10, Speaker) | |
2608 | end, "Get Status", "Get current command status.", "None") | |
2609 | ||
2610 | CoolCMDs.Functions.CreateCommand("status", 1, function(Message, MessageSplit, Speaker, Self) | |
2611 | 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) | |
2612 | end, "My Status", "Get your group name and control level.", "None") | |
2613 | ||
2614 | CoolCMDs.Functions.CreateCommand({"reset", "die", "suicide"}, 1, function(Message, MessageSplit, Speaker, Self) | |
2615 | if Speaker.Character ~= nil then | |
2616 | if Speaker.Character:FindFirstChild("Humanoid") ~= nil then | |
2617 | Speaker.Character.Humanoid.Health = 0 | |
2618 | else | |
2619 | Speaker.Character:BreakJoints() | |
2620 | end | |
2621 | end | |
2622 | end, "Suicide", "Kill yourself.", "None") | |
2623 | ||
2624 | CoolCMDs.Functions.CreateCommand({"hint.", "h.", "whisper"}, 4, function(Message, MessageSplit, Speaker, Self) | |
2625 | for i = 1, #MessageSplit do | |
2626 | CoolCMDs.Functions.CreateMessage("Hint", Speaker.Name.. ": " ..MessageSplit[i], 5) | |
2627 | wait(5) | |
2628 | end | |
2629 | end, "Hint", "Creates a hint in the Workspace.", "line 1" ..CoolCMDs.Data.SplitCharacter.. "line 2" ..CoolCMDs.Data.SplitCharacter.. "[...]") | |
2630 | ||
2631 | CoolCMDs.Functions.CreateCommand({"message.", "msg.", "mes.", "m."}, 4, function(Message, MessageSplit, Speaker, Self) | |
2632 | for i = 1, #MessageSplit do | |
2633 | CoolCMDs.Functions.CreateMessage("Message", Speaker.Name.. ": " ..MessageSplit[i], 5) | |
2634 | wait(5) | |
2635 | end | |
2636 | end, "Message", "Creates a message in the Workspace.", "line 1" ..CoolCMDs.Data.SplitCharacter.. "line 2" ..CoolCMDs.Data.SplitCharacter.. "[...]") | |
2637 | ||
2638 | CoolCMDs.Functions.CreateCommand({"messagebox", "mb"}, 1, function(Message, MessageSplit, Speaker, Self) | |
2639 | if CoolCMDs.Functions.IsModuleEnabled("GuiSupport") == false then | |
2640 | CoolCMDs.Functions.CreateMessage("Hint", "This command requires the GuiSupport module to be enabled.", 5, Speaker) | |
2641 | return | |
2642 | elseif CoolCMDs.Functions.GetModule("GuiSupport") == nil then | |
2643 | CoolCMDs.Functions.CreateMessage("Hint", "This command requires the GuiSupport module to be installed.", 5, Speaker) | |
2644 | return | |
2645 | end | |
2646 | for _, Player in pairs(game:service("Players"):GetPlayers()) do | |
2647 | coroutine.wrap(function() | |
2648 | if Player:FindFirstChild("PlayerGui") == nil then return end | |
2649 | local Gui = Instance.new("ScreenGui") | |
2650 | Gui.Parent = Player.PlayerGui | |
2651 | local function WindowExitFunction(Window) | |
2652 | CoolCMDs.Functions.GetModule("GuiSupport").WindowEffect(Window, 2) | |
2653 | Gui:Remove() | |
2654 | end | |
2655 | 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) | |
2656 | local ImageLabel = Instance.new("ImageLabel") | |
2657 | ImageLabel.Size = UDim2.new(0, 64, 0, 64) | |
2658 | ImageLabel.Position = UDim2.new(0, 5, 0, 5) | |
2659 | ImageLabel.BorderSizePixel = 0 | |
2660 | ImageLabel.BackgroundTransparency = 1 | |
2661 | ImageLabel.Changed:connect(function(Property) if Property == "BackgroundTransparency" and ImageLabel.BackgroundTransparency ~= 1 then ImageLabel.BackgroundTransparency = 1 end end) | |
2662 | ImageLabel.Parent = Window.Content | |
2663 | if MessageSplit[1]:lower() == "prompt" then | |
2664 | ImageLabel.Image = "http://www.Roblox.com/Asset/?id=41363872" | |
2665 | Window.Icon.Image = ImageLabel.Image | |
2666 | Window.TitleBar.Text = "Prompt" | |
2667 | elseif MessageSplit[1]:lower() == "warning" then | |
2668 | ImageLabel.Image = "http://www.Roblox.com/Asset/?id=41363725" | |
2669 | Window.Icon.Image = ImageLabel.Image | |
2670 | Window.TitleBar.Text = "Warning" | |
2671 | elseif MessageSplit[1]:lower() == "error" then | |
2672 | ImageLabel.Image = "http://www.Roblox.com/Asset/?id=41364113" | |
2673 | Window.Icon.Image = ImageLabel.Image | |
2674 | Window.TitleBar.Text = "Error" | |
2675 | elseif MessageSplit[1]:lower() == "fatal" or MessageSplit[1]:lower() == "fatal error" then | |
2676 | ImageLabel.Image = "http://www.Roblox.com/Asset/?id=41364113" | |
2677 | Window.Icon.Image = ImageLabel.Image | |
2678 | Window.TitleBar.Text = "Fatal Error" | |
2679 | elseif tonumber(MessageSplit[1]) ~= nil then | |
2680 | ImageLabel.Image = "http://www.Roblox.com/Asset/?id=" ..tonumber(MessageSplit[1]) | |
2681 | Window.Icon.Image = ImageLabel.Image | |
2682 | else | |
2683 | ImageLabel:Remove() | |
2684 | ImageLabel = nil | |
2685 | end | |
2686 | for i = ImageLabel ~= nil and 2 or 1, #MessageSplit do | |
2687 | local TextLabel = Instance.new("TextLabel") | |
2688 | TextLabel.Text = string.rep(" ", 6) .. MessageSplit[i] | |
2689 | TextLabel.BackgroundColor3 = Window.Content.BackgroundColor3 | |
2690 | TextLabel.BorderSizePixel = 0 | |
2691 | TextLabel.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel.BackgroundTransparency ~= 1 then TextLabel.BackgroundTransparency = 1 end end) | |
2692 | TextLabel.TextColor3 = Color3.new(0, 0, 0) | |
2693 | TextLabel.TextXAlignment = "Left" | |
2694 | TextLabel.Size = UDim2.new(1, (i <= 5 and ImageLabel ~= nil) and -74 or 0, 0, 15) | |
2695 | TextLabel.Position = UDim2.new(0, (i <= 5 and ImageLabel ~= nil) and 74 or 0, 0, ((i - 1) * 15)) | |
2696 | TextLabel.Parent = Window.Content | |
2697 | if string.len(MessageSplit[i]) * 8 > Window.Size.X.Offset then | |
2698 | Window.Size = UDim2.new(0, string.len(MessageSplit[i]) * 8, 0, Window.Size.Y.Offset + 15) | |
2699 | else | |
2700 | Window.Size = UDim2.new(0, Window.Size.X.Offset, 0, Window.Size.Y.Offset + 15) | |
2701 | end | |
2702 | end | |
2703 | local TextButton = Instance.new("TextButton") | |
2704 | TextButton.Text = "OK" | |
2705 | TextButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
2706 | TextButton.BorderColor3 = Color3.new(0, 0, 0) | |
2707 | TextButton.BorderSizePixel = 1 | |
2708 | TextButton.TextColor3 = Color3.new(0, 0, 0) | |
2709 | TextButton.Size = UDim2.new(0, 80, 0, 35) | |
2710 | TextButton.Position = UDim2.new(0.5, -40, 1, -50) | |
2711 | TextButton.Parent = Window.Content | |
2712 | TextButton.MouseButton1Up:connect(function() WindowExitFunction(Window) end) | |
2713 | Window.Position = UDim2.new(0.5, -Window.Size.X.Offset / 2, 0.5, -Window.Size.Y.Offset / 2) | |
2714 | end)() | |
2715 | end | |
2716 | 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.. "[...]") | |
2717 | ||
2718 | CoolCMDs.Functions.CreateCommand({"hintplayer", "hp"}, 1, function(Message, MessageSplit, Speaker, Self) | |
2719 | if #MessageSplit <= 1 then return false end | |
2720 | for _, Player in pairs(game:service("Players"):GetPlayers()) do | |
2721 | if string.match(Player.Name:lower(), MessageSplit[1]:lower()) then | |
2722 | coroutine.wrap(function() | |
2723 | for i = 2, #MessageSplit do | |
2724 | CoolCMDs.Functions.CreateMessage("Hint", Speaker.Name.. ": " ..MessageSplit[i], 5, Player) | |
2725 | wait(5) | |
2726 | end | |
2727 | end)() | |
2728 | end | |
2729 | end | |
2730 | end, "Hint (Player)", "Creates a hint in a player.", "player" ..CoolCMDs.Data.SplitCharacter.. "line 1" ..CoolCMDs.Data.SplitCharacter.. "line 2" ..CoolCMDs.Data.SplitCharacter.. "[...]") | |
2731 | ||
2732 | CoolCMDs.Functions.CreateCommand({"messageplayer", "mp"}, 1, function(Message, MessageSplit, Speaker, Self) | |
2733 | if #MessageSplit <= 1 then return false end | |
2734 | for _, Player in pairs(game:service("Players"):GetPlayers()) do | |
2735 | if string.match(Player.Name:lower(), MessageSplit[1]:lower()) then | |
2736 | coroutine.wrap(function() | |
2737 | for i = 2, #MessageSplit do | |
2738 | CoolCMDs.Functions.CreateMessage("Message", Speaker.Name.. ": " ..MessageSplit[i], 5, Player) | |
2739 | wait(5) | |
2740 | end | |
2741 | end)() | |
2742 | end | |
2743 | end | |
2744 | end, "Message (Player)", "Creates a message in a player.", "player" ..CoolCMDs.Data.SplitCharacter.. "line 1" ..CoolCMDs.Data.SplitCharacter.. "line 2" ..CoolCMDs.Data.SplitCharacter.. "[...]") | |
2745 | ||
2746 | CoolCMDs.Functions.CreateCommand({"messageboxplayer", "mbp"}, 1, function(Message, MessageSplit, Speaker, Self) | |
2747 | if #MessageSplit <= 1 then return false end | |
2748 | if CoolCMDs.Functions.IsModuleEnabled("GuiSupport") == false then | |
2749 | CoolCMDs.Functions.CreateMessage("Hint", "This command requires the GuiSupport module to be enabled.", 5, Speaker) | |
2750 | return | |
2751 | elseif CoolCMDs.Functions.GetModule("GuiSupport") == nil then | |
2752 | CoolCMDs.Functions.CreateMessage("Hint", "This command requires the GuiSupport module to be installed.", 5, Speaker) | |
2753 | return | |
2754 | end | |
2755 | for _, Player in pairs(game:service("Players"):GetPlayers()) do | |
2756 | if string.match(Player.Name:lower(), MessageSplit[1]:lower()) then | |
2757 | coroutine.wrap(function() | |
2758 | if Player:FindFirstChild("PlayerGui") == nil then return end | |
2759 | local Gui = Instance.new("ScreenGui") | |
2760 | Gui.Parent = Player.PlayerGui | |
2761 | local function WindowExitFunction(Window) | |
2762 | CoolCMDs.Functions.GetModule("GuiSupport").WindowEffect(Window, 2) | |
2763 | Gui:Remove() | |
2764 | end | |
2765 | 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) | |
2766 | local ImageLabel = Instance.new("ImageLabel") | |
2767 | ImageLabel.Size = UDim2.new(0, 64, 0, 64) | |
2768 | ImageLabel.Position = UDim2.new(0, 5, 0, 5) | |
2769 | ImageLabel.BorderSizePixel = 0 | |
2770 | ImageLabel.BackgroundTransparency = 1 | |
2771 | ImageLabel.Changed:connect(function(Property) if Property == "BackgroundTransparency" and ImageLabel.BackgroundTransparency ~= 1 then ImageLabel.BackgroundTransparency = 1 end end) | |
2772 | ImageLabel.Parent = Window.Content | |
2773 | if MessageSplit[2]:lower() == "prompt" then | |
2774 | ImageLabel.Image = "http://www.Roblox.com/Asset/?id=41363872" | |
2775 | Window.Icon.Image = ImageLabel.Image | |
2776 | Window.TitleBar.Text = "Prompt" | |
2777 | elseif MessageSplit[2]:lower() == "warning" then | |
2778 | ImageLabel.Image = "http://www.Roblox.com/Asset/?id=41363725" | |
2779 | Window.Icon.Image = ImageLabel.Image | |
2780 | Window.TitleBar.Text = "Warning" | |
2781 | elseif MessageSplit[2]:lower() == "error" then | |
2782 | ImageLabel.Image = "http://www.Roblox.com/Asset/?id=41364113" | |
2783 | Window.Icon.Image = ImageLabel.Image | |
2784 | Window.TitleBar.Text = "Error" | |
2785 | elseif MessageSplit[2]:lower() == "fatal" or MessageSplit[2]:lower() == "fatal error" then | |
2786 | ImageLabel.Image = "http://www.Roblox.com/Asset/?id=41364113" | |
2787 | Window.Icon.Image = ImageLabel.Image | |
2788 | Window.TitleBar.Text = "Fatal Error" | |
2789 | elseif tonumber(MessageSplit[2]) ~= nil then | |
2790 | ImageLabel.Image = "http://www.Roblox.com/Asset/?id=" ..tonumber(MessageSplit[2]) | |
2791 | Window.Icon.Image = ImageLabel.Image | |
2792 | else | |
2793 | ImageLabel:Remove() | |
2794 | ImageLabel = nil | |
2795 | end | |
2796 | for i = ImageLabel ~= nil and 3 or 2, #MessageSplit do | |
2797 | local TextLabel = Instance.new("TextLabel") | |
2798 | TextLabel.Text = string.rep(" ", 6) .. MessageSplit[i] | |
2799 | TextLabel.BackgroundColor3 = Window.Content.BackgroundColor3 | |
2800 | TextLabel.BorderSizePixel = 0 | |
2801 | TextLabel.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel.BackgroundTransparency ~= 1 then TextLabel.BackgroundTransparency = 1 end end) | |
2802 | TextLabel.TextColor3 = Color3.new(0, 0, 0) | |
2803 | TextLabel.TextXAlignment = "Left" | |
2804 | TextLabel.Size = UDim2.new(1, (i <= 6 and ImageLabel ~= nil) and -74 or 0, 0, 15) | |
2805 | TextLabel.Position = UDim2.new(0, (i <= 6 and ImageLabel ~= nil) and 74 or 0, 0, ((i - 2) * 15)) | |
2806 | TextLabel.Parent = Window.Content | |
2807 | if string.len(MessageSplit[i]) * 8 > Window.Size.X.Offset then | |
2808 | Window.Size = UDim2.new(0, string.len(MessageSplit[i]) * 8, 0, Window.Size.Y.Offset + 15) | |
2809 | else | |
2810 | Window.Size = UDim2.new(0, Window.Size.X.Offset, 0, Window.Size.Y.Offset + 15) | |
2811 | end | |
2812 | end | |
2813 | local TextButton = Instance.new("TextButton") | |
2814 | TextButton.Text = "OK" | |
2815 | TextButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
2816 | TextButton.BorderColor3 = Color3.new(0, 0, 0) | |
2817 | TextButton.BorderSizePixel = 1 | |
2818 | TextButton.TextColor3 = Color3.new(0, 0, 0) | |
2819 | TextButton.Size = UDim2.new(0, 80, 0, 35) | |
2820 | TextButton.Position = UDim2.new(0.5, -40, 1, -50) | |
2821 | TextButton.Parent = Window.Content | |
2822 | TextButton.MouseButton1Up:connect(function() WindowExitFunction(Window) end) | |
2823 | Window.Position = UDim2.new(0.5, -Window.Size.X.Offset / 2, 0.5, -Window.Size.Y.Offset / 2) | |
2824 | end)() | |
2825 | end | |
2826 | end | |
2827 | 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.. "[...]") | |
2828 | ||
2829 | CoolCMDs.Functions.CreateCommand("workspace", 4, function(Message, MessageSplit, Speaker, Self) | |
2830 | if CoolCMDs.Functions.IsModuleEnabled("GuiSupport") == false then | |
2831 | CoolCMDs.Functions.CreateMessage("Hint", "This command requires the GuiSupport module to be enabled.", 5, Speaker) | |
2832 | return | |
2833 | elseif CoolCMDs.Functions.GetModule("GuiSupport") == nil then | |
2834 | CoolCMDs.Functions.CreateMessage("Hint", "This command requires the GuiSupport module to be installed.", 5, Speaker) | |
2835 | return | |
2836 | end | |
2837 | for i = 1, #MessageSplit do | |
2838 | for _, Player in pairs(game:service("Players"):GetPlayers()) do | |
2839 | if string.match(Player.Name:lower(), MessageSplit[i]:lower()) and Player:FindFirstChild("PlayerGui") ~= nil then | |
2840 | coroutine.wrap(function() | |
2841 | local Object = game:service("Workspace") | |
2842 | local ObjectChildren = Object:children() | |
2843 | local SortType = 1 | |
2844 | local Home = game | |
2845 | local Gui = Instance.new("ScreenGui") | |
2846 | Gui.Parent = Player.PlayerGui | |
2847 | local function WindowExitFunction(Frame) | |
2848 | Object = nil | |
2849 | UpdatePage = nil | |
2850 | CoolCMDs.Functions.GetModule("GuiSupport").WindowEffect(Frame, 2) | |
2851 | Frame:Remove() | |
2852 | end | |
2853 | 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)) | |
2854 | Window.Changed:connect(function(Property) | |
2855 | if Property == "Parent" then | |
2856 | if Window.Parent == nil then | |
2857 | wait(2) | |
2858 | Gui:Remove() | |
2859 | end | |
2860 | end | |
2861 | end) | |
2862 | Window.Icon.Image = "http://www.Roblox.com/Asset/?id=43504783" | |
2863 | local Previous = Instance.new("TextButton") | |
2864 | Previous.Name = "Previous" | |
2865 | Previous.Text = "<" | |
2866 | Previous.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
2867 | Previous.BorderColor3 = Color3.new(0, 0, 0) | |
2868 | Previous.BorderSizePixel = 1 | |
2869 | Previous.TextColor3 = Color3.new(0, 0, 0) | |
2870 | Previous.Size = UDim2.new(0, 20, 0, 20) | |
2871 | Previous.Position = UDim2.new(0, 5, 1, -25) | |
2872 | Previous.Parent = Window.Content | |
2873 | local Center = Instance.new("TextLabel") | |
2874 | Center.Name = "Center" | |
2875 | Center.Text = "0 to 0 of 0" | |
2876 | Center.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
2877 | Center.BorderColor3 = Color3.new(0, 0, 0) | |
2878 | Center.BorderSizePixel = 1 | |
2879 | Center.TextColor3 = Color3.new(0, 0, 0) | |
2880 | Center.FontSize = "Size14" | |
2881 | Center.Size = UDim2.new(1, -50, 0, 20) | |
2882 | Center.Position = UDim2.new(0, 25, 1, -25) | |
2883 | Center.Parent = Window.Content | |
2884 | local Next = Instance.new("TextButton") | |
2885 | Next.Text = ">" | |
2886 | Next.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
2887 | Next.BorderColor3 = Color3.new(0, 0, 0) | |
2888 | Next.BorderSizePixel = 1 | |
2889 | Next.TextColor3 = Color3.new(0, 0, 0) | |
2890 | Next.Size = UDim2.new(0, 20, 0, 20) | |
2891 | Next.Position = UDim2.new(1, -25, 1, -25) | |
2892 | Next.Parent = Window.Content | |
2893 | local ListFrameHeader = CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.ListFrame.New() | |
2894 | ListFrameHeader.Size = UDim2.new(1, -10, 0, 20) | |
2895 | ListFrameHeader.Position = UDim2.new(0, 5, 0, 25) | |
2896 | ListFrameHeader.Parent = Window.Content | |
2897 | CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.ListFrame.ListUpdate(ListFrameHeader, {"#\tName\tclassName\tParent"}, 2) | |
2898 | local ListFrame = CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.ListFrame.New() | |
2899 | ListFrame.Size = UDim2.new(1, -10, 1, -70) | |
2900 | ListFrame.Position = UDim2.new(0, 5, 0, 45) | |
2901 | ListFrame.Parent = Window.Content | |
2902 | local function UpdatePage(...) | |
2903 | local List = {} | |
2904 | for i, Part in pairs(ObjectChildren) do | |
2905 | 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)) | |
2906 | end | |
2907 | if SortType ~= 1 then | |
2908 | table.sort(List, function(a, b) return string.lower(CoolCMDs.Functions.Explode("\t", a)[SortType]) < string.lower(CoolCMDs.Functions.Explode("\t", b)[SortType]) end) | |
2909 | end | |
2910 | CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.ListFrame.ListUpdate(ListFrame, List, 1, ...) | |
2911 | Center.Text = ListFrame.ListIndex.Value.. " to " ..(ListFrame.ListIndex.Value + #ListFrame:children() - 2).. " of " ..#ObjectChildren | |
2912 | for _, Tag in pairs(ListFrame:children()) do | |
2913 | for _, Table in pairs(Tag:children()) do | |
2914 | pcall(function() | |
2915 | Table.MouseButton1Down:connect(function() | |
2916 | for i, Part in pairs(ObjectChildren) do | |
2917 | if i == tonumber(Tag.Table1.Text) then | |
2918 | Object = Part | |
2919 | ObjectChildren = Object:children() | |
2920 | ListFrame.ListIndex.Value = 1 | |
2921 | UpdatePage() | |
2922 | end | |
2923 | end | |
2924 | end) | |
2925 | end) | |
2926 | end | |
2927 | end | |
2928 | end | |
2929 | coroutine.wrap(function() | |
2930 | CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.ListFrame.ListUpdate(ListFrame, {"Loading..."}, 1) | |
2931 | wait(2.5) | |
2932 | UpdatePage() | |
2933 | end)() | |
2934 | for _, Table in pairs(ListFrameHeader.Tag1:children()) do | |
2935 | Table.MouseButton1Down:connect(function() | |
2936 | SortType = tonumber(string.sub(Table.Name, 6)) | |
2937 | UpdatePage() | |
2938 | end) | |
2939 | end | |
2940 | Previous.MouseButton1Up:connect(function() UpdatePage(-1, "page") end) | |
2941 | Next.MouseButton1Up:connect(function() UpdatePage(1, "page") end) | |
2942 | local MenuBar1 = Instance.new("Frame") | |
2943 | MenuBar1.Size = UDim2.new(1, 0, 0, 20) | |
2944 | MenuBar1.Position = UDim2.new(0, 0, 0, 0) | |
2945 | MenuBar1.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) | |
2946 | MenuBar1.BorderSizePixel = 1 | |
2947 | MenuBar1.Parent = Window.Content | |
2948 | local Choice = Instance.new("TextButton") | |
2949 | Choice.AutoButtonColor = false | |
2950 | Choice.TextXAlignment = "Left" | |
2951 | Choice.TextColor3 = Color3.new(0, 0, 0) | |
2952 | Choice.BorderColor3 = Color3.new(0.4, 0.4, 0.4) | |
2953 | Choice.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) | |
2954 | Choice.BorderSizePixel = 0 | |
2955 | local ChoiceIcon = Instance.new("ImageLabel") | |
2956 | ChoiceIcon.Size = UDim2.new(0, 16, 0, 16) | |
2957 | ChoiceIcon.Position = UDim2.new(0, 4, 0, 1) | |
2958 | ChoiceIcon.BorderSizePixel = 0 | |
2959 | ChoiceIcon.BackgroundTransparency = 1 | |
2960 | local ChoiceNewRecent = {"", "Object", true} | |
2961 | local ChoiceNew = Choice:Clone() | |
2962 | ChoiceNew.Text = string.rep(" ", 8).. "New..." | |
2963 | ChoiceNew.Size = UDim2.new(0, 75 - 2, 1, -2) | |
2964 | ChoiceNew.Position = UDim2.new(0, 1, 0, 1) | |
2965 | ChoiceNew.Parent = MenuBar1 | |
2966 | ChoiceNew.MouseEnter:connect(function() ChoiceNew.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) ChoiceNew.BorderSizePixel = 1 end) | |
2967 | ChoiceNew.MouseLeave:connect(function() ChoiceNew.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) ChoiceNew.BorderSizePixel = 0 end) | |
2968 | ChoiceNew.MouseButton1Down:connect(function() ChoiceNew.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) end) | |
2969 | ChoiceNew.MouseButton1Up:connect(function() ChoiceNew.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) | |
2970 | local CanCreate = true | |
2971 | local function WindowExitFunction(Frame) | |
2972 | CanCreate = false | |
2973 | CoolCMDs.Functions.GetModule("GuiSupport").WindowEffect(Frame, 2) | |
2974 | Frame:Remove() | |
2975 | end | |
2976 | 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) | |
2977 | Popup.Name = "New Object" | |
2978 | Popup.Icon.Image = "http://www.Roblox.com/Asset/?id=42154070" | |
2979 | local TextLabel = Instance.new("TextLabel") | |
2980 | TextLabel.Text = "Instance (className):" | |
2981 | TextLabel.BorderColor3 = Color3.new(0, 0, 0) | |
2982 | TextLabel.BackgroundTransparency = 1 | |
2983 | TextLabel.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel.BackgroundTransparency ~= 1 then TextLabel.BackgroundTransparency = 1 end end) | |
2984 | TextLabel.Position = UDim2.new(0, 5, 0, 15) | |
2985 | TextLabel.Size = UDim2.new(0, 75, 0, 15) | |
2986 | TextLabel.TextWrap = true | |
2987 | TextLabel.TextXAlignment = "Left" | |
2988 | TextLabel.Parent = Popup.Content | |
2989 | local TextBox = Instance.new("TextBox") | |
2990 | TextBox.Name = "ObjectClassName" | |
2991 | TextBox.Text = ChoiceNewRecent[1] | |
2992 | TextBox.BorderColor3 = Color3.new(0, 0, 0) | |
2993 | TextBox.BackgroundColor3 = Color3.new(1, 1, 1) | |
2994 | TextBox.Position = UDim2.new(0, 85, 0, 15) | |
2995 | TextBox.Size = UDim2.new(0, 100, 0, 15) | |
2996 | TextBox.TextWrap = true | |
2997 | TextBox.TextXAlignment = "Left" | |
2998 | TextBox.Parent = Popup.Content | |
2999 | local TextLabel = Instance.new("TextLabel") | |
3000 | TextLabel.Text = "Name:" | |
3001 | TextLabel.BorderColor3 = Color3.new(0, 0, 0) | |
3002 | TextLabel.BackgroundTransparency = 1 | |
3003 | TextLabel.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel.BackgroundTransparency ~= 1 then TextLabel.BackgroundTransparency = 1 end end) | |
3004 | TextLabel.Position = UDim2.new(0, 5, 0, 45) | |
3005 | TextLabel.Size = UDim2.new(0, 75, 0, 15) | |
3006 | TextLabel.TextWrap = true | |
3007 | TextLabel.TextXAlignment = "Left" | |
3008 | TextLabel.Parent = Popup.Content | |
3009 | local TextBox = Instance.new("TextBox") | |
3010 | TextBox.Name = "ObjectName" | |
3011 | TextBox.Text = ChoiceNewRecent[2] | |
3012 | TextBox.BorderColor3 = Color3.new(0, 0, 0) | |
3013 | TextBox.BackgroundColor3 = Color3.new(1, 1, 1) | |
3014 | TextBox.Position = UDim2.new(0, 85, 0, 45) | |
3015 | TextBox.Size = UDim2.new(0, 100, 0, 15) | |
3016 | TextBox.TextWrap = true | |
3017 | TextBox.TextXAlignment = "Left" | |
3018 | TextBox.Parent = Popup.Content | |
3019 | local TextLabel = Instance.new("TextLabel") | |
3020 | TextLabel.Text = "Archivable:" | |
3021 | TextLabel.BorderColor3 = Color3.new(0, 0, 0) | |
3022 | TextLabel.BackgroundTransparency = 1 | |
3023 | TextLabel.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel.BackgroundTransparency ~= 1 then TextLabel.BackgroundTransparency = 1 end end) | |
3024 | TextLabel.Position = UDim2.new(0, 5, 0, 75) | |
3025 | TextLabel.Size = UDim2.new(0, 75, 0, 15) | |
3026 | TextLabel.TextWrap = true | |
3027 | TextLabel.TextXAlignment = "Left" | |
3028 | TextLabel.Parent = Popup.Content | |
3029 | local CheckBox = CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.CheckBox.New(true) | |
3030 | CheckBox.Name = "ObjectArchivable" | |
3031 | CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.CheckBox.SelectCheckBox(ChoiceNewRecent[3]) | |
3032 | CheckBox.Position = UDim2.new(0, 90, 0, 75) | |
3033 | CheckBox.Parent = Popup.Content | |
3034 | local TextButton = Instance.new("TextButton") | |
3035 | TextButton.Text = "Create" | |
3036 | TextButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
3037 | TextButton.BorderColor3 = Color3.new(0, 0, 0) | |
3038 | TextButton.BorderSizePixel = 1 | |
3039 | TextButton.TextColor3 = Color3.new(0, 0, 0) | |
3040 | TextButton.Size = UDim2.new(0, 80, 0, 35) | |
3041 | TextButton.Position = UDim2.new(0.5, -40, 0, 115) | |
3042 | TextButton.Parent = Popup.Content | |
3043 | TextButton.MouseButton1Up:connect(function() | |
3044 | if CanCreate == false then return end | |
3045 | CanCreate = false | |
3046 | local NewObject = {pcall(function() return Instance.new(Popup.Content.ObjectClassName.Text) end)} | |
3047 | if NewObject[1] == true then | |
3048 | NewObject[2].Name = Popup.Content.ObjectName.Text | |
3049 | NewObject[2].archivable = CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.CheckBox.GetCheckBoxState(Popup.Content.ObjectArchivable) | |
3050 | NewObject[2].Parent = Object | |
3051 | if NewObject[2].Parent ~= nil then | |
3052 | pcall(function() NewObject[2].CFrame = Speaker.Character.Torso.CFrame * CFrame.new(0, 6, 0) end) | |
3053 | ChoiceNewRecent = {Popup.Content.ObjectClassName.Text, Popup.Content.ObjectName.Text, CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.CheckBox.GetCheckBoxState(Popup.Content.ObjectArchivable)} | |
3054 | Update() | |
3055 | WindowExitFunction(Popup) | |
3056 | return | |
3057 | else | |
3058 | Popup.StatusBar.Text = "Error: Object removed!" | |
3059 | CanCreate = true | |
3060 | return | |
3061 | end | |
3062 | elseif NewObject[1] == false then | |
3063 | Popup.StatusBar.Text = "Error: Unknown Instance type!" | |
3064 | CanCreate = true | |
3065 | return | |
3066 | end | |
3067 | end) | |
3068 | local TextButton = Instance.new("TextButton") | |
3069 | TextButton.Text = "Cancel" | |
3070 | TextButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
3071 | TextButton.BorderColor3 = Color3.new(0, 0, 0) | |
3072 | TextButton.BorderSizePixel = 1 | |
3073 | TextButton.TextColor3 = Color3.new(0, 0, 0) | |
3074 | TextButton.Size = UDim2.new(0, 80, 0, 35) | |
3075 | TextButton.Position = UDim2.new(0.5, -40, 0, 155) | |
3076 | TextButton.Parent = Popup.Content | |
3077 | TextButton.MouseButton1Up:connect(function() | |
3078 | CanCreate = false | |
3079 | ChoiceNewRecent = {Popup.Content.ObjectClassName.Text, Popup.Content.ObjectName.Text, CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.CheckBox.GetCheckBoxState(Popup.Content.ObjectArchivable)} | |
3080 | WindowExitFunction(Popup) | |
3081 | end) | |
3082 | Popup.Parent = Gui | |
3083 | Window.Changed:connect(function(Property) | |
3084 | if Property == "Parent" then | |
3085 | if Window.Parent == nil then | |
3086 | CanCreate = false | |
3087 | WindowExitFunction(Popup) | |
3088 | end | |
3089 | end | |
3090 | end) | |
3091 | end) | |
3092 | local ChoiceNewIcon = ChoiceIcon:Clone() | |
3093 | ChoiceNewIcon.Image = "http://www.Roblox.com/Asset/?id=42154070" | |
3094 | ChoiceNewIcon.Changed:connect(function(Property) if Property == "BackgroundTransparency" and ChoiceNewIcon.BackgroundTransparency ~= 1 then ChoiceNewIcon.BackgroundTransparency = 1 end end) | |
3095 | ChoiceNewIcon.Parent = ChoiceNew | |
3096 | local ChoiceLoadRecent = "47433" | |
3097 | local ChoiceLoad = Choice:Clone() | |
3098 | ChoiceLoad.Text = string.rep(" ", 8).. "Load..." | |
3099 | ChoiceLoad.Size = UDim2.new(0, 75 - 2, 1, -2) | |
3100 | ChoiceLoad.Position = UDim2.new(0, 75 + 1, 0, 1) | |
3101 | ChoiceLoad.Parent = MenuBar1 | |
3102 | ChoiceLoad.MouseEnter:connect(function() ChoiceLoad.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) ChoiceLoad.BorderSizePixel = 1 end) | |
3103 | ChoiceLoad.MouseLeave:connect(function() ChoiceLoad.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) ChoiceLoad.BorderSizePixel = 0 end) | |
3104 | ChoiceLoad.MouseButton1Up:connect(function() ChoiceLoad.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) end) | |
3105 | ChoiceLoad.MouseButton1Down:connect(function() ChoiceLoad.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) | |
3106 | local CanClose = true | |
3107 | local CanCreate = true | |
3108 | local function WindowExitFunction(Frame) | |
3109 | if CanClose == false then return end | |
3110 | CanCreate = false | |
3111 | CoolCMDs.Functions.GetModule("GuiSupport").WindowEffect(Frame, 2) | |
3112 | Frame:Remove() | |
3113 | end | |
3114 | 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) | |
3115 | Popup.Name = "Load from URL" | |
3116 | Popup.Icon.Image = "http://www.Roblox.com/Asset/?id=42183533" | |
3117 | coroutine.wrap(function() | |
3118 | while Popup.Parent ~= nil do | |
3119 | if CanClose == false then | |
3120 | pcall(function() Popup.ExitButton.BackgroundColor3 = Color3.new(0.5, 0.25, 0.25) end) | |
3121 | pcall(function() Popup.Content.Cancel.BackgroundColor3 = Color3.new(0.55, 0.55, 0.55) end) | |
3122 | pcall(function() Popup.Content.Cancel.TextColor3 = Color3.new(0.75, 0.75, 0.75) end) | |
3123 | else | |
3124 | pcall(function() Popup.ExitButton.BackgroundColor3 = Color3.new(1, 0, 0) end) | |
3125 | pcall(function() Popup.Content.Cancel.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) end) | |
3126 | pcall(function() Popup.Content.Cancel.TextColor3 = Color3.new(0, 0, 0) end) | |
3127 | end | |
3128 | if CanCreate == false then | |
3129 | pcall(function() Popup.Content.Load.BackgroundColor3 = Color3.new(0.55, 0.55, 0.55) end) | |
3130 | pcall(function() Popup.Content.Load.TextColor3 = Color3.new(0.75, 0.75, 0.75) end) | |
3131 | else | |
3132 | pcall(function() Popup.Content.Load.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) end) | |
3133 | pcall(function() Popup.Content.Load.TextColor3 = Color3.new(0, 0, 0) end) | |
3134 | end | |
3135 | wait() | |
3136 | end | |
3137 | end)() | |
3138 | local TextLabel = Instance.new("TextLabel") | |
3139 | TextLabel.Text = "ROBLOX Asset ID:" | |
3140 | TextLabel.BorderColor3 = Color3.new(0, 0, 0) | |
3141 | TextLabel.BackgroundTransparency = 1 | |
3142 | TextLabel.Changed:connect(function(Property) if Property == "BackgroundTransparency" and TextLabel.BackgroundTransparency ~= 1 then TextLabel.BackgroundTransparency = 1 end end) | |
3143 | TextLabel.Position = UDim2.new(0, 5, 0, 15) | |
3144 | TextLabel.Size = UDim2.new(0, 75, 0, 15) | |
3145 | TextLabel.TextWrap = true | |
3146 | TextLabel.TextXAlignment = "Left" | |
3147 | TextLabel.Parent = Popup.Content | |
3148 | local TextBox = Instance.new("TextBox") | |
3149 | TextBox.Name = "ID" | |
3150 | TextBox.Text = ChoiceLoadRecent | |
3151 | TextBox.BorderColor3 = Color3.new(0, 0, 0) | |
3152 | TextBox.BackgroundColor3 = Color3.new(1, 1, 1) | |
3153 | TextBox.Position = UDim2.new(0, 85, 0, 15) | |
3154 | TextBox.Size = UDim2.new(0, 100, 0, 15) | |
3155 | TextBox.TextWrap = true | |
3156 | TextBox.TextXAlignment = "Left" | |
3157 | TextBox.Parent = Popup.Content | |
3158 | local TextButton = Instance.new("TextButton") | |
3159 | TextButton.Name = "Load" | |
3160 | TextButton.Text = "Load" | |
3161 | TextButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
3162 | TextButton.BorderColor3 = Color3.new(0, 0, 0) | |
3163 | TextButton.BorderSizePixel = 1 | |
3164 | TextButton.TextColor3 = Color3.new(0, 0, 0) | |
3165 | TextButton.Size = UDim2.new(0, 80, 0, 35) | |
3166 | TextButton.Position = UDim2.new(0.5, -40, 0, 45) | |
3167 | TextButton.Parent = Popup.Content | |
3168 | TextButton.MouseButton1Up:connect(function() | |
3169 | if CanCreate == false then return end | |
3170 | if Popup.Content.ID.Text == "" or Popup.Content.ID.Text == nil or tonumber(Popup.Content.ID.Text) == nil then | |
3171 | CanClose = true | |
3172 | CanCreate = true | |
3173 | Popup.StatusBar.Text = "Asset \"" ..Popup.Content.ID.Text.. "\" invalid!" | |
3174 | return | |
3175 | end | |
3176 | CanClose = false | |
3177 | CanCreate = false | |
3178 | Popup.StatusBar.Text = "Preparing InsertService..." | |
3179 | pcall(function() game:service("InsertService"):SetAssetUrl("http://www.Roblox.com/Asset/?id=%d") end) | |
3180 | Popup.StatusBar.Text = "Loading asset \"" ..Popup.Content.ID.Text.. "\"..." | |
3181 | local NewObject = game:service("InsertService"):LoadAsset(tonumber(Popup.Content.ID.Text)) | |
3182 | Popup.StatusBar.Text = "Compiling asset \"" ..Popup.Content.ID.Text.. "\"..." | |
3183 | for i = 0, 100 do | |
3184 | if NewObject ~= nil then break end | |
3185 | wait() | |
3186 | end | |
3187 | if NewObject:IsA("Model") then | |
3188 | NewObject.Parent = Object | |
3189 | if NewObject.Parent ~= nil then | |
3190 | NewObject:MakeJoints() | |
3191 | if Speaker.Character ~= nil then | |
3192 | if Speaker.Character:FindFirstChild("Torso") ~= nil then | |
3193 | NewObject:MoveTo((Speaker.Character.Torso.CFrame * CFrame.new(0, 0, -10)).p) | |
3194 | else | |
3195 | NewObject:MoveTo(Vector3.new(0, 10, 0)) | |
3196 | end | |
3197 | else | |
3198 | NewObject:MoveTo(Vector3.new(0, 10, 0)) | |
3199 | end | |
3200 | Popup.StatusBar.Text = "Asset \"" ..Popup.Content.ID.Text.. "\" loaded successfully." | |
3201 | ObjectChildren = Object:children() | |
3202 | UpdatePage() | |
3203 | ChoiceLoadRecent = Popup.Content.ID.Text | |
3204 | CanClose = true | |
3205 | WindowExitFunction(Popup) | |
3206 | return | |
3207 | else | |
3208 | Popup.StatusBar.Text = "Error: Object removed!" | |
3209 | pcall(function() NewObject:Remove() end) | |
3210 | CanClose = true | |
3211 | CanCreate = true | |
3212 | return | |
3213 | end | |
3214 | else | |
3215 | Popup.StatusBar.Text = "Error: Load timed out!" | |
3216 | pcall(function() NewObject:Remove() end) | |
3217 | CanClose = true | |
3218 | CanCreate = true | |
3219 | return | |
3220 | end | |
3221 | end) | |
3222 | local TextButton = Instance.new("TextButton") | |
3223 | TextButton.Name = "Cancel" | |
3224 | TextButton.Text = "Cancel" | |
3225 | TextButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
3226 | TextButton.BorderColor3 = Color3.new(0, 0, 0) | |
3227 | TextButton.BorderSizePixel = 1 | |
3228 | TextButton.TextColor3 = Color3.new(0, 0, 0) | |
3229 | TextButton.Size = UDim2.new(0, 80, 0, 35) | |
3230 | TextButton.Position = UDim2.new(0.5, -40, 0, 85) | |
3231 | TextButton.Parent = Popup.Content | |
3232 | TextButton.MouseButton1Up:connect(function() | |
3233 | if CanClose == false then return end | |
3234 | CanCreate = false | |
3235 | ChoiceLoadRecent = Popup.Content.ID.Text | |
3236 | WindowExitFunction(Popup) | |
3237 | end) | |
3238 | Popup.Parent = Gui | |
3239 | Window.Changed:connect(function(Property) | |
3240 | if Property == "Parent" then | |
3241 | if Window.Parent == nil then | |
3242 | CanCreate = false | |
3243 | while CanClose == false do wait() end | |
3244 | WindowExitFunction(Popup) | |
3245 | end | |
3246 | end | |
3247 | end) | |
3248 | end) | |
3249 | local ChoiceLoadIcon = ChoiceIcon:Clone() | |
3250 | ChoiceLoadIcon.Image = "http://www.Roblox.com/Asset/?id=42183533" | |
3251 | ChoiceLoadIcon.Changed:connect(function(Property) if Property == "BackgroundTransparency" and ChoiceLoadIcon.BackgroundTransparency ~= 1 then ChoiceLoadIcon.BackgroundTransparency = 1 end end) | |
3252 | ChoiceLoadIcon.Parent = ChoiceLoad | |
3253 | local ChoiceProperties = Choice:Clone() | |
3254 | ChoiceProperties.Text = string.rep(" ", 8).. "Edit..." | |
3255 | ChoiceProperties.Size = UDim2.new(0, 75 - 2, 1, -2) | |
3256 | ChoiceProperties.Position = UDim2.new(0, (75 * 2) + (1 * 2), 0, 1) | |
3257 | ChoiceProperties.Parent = MenuBar1 | |
3258 | ChoiceProperties.MouseEnter:connect(function() ChoiceProperties.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) ChoiceProperties.BorderSizePixel = 1 end) | |
3259 | ChoiceProperties.MouseLeave:connect(function() ChoiceProperties.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) ChoiceProperties.BorderSizePixel = 0 end) | |
3260 | ChoiceProperties.MouseButton1Down:connect(function() ChoiceProperties.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) end) | |
3261 | ChoiceProperties.MouseButton1Up:connect(function() ChoiceProperties.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) | |
3262 | local SortType2 = 1 | |
3263 | 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) | |
3264 | Popup.Icon.Image = "http://www.Roblox.com/Asset/?id=43318689" | |
3265 | local Previous = Instance.new("TextButton") | |
3266 | Previous.Name = "Previous" | |
3267 | Previous.Text = "<" | |
3268 | Previous.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
3269 | Previous.BorderColor3 = Color3.new(0, 0, 0) | |
3270 | Previous.BorderSizePixel = 1 | |
3271 | Previous.TextColor3 = Color3.new(0, 0, 0) | |
3272 | Previous.Size = UDim2.new(0, 20, 0, 20) | |
3273 | Previous.Position = UDim2.new(0, 5, 1, -75) | |
3274 | Previous.Parent = Popup.Content | |
3275 | local Center = Instance.new("TextLabel") | |
3276 | Center.Name = "Center" | |
3277 | Center.Text = "0 to 0 of 0" | |
3278 | Center.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
3279 | Center.BorderColor3 = Color3.new(0, 0, 0) | |
3280 | Center.BorderSizePixel = 1 | |
3281 | Center.TextColor3 = Color3.new(0, 0, 0) | |
3282 | Center.FontSize = "Size14" | |
3283 | Center.Size = UDim2.new(1, -50, 0, 20) | |
3284 | Center.Position = UDim2.new(0, 25, 1, -75) | |
3285 | Center.Parent = Popup.Content | |
3286 | local Next = Instance.new("TextButton") | |
3287 | Next.Text = ">" | |
3288 | Next.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
3289 | Next.BorderColor3 = Color3.new(0, 0, 0) | |
3290 | Next.BorderSizePixel = 1 | |
3291 | Next.TextColor3 = Color3.new(0, 0, 0) | |
3292 | Next.Size = UDim2.new(0, 20, 0, 20) | |
3293 | Next.Position = UDim2.new(1, -25, 1, -75) | |
3294 | Next.Parent = Popup.Content | |
3295 | local ListFrameHeader = CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.ListFrame.New() | |
3296 | ListFrameHeader.Size = UDim2.new(1, -10, 0, 20) | |
3297 | ListFrameHeader.Position = UDim2.new(0, 5, 0, 5) | |
3298 | ListFrameHeader.Parent = Popup.Content | |
3299 | CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.ListFrame.ListUpdate(ListFrameHeader, {"Variable\tType\tValue"}, 2) | |
3300 | local ListFrameProperties = CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.ListFrame.New() | |
3301 | ListFrameProperties.Size = UDim2.new(1, -10, 1, -100) | |
3302 | ListFrameProperties.Position = UDim2.new(0, 5, 0, 25) | |
3303 | ListFrameProperties.Parent = Popup.Content | |
3304 | local function UpdateProperties(...) | |
3305 | local Properties, Types = CoolCMDs.Functions.GetModule("RobloxProperties").GetProperties(Object) | |
3306 | local List = {} | |
3307 | for i = 1, #Properties do | |
3308 | local Result = "Nil" | |
3309 | if Types[i] == "Instance" then | |
3310 | Result = Object[Properties[i]]:GetFullName() | |
3311 | elseif Types[i] == "Struct.Vector2" then | |
3312 | Result = "(" ..Object[Properties[i]].x.. ", " ..Object[Properties[i]].y.. ")" | |
3313 | elseif Types[i] == "Struct.Vector3" then | |
3314 | Result = "(" ..Object[Properties[i]].x.. ", " ..Object[Properties[i]].y.. ", " ..Object[Properties[i]].z.. ")" | |
3315 | elseif Types[i] == "Struct.CFrame" then | |
3316 | local x, y, z = Object[Properties[i]]:toEulerAnglesXYZ() | |
3317 | Result = "(" ..Object[Properties[i]].p.x.. ", " ..Object[Properties[i]].p.y.. ", " ..Object[Properties[i]].p.z.. "), (" ..x.. ", " ..y.. ", " ..z.. ")" | |
3318 | elseif Types[i] == "Struct.BrickColor" then | |
3319 | Result = Object[Properties[i]].Name.. " (ID " ..Object[Properties[i]].Number.. ", (" ..Object[Properties[i]].r.. ", " ..Object[Properties[i]].g.. ", " ..Object[Properties[i]].b.. ")" | |
3320 | elseif Types[i] == "Struct.Color3" then | |
3321 | Result = "(" ..Object[Properties[i]].r.. ", " ..Object[Properties[i]].g.. ", " ..Object[Properties[i]].b.. ")" | |
3322 | elseif Types[i] == "Struct.UDim" then | |
3323 | Result = "(" ..Object[Properties[i]].Scale.. ", " ..Object[Properties[i]].Offset.. ")" | |
3324 | elseif Types[i] == "Struct.UDim2" then | |
3325 | Result = "(" ..Object[Properties[i]].X.Scale.. ", " ..Object[Properties[i]].X.Offset.. ", " ..Object[Properties[i]].Y.Scale.. ", " ..Object[Properties[i]].Y.Offset.. ")" | |
3326 | elseif Types[i] == "Struct.Ray" then | |
3327 | 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.. ")." | |
3328 | elseif Types[i] == "Struct.Axes" then | |
3329 | Result = Object[Properties[i]].X.. ", " ..Object[Properties[i]].Y.. ", " ..Object[Properties[i]].Z | |
3330 | elseif Types[i] == "Faces" then | |
3331 | if Object[Properties[i]].Right == true then | |
3332 | Result = (Result ~= "" and Result.. ", " or "").. "Right" | |
3333 | end | |
3334 | if Object[Properties[i]].Top == true then | |
3335 | Result = (Result ~= "" and Result.. ", " or "").. "Top" | |
3336 | end | |
3337 | if Object[Properties[i]].Back == true then | |
3338 | Result = (Result ~= "" and Result.. ", " or "").. "Back" | |
3339 | end | |
3340 | if Object[Properties[i]].Left == true then | |
3341 | Result = (Result ~= "" and Result.. ", " or "").. "Left" | |
3342 | end | |
3343 | if Object[Properties[i]].Bottom == true then | |
3344 | Result = (Result ~= "" and Result.. ", " or "").. "Bottom" | |
3345 | end | |
3346 | if Object[Properties[i]].Front == true then | |
3347 | Result = (Result ~= "" and Result.. ", " or "").. "Front" | |
3348 | end | |
3349 | elseif Types[i] == "String" then | |
3350 | Result = "\"" ..Object[Properties[i]].. "\"" | |
3351 | else | |
3352 | Result = tostring(Object[Properties[i]]) | |
3353 | end | |
3354 | table.insert(List, Properties[i].. "\t" ..Types[i].. "\t" ..Result) | |
3355 | end | |
3356 | table.sort(List, function(a, b) return string.lower(CoolCMDs.Functions.Explode("\t", a)[SortType2]) < string.lower(CoolCMDs.Functions.Explode("\t", b)[SortType2]) end) | |
3357 | CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.ListFrame.ListUpdate(ListFrameProperties, List, 1, ...) | |
3358 | Center.Text = ListFrameProperties.ListIndex.Value.. " to " ..(ListFrameProperties.ListIndex.Value + #ListFrameProperties:children() - 2).. " of " ..#Properties | |
3359 | for _, Tag in pairs(ListFrameProperties:children()) do | |
3360 | for _, Table in pairs(Tag:children()) do | |
3361 | pcall(function() | |
3362 | Table.MouseButton1Down:connect(function() | |
3363 | Popup.StatusBar.Text = "Currently, editing properties has not been implimented." | |
3364 | end) | |
3365 | end) | |
3366 | end | |
3367 | end | |
3368 | end | |
3369 | coroutine.wrap(function() | |
3370 | CoolCMDs.Functions.GetModule("GuiSupport").WindowControls.ListFrame.ListUpdate(ListFrameProperties, {"Loading..."}, 1) | |
3371 | wait(2.5) | |
3372 | UpdateProperties() | |
3373 | end)() | |
3374 | for i, Table in pairs(ListFrameHeader.Tag1:children()) do | |
3375 | Table.MouseButton1Down:connect(function() | |
3376 | SortType2 = i | |
3377 | UpdateProperties() | |
3378 | end) | |
3379 | end | |
3380 | Previous.MouseButton1Up:connect(function() UpdateProperties(-1, "page") end) | |
3381 | Next.MouseButton1Up:connect(function() UpdateProperties(1, "page") end) | |
3382 | local TextButton = Instance.new("TextButton") | |
3383 | TextButton.Text = "Apply" | |
3384 | TextButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
3385 | TextButton.BorderColor3 = Color3.new(0, 0, 0) | |
3386 | TextButton.BorderSizePixel = 1 | |
3387 | TextButton.TextColor3 = Color3.new(0, 0, 0) | |
3388 | TextButton.Size = UDim2.new(0, 80, 0, 35) | |
3389 | TextButton.Position = UDim2.new(1, -105, 1, -45) | |
3390 | TextButton.Parent = Popup.Content | |
3391 | TextButton.MouseButton1Up:connect(function() | |
3392 | end) | |
3393 | local TextButton = Instance.new("TextButton") | |
3394 | TextButton.Text = "Refresh" | |
3395 | TextButton.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) | |
3396 | TextButton.BorderColor3 = Color3.new(0, 0, 0) | |
3397 | TextButton.BorderSizePixel = 1 | |
3398 | TextButton.TextColor3 = Color3.new(0, 0, 0) | |
3399 | TextButton.Size = UDim2.new(0, 80, 0, 35) | |
3400 | TextButton.Position = UDim2.new(0, 25, 1, -45) | |
3401 | TextButton.Parent = Popup.Content | |
3402 | TextButton.MouseButton1Up:connect(function() | |
3403 | end) | |
3404 | end) | |
3405 | local ChoicePropertiesIcon = ChoiceIcon:Clone() | |
3406 | ChoicePropertiesIcon.Image = "http://www.Roblox.com/Asset/?id=43318689" | |
3407 | ChoicePropertiesIcon.Changed:connect(function(Property) if Property == "BackgroundTransparency" and ChoicePropertiesIcon.BackgroundTransparency ~= 1 then ChoicePropertiesIcon.BackgroundTransparency = 1 end end) | |
3408 | ChoicePropertiesIcon.Parent = ChoiceProperties | |
3409 | local ChoiceDelete = Choice:Clone() | |
3410 | ChoiceDelete.Text = string.rep(" ", 8).. "Delete" | |
3411 | ChoiceDelete.Size = UDim2.new(0, 75 - 2, 1, -2) | |
3412 | ChoiceDelete.Position = UDim2.new(0, (75 * 3) + (1 * 3), 0, 1) | |
3413 | ChoiceDelete.Parent = MenuBar1 | |
3414 | ChoiceDelete.MouseEnter:connect(function() ChoiceDelete.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) ChoiceDelete.BorderSizePixel = 1 end) | |
3415 | ChoiceDelete.MouseLeave:connect(function() ChoiceDelete.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) ChoiceDelete.BorderSizePixel = 0 end) | |
3416 | ChoiceDelete.MouseButton1Down:connect(function() ChoiceDelete.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) end) | |
3417 | ChoiceDelete.MouseButton1Up:connect(function() ChoiceDelete.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) | |
3418 | if Object.Parent ~= nil then | |
3419 | local Delete = Object | |
3420 | Object = Object.Parent | |
3421 | if pcall(function() Delete:Remove() end) == false then | |
3422 | Object = Delete | |
3423 | ObjectChildren = Object:children() | |
3424 | UpdatePage() | |
3425 | Window.StatusBar.Text = "Error: Object could not be removed!" | |
3426 | wait(5) | |
3427 | Window.StatusBar.Text = "" | |
3428 | else | |
3429 | ObjectChildren = Object:children() | |
3430 | UpdatePage() | |
3431 | end | |
3432 | else | |
3433 | Window.StatusBar.Text = "Error: Object has no parent!" | |
3434 | wait(5) | |
3435 | Window.StatusBar.Text = "" | |
3436 | end | |
3437 | end) | |
3438 | local ChoiceDeleteIcon = ChoiceIcon:Clone() | |
3439 | ChoiceDeleteIcon.Image = "http://www.Roblox.com/Asset/?id=42736686" | |
3440 | ChoiceDeleteIcon.Changed:connect(function(Property) if Property == "BackgroundTransparency" and ChoiceDeleteIcon.BackgroundTransparency ~= 1 then ChoiceDeleteIcon.BackgroundTransparency = 1 end end) | |
3441 | ChoiceDeleteIcon.Parent = ChoiceDelete | |
3442 | local ChoiceRefresh = Choice:Clone() | |
3443 | ChoiceRefresh.Text = string.rep(" ", 8).. "Refresh" | |
3444 | ChoiceRefresh.Size = UDim2.new(0, 75 - 2, 1, -2) | |
3445 | ChoiceRefresh.Position = UDim2.new(0, (75 * 4) + (1 * 4), 0, 1) | |
3446 | ChoiceRefresh.Parent = MenuBar1 | |
3447 | ChoiceRefresh.MouseEnter:connect(function() ChoiceRefresh.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) ChoiceRefresh.BorderSizePixel = 1 end) | |
3448 | ChoiceRefresh.MouseLeave:connect(function() ChoiceRefresh.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) ChoiceRefresh.BorderSizePixel = 0 end) | |
3449 | ChoiceRefresh.MouseButton1Down:connect(function() ChoiceRefresh.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) end) | |
3450 | ChoiceRefresh.MouseButton1Up:connect(function() ChoiceRefresh.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) | |
3451 | ObjectChildren = Object:children() | |
3452 | UpdatePage() | |
3453 | end) | |
3454 | local ChoiceRefreshIcon = ChoiceIcon:Clone() | |
3455 | ChoiceRefreshIcon.Image = "http://www.Roblox.com/Asset/?id=43215825" | |
3456 | ChoiceRefreshIcon.Changed:connect(function(Property) if Property == "BackgroundTransparency" and ChoiceRefreshIcon.BackgroundTransparency ~= 1 then ChoiceRefreshIcon.BackgroundTransparency = 1 end end) | |
3457 | ChoiceRefreshIcon.Parent = ChoiceRefresh | |
3458 | local ChoiceUpLevel = Choice:Clone() | |
3459 | ChoiceUpLevel.Text = string.rep(" ", 8).. "Up Level" | |
3460 | ChoiceUpLevel.Size = UDim2.new(0, 75 - 2, 1, -2) | |
3461 | ChoiceUpLevel.Position = UDim2.new(0, (75 * 5) + (1 * 5), 0, 1) | |
3462 | ChoiceUpLevel.Parent = MenuBar1 | |
3463 | ChoiceUpLevel.MouseEnter:connect(function() ChoiceUpLevel.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) ChoiceUpLevel.BorderSizePixel = 1 end) | |
3464 | ChoiceUpLevel.MouseLeave:connect(function() ChoiceUpLevel.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) ChoiceUpLevel.BorderSizePixel = 0 end) | |
3465 | ChoiceUpLevel.MouseButton1Down:connect(function() ChoiceUpLevel.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) end) | |
3466 | ChoiceUpLevel.MouseButton1Up:connect(function() ChoiceUpLevel.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) | |
3467 | if Object.Parent ~= nil then | |
3468 | Object = Object.Parent | |
3469 | ObjectChildren = Object:children() | |
3470 | UpdatePage() | |
3471 | else | |
3472 | Window.StatusBar.Text = "Error: Object has no parent!" | |
3473 | wait(5) | |
3474 | Window.StatusBar.Text = "" | |
3475 | end | |
3476 | end) | |
3477 | local ChoiceUpLevelIcon = ChoiceIcon:Clone() | |
3478 | ChoiceUpLevelIcon.Image = "http://www.Roblox.com/Asset/?id=42724903" | |
3479 | ChoiceUpLevelIcon.Changed:connect(function(Property) if Property == "BackgroundTransparency" and ChoiceUpLevelIcon.BackgroundTransparency ~= 1 then ChoiceUpLevelIcon.BackgroundTransparency = 1 end end) | |
3480 | ChoiceUpLevelIcon.Parent = ChoiceUpLevel | |
3481 | local ChoiceHome = Choice:Clone() | |
3482 | ChoiceHome.Text = string.rep(" ", 8).. "Home" | |
3483 | ChoiceHome.Size = UDim2.new(0, 75 - 2, 1, -2) | |
3484 | ChoiceHome.Position = UDim2.new(0, (75 * 6) + (1 * 6), 0, 1) | |
3485 | ChoiceHome.Parent = MenuBar1 | |
3486 | ChoiceHome.MouseEnter:connect(function() ChoiceHome.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) ChoiceHome.BorderSizePixel = 1 end) | |
3487 | ChoiceHome.MouseLeave:connect(function() ChoiceHome.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75) ChoiceHome.BorderSizePixel = 0 end) | |
3488 | ChoiceHome.MouseButton1Down:connect(function() ChoiceHome.BackgroundColor3 = Color3.new(0.4, 0.4, 0.4) end) | |
3489 | ChoiceHome.MouseButton1Up:connect(function() ChoiceHome.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5) | |
3490 | Object = Home | |
3491 | ObjectChildren = Object:children() | |
3492 | UpdatePage() | |
3493 | end) | |
3494 | local ChoiceHomeIcon = ChoiceIcon:Clone() | |
3495 | ChoiceHomeIcon.Image = "http://www.Roblox.com/Asset/?id=43216297" | |
3496 | ChoiceHomeIcon.Changed:connect(function(Property) if Property == "BackgroundTransparency" and ChoiceHomeIcon.BackgroundTransparency ~= 1 then ChoiceHomeIcon.BackgroundTransparency = 1 end end) | |
3497 | ChoiceHomeIcon.Parent = ChoiceHome | |
3498 | end)() | |
3499 | end | |
3500 | end | |
3501 | end | |
3502 | 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") | |
3503 | ||
3504 | CoolCMDs.Functions.CreateCommand("lighting", 1, function(Message, MessageSplit, Speaker, Self) | |
3505 | if MessageSplit[1]:lower() == "dawn" then | |
3506 | game:service("Lighting").Brightness = 2 | |
3507 | game:service("Lighting").GeographicLatitude = 41.73 | |
3508 | game:service("Lighting").Ambient = Color3.new(127 / 255, 127 / 255, 150 / 255) | |
3509 | game:service("Lighting").ColorShift_Top = Color3.new(0, 0, 25 / 255) | |
3510 | game:service("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0) | |
3511 | game:service("Lighting").ShadowColor = Color3.new(179 / 255, 179 / 255, 179 / 255) | |
3512 | game:service("Lighting").TimeOfDay = "07:00:00" | |
3513 | end | |
3514 | if MessageSplit[1]:lower() == "day" then | |
3515 | game:service("Lighting").Brightness = 3 | |
3516 | game:service("Lighting").GeographicLatitude = 41.73 | |
3517 | game:service("Lighting").Ambient = Color3.new(150 / 255, 127 / 255, 150 / 255) | |
3518 | game:service("Lighting").ColorShift_Top = Color3.new(10 / 255, 10 / 255, 10 / 255) | |
3519 | game:service("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0) | |
3520 | game:service("Lighting").ShadowColor = Color3.new(179 / 255, 179 / 255, 179 / 255) | |
3521 | game:service("Lighting").TimeOfDay = "12:00:00" | |
3522 | end | |
3523 | if MessageSplit[1]:lower() == "dusk" then | |
3524 | game:service("Lighting").Brightness = 2 | |
3525 | game:service("Lighting").GeographicLatitude = 41.73 | |
3526 | game:service("Lighting").Ambient = Color3.new(150 / 255, 110 / 255, 110 / 255) | |
3527 | game:service("Lighting").ColorShift_Top = Color3.new(50 / 255, 10 / 255, 10 / 255) | |
3528 | game:service("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0) | |
3529 | game:service("Lighting").ShadowColor = Color3.new(179 / 255, 179 / 255, 179 / 255) | |
3530 | game:service("Lighting").TimeOfDay = "17:55:00" | |
3531 | end | |
3532 | if MessageSplit[1]:lower() == "night" then | |
3533 | game:service("Lighting").Brightness = 5 | |
3534 | game:service("Lighting").GeographicLatitude = 41.73 | |
3535 | game:service("Lighting").Ambient = Color3.new(20 / 255, 20 / 255, 20 / 255) | |
3536 | game:service("Lighting").ColorShift_Top = Color3.new(0, 0, 25 / 255) | |
3537 | game:service("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0) | |
3538 | game:service("Lighting").ShadowColor = Color3.new(200 / 255, 200 / 255, 200 / 255) | |
3539 | game:service("Lighting").TimeOfDay = "21:00:00" | |
3540 | end | |
3541 | if MessageSplit[1]:lower() == "default" then | |
3542 | game:service("Lighting").Brightness = 1 | |
3543 | game:service("Lighting").GeographicLatitude = 41.73 | |
3544 | game:service("Lighting").Ambient = Color3.new(128 / 255, 128 / 255, 128 / 255) | |
3545 | game:service("Lighting").ColorShift_Top = Color3.new(0, 0, 0) | |
3546 | game:service("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0) | |
3547 | game:service("Lighting").ShadowColor = Color3.new(179 / 255, 179 / 255, 184 / 255) | |
3548 | game:service("Lighting").TimeOfDay = "14:00:00" | |
3549 | end | |
3550 | if MessageSplit[1]:lower() == "black" then | |
3551 | game:service("Lighting").Brightness = 0 | |
3552 | game:service("Lighting").GeographicLatitude = 90 | |
3553 | game:service("Lighting").Ambient = Color3.new(0, 0, 0) | |
3554 | game:service("Lighting").ColorShift_Top = Color3.new(0, 0, 0) | |
3555 | game:service("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0) | |
3556 | game:service("Lighting").ShadowColor = Color3.new(1, 1, 1) | |
3557 | game:service("Lighting").TimeOfDay = "00:00:00" | |
3558 | end | |
3559 | if MessageSplit[1]:lower() == "shift" then | |
3560 | if Self.Shift == nil then Self.Shift = false end | |
3561 | if Self.ShiftTime == nil then Self.ShiftTime = 10 end | |
3562 | if Self.Shift == true then Self.Shift = false else Self.Shift = true end | |
3563 | local h = tonumber(CoolCMDs.Functions.Explode(":", game.Lighting.TimeOfDay)[1]) | |
3564 | local m = tonumber(CoolCMDs.Functions.Explode(":", game.Lighting.TimeOfDay)[2]) | |
3565 | local s = tonumber(CoolCMDs.Functions.Explode(":", game.Lighting.TimeOfDay)[3]) | |
3566 | while Self.Shift == true and CoolCMDs ~= nil do | |
3567 | s = s + 10 | |
3568 | if s >= 60 then | |
3569 | m = m + 1 | |
3570 | s = 0 | |
3571 | end | |
3572 | if m > 60 then | |
3573 | h = h + 1 | |
3574 | m = 0 | |
3575 | end | |
3576 | if h > 24 then | |
3577 | h = 0 | |
3578 | end | |
3579 | game:service("Lighting").TimeOfDay = h.. ":" ..m.. ":" ..s | |
3580 | wait() | |
3581 | end | |
3582 | end | |
3583 | 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 | |
3584 | 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 | |
3585 | 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 | |
3586 | 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 | |
3587 | 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 | |
3588 | if MessageSplit[1]:lower() == "latitude" then pcall(function() game:service("Lighting").GeographicLatitude = tonumber(MessageSplit[2]) end) end | |
3589 | if MessageSplit[1]:lower() == "time" or MessageSplit[1]:lower() == "timeofday" then pcall(function() game:service("Lighting").TimeOfDay = MessageSplit[2] end) end | |
3590 | 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") | |
3591 | ||
3592 | CoolCMDs.Functions.CreateCommand({"lockscript", "lock script", "lockscripts", "lock scripts", "ls"}, 1, function(Message, MessageSplit, Speaker, Self) | |
3593 | if MessageSplit[1]:lower() == "0" or MessageSplit[1]:lower() == "false" then | |
3594 | game:service("ScriptContext").ScriptsDisabled = false | |
3595 | if Self.new ~= nil then | |
3596 | Instance.new = Self.new | |
3597 | Self.new = nil | |
3598 | end | |
3599 | for _, Scripts in pairs(CoolCMDs.Functions.GetRecursiveChildren(nil, "script", 2)) do | |
3600 | if Scripts ~= script and Scripts:IsA("BaseScript") then | |
3601 | Scripts.Disabled = false | |
3602 | end | |
3603 | end | |
3604 | CoolCMDs.Functions.CreateMessage("Message", "Scripts unlocked.", 1) | |
3605 | elseif MessageSplit[1]:lower() == "1" or MessageSplit[1]:lower() == "true" then | |
3606 | local LockMessage = CoolCMDs.Functions.CreateMessage("Message", "Locking scripts...") | |
3607 | game:service("ScriptContext").ScriptsDisabled = true | |
3608 | if pcall(function() local _ = Instance.new("Part") end) == true then | |
3609 | Self.new = Instance.new | |
3610 | Instance.new = function() error("No objects are currently allowed.") end | |
3611 | end | |
3612 | for _, Scripts in pairs(CoolCMDs.Functions.GetRecursiveChildren(nil, "script", 2)) do | |
3613 | if Scripts ~= script and Scripts:IsA("BaseScript") then | |
3614 | Scripts.Disabled = true | |
3615 | end | |
3616 | end | |
3617 | LockMessage.Text = "Scripts locked." | |
3618 | wait(5) | |
3619 | LockMessage:Remove() | |
3620 | end | |
3621 | end, "Lock Scripts", "Disables all new scripts and all currently running scripts (besides itself).", "[0 (false), 1 (true)]") | |
3622 | ||
3623 | CoolCMDs.Functions.CreateCommand({"clean"}, 5, function(Message, MessageSplit, Speaker, Self) | |
3624 | if #MessageSplit < 3 then return end | |
3625 | local CleanType = MessageSplit[#MessageSplit - 1] | |
3626 | if CleanType == nil then CleanType = "1" end | |
3627 | CleanType = CleanType:lower() | |
3628 | if CleanType == "1" or CleanType == "name" then CleanType = 1 end | |
3629 | if CleanType == "2" or CleanType == "class" or CleanType == "classname" then CleanType = 2 end | |
3630 | if CleanType == "3" or CleanType == "type" or CleanType == "isa" then CleanType = 3 end | |
3631 | if CleanType == "4" or CleanType == "all" then CleanType = 4 end | |
3632 | local CleanExtra = MessageSplit[#MessageSplit] | |
3633 | if CleanExtra == nil then CleanExtra = "" end | |
3634 | for i = 1, #MessageSplit - 2 do | |
3635 | for _, Part in pairs(CoolCMDs.Functions.GetRecursiveChildren(nil, MessageSplit[i], CleanType)) do | |
3636 | local _, CanClean = pcall(function() | |
3637 | if Part == script then | |
3638 | return false | |
3639 | end | |
3640 | if (string.match(Part.Name, "CoolCMDs") and Part.Parent == game:service("ScriptContext")) or Part.className == "Lighting" then return false end | |
3641 | if string.match(CleanExtra, "nochar") then | |
3642 | for _, Player in pairs(game:service("Players"):GetPlayers()) do | |
3643 | if Part == Player.Character or Part:IsDescendantOf(Player.Character) then return false end | |
3644 | end | |
3645 | end | |
3646 | if string.match(CleanExtra, "noplayer") then | |
3647 | for _, Player in pairs(game:service("Players"):GetPlayers()) do | |
3648 | if Part:IsDescendantOf(Player) or Part == Player then return false end | |
3649 | end | |
3650 | end | |
3651 | if string.match(CleanExtra, "nobase") then | |
3652 | if Part.Parent == game:service("Workspace") and Part.Name == "Base" then | |
3653 | return false | |
3654 | end | |
3655 | end | |
3656 | if string.match(CleanExtra, "noscript") then | |
3657 | if Part:IsA("BaseScript") then | |
3658 | return false | |
3659 | end | |
3660 | end | |
3661 | if string.match(CleanExtra, "stopscript") then | |
3662 | if Part:IsA("BaseScript") then | |
3663 | Part.Disabled = true | |
3664 | end | |
3665 | end | |
3666 | if string.match(CleanExtra, "stopsound") then | |
3667 | if Part:IsA("Sound") then | |
3668 | for i = 1, 10 do | |
3669 | Part.SoundId = "" | |
3670 | Part.Looped = false | |
3671 | Part.Volume = 0 | |
3672 | Part.Pitch = 0 | |
3673 | Part:Stop() | |
3674 | wait() | |
3675 | end | |
3676 | end | |
3677 | end | |
3678 | return true | |
3679 | end) | |
3680 | if CanClean == true then | |
3681 | --local heent = Instance.new("Hint", workspace) | |
3682 | --heent.Text = Part.className.. " " ..Part.Name | |
3683 | --wait(1) | |
3684 | --heent:Remove() | |
3685 | pcall(function() Part:Remove() end) | |
3686 | end | |
3687 | end | |
3688 | end | |
3689 | 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") | |
3690 | ||
3691 | CoolCMDs.Functions.CreateCommand("game", 5, function(Message, MessageSplit, Speaker, Self) | |
3692 | if #MessageSplit < 2 then return end | |
3693 | local BuildType = MessageSplit[1] | |
3694 | if BuildType == nil then BuildType = "1" end | |
3695 | BuildType = BuildType:lower() | |
3696 | if BuildType == "1" or BuildType == "save" then BuildType = 1 end | |
3697 | if BuildType == "2" or BuildType == "load" then BuildType = 2 end | |
3698 | local BuildArg1 = MessageSplit[2] | |
3699 | if BuildArg1 == nil then BuildArg1 = "default" end | |
3700 | if Self.Saves == nil then Self.Saves = {} end | |
3701 | if BuildType == 1 then | |
3702 | Self.Saves[BuildArg1] = {} | |
3703 | Self.Saves[BuildArg1].Model = Instance.new("Model") | |
3704 | for _, Part in pairs(CoolCMDs.Functions.GetRecursiveChildren(game:service("Workspace"))) do | |
3705 | if (function() | |
3706 | for _, Player in pairs(game:service("Players"):GetPlayers()) do | |
3707 | if Part == Player or Part:IsDescendantOf(Player) or Player.Character or Part:IsDescendantOf(Player.Character) then | |
3708 | return false | |
3709 | end | |
3710 | end | |
3711 | return true | |
3712 | end)() == true then | |
3713 | pcall(function() Part:Clone().Parent = Self.Saves[BuildArg1].Model end) | |
3714 | end | |
3715 | end | |
3716 | CoolCMDs.Functions.CreateMessage("Message", "Saved " ..#Self.Saves[BuildArg1].Model:children().. " objects to the save file \"" ..BuildArg1.. "\".", 5) | |
3717 | elseif BuildType == 2 then | |
3718 | if Self.Saves[BuildArg1] ~= nil then | |
3719 | for _, Part in pairs(CoolCMDs.Functions.GetRecursiveChildren(game:service("Workspace"))) do | |
3720 | if (function() | |
3721 | for _, Player in pairs(game:service("Players"):GetPlayers()) do | |
3722 | if Part == Player or Part:IsDescendantOf(Player) or Player.Character or Part:IsDescendantOf(Player.Character) then | |
3723 | return false | |
3724 | end | |
3725 | end | |
3726 | return true | |
3727 | end)() == true then | |
3728 | pcall(function() Part.Disabled = true end) | |
3729 | pcall(function() Part:Remove() end) | |
3730 | end | |
3731 | end | |
3732 | local Loading = CoolCMDs.Functions.CreateMessage("Hint", "Loading " ..#Self.Saves[BuildArg1].Model:children().. " objects from the save file \"" ..BuildArg1.. "\"...") | |
3733 | for _, Part in pairs(Self.Saves[BuildArg1].Model:children()) do | |
3734 | pcall(function() local x = Part:Clone() x:MakeJoints() x.Parent = game:service("Workspace") x:MakeJoints() end) | |
3735 | end | |
3736 | Loading:Remove() | |
3737 | CoolCMDs.Functions.CreateMessage("Message", "Loaded " ..#Self.Saves[BuildArg1].Model:children().. " objects from the save file \"" ..BuildArg1.. "\" successfully.", 5) | |
3738 | else | |
3739 | CoolCMDs.Functions.CreateMessage("Message", "Save file \"" ..BuildArg1.. "\" does not exist.", 5) | |
3740 | end | |
3741 | end | |
3742 | 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]") | |
3743 | ||
3744 | CoolCMDs.Functions.CreateCommand("health", 1, function(Message, MessageSplit, Speaker, Self) | |
3745 | if #MessageSplit < 2 then return false end | |
3746 | local Health = MessageSplit[#MessageSplit] | |
3747 | if Health == nil then Health = "" end | |
3748 | Health = Health:lower() | |
3749 | if Health == "math.huge" then | |
3750 | Health = math.huge | |
3751 | elseif Health == "" or tonumber(Health) == nil then | |
3752 | Health = 0 | |
3753 | else | |
3754 | Health = tonumber(Health) | |
3755 | end | |
3756 | Health = math.abs(Health) | |
3757 | for i = 1, #MessageSplit - 1 do | |
3758 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
3759 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then | |
3760 | if PlayerList.Character:FindFirstChild("Humanoid") ~= nil then | |
3761 | if Health > PlayerList.Character.Humanoid.MaxHealth then | |
3762 | PlayerList.Character.Humanoid.MaxHealth = Health | |
3763 | else | |
3764 | PlayerList.Character.Humanoid.MaxHealth = 100 | |
3765 | if Health > PlayerList.Character.Humanoid.MaxHealth then | |
3766 | PlayerList.Character.Humanoid.MaxHealth = Health | |
3767 | end | |
3768 | end | |
3769 | PlayerList.Character.Humanoid.Health = Health | |
3770 | end | |
3771 | end | |
3772 | end | |
3773 | end | |
3774 | end, "Health", "Set the health of a player's character. ", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "[health (number), math.huge, random, my health]") | |
3775 | ||
3776 | CoolCMDs.Functions.CreateCommand("lua", 1, function(Message, MessageSplit, Speaker, Self) | |
3777 | CoolCMDs.Functions.CreateScript(Message, game:service("Workspace"), true) | |
3778 | end, "Lua Run", "Creates a new script.", "source") | |
3779 | ||
3780 | CoolCMDs.Functions.CreateCommand({"luanodebug", "luandb"}, 1, function(Message, MessageSplit, Speaker, Self) | |
3781 | CoolCMDs.Functions.CreateScript(Message, game:service("Workspace"), false) | |
3782 | end, "Lua Run (No Debug)", "Creates a new script without error output.", "source") | |
3783 | ||
3784 | CoolCMDs.Functions.CreateCommand({"walkspeed", "ws"}, 1, function(Message, MessageSplit, Speaker, Self) | |
3785 | if #MessageSplit < 2 then return false end | |
3786 | for i = 1, #MessageSplit - 1 do | |
3787 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
3788 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then | |
3789 | if PlayerList.Character:FindFirstChild("Humanoid") ~= nil then | |
3790 | pcall(function() PlayerList.Character.Humanoid.WalkSpeed = tonumber(MessageSplit[#MessageSplit]) end) | |
3791 | end | |
3792 | end | |
3793 | end | |
3794 | end | |
3795 | end, "WalkSpeed", "Set the WalkSpeed of a player's character. ", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "[speed (number), math.huge, random, my walkspeed]") | |
3796 | ||
3797 | CoolCMDs.Functions.CreateCommand({"teleport"}, 1, function(Message, MessageSplit, Speaker, Self) | |
3798 | local Position = MessageSplit[#MessageSplit]:lower() | |
3799 | local Player = nil | |
3800 | if Position == "" or Position == "me" then | |
3801 | if Speaker.Character ~= nil then | |
3802 | if Speaker.Character:FindFirstChild("Torso") ~= nil then | |
3803 | Position = Speaker.Character.Torso.CFrame | |
3804 | Player = Speaker | |
3805 | end | |
3806 | end | |
3807 | elseif #CoolCMDs.Functions.Explode(", ", Position) == 3 then | |
3808 | Position = CFrame.new(CoolCMDs.Functions.Explode(", ", Position)[1], CoolCMDs.Functions.Explode(", ", Position)[2], CoolCMDs.Functions.Explode(", ", Position)[3]) | |
3809 | else | |
3810 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
3811 | if string.match(PlayerList.Name:lower(), Position:lower()) and PlayerList.Character ~= nil then | |
3812 | if PlayerList.Character:FindFirstChild("Torso") ~= nil then | |
3813 | Position = PlayerList.Character.Torso.CFrame | |
3814 | Player = PlayerList | |
3815 | break | |
3816 | end | |
3817 | end | |
3818 | end | |
3819 | end | |
3820 | if type(Position) == "string" then return end | |
3821 | local i = 1 | |
3822 | for x = 1, #MessageSplit - 1 do | |
3823 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
3824 | if string.match(PlayerList.Name:lower(), MessageSplit[x]:lower()) and PlayerList.Character ~= nil and PlayerList ~= Player then | |
3825 | i = i + 1 | |
3826 | if PlayerList.Character:FindFirstChild("Torso") ~= nil then | |
3827 | PlayerList.Character.Torso.CFrame = Position * CFrame.new(0, 4 * i, 0) | |
3828 | PlayerList.Character.Torso.Velocity = Vector3.new(0, 0, 0) | |
3829 | PlayerList.Character.Torso.RotVelocity = Vector3.new(0, 0, 0) | |
3830 | else | |
3831 | PlayerList.Character:MoveTo((Position * CFrame.new(0, 4 * i, 0)).p) | |
3832 | end | |
3833 | end | |
3834 | end | |
3835 | end | |
3836 | end, "Teleport", "Teleport players to other players. ", "player to teleport" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "player to teleport to, or [x, y, z]") | |
3837 | ||
3838 | CoolCMDs.Functions.CreateCommand({"waypoint", "wp"}, 1, function(Message, MessageSplit, Speaker, Self) | |
3839 | if Speaker.Character == nil then return end | |
3840 | if Speaker.Character:FindFirstChild("Torso") == nil then return end | |
3841 | if #MessageSplit < 2 then return end | |
3842 | local Type = MessageSplit[1]:lower() | |
3843 | local Index = MessageSplit[2] | |
3844 | local Player = CoolCMDs.Functions.GetPlayerTable(Speaker.Name) | |
3845 | if Player.Waypoints == nil then | |
3846 | Player.Waypoints = {} | |
3847 | end | |
3848 | Waypoint = Player.Waypoints | |
3849 | if Type == "set" then | |
3850 | Waypoint[Index] = {} | |
3851 | Waypoint[Index].CFrame = Speaker.Character.Torso.CFrame | |
3852 | Waypoint[Index].Velocity = Speaker.Character.Torso.Velocity | |
3853 | Waypoint[Index].RotVelocity = Speaker.Character.Torso.RotVelocity | |
3854 | CoolCMDs.Functions.CreateMessage("Hint", "[Waypoint \"" ..Index.. "\"] Set at CFrame {" ..tostring(Waypoint[Index].CFrame.p).. "}.", 5, Speaker) | |
3855 | elseif Type == "get" then | |
3856 | if Waypoint[Index] ~= nil then | |
3857 | Speaker.Character.Torso.CFrame = Waypoint[Index].CFrame | |
3858 | Speaker.Character.Torso.Velocity = Waypoint[Index].Velocity | |
3859 | Speaker.Character.Torso.RotVelocity = Waypoint[Index].RotVelocity | |
3860 | CoolCMDs.Functions.CreateMessage("Hint", "[Waypoint \"" ..Index.. "\"] Moved to CFrame {" ..tostring(Waypoint[Index].CFrame.p).. "}.", 5, Speaker) | |
3861 | else | |
3862 | CoolCMDs.Functions.CreateMessage("Hint", "[Waypoint \"" ..Index.. "\"] There is no waypoint with that index.", 5, Speaker) | |
3863 | end | |
3864 | elseif Type == "remove" then | |
3865 | if Waypoint[Index] ~= nil then | |
3866 | Waypoint[Index] = nil | |
3867 | CoolCMDs.Functions.CreateMessage("Hint", "[Waypoint \"" ..Index.. "\"] Removed.", 5, Speaker) | |
3868 | else | |
3869 | CoolCMDs.Functions.CreateMessage("Hint", "[Waypoint \"" ..Index.. "\"] There is no waypoint with that index.", 5, Speaker) | |
3870 | end | |
3871 | elseif Type == "show" then | |
3872 | if Waypoint[Index] ~= nil then | |
3873 | CoolCMDs.Functions.CreateMessage("Hint", "[Waypoint \"" ..Index.. "\"] CFrame {" ..tostring(Waypoint[Index].CFrame.p).. "}.", 5, Speaker) | |
3874 | else | |
3875 | CoolCMDs.Functions.CreateMessage("Hint", "[Waypoint \"" ..Index.. "\"] There is no waypoint with that index.", 5, Speaker) | |
3876 | end | |
3877 | end | |
3878 | end, "Waypoint", "Set dynamic waypoints that store your character's position, saved by string indices.", "[set, get]" ..CoolCMDs.Data.SplitCharacter.. "waypoint index") | |
3879 | ||
3880 | CoolCMDs.Functions.CreateCommand({"kill", "ki"}, 3, function(Message, MessageSplit, Speaker, Self) | |
3881 | for i = 1, #MessageSplit do | |
3882 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
3883 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then | |
3884 | for _, Part in pairs(PlayerList.Character:GetChildren()) do | |
3885 | pcall(function() Part.Health = 0 end) | |
3886 | end | |
3887 | end | |
3888 | end | |
3889 | end | |
3890 | end, "Kill", "Kills people.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]") | |
3891 | ||
3892 | CoolCMDs.Functions.CreateCommand({"freeze", "f"}, 1, function(Message, MessageSplit, Speaker, Self) | |
3893 | for i = 1, #MessageSplit do | |
3894 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
3895 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then | |
3896 | for _, Part in pairs(PlayerList.Character:children()) do | |
3897 | pcall(function() Part.Anchored = true end) | |
3898 | end | |
3899 | end | |
3900 | end | |
3901 | end | |
3902 | end, "Freeze", "Freeze people in place.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]") | |
3903 | ||
3904 | CoolCMDs.Functions.CreateCommand({"unfreeze", "unf", "uf", "thaw", "th"}, 1, function(Message, MessageSplit, Speaker, Self) | |
3905 | for i = 1, #MessageSplit do | |
3906 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
3907 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then | |
3908 | for _, Part in pairs(PlayerList.Character:children()) do | |
3909 | pcall(function() Part.Anchored = false end) | |
3910 | end | |
3911 | end | |
3912 | end | |
3913 | end | |
3914 | end, "Unfreeze/Thaw", "Unfreeze/thaw people.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]") | |
3915 | ||
3916 | CoolCMDs.Functions.CreateCommand({"killer frogs", "frogs"}, 1, function(Message, MessageSplit, Speaker, Self) | |
3917 | if #MessageSplit < 2 then return end | |
3918 | local Frogs = tonumber(MessageSplit[#MessageSplit]) | |
3919 | if Frogs == nil then Frogs = 1 end | |
3920 | if Frogs > 25 then Frogs = 25 end | |
3921 | if Frogs <= 0 then Frogs = 1 end | |
3922 | for i = 1, #MessageSplit - 1 do | |
3923 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
3924 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and pcall(function() local _, _ = PlayerList.Character.Torso.CFrame, PlayerList.Character.Humanoid.Health end) == true then | |
3925 | for x = 1, Frogs do | |
3926 | local Frog = Instance.new("Part", game:service("Workspace")) | |
3927 | Frog.Name = "Killer Frog" | |
3928 | Frog.BrickColor = BrickColor.new("Bright green") | |
3929 | Frog.formFactor = "Custom" | |
3930 | Frog.Size = Vector3.new(0.9, 0.9, 0.9) | |
3931 | Frog.TopSurface = 0 | |
3932 | Frog.BottomSurface = 0 | |
3933 | Frog.CFrame = CFrame.new(PlayerList.Character.Torso.CFrame.p) * CFrame.new(math.random(-10, 10), math.random(-1, 1), math.random(-10, 10)) | |
3934 | Frog.Touched:connect(function(Hit) pcall(function() Hit.Parent.Humanoid:TakeDamage(0.5) end) end) | |
3935 | Instance.new("Decal", Frog).Texture = "rbxasset://textures\\face.png" | |
3936 | coroutine.wrap(function() | |
3937 | for i = 1, 0, -0.05 do | |
3938 | Frog.Transparency = i | |
3939 | wait() | |
3940 | end | |
3941 | Frog.Transparency = 0 | |
3942 | while Frog.Parent ~= nil do | |
3943 | if pcall(function() local _, _ = PlayerList.Character.Torso.CFrame, PlayerList.Character.Humanoid.Health end) == false then break end | |
3944 | if PlayerList.Character.Humanoid.Health <= 0 then break end | |
3945 | wait(math.random(10, 200) / 100) | |
3946 | 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) | |
3947 | end | |
3948 | for i = 0, 1, 0.05 do | |
3949 | Frog.Transparency = i | |
3950 | wait() | |
3951 | end | |
3952 | Frog:Remove() | |
3953 | end)() | |
3954 | end | |
3955 | end | |
3956 | end | |
3957 | end | |
3958 | end, "Killer Frogs", "Throw some frogs at people.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "number of frogs") | |
3959 | ||
3960 | CoolCMDs.Functions.CreateCommand({"killer bees", "bees"}, 1, function(Message, MessageSplit, Speaker, Self) | |
3961 | if #MessageSplit < 2 then return end | |
3962 | local Bees = tonumber(MessageSplit[#MessageSplit]) | |
3963 | if Bees == nil then Bees = 1 end | |
3964 | if Bees > 50 then Bees = 50 end | |
3965 | if Bees <= 0 then Bees = 1 end | |
3966 | for i = 1, #MessageSplit - 1 do | |
3967 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
3968 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and pcall(function() local _, _ = PlayerList.Character.Torso.CFrame, PlayerList.Character.Humanoid.Health end) == true then | |
3969 | for x = 1, Bees do | |
3970 | local Bee = Instance.new("Part", game:service("Workspace")) | |
3971 | Bee.Name = "Killer Bee" | |
3972 | Bee.BrickColor = BrickColor.new("Bright yellow") | |
3973 | Bee.formFactor = "Custom" | |
3974 | Bee.Size = Vector3.new(0.4, 0.9, 0.4) | |
3975 | Bee.TopSurface = 0 | |
3976 | Bee.BottomSurface = 0 | |
3977 | Bee.CFrame = CFrame.new(PlayerList.Character.Torso.CFrame.p) * CFrame.new(math.random(-10, 10), math.random(1, 25), math.random(-10, 10)) | |
3978 | Bee.Touched:connect(function(Hit) pcall(function() Hit.Parent.Humanoid:TakeDamage(0.25) end) end) | |
3979 | Instance.new("SpecialMesh", Bee).MeshType = "Head" | |
3980 | coroutine.wrap(function() | |
3981 | for i = 1, 0, -0.05 do | |
3982 | Bee.Transparency = i | |
3983 | wait() | |
3984 | end | |
3985 | Bee.Transparency = 0 | |
3986 | while Bee.Parent ~= nil do | |
3987 | if pcall(function() local _, _ = PlayerList.Character.Torso.CFrame, PlayerList.Character.Humanoid.Health end) == false then break end | |
3988 | if PlayerList.Character.Humanoid.Health <= 0 then break end | |
3989 | 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)) | |
3990 | wait(math.random(1, 10) / 100) | |
3991 | end | |
3992 | for i = 0, 1, 0.05 do | |
3993 | Bee.Transparency = i | |
3994 | wait() | |
3995 | end | |
3996 | Bee:Remove() | |
3997 | end)() | |
3998 | end | |
3999 | end | |
4000 | end | |
4001 | end | |
4002 | end, "Killer Bees", "Throw clouds of angry bees at people.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "number of bees") | |
4003 | ||
4004 | CoolCMDs.Functions.CreateCommand({"blind", "b"}, 1, function(Message, MessageSplit, Speaker, Self) | |
4005 | for i = 1, #MessageSplit do | |
4006 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4007 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) then | |
4008 | local Blind = Instance.new("ScreenGui", PlayerList.PlayerGui) | |
4009 | Blind.Name = "CoolCMDsBlind" | |
4010 | local Black = Instance.new("Frame", Blind) | |
4011 | Black.Name = "Black" | |
4012 | Black.BorderSizePixel = 0 | |
4013 | Black.ZIndex = math.huge | |
4014 | Black.BackgroundColor3 = Color3.new(0, 0, 0) | |
4015 | Black.Size = UDim2.new(2, 0, 2, 0) | |
4016 | Black.Position = UDim2.new(-0.5, 0, -0.5, 0) | |
4017 | Black.Changed:connect(function(Property) | |
4018 | if Property == "Parent" then | |
4019 | if Black.Parent ~= Blind then | |
4020 | Black.Parent = Blind | |
4021 | end | |
4022 | end | |
4023 | end) | |
4024 | Blind.Changed:connect(function(Property) | |
4025 | if Property == "Parent" then | |
4026 | if Blind.Name == "CoolCMDsBlindDisabled" then return end | |
4027 | if Blind.Parent ~= PlayerList.PlayerGui then | |
4028 | Blind.Parent = PlayerList.PlayerGui | |
4029 | end | |
4030 | end | |
4031 | end) | |
4032 | end | |
4033 | end | |
4034 | end | |
4035 | end, "Blind", "Blind people.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]") | |
4036 | ||
4037 | CoolCMDs.Functions.CreateCommand({"unblind", "noblind", "unb", "ub", "nb"}, 1, function(Message, MessageSplit, Speaker, Self) | |
4038 | for i = 1, #MessageSplit do | |
4039 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4040 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) then | |
4041 | pcall(function() while true do PlayerList.PlayerGui.CoolCMDsBlind.Name = "CoolCMDsBlindDisabled" PlayerList.PlayerGui.CoolCMDsBlindDisabled:Remove() end end) | |
4042 | end | |
4043 | end | |
4044 | end | |
4045 | end, "Unblind", "Let people see again.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]") | |
4046 | ||
4047 | CoolCMDs.Functions.CreateCommand({"nogui", "ng"}, 1, function(Message, MessageSplit, Speaker, Self) | |
4048 | for i = 1, #MessageSplit do | |
4049 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4050 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) then | |
4051 | for _, Part in pairs(PlayerList.PlayerGui:children()) do | |
4052 | if Part:IsA("GuiBase") then | |
4053 | pcall(function() Part:Remove() end) | |
4054 | end | |
4055 | end | |
4056 | end | |
4057 | end | |
4058 | end | |
4059 | end, "No Gui", "Remove all Guis.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]") | |
4060 | ||
4061 | CoolCMDs.Functions.CreateCommand({"crush", "cr"}, 3, function(Message, MessageSplit, Speaker, Self) | |
4062 | for i = 1, #MessageSplit do | |
4063 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4064 | 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 | |
4065 | coroutine.wrap(function() | |
4066 | local WalkSpeed = PlayerList.Character.Humanoid.WalkSpeed | |
4067 | PlayerList.Character.Humanoid.WalkSpeed = 0 | |
4068 | wait(3) | |
4069 | PlayerList.Character.Humanoid.WalkSpeed = WalkSpeed | |
4070 | end)() | |
4071 | local Brick = Instance.new("Part", game:service("Workspace")) | |
4072 | Brick.Name = "Brick" | |
4073 | Brick.BrickColor = BrickColor.new("Really black") | |
4074 | Brick.TopSurface = 0 | |
4075 | Brick.BottomSurface = 0 | |
4076 | Brick.formFactor = "Symmetric" | |
4077 | Brick.Size = Vector3.new(10, 7, 8) | |
4078 | Brick.CFrame = CFrame.new(PlayerList.Character.Torso.CFrame.p) * CFrame.new(0, 200, 0) * CFrame.fromEulerAnglesXYZ(0, math.rad(math.random(0, 360)), 0) | |
4079 | Instance.new("SpecialMesh", Brick).MeshType = "Torso" | |
4080 | local BodyVelocity = Instance.new("BodyVelocity", Brick) | |
4081 | BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
4082 | BodyVelocity.velocity = Vector3.new(0, -300, 0) | |
4083 | Brick.Touched:connect(function(Hit) | |
4084 | if Hit.Parent == nil then return end | |
4085 | if Hit.Parent:FindFirstChild("Humanoid") ~= nil then | |
4086 | Hit.Parent.Humanoid.MaxHealth = 100 | |
4087 | Hit.Parent.Humanoid.Health = 0 | |
4088 | else | |
4089 | if Hit:GetMass() > 1000 then return end | |
4090 | Hit.Anchored = false | |
4091 | Hit:BreakJoints() | |
4092 | end | |
4093 | end) | |
4094 | coroutine.wrap(function() | |
4095 | for i = 1, 0, -0.05 do | |
4096 | Brick.Transparency = i | |
4097 | wait() | |
4098 | end | |
4099 | Brick.Transparency = 0 | |
4100 | wait(2) | |
4101 | for i = 0, 1, 0.015 do | |
4102 | Brick.Transparency = i | |
4103 | wait() | |
4104 | end | |
4105 | Brick:Remove() | |
4106 | end)() | |
4107 | end | |
4108 | end | |
4109 | end | |
4110 | end, "Crush", "WHAM.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]") | |
4111 | ||
4112 | CoolCMDs.Functions.CreateCommand({"respawn/", "re"}, 2, function(Message, MessageSplit, Speaker, Self) | |
4113 | for i = 1, #MessageSplit do | |
4114 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4115 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) then | |
4116 | pcall(function() | |
4117 | local Model = Instance.new("Model", game:service("Workspace")) | |
4118 | local Part = Instance.new("Part", Model) | |
4119 | Part.Name = "Head" | |
4120 | Part.Transparency = 1 | |
4121 | Part.CanCollide = false | |
4122 | Part.Anchored = true | |
4123 | Part.Locked = true | |
4124 | Part.Parent = Model | |
4125 | local Humanoid = Instance.new("Humanoid", Model) | |
4126 | Humanoid.Health = 100 | |
4127 | PlayerList.Character = Model | |
4128 | Humanoid.Health = 0 | |
4129 | end) | |
4130 | end | |
4131 | end | |
4132 | end | |
4133 | end, "Respawn", "Respawn a player.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]") | |
4134 | ||
4135 | CoolCMDs.Functions.CreateCommand({"forcefield", "ff", "shield", "sh"}, 1, function(Message, MessageSplit, Speaker, Self) | |
4136 | for i = 1, #MessageSplit do | |
4137 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4138 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then | |
4139 | Instance.new("ForceField", PlayerList.Character) | |
4140 | end | |
4141 | end | |
4142 | end | |
4143 | end, "Spawn ForceField", "Spawn a ForceField object in a Player's character.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]") | |
4144 | ||
4145 | CoolCMDs.Functions.CreateCommand({"unforcefield", "noforcefield", "unff", "uff", "noff", "unshield", "unsh", "ush", "noshield", "nosh"}, 1, function(Message, MessageSplit, Speaker, Self) | |
4146 | for i = 1, #MessageSplit do | |
4147 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4148 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then | |
4149 | for _, Part in pairs(PlayerList.Character:children()) do | |
4150 | if Part:IsA("ForceField") then | |
4151 | Part:Remove() | |
4152 | end | |
4153 | end | |
4154 | end | |
4155 | end | |
4156 | end | |
4157 | end, "Remove ForceField", "Remove all ForceField objects in a Player's character.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]") | |
4158 | ||
4159 | CoolCMDs.Functions.CreateCommand({"explode", "ex"}, 3, function(Message, MessageSplit, Speaker, Self) | |
4160 | for i = 1, #MessageSplit do | |
4161 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4162 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then | |
4163 | for _, Part in pairs(PlayerList.Character:children()) do | |
4164 | if Part:isA("BasePart") then | |
4165 | local Explosion = Instance.new("Explosion") | |
4166 | Explosion.BlastPressure = math.random(100000, 1000000) | |
4167 | Explosion.BlastRadius = math.random(1, 25) | |
4168 | Explosion.Position = Part.CFrame.p | |
4169 | Explosion.Parent = PlayerList.Character | |
4170 | end | |
4171 | end | |
4172 | PlayerList.Character:BreakJoints() | |
4173 | end | |
4174 | end | |
4175 | end | |
4176 | end, "Explode", "Spawn an explosion in all parts of a player.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]") | |
4177 | ||
4178 | CoolCMDs.Functions.CreateCommand("hax", 3, function(Message, MessageSplit, Speaker, Self) | |
4179 | if #MessageSplit < 2 then return false end | |
4180 | if CoolCMDs.Functions.IsModuleEnabled("CharacterSupport") == false then | |
4181 | CoolCMDs.Functions.CreateMessage("Hint", "This command requires the CharacterSupport module to be enabled.", 5, Speaker) | |
4182 | return | |
4183 | elseif CoolCMDs.Functions.GetModule("CharacterSupport") == nil then | |
4184 | CoolCMDs.Functions.CreateMessage("Hint", "This command requires the CharacterSupport module to be installed.", 5, Speaker) | |
4185 | return | |
4186 | end | |
4187 | local Characters = tonumber(MessageSplit[#MessageSplit]) | |
4188 | if Characters == nil then Characters = 1 end | |
4189 | if Characters <= 0 then Characters = 1 end | |
4190 | if Characters > 10 then Characters = 10 end | |
4191 | for i = 1, #MessageSplit - 1 do | |
4192 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4193 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and pcall(function() local _ = PlayerList.Character.Torso end) == true then | |
4194 | for i = 1, Characters do | |
4195 | coroutine.wrap(function() | |
4196 | local Character = CoolCMDs.Functions.GetModule("CharacterSupport").CreateCharacter(true) | |
4197 | Character.Name = "Dr. Hax" | |
4198 | local Head = Character.Head | |
4199 | Head.face.Texture = "http://www.Roblox.com/Asset/?id=16580646" | |
4200 | local Torso = Character.Torso | |
4201 | local RightShoulder = Character.Torso["Right Shoulder"] | |
4202 | local RightArm = Character["Right Arm"] | |
4203 | local Humanoid = Character.Humanoid | |
4204 | Character.Shirt.ShirtTemplate = "http://www.Roblox.com/Asset/?id=12702133" | |
4205 | Character.Pants.PantsTemplate = "http://www.Roblox.com/Asset/?id=12702160" | |
4206 | local Hat = Instance.new("Hat") | |
4207 | Hat.Name = "White Hair" | |
4208 | Hat.AttachmentPos = Vector3.new(0, 0.1, 0) | |
4209 | local Handle = Instance.new("Part") | |
4210 | Handle.Name = "Handle" | |
4211 | Handle.formFactor = 0 | |
4212 | Handle.Size = Vector3.new(2, 1, 1) | |
4213 | Handle.TopSurface = 0 | |
4214 | Handle.BottomSurface = 0 | |
4215 | Handle.Parent = Hat | |
4216 | local Mesh = Instance.new("SpecialMesh") | |
4217 | Mesh.MeshId = "http://www.Roblox.com/Asset/?id=13332444" | |
4218 | Mesh.VertexColor = Vector3.new(1, 1, 1) | |
4219 | Mesh.Parent = Handle | |
4220 | Hat.Parent = Character | |
4221 | local Hat = Instance.new("Hat") | |
4222 | Hat.Name = "Beard" | |
4223 | for i = 0, math.pi, math.pi / 10 do Hat.AttachmentForward = Hat.AttachmentForward + Vector3.new(0, math.pi, 0) end | |
4224 | Hat.AttachmentPos = Vector3.new(0, -0.5, 0.7) | |
4225 | local Handle = Instance.new("Part") | |
4226 | Handle.Name = "Handle" | |
4227 | Handle.formFactor = 0 | |
4228 | Handle.Size = Vector3.new(1, 1, 1) | |
4229 | Handle.TopSurface = 0 | |
4230 | Handle.BottomSurface = 0 | |
4231 | Handle.BrickColor = BrickColor.new("Industrial white") | |
4232 | Handle.Parent = Hat | |
4233 | local Mesh = Instance.new("CylinderMesh") | |
4234 | Mesh.Scale = Vector3.new(0.675, 0.199, 0.675) | |
4235 | Mesh.Parent = Handle | |
4236 | Hat.Parent = Character | |
4237 | 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) | |
4238 | Character.Parent = game:service("Workspace") | |
4239 | Character:MakeJoints() | |
4240 | coroutine.wrap(function() | |
4241 | for i = 1, 0, -0.05 do | |
4242 | for _, Part in pairs(Character:children()) do | |
4243 | pcall(function() Part.Transparency = i end) | |
4244 | end | |
4245 | wait() | |
4246 | end | |
4247 | for _, Part in pairs(Character:children()) do | |
4248 | pcall(function() Part.Transparency = 0 end) | |
4249 | end | |
4250 | end)() | |
4251 | coroutine.wrap(function() | |
4252 | while true do | |
4253 | if PlayerList.Character == nil then break end | |
4254 | if PlayerList.Character:FindFirstChild("Torso") == nil or PlayerList.Character:FindFirstChild("Humanoid") == nil or RightArm.Parent ~= Character or Humanoid.Health <= 0 then break end | |
4255 | if PlayerList.Character.Humanoid.Health <= 0 then break end | |
4256 | if (Torso.CFrame.p - PlayerList.Character.Torso.CFrame.p).magnitude > 30 then | |
4257 | Humanoid:MoveTo(PlayerList.Character.Torso.CFrame.p, PlayerList.Character.Torso) | |
4258 | else | |
4259 | Humanoid:MoveTo(Torso.CFrame.p, Torso) | |
4260 | end | |
4261 | 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)) | |
4262 | wait() | |
4263 | end | |
4264 | Humanoid:MoveTo(Torso.CFrame.p, Torso) | |
4265 | end)() | |
4266 | wait(2) | |
4267 | RightShoulder.DesiredAngle = math.rad(90) | |
4268 | wait(1) | |
4269 | while true do | |
4270 | if PlayerList.Character == nil then break end | |
4271 | if PlayerList.Character:FindFirstChild("Torso") == nil or PlayerList.Character:FindFirstChild("Humanoid") == nil or RightArm.Parent ~= Character or Humanoid.Health <= 0 then break end | |
4272 | if PlayerList.Character.Humanoid.Health <= 0 then break end | |
4273 | if Humanoid.Health <= 0 then break end | |
4274 | local Monitor = Instance.new("Part") | |
4275 | Monitor.Name = "Monitor" | |
4276 | Monitor.formFactor = 0 | |
4277 | Monitor.Size = Vector3.new(2, 2, 2) | |
4278 | Monitor.TopSurface = 0 | |
4279 | Monitor.BottomSurface = 0 | |
4280 | Monitor.BrickColor = BrickColor.new("Brick yellow") | |
4281 | Monitor.Parent = game:service("Workspace") | |
4282 | Monitor.CFrame = RightArm.CFrame * CFrame.new(0, -3, 0) | |
4283 | 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)) | |
4284 | local HasTouched = false | |
4285 | Monitor.Touched:connect(function(Hit) | |
4286 | if Hit.Parent == nil then return end | |
4287 | if Hit.Parent == Character or string.match("Dr. Hax", Hit.Parent.Name) or Hit.Name == "Monitor" then return end | |
4288 | local Sound = Instance.new("Sound", Monitor) | |
4289 | Sound.Name = "Crash" | |
4290 | Sound.Volume = math.random(10, 90) / 100 | |
4291 | Sound.SoundId = "rbxasset://sounds/Glassbreak.wav" | |
4292 | Sound.Pitch = math.random(90, 200) / 100 | |
4293 | Sound:Play() | |
4294 | coroutine.wrap(function() | |
4295 | wait(math.random(5, 50) / 100) | |
4296 | for i = Sound.Volume, 0, -math.random(75, 100) / 1000 do | |
4297 | Sound.Volume = i | |
4298 | wait() | |
4299 | end | |
4300 | Sound:Stop() | |
4301 | Sound:Remove() | |
4302 | end)() | |
4303 | if HasTouched == true then return end | |
4304 | HasTouched = true | |
4305 | if Hit.Parent:FindFirstChild("Humanoid") ~= nil then | |
4306 | Hit.Parent.Humanoid:TakeDamage(math.random(5, 25)) | |
4307 | else | |
4308 | if Hit.Anchored == true and Hit:GetMass() < 1000 and math.random(1, 3) == 1 then | |
4309 | Hit.Anchored = false | |
4310 | end | |
4311 | if math.random(1, 10) == 1 then Hit:BreakJoints() end | |
4312 | end | |
4313 | wait(1) | |
4314 | for i = 0, 1, 0.05 do | |
4315 | Monitor.Transparency = i | |
4316 | wait() | |
4317 | end | |
4318 | Monitor:Remove() | |
4319 | end) | |
4320 | wait(math.random(1, 500) / 1000) | |
4321 | end | |
4322 | if Humanoid.Health > 0 then | |
4323 | wait(1) | |
4324 | RightShoulder.DesiredAngle = 0 | |
4325 | wait(2) | |
4326 | end | |
4327 | for i = 0, 1, 0.05 do | |
4328 | for _, Part in pairs(Character:children()) do | |
4329 | pcall(function() Part.Transparency = i end) | |
4330 | end | |
4331 | wait() | |
4332 | end | |
4333 | Character:Remove() | |
4334 | end)() | |
4335 | end | |
4336 | end | |
4337 | end | |
4338 | end | |
4339 | end, "Hax", "Summon Dr. Hax on weary travelers.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "number of characters to spawn (max of 10)") | |
4340 | ||
4341 | CoolCMDs.Functions.CreateCommand("maul", 3, function(Message, MessageSplit, Speaker, Self) | |
4342 | if #MessageSplit < 2 then return false end | |
4343 | if CoolCMDs.Functions.IsModuleEnabled("CharacterSupport") == false then | |
4344 | CoolCMDs.Functions.CreateMessage("Hint", "This command requires the CharacterSupport module to be enabled.", 5, Speaker) | |
4345 | return | |
4346 | elseif CoolCMDs.Functions.GetModule("CharacterSupport") == nil then | |
4347 | CoolCMDs.Functions.CreateMessage("Hint", "This command requires the CharacterSupport module to be installed.", 5, Speaker) | |
4348 | return | |
4349 | end | |
4350 | local Characters = tonumber(MessageSplit[#MessageSplit]) | |
4351 | if Characters == nil then Characters = 1 end | |
4352 | if Characters <= 0 then Characters = 1 end | |
4353 | if Characters > 10 then Characters = 10 end | |
4354 | for i = 1, #MessageSplit - 1 do | |
4355 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4356 | 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 | |
4357 | PlayerList.Character.Humanoid.WalkSpeed = 0 | |
4358 | local Health = PlayerList.Character.Humanoid.Health | |
4359 | local MaxHealth = PlayerList.Character.Humanoid.MaxHealth | |
4360 | PlayerList.Character.Humanoid.MaxHealth = 100 | |
4361 | PlayerList.Character.Humanoid.Health = MaxHealth * (Health / MaxHealth) | |
4362 | for _, Part in pairs(PlayerList.Character:children()) do if Part:IsA("ForceField") then Part:Remove() end end | |
4363 | for i = 1, Characters do | |
4364 | coroutine.wrap(function() | |
4365 | local Character = CoolCMDs.Functions.GetModule("CharacterSupport").CreateCharacter(math.random(1, 2) == 1 and true or false) | |
4366 | Character.Name = "Zombie" | |
4367 | local Head = Character.Head | |
4368 | Head.face.Texture = "http://www.Roblox.com/Asset/?id=16580646" | |
4369 | Head.BrickColor = BrickColor.new("Br. yellowish green") | |
4370 | local Torso = Character.Torso | |
4371 | Torso.BrickColor = BrickColor.new("Reddish brown") | |
4372 | local LeftShoulder = Character.Torso["Left Shoulder"] | |
4373 | local RightShoulder = Character.Torso["Right Shoulder"] | |
4374 | local LeftHip = Character.Torso["Left Hip"] | |
4375 | local RightHip = Character.Torso["Right Hip"] | |
4376 | local Humanoid = Character.Humanoid | |
4377 | Character["Left Arm"].BrickColor = BrickColor.new("Br. yellowish green") | |
4378 | Character["Right Arm"].BrickColor = BrickColor.new("Br. yellowish green") | |
4379 | Character["Left Leg"].BrickColor = BrickColor.new("Reddish brown") | |
4380 | Character["Right Leg"].BrickColor = BrickColor.new("Reddish brown") | |
4381 | 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) | |
4382 | Character.Parent = game:service("Workspace") | |
4383 | Character:MakeJoints() | |
4384 | coroutine.wrap(function() | |
4385 | for i = 1, 0, -0.05 do | |
4386 | for _, Part in pairs(Character:children()) do | |
4387 | pcall(function() Part.Transparency = i end) | |
4388 | end | |
4389 | wait() | |
4390 | end | |
4391 | for _, Part in pairs(Character:children()) do | |
4392 | pcall(function() Part.Transparency = 0 end) | |
4393 | end | |
4394 | end)() | |
4395 | coroutine.wrap(function() | |
4396 | while true do | |
4397 | LeftHip.DesiredAngle = math.rad(45) | |
4398 | RightHip.DesiredAngle = math.rad(45) | |
4399 | wait(0.5) | |
4400 | LeftHip.DesiredAngle = math.rad(-45) | |
4401 | RightHip.DesiredAngle = math.rad(-45) | |
4402 | wait(0.5) | |
4403 | end | |
4404 | end)() | |
4405 | while true do | |
4406 | if PlayerList.Character == nil then break end | |
4407 | if PlayerList.Character:FindFirstChild("Torso") == nil or PlayerList.Character:FindFirstChild("Humanoid") == nil or Humanoid.Health <= 0 then break end | |
4408 | if PlayerList.Character.Humanoid.Health <= 0 then break end | |
4409 | if Humanoid.Health <= 0 then break end | |
4410 | Humanoid:MoveTo(PlayerList.Character.Torso.CFrame.p + Vector3.new(math.random(-3, 3), math.random(-3, 3), math.random(-3, 3)), PlayerList.Character.Torso) | |
4411 | if (PlayerList.Character.Torso.CFrame.p - Torso.CFrame.p).magnitude < 5 then | |
4412 | PlayerList.Character.Humanoid:TakeDamage(math.random(1, 10) / 10) | |
4413 | LeftShoulder.DesiredAngle = -math.rad(math.random(0, 180)) | |
4414 | RightShoulder.DesiredAngle = math.rad(math.random(0, 180)) | |
4415 | else | |
4416 | LeftShoulder.DesiredAngle = -math.rad(90) | |
4417 | RightShoulder.DesiredAngle = math.rad(90) | |
4418 | end | |
4419 | wait() | |
4420 | end | |
4421 | for i = 0, 1, 0.05 do | |
4422 | for _, Part in pairs(Character:children()) do | |
4423 | pcall(function() Part.Transparency = i end) | |
4424 | end | |
4425 | wait() | |
4426 | end | |
4427 | Character:Remove() | |
4428 | end)() | |
4429 | end | |
4430 | end | |
4431 | end | |
4432 | end | |
4433 | end, "Maul", "Summon flesh-hungry zombies to eat players.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "number of zombies to spawn (max of 10)") | |
4434 | ||
4435 | CoolCMDs.Functions.CreateCommand({"ignite", "i"}, 1, function(Message, MessageSplit, Speaker, Self) | |
4436 | if #MessageSplit < 2 then return false end | |
4437 | local Duration = tonumber(MessageSplit[#MessageSplit]) | |
4438 | if Duration == nil then Duration = 0 end | |
4439 | for i = 1, #MessageSplit - 1 do | |
4440 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4441 | 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 | |
4442 | local Tag = Instance.new("Model", PlayerList.Character) | |
4443 | Tag.Name = "CoolCMDsIsOnFire" | |
4444 | coroutine.wrap(function() | |
4445 | if Duration <= 0 then return end | |
4446 | wait(Duration) | |
4447 | Tag:Remove() | |
4448 | end)() | |
4449 | coroutine.wrap(function() | |
4450 | while true do | |
4451 | if PlayerList.Character == nil then break end | |
4452 | if PlayerList.Character:FindFirstChild("Humanoid") == nil or PlayerList.Character:FindFirstChild("CoolCMDsIsOnFire") == nil then break end | |
4453 | if PlayerList.Character.Humanoid.Health <= 0 then break end | |
4454 | PlayerList.Character.Humanoid:TakeDamage(0.25) | |
4455 | wait() | |
4456 | end | |
4457 | Tag:Remove() | |
4458 | end)() | |
4459 | for _, Part in pairs(PlayerList.Character:children()) do | |
4460 | if pcall(function() local _ = Part.CFrame end) == true then | |
4461 | local FireHolder = Instance.new("Part", game:service("Workspace")) | |
4462 | FireHolder.Name = "FireHolder" | |
4463 | FireHolder.formFactor = "Symmetric" | |
4464 | FireHolder.Size = Vector3.new(1, 1, 1) | |
4465 | FireHolder.Anchored = true | |
4466 | FireHolder.TopSurface = 0 | |
4467 | FireHolder.BottomSurface = 0 | |
4468 | FireHolder.Transparency = 1 | |
4469 | FireHolder.CanCollide = false | |
4470 | local Fire = Instance.new("Fire", FireHolder) | |
4471 | Fire.Heat = 10 | |
4472 | Fire.Size = 5 | |
4473 | local Sound = Instance.new("Sound", FireHolder) | |
4474 | Sound.Looped = true | |
4475 | Sound.Pitch = math.random(90, 110) / 100 | |
4476 | Sound.Volume = 1 | |
4477 | Sound.SoundId = "http://www.Roblox.com/Asset/?id=31760113" | |
4478 | Sound:Play() | |
4479 | coroutine.wrap(function() | |
4480 | while pcall(function() local _ = PlayerList.Character.CoolCMDsIsOnFire end) == true do | |
4481 | FireHolder.CFrame = CFrame.new(Part.CFrame.p) | |
4482 | wait() | |
4483 | end | |
4484 | Fire.Enabled = false | |
4485 | for i = 1, 0, -0.05 do | |
4486 | Sound.Volume = i | |
4487 | wait() | |
4488 | end | |
4489 | Sound:Stop() | |
4490 | wait(3) | |
4491 | FireHolder:Remove() | |
4492 | end)() | |
4493 | end | |
4494 | end | |
4495 | end | |
4496 | end | |
4497 | end | |
4498 | 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)") | |
4499 | ||
4500 | CoolCMDs.Functions.CreateCommand({"unignite", "uni", "ui"}, 1, function(Message, MessageSplit, Speaker, Self) | |
4501 | for i = 1, #MessageSplit do | |
4502 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4503 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) then | |
4504 | pcall(function() PlayerList.Character.CoolCMDsIsOnFire:Remove() end) | |
4505 | end | |
4506 | end | |
4507 | end | |
4508 | end, "Unignite", "Put a player out.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]") | |
4509 | ||
4510 | CoolCMDs.Functions.CreateCommand("kick", 5, function(Message, MessageSplit, Speaker, Self) | |
4511 | for i = 1, #MessageSplit do | |
4512 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4513 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList ~= Speaker then | |
4514 | CoolCMDs.Functions.CreateMessage("Hint", "[Kick] Player(s) removed.", 2.5, Speaker) | |
4515 | pcall(function() PlayerList:Remove() end) | |
4516 | end | |
4517 | end | |
4518 | end | |
4519 | end, "Kick", "Kick (remove) a player from the game.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]") | |
4520 | ---------------------------------------BANNEDPLAY | |
4521 | CoolCMDs.Functions.CreateCommand({"banish", "ban"}, 5, function(Message, MessageSplit, Speaker, Self) | |
4522 | if Self.Bans == nil then Self.Bans = {} end | |
4523 | if Self.CatchBan == nil then | |
4524 | Self.CatchBan = game:service("Players").ChildAdded:connect(function(Player) | |
4525 | for i = 1, #Self.Bans do | |
4526 | if string.match(Player.Name:lower(), Self.Bans[i]:lower()) then | |
4527 | CoolCMDs.Functions.CreateMessage("Message", "Full Protection: a Banned player (" ..Player.Name.. ") has been disconnected for trying to re-enter.", 2.5) | |
4528 | wait() | |
4529 | pcall(function() Player:Remove() end) | |
4530 | ------------------------------------------------------------- | |
4531 | end | |
4532 | end | |
4533 | end) | |
4534 | end | |
4535 | local Type = MessageSplit[1]:lower() | |
4536 | if Type == "player" or Type == "p" then | |
4537 | local Completed = false | |
4538 | for i = 2, #MessageSplit do | |
4539 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4540 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList ~= Speaker then | |
4541 | table.insert(Self.Bans, PlayerList.Name:lower()) | |
4542 | pcall(function() PlayerList:Remove() end) | |
4543 | Completed = true | |
4544 | end | |
4545 | end | |
4546 | end | |
4547 | if Completed == true then | |
4548 | CoolCMDs.Functions.CreateMessage("Message", "Full Protection: Player(s) banned.", 2.5, Speaker) | |
4549 | else | |
4550 | CoolCMDs.Functions.CreateMessage("Message", "ERROR: Player(s) not found!", 2.5, Speaker) | |
4551 | end | |
4552 | elseif Type == "name" or Type == "n" then | |
4553 | for i = 2, #MessageSplit do | |
4554 | table.insert(Self.Bans, MessageSplit[i]:lower()) | |
4555 | end | |
4556 | CoolCMDs.Functions.CreateMessage("Hint", "[Ban] Names added.", 2.5, Speaker) | |
4557 | elseif Type == "retgmove" or Type == "fbr" then | |
4558 | local Completed = false | |
4559 | for i = 2, #MessageSplit do | |
4560 | for i = 1, #Self.Bans do | |
4561 | if string.match(Self.Bans:lower(), MessageSplit[i]:lower()) then | |
4562 | table.remove(Self.Bans, i) | |
4563 | end | |
4564 | end | |
4565 | end | |
4566 | if Completed == true then | |
4567 | CoolCMDs.Functions.CreateMessage("Hint", "[Ban] Name(s) removed.", 2.5, Speaker) | |
4568 | else | |
4569 | CoolCMDs.Functions.CreateMessage("Hint", "[Ban] Name(s) not found!", 2.5, Speaker) | |
4570 | end | |
4571 | elseif Type == "remove all" or Type == "ra" then | |
4572 | Self.Bans = {} | |
4573 | CoolCMDs.Functions.CreateMessage("Hint", "[Ban] Ban table reset.", 2.5, Speaker) | |
4574 | end | |
4575 | 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") | |
4576 | ||
4577 | CoolCMDs.Functions.CreateCommand({"slap", "s"}, 1, function(Message, MessageSplit, Speaker, Self) | |
4578 | if #MessageSplit < 3 then return false end | |
4579 | local Speed = tonumber(MessageSplit[#MessageSplit - 1]) | |
4580 | local Strength = tonumber(MessageSplit[#MessageSplit]) | |
4581 | if Speed == nil then Speed = 10 end | |
4582 | if Strength == nil then Strength = 0 end | |
4583 | Speed = math.abs(Speed) | |
4584 | Strength = math.abs(Strength) | |
4585 | for i = 1, #MessageSplit - 2 do | |
4586 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4587 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then | |
4588 | if PlayerList.Character:FindFirstChild("Humanoid") ~= nil then | |
4589 | PlayerList.Character.Humanoid:TakeDamage(Strength) | |
4590 | PlayerList.Character.Humanoid.Sit = true | |
4591 | end | |
4592 | for _, Children in pairs(PlayerList.Character:children()) do | |
4593 | if Children:IsA("BasePart") then | |
4594 | Children.Velocity = Children.Velocity + Vector3.new(math.random(-Speed, Speed), math.random(-Speed, Speed), math.random(-Speed, Speed)) | |
4595 | Children.RotVelocity = Children.RotVelocity + Vector3.new(math.random(-Speed, Speed), math.random(-Speed, Speed), math.random(-Speed, Speed)) | |
4596 | end | |
4597 | end | |
4598 | end | |
4599 | end | |
4600 | end | |
4601 | end, "Slap", "Slap people.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "speed" ..CoolCMDs.Data.SplitCharacter.. "strength") | |
4602 | ||
4603 | CoolCMDs.Functions.CreateCommand({"blocker", "blk"}, 3, function(Message, MessageSplit, Speaker, Self) | |
4604 | if Self.Activated == nil then Self.Activated = false end | |
4605 | if Self.Type == nil then Self.Type = 1 end | |
4606 | if Self.Names == nil then Self.Names = {} end | |
4607 | if Self.ClassNames == nil then Self.ClassNames = {} end | |
4608 | if MessageSplit[1]:lower() == "on" then | |
4609 | Self.Activated = true | |
4610 | CoolCMDs.Functions.CreateMessage("Hint", "[Blocker] Activated.", 2.5, Speaker) | |
4611 | end | |
4612 | if MessageSplit[1]:lower() == "off" then | |
4613 | Self.Activated = false | |
4614 | CoolCMDs.Functions.CreateMessage("Hint", "[Blocker] Deactivated.", 2.5, Speaker) | |
4615 | end | |
4616 | if MessageSplit[1]:lower() == "name" then | |
4617 | for i = 2, #MessageSplit do | |
4618 | table.insert(Self.Names, MessageSplit[i]) | |
4619 | end | |
4620 | CoolCMDs.Functions.CreateMessage("Hint", "[Blocker] Added.", 2.5, Speaker) | |
4621 | end | |
4622 | if MessageSplit[1]:lower() == "class" then | |
4623 | for i = 2, #MessageSplit do | |
4624 | table.insert(Self.ClassNames, MessageSplit[i]) | |
4625 | end | |
4626 | CoolCMDs.Functions.CreateMessage("Hint", "[Blocker] Added.", 2.5, Speaker) | |
4627 | end | |
4628 | if MessageSplit[1]:lower() == "type" then | |
4629 | if MessageSplit[2] == "match" or MessageSplit[2] == "1" then | |
4630 | Self.Type = 1 | |
4631 | CoolCMDs.Functions.CreateMessage("Hint", "[Blocker] Set evaluation type to match (1).", 2.5, Speaker) | |
4632 | elseif MessageSplit[2] == "exact" or MessageSplit[2] == "2" then | |
4633 | Self.Type = 2 | |
4634 | CoolCMDs.Functions.CreateMessage("Hint", "[Blocker] Set evaluation type to exact (2).", 2.5, Speaker) | |
4635 | end | |
4636 | end | |
4637 | if MessageSplit[1]:lower() == "gbku45uk" then | |
4638 | for i = 2, #MessageSplit do | |
4639 | for x = 1, #Self.Names do | |
4640 | if string.match(Self.Names[x], MessageSplit[i]) then | |
4641 | table.remove(Self.Names, x) | |
4642 | end | |
4643 | end | |
4644 | for x = 1, #Self.ClassNames do | |
4645 | if string.match(Self.ClassNames[x], MessageSplit[i]) then | |
4646 | table.remove(Self.ClassNames, x) | |
4647 | end | |
4648 | end | |
4649 | end | |
4650 | CoolCMDs.Functions.CreateMessage("Hint", "[Blocker] Removed.", 2.5, Speaker) | |
4651 | end | |
4652 | if MessageSplit[1]:lower() == "grtuiehrguhb5t5y45g5" then | |
4653 | Self.Names = {} | |
4654 | Self.ClassNames = {} | |
4655 | CoolCMDs.Functions.CreateMessage("Hint", "[Blocker] Removed all entries.", 2.5, Speaker) | |
4656 | end | |
4657 | if Self.Activated == true then | |
4658 | if Self.DescendantAdded ~= nil then | |
4659 | Self.DescendantAdded:disconnect() | |
4660 | Self.DescendantAdded = nil | |
4661 | end | |
4662 | Self.DescendantAdded = game.DescendantAdded:connect(function(Object) | |
4663 | local Remove = false | |
4664 | for i = 1, #Self.Names do | |
4665 | 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 | |
4666 | Remove = true | |
4667 | end | |
4668 | end | |
4669 | for i = 1, #Self.ClassNames do | |
4670 | 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 | |
4671 | Remove = true | |
4672 | end | |
4673 | end | |
4674 | if Remove == true then | |
4675 | CoolCMDs.Functions.CreateMessage("Hint", "[Blocker] \"" ..Object.className.. " object (" ..Object.Name.. ") is blocked and has been removed.", 10) | |
4676 | pcall(function() Object.Disabled = true end) | |
4677 | pcall(function() Object.Active = false end) | |
4678 | pcall(function() Object.Activated = false end) | |
4679 | pcall(function() Object:Remove() end) | |
4680 | end | |
4681 | end) | |
4682 | else | |
4683 | if Self.DescendantAdded ~= nil then | |
4684 | Self.DescendantAdded:disconnect() | |
4685 | Self.DescendantAdded = nil | |
4686 | end | |
4687 | end | |
4688 | 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]") | |
4689 | ||
4690 | CoolCMDs.Functions.CreateCommand({"characterappearance", "ca"}, 1, function(Message, MessageSplit, Speaker, Self) | |
4691 | for i = 2, #MessageSplit - (MessageSplit[1]:lower() == "default" and 0 or 1) do | |
4692 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4693 | if string.match(PlayerList.Name:lower(), MessageSplit[i]) then | |
4694 | if MessageSplit[1] == "default" then | |
4695 | PlayerList.CharacterAppearance = "http://www.Roblox.com/Asset/CharacterFetch.ashx?userId=" ..PlayerList.userId | |
4696 | elseif MessageSplit[1] == "set" then | |
4697 | PlayerList.CharacterAppearance = MessageSplit[#MessageSplit] | |
4698 | elseif MessageSplit[1] == "userid" then | |
4699 | PlayerList.CharacterAppearance = "http://www.Roblox.com/Asset/CharacterFetch.ashx?userId=" ..tonumber(MessageSplit[#MessageSplit]) | |
4700 | elseif MessageSplit[1] == "assetid" then | |
4701 | PlayerList.CharacterAppearance = "http://www.Roblox.com/Asset/?id=" ..tonumber(MessageSplit[#MessageSplit]) | |
4702 | end | |
4703 | end | |
4704 | end | |
4705 | end | |
4706 | end, "CharacterAppearance Editor", "See command name.", "default, set, userid, assetid" ..CoolCMDs.Data.SplitCharacter.. "player" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "[url, userid, assetid]") | |
4707 | ||
4708 | CoolCMDs.Functions.CreateCommand({"character", "char", "ch"}, 1, function(Message, MessageSplit, Speaker, Self) | |
4709 | if #MessageSplit < 2 then return end | |
4710 | for i = 2, #MessageSplit do | |
4711 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4712 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then | |
4713 | if PlayerList.Character:FindFirstChild("Humanoid") ~= nil and PlayerList.Character:FindFirstChild("Torso") ~= nil then | |
4714 | if MessageSplit[1]:lower() == "sit" then | |
4715 | PlayerList.Character.Humanoid.Sit = true | |
4716 | elseif MessageSplit[1]:lower() == "jump" then | |
4717 | PlayerList.Character.Humanoid.Jump = true | |
4718 | elseif MessageSplit[1]:lower() == "platformstand" or MessageSplit[1]:lower() == "ps" then | |
4719 | PlayerList.Character.Humanoid.PlatformStand = true | |
4720 | elseif MessageSplit[1]:lower() == "trip" then | |
4721 | PlayerList.Character.Humanoid.PlatformStand = true | |
4722 | PlayerList.Character.Torso.RotVelocity = Vector3.new(math.random(-25, 25), math.random(-25, 25), math.random(-25, 25)) | |
4723 | coroutine.wrap(function() | |
4724 | wait(0.5) | |
4725 | PlayerList.Character.Humanoid.PlatformStand = false | |
4726 | end)() | |
4727 | elseif MessageSplit[1]:lower() == "stand" then | |
4728 | PlayerList.Character.Humanoid.Sit = false | |
4729 | PlayerList.Character.Humanoid.PlatformStand = false | |
4730 | end | |
4731 | end | |
4732 | end | |
4733 | end | |
4734 | end | |
4735 | end, "Character Editor", "Make people do things.", "sit, jump, [platformstand, ps], trip, stand" ..CoolCMDs.Data.SplitCharacter.. "player" ..CoolCMDs.Data.SplitCharacter.. "[...]") | |
4736 | ||
4737 | CoolCMDs.Functions.CreateCommand("seisure", 1, function(Message, MessageSplit, Speaker, Self) | |
4738 | if #MessageSplit < 2 then return false end | |
4739 | local Duration = tonumber(MessageSplit[#MessageSplit]) | |
4740 | if Duration == nil then Duration = math.random(5, 10) end | |
4741 | for i = 1, #MessageSplit - 1 do | |
4742 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4743 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then | |
4744 | if PlayerList.Character:FindFirstChild("Humanoid") ~= nil then | |
4745 | coroutine.wrap(function() | |
4746 | for i = 0, Duration, 0.25 do | |
4747 | if PlayerList == nil then break end | |
4748 | if PlayerList.Character == nil then break end | |
4749 | if PlayerList.Character:FindFirstChild("Humanoid") == nil then break end | |
4750 | PlayerList.Character.Humanoid.PlatformStand = math.random(1, 3) == 1 and false or true | |
4751 | for _, Part in pairs(PlayerList.Character:children()) do | |
4752 | if Part:IsA("BasePart") then | |
4753 | Part.RotVelocity = Part.RotVelocity + Vector3.new(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
4754 | end | |
4755 | end | |
4756 | wait(0.25) | |
4757 | end | |
4758 | pcall(function() PlayerList.Character.Humanoid.PlatformStand = false end) | |
4759 | end)() | |
4760 | end | |
4761 | end | |
4762 | end | |
4763 | end | |
4764 | end, "Seisure", "Make people have seisures.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]" ..CoolCMDs.Data.SplitCharacter.. "time (seconds)") | |
4765 | ||
4766 | CoolCMDs.Functions.CreateCommand("rocket", 1, function(Message, MessageSplit, Speaker, Self) | |
4767 | if #MessageSplit < 3 then return false end | |
4768 | local Speed = tonumber(MessageSplit[#MessageSplit - 1]) | |
4769 | local Duration = tonumber(MessageSplit[#MessageSplit]) | |
4770 | if Speed == nil then Speed = 100 end | |
4771 | if Duration == nil then Duration = math.random(5, 10) end | |
4772 | for i = 1, #MessageSplit - 2 do | |
4773 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4774 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then | |
4775 | for _, Children in pairs(PlayerList.Character:children()) do | |
4776 | if Children:IsA("BasePart") then | |
4777 | coroutine.wrap(function() | |
4778 | local BodyVelocity = Instance.new("BodyVelocity", Children) | |
4779 | BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge) | |
4780 | local Fire = Instance.new("Fire", Children) | |
4781 | Fire.Heat = 0 | |
4782 | Fire.Size = 3 | |
4783 | local Smoke = Instance.new("Smoke", Children) | |
4784 | Smoke.Enabled = false | |
4785 | Smoke.RiseVelocity = 0 | |
4786 | Smoke.Size = 2.5 | |
4787 | local Sound = Instance.new("Sound", Children) | |
4788 | Sound.SoundId = "rbxasset://sounds/Shoulder fired rocket.wav" | |
4789 | Sound.Pitch = 0.8 | |
4790 | Sound.Volume = 1 | |
4791 | Sound:Play() | |
4792 | Children.Velocity = Children.Velocity + Vector3.new(0, 1000, 0) | |
4793 | wait(0.25) | |
4794 | Fire.Size = 10 | |
4795 | Smoke.Enabled = true | |
4796 | local Sound = Instance.new("Sound", Children) | |
4797 | Sound.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav" | |
4798 | Sound.Pitch = 0.5 | |
4799 | Sound.Volume = 1 | |
4800 | Sound:Play() | |
4801 | coroutine.wrap(function() | |
4802 | for i = 0, 1, 0.01 do | |
4803 | BodyVelocity.velocity = Vector3.new(0, Speed * i, 0) | |
4804 | wait() | |
4805 | end | |
4806 | BodyVelocity.velocity = Vector3.new(0, Speed, 0) | |
4807 | end)() | |
4808 | if Duration ~= 0 then | |
4809 | coroutine.wrap(function() | |
4810 | wait(Duration) | |
4811 | BodyVelocity:Remove() | |
4812 | local Explosion = Instance.new("Explosion", workspace) | |
4813 | Explosion.Position = Children.CFrame.p | |
4814 | Explosion.BlastPressure = 50000 | |
4815 | Explosion.BlastRadius = 25 | |
4816 | Fire.Enabled = false | |
4817 | Smoke.Enabled = false | |
4818 | Children:BreakJoints() | |
4819 | end)() | |
4820 | end | |
4821 | end)() | |
4822 | end | |
4823 | end | |
4824 | wait(math.random(1, 10) / 10) | |
4825 | end | |
4826 | end | |
4827 | end | |
4828 | 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)") | |
4829 | ||
4830 | CoolCMDs.Functions.CreateCommand({"jail", "j"}, 1, function(Message, MessageSplit, Speaker, Self) | |
4831 | for i = 1, #MessageSplit do | |
4832 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4833 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then | |
4834 | if PlayerList.Character:FindFirstChild("Torso") ~= nil then | |
4835 | local Position = PlayerList.Character.Torso.CFrame | |
4836 | local IsJailed = Instance.new("IntValue") | |
4837 | IsJailed.Name = "IsJailed" | |
4838 | IsJailed.Parent = PlayerList | |
4839 | coroutine.wrap(function() | |
4840 | while IsJailed.Parent == PlayerList and PlayerList.Parent ~= nil do | |
4841 | if PlayerList.Character ~= nil then | |
4842 | if PlayerList.Character:FindFirstChild("Torso") ~= nil then | |
4843 | if (PlayerList.Character.Torso.CFrame.p - Position.p).magnitude > 10 then | |
4844 | PlayerList.Character.Torso.CFrame = Position * CFrame.new(0, 1.5, 0) | |
4845 | PlayerList.Character.Torso.Velocity = Vector3.new(0, 0, 0) | |
4846 | PlayerList.Character.Torso.RotVelocity = Vector3.new(0, 0, 0) | |
4847 | CoolCMDs.Functions.CreateMessage("Hint", (function() | |
4848 | local Text = math.random(1, 12) | |
4849 | if Text == 1 then | |
4850 | return "You were put here for a reason." | |
4851 | elseif Text == 2 then | |
4852 | return "This is your new home; stay in it." | |
4853 | elseif Text == 3 then | |
4854 | return "You can't escape, you know." | |
4855 | elseif Text == 4 then | |
4856 | return "Resistance is futile!" | |
4857 | elseif Text == 5 then | |
4858 | return "You, plus jail, equals: Stop trying to get out of it." | |
4859 | elseif Text == 6 then | |
4860 | return "It's called a \"jail\" for a reason." | |
4861 | elseif Text == 7 then | |
4862 | return "This is why we can't have nice things." | |
4863 | elseif Text == 8 then | |
4864 | return "You are a reason why we can't have nice things." | |
4865 | elseif Text == 9 then | |
4866 | return "Not even God himself can save you now." | |
4867 | elseif Text == 10 then | |
4868 | return "Where is your God now?" | |
4869 | elseif Text == 11 then | |
4870 | return "Jailed forever." | |
4871 | elseif Text == 12 then | |
4872 | return "Beat your head on the bars a few times, that might help." | |
4873 | end | |
4874 | end)(), 5, PlayerList) | |
4875 | end | |
4876 | end | |
4877 | end | |
4878 | wait(math.random(1, 10) / 100) | |
4879 | end | |
4880 | for _, Part in pairs(game:service("Workspace"):children()) do | |
4881 | if string.match(Part.Name, "JailPart") and string.match(Part.Name, PlayerList.Name) then | |
4882 | pcall(function() Part:Remove() end) | |
4883 | end | |
4884 | end | |
4885 | end)() | |
4886 | wait() | |
4887 | local JailPart1 = Instance.new("Part") | |
4888 | JailPart1.Name = PlayerList.Name.. "JailPart" | |
4889 | JailPart1.TopSurface = 0 | |
4890 | JailPart1.BottomSurface = 0 | |
4891 | JailPart1.BrickColor = BrickColor.new("Really black") | |
4892 | JailPart1.formFactor = "Custom" | |
4893 | JailPart1.Anchored = true | |
4894 | JailPart1.CanCollide = true | |
4895 | JailPart1.Size = Vector3.new(11, 1, 11) | |
4896 | local JailPart2 = JailPart1:Clone() | |
4897 | JailPart2.Size = Vector3.new(0.5, 8, 0.5) | |
4898 | local JailPart = JailPart1:Clone() | |
4899 | JailPart.CFrame = Position * CFrame.new(0, -2, 0) | |
4900 | JailPart.Parent = game:service("Workspace") | |
4901 | for i = 5, -4, -1 do | |
4902 | local JailPart = JailPart2:Clone() | |
4903 | JailPart.CFrame = Position * CFrame.new(-5, 2, i) | |
4904 | JailPart.Parent = game:service("Workspace") | |
4905 | end | |
4906 | for i = -5, 4, 1 do | |
4907 | local JailPart = JailPart2:Clone() | |
4908 | JailPart.CFrame = Position * CFrame.new(i, 2, -5) | |
4909 | JailPart.Parent = game:service("Workspace") | |
4910 | end | |
4911 | for i = -5, 4, 1 do | |
4912 | local JailPart = JailPart2:Clone() | |
4913 | JailPart.CFrame = Position * CFrame.new(5, 2, i) | |
4914 | JailPart.Parent = game:service("Workspace") | |
4915 | end | |
4916 | for i = 5, -4, -1 do | |
4917 | local JailPart = JailPart2:Clone() | |
4918 | JailPart.CFrame = Position * CFrame.new(i, 2, 5) | |
4919 | JailPart.Parent = game:service("Workspace") | |
4920 | end | |
4921 | local JailPart = JailPart1:Clone() | |
4922 | JailPart.CFrame = Position * CFrame.new(0, 6, 0) | |
4923 | JailPart.Parent = game:service("Workspace") | |
4924 | end | |
4925 | end | |
4926 | end | |
4927 | end | |
4928 | end, "Jail", "Jail people.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]") | |
4929 | ||
4930 | CoolCMDs.Functions.CreateCommand({"unjail", "unj", "uj"}, 1, function(Message, MessageSplit, Speaker, Self) | |
4931 | for i = 1, #MessageSplit do | |
4932 | for _, PlayerList in pairs(game:service("Players"):GetPlayers()) do | |
4933 | if string.match(PlayerList.Name:lower(), MessageSplit[i]:lower()) and PlayerList.Character ~= nil then | |
4934 | for _, Part in pairs(PlayerList:children()) do | |
4935 | if string.match(Part.Name, "IsJailed") then | |
4936 | Part:Remove() | |
4937 | end | |
4938 | end | |
4939 | end | |
4940 | end | |
4941 | end | |
4942 | end, "Unjail", "Unjail people.", "player" ..CoolCMDs.Data.SplitCharacter.. "[...]") | |
4943 | ||
4944 | CoolCMDs.Functions.CreateCommand({"/base", "rb"}, 1, function(Message, MessageSplit, Speaker, Self) | |
4945 | for _, Part in pairs(game:service("Workspace"):children()) do | |
4946 | if Part.Name == "Base" then | |
4947 | Part:Remove() | |
4948 | end | |
4949 | end | |
4950 | Base = Instance.new("Part") | |
4951 | Base.Name = "Base" | |
4952 | Base.BrickColor = BrickColor.new("Dark green") | |
4953 | Base.TopSurface = "Studs" | |
4954 | Base.BottomSurface = "Smooth" | |
4955 | Base.formFactor = "Custom" | |
4956 | Base.Size = Vector3.new(1000, 5, 1000) | |
4957 | Base.CFrame = CFrame.new(0, -2, 0) | |
4958 | Base.Locked = true | |
4959 | Base.Anchored = true | |
4960 | Base.Parent = game:service("Workspace") | |
4961 | end, "Rebase", "Make a new base.", "None") | |
4962 | ||
4963 | CoolCMDs.Functions.CreateCommand({"/spawn", "sp"}, 1, function(Message, MessageSplit, Speaker, Self) | |
4964 | local Part = Instance.new("Part") | |
4965 | Part.Name = "Base" | |
4966 | Part.BrickColor = BrickColor.new("Really black") | |
4967 | Part.TopSurface = "Smooth" | |
4968 | Part.BottomSurface = "Smooth" | |
4969 | Part.formFactor = "Custom" | |
4970 | Part.Size = Vector3.new(9, 1, 9) | |
4971 | Part.CFrame = CFrame.new(0, 1, 0) | |
4972 | Part.Locked = true | |
4973 | Part.Anchored = true | |
4974 | Part.Parent = game:service("Workspace") | |
4975 | local Part = Part:Clone() | |
4976 | Part.Size = Vector3.new(0.5, 8, 0.5) | |
4977 | Part.CFrame = CFrame.new(4, 5.5, 4) | |
4978 | Part.Parent = game:service("Workspace") | |
4979 | local Part = Part:Clone() | |
4980 | Part.CFrame = CFrame.new(4, 5.5, -4) | |
4981 | Part.Parent = game:service("Workspace") | |
4982 | local Part = Part:Clone() | |
4983 | Part.CFrame = CFrame.new(-4, 5.5, -4) | |
4984 | Part.Parent = game:service("Workspace") | |
4985 | local Part = Part:Clone() | |
4986 | Part.CFrame = CFrame.new(-4, 5.5, 4) | |
4987 | Part.Parent = game:service("Workspace") | |
4988 | local Part = Part:Clone() | |
4989 | Part.Size = Vector3.new(0.5, 0.5, 8) | |
4990 | Part.CFrame = CFrame.new(4, 9.75, -0.25) | |
4991 | Part.Parent = game:service("Workspace") | |
4992 | local Part = Part:Clone() | |
4993 | Part.Size = Vector3.new(8, 0.5, 0.5) | |
4994 | Part.CFrame = CFrame.new(0.25, 9.75, 4) | |
4995 | Part.Parent = game:service("Workspace") | |
4996 | local Part = Part:Clone() | |
4997 | Part.Size = Vector3.new(0.5, 0.5, 8) | |
4998 | Part.CFrame = CFrame.new(-4, 9.75, 0.25) | |
4999 | Part.Parent = game:service("Workspace") | |
5000 | local Part = Part:Clone() | |
5001 | Part.Size = Vector3.new(8, 0.5, 0.5) | |
5002 | Part.CFrame = CFrame.new(-0.25, 9.75, -4) | |
5003 | Part.Parent = game:service("Workspace") | |
5004 | local Part1 = Instance.new("Part") | |
5005 | Part1.Name = "Base" | |
5006 | Part1.BrickColor = BrickColor.new("Dark stone grey") | |
5007 | Part1.TopSurface = "Smooth" | |
5008 | Part1.BottomSurface = "Smooth" | |
5009 | Part1.formFactor = "Custom" | |
5010 | Part1.Size = Vector3.new(6, 0.25, 6) | |
5011 | Part1.CFrame = CFrame.new(0, 1.625, 0) | |
5012 | Part1.Locked = true | |
5013 | Part1.Anchored = true | |
5014 | Part1.Parent = game:service("Workspace") | |
5015 | local Part2 = Instance.new("SpawnLocation") | |
5016 | Part2.Name = "Base" | |
5017 | Part2.BrickColor = BrickColor.new("Dark stone grey") | |
5018 | Part2.TopSurface = "Smooth" | |
5019 | Part2.BottomSurface = "Smooth" | |
5020 | Part2.formFactor = "Custom" | |
5021 | Part2.Size = Vector3.new(4, 0.25, 4) | |
5022 | Part2.CFrame = CFrame.new(0, 1.875, 0) | |
5023 | Part2.Locked = true | |
5024 | Part2.Anchored = true | |
5025 | Part2.Parent = game:service("Workspace") | |
5026 | coroutine.wrap(function() | |
5027 | for i = 0, math.huge, 0.005 do | |
5028 | if Part1.Parent == nil or Part2.Parent == nil then break end | |
5029 | Part1.CFrame = CFrame.new(Part1.CFrame.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(math.sin(i) * 360 * -5.25), 0) | |
5030 | Part2.CFrame = CFrame.new(Part2.CFrame.p) * CFrame.fromEulerAnglesXYZ(0, math.rad(math.cos(i) * 360 * 2), 0) | |
5031 | wait() | |
5032 | end | |
5033 | end)() | |
5034 | end, "Spawn", "Make a spawn.", "None") | |
5035 | ||
5036 | CoolCMDs.Functions.CreateCommand("/shutdown", 1, function(Message, MessageSplit, Speaker, Self) | |
5037 | local Hint = Instance.new("Hint", game:service("Workspace")) | |
5038 | for i = 5, 0, -1 do | |
5039 | Hint.Text = "Shutting down server in " ..i.. "..." | |
5040 | wait(1) | |
5041 | end | |
5042 | pcall(function() Instance.new("ManualSurfaceJointInstance", game:service("Workspace")) end) | |
5043 | wait(0.5) | |
5044 | Hint.Text = "Shutdown failed!" | |
5045 | wait(5) | |
5046 | Hint:Remove() | |
5047 | end, "Shutdown", "Kill the server.", "None") | |
5048 | ||
5049 | CoolCMDs.Functions.CreateCommand("/remove/"..CoolCMDs.Data.AccessCode, 5, function(Message, MessageSplit, Speaker, Self) | |
5050 | loadstring([==[_G.CoolCMDs[CoolCMDs.Initialization.InstanceNumber]:Remove(CoolCMDs.Data.AccessCode)]==])() | |
5051 | end, "Remove Script", "Remove CoolCMDs.", "None") | |
5052 | --[[ --Command template... | |
5053 | CoolCMDs.Functions.CreateCommand("[ Command Here ]", 5, function(Message, MessageSplit, Speaker, Self) | |
5054 | -- [ Put stuff here ] | |
5055 | end, "None", "None", "None") | |
5056 | --]] | |
5057 | -- Davbot commands!!! | |
5058 | -- Sadly, most of these don't work :( | |
5059 | CoolCMDs.Functions.CreateCommand("map takeover", 5, function(Message, MessageSplit, Speaker, Self) | |
5060 | Notify("Inserting TAKEOVER for " ..Speaker.Name.. ". PLEASE WAIT.") | |
5061 | m = Game:GetService("InsertService"):LoadAsset(61598425) | |
5062 | m.Parent = Workspace | |
5063 | m:MakeJoints() | |
5064 | Workspace:BreakJoints() | |
5065 | end, "None", "None", "None") | |
5066 | ||
5067 | CoolCMDs.Functions.CreateCommand("space station", 5, function(Message, MessageSplit, Speaker, Self) | |
5068 | Notify("Yes master " ..Speaker.Name.. ", now building a space station.") | |
5069 | m = Game:GetService("InsertService"):LoadAsset(19401551) | |
5070 | m.Parent = Workspace | |
5071 | m:MakeJoints() | |
5072 | Workspace:BreakJoints() | |
5073 | end, "None", "None", "None") | |
5074 | ||
5075 | CoolCMDs.Functions.CreateCommand("delag", 5, function(Message, MessageSplit, Speaker, Self) | |
5076 | Notify("Now debugging the server...") | |
5077 | wait(1) | |
5078 | pcall(function() workspace.Terrain:Clear() end) --no moar terrain | |
5079 | pcall(function() | |
5080 | 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) | |
5081 | table.foreach(Game:GetService("Lighting"):GetChildren(),function(_,v)(function(v) return (not (false and v:remove())) end)(v)end) | |
5082 | table.foreach(Game:GetService("StarterGui"):GetChildren(),function(_,v)(function(v) return (not (false and v:remove())) end)(v)end) | |
5083 | table.foreach(Game:GetService("StarterPack"):GetChildren(),function(_,v)(function(v) return (not (false and v:remove())) end)(v)end) | |
5084 | table.foreach(Game:GetService("Teams"):GetChildren(),function(_,v)(function(v) return (not (false and v:remove())) end)(v)end) | |
5085 | table.foreach(Game:GetService("Debris"):GetChildren(),function(_,v)(function(v) return (not (false and v:remove())) end)(v)end) | |
5086 | end) | |
5087 | ---Several cleans to ensure server safety. | |
5088 | local Base = Instance.new("Part") | |
5089 | Base.Parent = Workspace | |
5090 | Base.Name = "Base" | |
5091 | Base.Anchored = true | |
5092 | Base.Position = Vector3.new(0, 0, 0) | |
5093 | Base.CFrame = CFrame.new(0, 0, 0) | |
5094 | Base.Size = Vector3.new(512, 1.2, 512) | |
5095 | Base.TopSurface = ("Universal") | |
5096 | Base.BrickColor = BrickColor.Green() | |
5097 | Base.Locked = true | |
5098 | local Spawn = Instance.new("SpawnLocation") | |
5099 | Spawn.Parent = Workspace | |
5100 | Spawn.Anchored = true | |
5101 | Spawn.Locked = true | |
5102 | Spawn.Position = Vector3.new(0, 1.2, 0) | |
5103 | Spawn.formFactor = ("Symmetric") | |
5104 | Spawn.Size = Vector3.new(5, 1, 5) | |
5105 | Spawn.BrickColor = BrickColor.Blue() | |
5106 | --TODOQUICKSCRIPT | |
5107 | local QuickScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"] | |
5108 | QuickScript.Name = "RotationScript" | |
5109 | QuickScript.Debug:Remove() | |
5110 | QuickScript.NewSource.Value = [[ | |
5111 | while true do | |
5112 | script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(.05), 0) | |
5113 | wait() | |
5114 | end | |
5115 | ]] | |
5116 | QuickScript.Parent = Spawn | |
5117 | ||
5118 | for i, v in pairs(Players:GetChildren()) do | |
5119 | if v.Character ~= nil then | |
5120 | v.Character.Parent = Workspace | |
5121 | end | |
5122 | end | |
5123 | wait(2) | |
5124 | Notify("Lag Removal Complete.") | |
5125 | end, "None", "None", "None") | |
5126 | ||
5127 | CoolCMDs.Functions.CreateCommand("lagmeter", 5, function(Message, MessageSplit, Speaker, Self) | |
5128 | g = game:GetService("InsertService"):LoadAsset(59383950) | |
5129 | g.Parent = Workspace | |
5130 | for i, v in pairs(Players:GetChildren()) do | |
5131 | if v:FindFirstChild("PlayerGui") ~= nil then | |
5132 | c = g.ThemedBanner:Clone() | |
5133 | c.Parent = v.PlayerGui | |
5134 | end | |
5135 | end | |
5136 | end, "None", "None", "None") | |
5137 | ||
5138 | CoolCMDs.Functions.CreateCommand("unspin", 5, function(Message, MessageSplit, Speaker, Self) | |
5139 | local msg = Message | |
5140 | for word in msg:gmatch("%w+") do | |
5141 | local player = matchPlayer(word) | |
5142 | if (player ~= nil) then | |
5143 | if (player.Character:FindFirstChild("Torso") ~= nil) then | |
5144 | if (player.Character.Torso:FindFirstChild("Spin") ~= nil) then | |
5145 | player.Character.Torso.Spin:Remove() | |
5146 | end | |
5147 | end | |
5148 | end | |
5149 | end | |
5150 | end, "None", "None", "None") | |
5151 | ||
5152 | CoolCMDs.Functions.CreateCommand("unhover", 5, function(Message, MessageSplit, Speaker, Self) | |
5153 | local msg = Message | |
5154 | for word in msg:gmatch("%w+") do | |
5155 | local player = matchPlayer(word) | |
5156 | if (player ~= nil) then | |
5157 | if (player.Character:FindFirstChild("Torso") ~= nil) then | |
5158 | if (player.Character.Torso:FindFirstChild("HoverScript") ~= nil) then | |
5159 | if (player.Character.Torso:FindFirstChild("BodyPositionHOV") ~= nil) then | |
5160 | if (player.Character.Torso:FindFirstChild("BodyGyroHOV") ~= nil) then | |
5161 | if (player.Character.Torso:FindFirstChild("PewPew") ~= nil) then | |
5162 | player.Character.Torso.HoverScript:Remove() | |
5163 | player.Character.Torso.BodyPositionHOV:Remove() | |
5164 | player.Character.Torso.BodyGyroHOV:Remove() | |
5165 | player.Character.Torso.PewPew:Stop() | |
5166 | player.Character.Torso.PewPew:Remove() | |
5167 | end | |
5168 | end | |
5169 | end | |
5170 | end | |
5171 | end | |
5172 | end | |
5173 | end | |
5174 | end, "None", "None", "None") | |
5175 | ||
5176 | CoolCMDs.Functions.CreateCommand("hover", 5, function(msg, MessageSplit, Speaker, Self) | |
5177 | for word in msg:gmatch("%w+") do | |
5178 | local player = matchPlayer(word) | |
5179 | if (player ~= nil) then | |
5180 | if (player.Character:FindFirstChild("Torso") ~= nil) then | |
5181 | if (player.Character.Torso:FindFirstChild("HoverScript") == nil) then | |
5182 | local QuickScript = Game:service("InsertService"):LoadAsset(54471119)["QuickScript"] | |
5183 | QuickScript.Name = "HoverScript" | |
5184 | QuickScript.Debug:Remove() | |
5185 | QuickScript.NewSource.Value = [[ | |
5186 | local torso = script.Parent | |
5187 | PewPew = Instance.new("Sound") | |
5188 | PewPew.Name = "PewPew" | |
5189 | PewPew.SoundId = "http://www.roblox.com/asset/?id=34315534" | |
5190 | PewPew.Parent = torso | |
5191 | PewPew.Volume = 0.5 | |
5192 | PewPew.Looped = true | |
5193 | PewPew:Play() | |
5194 | local bodyPos = Instance.new("BodyPosition") | |
5195 | bodyPos.P = torso:GetMass() * 50000 | |
5196 | bodyPos.D = bodyPos.P * 5 | |
5197 | bodyPos.position = Vector3.new(torso.Position.x,torso.Position.y + (torso.Size.y * 3),torso.Position.z) | |
5198 | bodyPos.maxForce = Vector3.new(bodyPos.P,bodyPos.P,bodyPos.P) | |
5199 | bodyPos.Parent = torso | |
5200 | bodyPos.Name = "BodyPositionHOV" | |
5201 | print(bodyPos.position.y) | |
5202 | local bodyGyro = Instance.new("BodyGyro") | |
5203 | bodyGyro.P = 5000 | |
5204 | bodyGyro.D = bodyGyro.P * 1.5 | |
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 | bodyGyro.Parent = torso | |
5207 | bodyGyro.Name = "BodyGyroHOV" | |
5208 | wait(1) | |
5209 | 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)) | |
5210 | wait(1) | |
5211 | 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)) | |
5212 | wait(3) | |
5213 | while true do | |
5214 | bodyPos.position = Vector3.new(torso.Position.x + math.random(-7,7),torso.Position.y + torso.Size.y,torso.Position.z + math.random(-7,7)) | |
5215 | bodyGyro.cframe = torso.CFrame * CFrame.Angles(math.random(-math.pi,math.pi),-math.pi,math.random(-math.pi,math.pi)) | |
5216 | wait(5) | |
5217 | end | |
5218 | ]] | |
5219 | QuickScript.Parent = player.Character.Torso | |
5220 | end | |
5221 | end | |
5222 | end | |
5223 | end | |
5224 | end, "None", "None", "None") | |
5225 | ||
5226 | CoolCMDs.Functions.CreateCommand("pwn", 5, function(msg, MessageSplit, Speaker, Self) | |
5227 | for word in msg:gmatch("%w+") do | |
5228 | local player = matchPlayer(word) | |
5229 | if (player ~= nil) then | |
5230 | if (player.Character:FindFirstChild("Torso") ~= nil) then | |
5231 | local p = Instance.new("Part") | |
5232 | local e = Instance.new("Explosion") | |
5233 | local s = Instance.new("Sound") | |
5234 | s.Parent = Game.Workspace | |
5235 | s.SoundId = "http://roblox.com/asset/?id=10209236" | |
5236 | s.Volume = 1 | |
5237 | s.Pitch = 1 | |
5238 | s.PlayOnRemove = true | |
5239 | p.Parent = game.Workspace | |
5240 | p.Size = Vector3.new(3, 250, 3) | |
5241 | p.Position = player.Character.Torso.Position + Vector3.new(0, 13, 0) | |
5242 | p.BrickColor = BrickColor.Blue() | |
5243 | p.Transparency = 0.3 | |
5244 | p.Reflectance = 0 | |
5245 | p.Anchored = true | |
5246 | p.CanCollide = false | |
5247 | p.TopSurface = "Smooth" | |
5248 | p.BottomSurface = "Smooth" | |
5249 | B = Instance.new("BlockMesh") | |
5250 | B.Parent = p | |
5251 | B.Scale = Vector3.new(1, 5000, 1) | |
5252 | e.Parent = game.Workspace | |
5253 | e.Position = player.Character.Torso.Position | |
5254 | e.BlastRadius = math.random(10, 20) | |
5255 | e.BlastPressure = math.random(30000000, 50000000) | |
5256 | s:Play() | |
5257 | local QuickScript = Game:service("InsertService"):LoadAsset(54471119)["QuickScript"] | |
5258 | QuickScript.Name = "RemovalScript" | |
5259 | QuickScript.Debug:Remove() | |
5260 | QuickScript.NewSource.Value = [[ | |
5261 | wait(1) | |
5262 | script.Parent:Remove() | |
5263 | ]] | |
5264 | QuickScript.Parent = p | |
5265 | end | |
5266 | end | |
5267 | end | |
5268 | end, "None", "None", "None") | |
5269 | ||
5270 | CoolCMDs.Functions.CreateCommand("spin", 5, function(msg, MessageSplit, Speaker, Self) | |
5271 | for word in msg:gmatch("%w+") do | |
5272 | local player = matchPlayer(word) | |
5273 | if (player ~= nil) then | |
5274 | if (player.Character:FindFirstChild("Torso") ~= nil) then | |
5275 | if (player.Character.Torso:FindFirstChild("Spin") == nil) then | |
5276 | local bodySpin = Instance.new("BodyAngularVelocity") | |
5277 | bodySpin.P = 200000 | |
5278 | bodySpin.angularvelocity = Vector3.new(0, 15, 0) | |
5279 | bodySpin.maxTorque = Vector3.new(bodySpin.P, bodySpin.P, bodySpin.P) | |
5280 | bodySpin.Name = "Spin" | |
5281 | bodySpin.Parent = player.Character.Torso | |
5282 | end | |
5283 | end | |
5284 | end | |
5285 | end | |
5286 | end, "None", "None", "None") | |
5287 | ||
5288 | CoolCMDs.Functions.CreateCommand("superjump", 5, function(msg, MessageSplit, Speaker, Self) | |
5289 | for word in msg:gmatch("%w+") do | |
5290 | local player = matchPlayer(word) | |
5291 | if (player ~= nil) then | |
5292 | if (player:FindFirstChild("Backpack") ~= nil) then | |
5293 | local tool = Instance.new("Tool") | |
5294 | tool.Parent = player.Backpack | |
5295 | tool.Name = "Booster" | |
5296 | a = Instance.new("Part") | |
5297 | a.Anchored = false | |
5298 | a.Size = Vector3.new(1, 1, 1) | |
5299 | a.Name = "Handle" | |
5300 | a.Locked = true | |
5301 | a.Shape = 0 | |
5302 | a.Parent = tool | |
5303 | a.BrickColor = BrickColor.new(math.random(), math.random(), math.random()) | |
5304 | m = Instance.new("SpecialMesh") | |
5305 | m.Parent = a | |
5306 | m.MeshType = "Sphere" | |
5307 | m.Scale = Vector3.new(0.8,0.5,0.8) | |
5308 | bf = Instance.new("BodyForce") | |
5309 | bf.Parent = a | |
5310 | bf.force = Vector3.new(0, 7000, 0) | |
5311 | end | |
5312 | end | |
5313 | end | |
5314 | end, "None", "None", "None") | |
5315 | ||
5316 | CoolCMDs.Functions.CreateCommand("castle", 5, function(msg, MessageSplit, Speaker, Self) | |
5317 | Notify("Yes master " ..Speaker.Name.. ", now building a castle!") | |
5318 | m = Game:GetService("InsertService"):LoadAsset(61374374) | |
5319 | m.Parent = Workspace | |
5320 | m:MakeJoints() | |
5321 | end, "None", "None", "None") | |
5322 | ||
5323 | CoolCMDs.Functions.CreateCommand("rbase", 5, function(msg, MessageSplit, Speaker, Self) | |
5324 | speed = string.sub(msg, 7) | |
5325 | speed = tonumber(speed) | |
5326 | if speed ~= nil then | |
5327 | for i, v in pairs(Workspace:GetChildren()) do | |
5328 | if v.Name == "Base" or v.Name == "Davillabase" then | |
5329 | if v:FindFirstChild("Rotational") == nil then | |
5330 | local V = Instance.new("IntValue") | |
5331 | V.Parent = v | |
5332 | V.Value = speed | |
5333 | V.Name = "Rotational" | |
5334 | local QuickScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"] | |
5335 | QuickScript.Name = "RotationScript" | |
5336 | QuickScript.Debug:Remove() | |
5337 | QuickScript.NewSource.Value = [[ | |
5338 | while true do | |
5339 | M = script.Parent.Rotational.Value / 100 | |
5340 | script.Parent.CFrame = script.Parent.CFrame * CFrame.fromEulerAnglesXYZ(0, M, 0) | |
5341 | wait() | |
5342 | end | |
5343 | ]] | |
5344 | QuickScript.Parent = v | |
5345 | else | |
5346 | v.Rotational.Value = speed | |
5347 | end | |
5348 | end | |
5349 | end | |
5350 | end | |
5351 | end, "None", "None", "None") | |
5352 | ||
5353 | CoolCMDs.Functions.CreateCommand("instance", 5, function(msg, MessageSplit, Speaker, Self) | |
5354 | speed = string.sub(msg, 10) | |
5355 | speed = tonumber(speed) | |
5356 | if (speed ~= nil) then | |
5357 | if (speed == 0) then | |
5358 | Instance.new = nil | |
5359 | elseif (speed == 1) then | |
5360 | Instance.new = wutnaobro | |
5361 | end | |
5362 | end | |
5363 | end, "None", "None", "None") | |
5364 | ||
5365 | CoolCMDs.Functions.CreateCommand("speed", 5, function(msg, MessageSplit, Speaker, Self) | |
5366 | speed = string.sub(msg, 7) | |
5367 | speed = tonumber(speed) | |
5368 | if speed ~= nil then | |
5369 | local h = Instance.new("Hint") | |
5370 | h.Parent = Speaker.PlayerGui | |
5371 | h.Text = "Yes master, speed changed to "..tostring(speed).."..." | |
5372 | for _,v in pairs(Speaker.Character:GetChildren()) do | |
5373 | if v.className == "Humanoid" then | |
5374 | v.WalkSpeed = speed | |
5375 | end | |
5376 | end | |
5377 | wait(2) | |
5378 | h:Remove() | |
5379 | end | |
5380 | end, "None", "None", "None") | |
5381 | ||
5382 | CoolCMDs.Functions.CreateCommand("servicename", 5, function(msg, MessageSplit, Speaker, Self) | |
5383 | ServiceName = string.sub(msg, 6) | |
5384 | if Game:GetService(ServiceName) ~= nil then | |
5385 | local M = Instance.new("Message") | |
5386 | M.Parent = Workspace | |
5387 | M.Text = ServiceName.. "'s name is " ..Game:GetService(ServiceName).Name | |
5388 | wait(3) | |
5389 | M:Remove() | |
5390 | end | |
5391 | end, "None", "None", "None") | |
5392 | ||
5393 | CoolCMDs.Functions.CreateCommand("unpunish", 5, function(msg, MessageSplit, Speaker, Self) | |
5394 | for word in msg:gmatch("%w+") do | |
5395 | local player = matchPlayer(word) | |
5396 | if (player ~= nil) then | |
5397 | if (player.Character ~= nil) then | |
5398 | player.Character.Parent = Workspace | |
5399 | player.Character:MakeJoints() | |
5400 | end | |
5401 | end | |
5402 | end | |
5403 | end, "None", "None", "None") | |
5404 | ||
5405 | CoolCMDs.Functions.CreateCommand("punish", 5, function(msg, MessageSplit, Speaker, Self) | |
5406 | for word in msg:gmatch("%w+") do | |
5407 | local player = matchPlayer(word) | |
5408 | if (player ~= nil) then | |
5409 | if (player.Character ~= nil) then | |
5410 | player.Character.Parent = nil | |
5411 | end | |
5412 | end | |
5413 | end | |
5414 | end, "None", "None", "None") | |
5415 | ||
5416 | CoolCMDs.Functions.CreateCommand("crash", 5, function(msg, MessageSplit, Speaker, Self) | |
5417 | for word in msg:gmatch("%w+") do | |
5418 | local player = matchPlayer(word) | |
5419 | if (player ~= nil) then | |
5420 | if (player:FindFirstChild("Backpack") ~= nil) then | |
5421 | local QuickScript = Game:service("InsertService"):LoadAsset(54471119)["QuickLocalScript"] | |
5422 | QuickScript.Name = "CrashScript" | |
5423 | QuickScript.Debug:Remove() | |
5424 | QuickScript.NewSource.Value = [[ | |
5425 | Game:GetService("Debris"):AddItem(Game:FindFirstChild("RobloxGui", true), 0) | |
5426 | ]] | |
5427 | QuickScript.Parent = player.Backpack | |
5428 | end | |
5429 | end | |
5430 | end | |
5431 | end, "None", "None", "None") | |
5432 | ||
5433 | CoolCMDs.Functions.CreateCommand("legohint", 5, function(msg, MessageSplit, Speaker, Self) | |
5434 | message = string.sub(msg, 8) | |
5435 | g = game:GetService("InsertService"):LoadAsset(59345155) | |
5436 | g.Parent = Workspace | |
5437 | for i, v in pairs(Players:GetChildren()) do | |
5438 | if v:FindFirstChild("PlayerGui") ~= nil then | |
5439 | c = g.ThemedBanner:Clone() | |
5440 | c.Parent = v.PlayerGui | |
5441 | c.Message.Value = message | |
5442 | end | |
5443 | end | |
5444 | end, "None", "None", "None") | |
5445 | ||
5446 | CoolCMDs.Functions.CreateCommand("themedbanner", 5, function(msg, MessageSplit, Speaker, Self) | |
5447 | message = string.sub(msg, 6) | |
5448 | g = game:GetService("InsertService"):LoadAsset(59345155) | |
5449 | g.Parent = Workspace | |
5450 | for i, v in pairs(Players:GetChildren()) do | |
5451 | if v:FindFirstChild("PlayerGui") ~= nil then | |
5452 | c = g.ThemedBanner:Clone() | |
5453 | c.Parent = v.PlayerGui | |
5454 | c.Message.Value = message | |
5455 | end | |
5456 | end | |
5457 | end, "None", "None", "None") | |
5458 | ||
5459 | CoolCMDs.Functions.CreateCommand("legomsg", 5, function(msg, MessageSplit, Speaker, Self) | |
5460 | message = string.sub(msg, 8) | |
5461 | g = game:GetService("InsertService"):LoadAsset(60267366) | |
5462 | g.Parent = Workspace | |
5463 | for i, v in pairs(Players:GetChildren()) do | |
5464 | if v:FindFirstChild("PlayerGui") ~= nil then | |
5465 | c = g.TextBanner:Clone() | |
5466 | c.Parent = v.PlayerGui | |
5467 | c.Message.Value = message | |
5468 | end | |
5469 | end | |
5470 | end, "None", "None", "None") | |
5471 | ||
5472 | CoolCMDs.Functions.CreateCommand("notify", 5, function(msg, MessageSplit, Speaker, Self) | |
5473 | message = string.sub(msg, 8) | |
5474 | Notify(Speaker.Name.. ": " ..message) | |
5475 | end, "None", "None", "None") | |
5476 | ||
5477 | CoolCMDs.Functions.CreateCommand("msg", 5, function(msg, MessageSplit, Speaker, Self) | |
5478 | message = string.sub(msg, 5) | |
5479 | g = game:GetService("InsertService"):LoadAsset(60267366) | |
5480 | g.Parent = Workspace | |
5481 | for i, v in pairs(Players:GetChildren()) do | |
5482 | if v:FindFirstChild("PlayerGui") ~= nil then | |
5483 | c = g.TextBanner:Clone() | |
5484 | c.Parent = v.PlayerGui | |
5485 | c.Message.Value = message | |
5486 | end | |
5487 | end | |
5488 | end, "None", "None", "None") | |
5489 | ||
5490 | CoolCMDs.Functions.CreateCommand("glitch", 5, function(msg, MessageSplit, Speaker, Self) | |
5491 | Workspace:MoveTo(Vector3.new(0, 100000000, 0)) | |
5492 | end, "None", "None", "None") | |
5493 | ||
5494 | CoolCMDs.Functions.CreateCommand("turret", 5, function(msg, MessageSplit, Speaker, Self) | |
5495 | m = Game:GetService("InsertService"):LoadAsset(12398243) | |
5496 | m.Parent = Speaker.Character | |
5497 | m:MakeJoints() | |
5498 | m:MoveTo(Speaker.Character.Torso.Position + Vector3.new(10, 0, 0)) | |
5499 | end, "None", "None", "None") | |
5500 | ||
5501 | CoolCMDs.Functions.CreateCommand("rain", 5, function(msg, MessageSplit, Speaker, Self) | |
5502 | Notify("Master " ..Speaker.Name.. ", I have forcasted rain!") | |
5503 | for i = 1, 1000 do | |
5504 | local Rain = Instance.new("Part") | |
5505 | Rain.Parent = Workspace | |
5506 | Rain.Position = Vector3.new(math.random(-250,250), 200, math.random(-250,250)) | |
5507 | Rain.Name = "Droplet" | |
5508 | Rain.Size = Vector3.new(1,3,1) | |
5509 | Rain.BrickColor = BrickColor.Blue() | |
5510 | Rain.Locked = true | |
5511 | function onTouched() | |
5512 | Rain:Remove() | |
5513 | end | |
5514 | Rain.Touched:connect(onTouched) | |
5515 | wait(.01) | |
5516 | end | |
5517 | for i, v in pairs(Workspace:GetChildren()) do | |
5518 | if v.Name == "Droplet" then | |
5519 | v:Remove() | |
5520 | wait() | |
5521 | end | |
5522 | end | |
5523 | end, "None", "None", "None") | |
5524 | ||
5525 | CoolCMDs.Functions.CreateCommand("mountain", 5, function(msg, MessageSplit, Speaker, Self) | |
5526 | Notify("Yes master " ..Speaker.Name.. ", now erecting a mountain.") | |
5527 | size = 30 | |
5528 | bs = 15 | |
5529 | curved = true | |
5530 | pmin = 2 | |
5531 | pmax = 5 | |
5532 | count = 0 | |
5533 | for x = 1, 100 do | |
5534 | ti = size-2 | |
5535 | count = count+1 | |
5536 | if (ti<=0) then | |
5537 | count = count-1 | |
5538 | end | |
5539 | end | |
5540 | min = 5 | |
5541 | max = 10 | |
5542 | mm = 0 | |
5543 | l = -206 | |
5544 | r = -206 | |
5545 | xl = l | |
5546 | xr = r | |
5547 | xs = math.random(min, max) | |
5548 | for i = 1, count do | |
5549 | for x = 1, size-mm do | |
5550 | p = Instance.new("Part") | |
5551 | p.Parent = Workspace | |
5552 | p.formFactor = 1 | |
5553 | p.Size = Vector3.new(bs, math.random(min,max), bs) | |
5554 | p.Position = Vector3.new(l, p.Size.Y/2, r) | |
5555 | p.BrickColor = BrickColor.new(MountainColors[math.random(1, #MountainColors)]) | |
5556 | p.Anchored = true | |
5557 | LASTPART = p | |
5558 | xs = LASTPART.Size.Y | |
5559 | l = l+bs | |
5560 | end | |
5561 | LASTPART:remove() | |
5562 | l = l-bs | |
5563 | for x = 1, size-mm do | |
5564 | p = Instance.new("Part") | |
5565 | p.Parent = Workspace | |
5566 | p.formFactor = 1 | |
5567 | p.Size = Vector3.new(bs, math.random(min,max), bs) | |
5568 | p.Position = Vector3.new(l, p.Size.Y/2, r) | |
5569 | p.BrickColor = BrickColor.new(MountainColors[math.random(1, #MountainColors)]) | |
5570 | p.Anchored = true | |
5571 | LASTPART = p | |
5572 | r= r+bs | |
5573 | end | |
5574 | LASTPART:remove() | |
5575 | r = r-bs | |
5576 | for x = 1, size-mm do | |
5577 | p = Instance.new("Part") | |
5578 | p.Parent = Workspace | |
5579 | p.formFactor = 1 | |
5580 | p.Size = Vector3.new(bs, math.random(min,max), bs) | |
5581 | p.Position = Vector3.new(l, p.Size.Y/2, r) | |
5582 | p.BrickColor = BrickColor.new(MountainColors[math.random(1, #MountainColors)]) | |
5583 | p.Anchored = true | |
5584 | LASTPART = p | |
5585 | l = l-bs | |
5586 | end | |
5587 | LASTPART:remove() | |
5588 | l = l+bs | |
5589 | for x = 1, size-mm do | |
5590 | p = Instance.new("Part") | |
5591 | p.Parent = Workspace | |
5592 | p.formFactor = 1 | |
5593 | p.Size = Vector3.new(bs, math.random(min,max), bs) | |
5594 | p.Position = Vector3.new(l, p.Size.Y/2, r) | |
5595 | p.BrickColor = BrickColor.new(MountainColors[math.random(1, #MountainColors)]) | |
5596 | p.Anchored = true | |
5597 | LASTPART = p | |
5598 | r= r-bs | |
5599 | end | |
5600 | LASTPART:remove() | |
5601 | r = xr+bs | |
5602 | l = xl+bs | |
5603 | xr = r | |
5604 | xl = l | |
5605 | min = min+10 | |
5606 | max = max+10 | |
5607 | if (curved==true) then | |
5608 | min = min-10 | |
5609 | max = max-10 | |
5610 | min = min+pmin | |
5611 | max = max+pmax | |
5612 | pmin = pmin+2 | |
5613 | pmax = pmax+2 | |
5614 | end | |
5615 | xs = math.random(min, max) | |
5616 | mm = mm+2 | |
5617 | end | |
5618 | wait(3) | |
5619 | for i,v in pairs(Players:GetChildren()) do | |
5620 | if v:IsA("Player") then | |
5621 | v.Character:MoveTo(Vector3.new(math.random(0,50), 500, math.random(0,50))) | |
5622 | end | |
5623 | end | |
5624 | end, "None", "None", "None") | |
5625 | ||
5626 | CoolCMDs.Functions.CreateCommand("rebase", 5, function(msg, MessageSplit, Speaker, Self) | |
5627 | Notify("Yes master " ..Speaker.Name.. ", a baseplate has been created.") | |
5628 | local Base = Instance.new("Part") | |
5629 | Base.Parent = Workspace | |
5630 | Base.Name = "Base" | |
5631 | Base.Anchored = true | |
5632 | Base.CFrame = CFrame.new(Vector3.new(0, 0, 0)) | |
5633 | Base.Size = Vector3.new(512, 1.2, 512) | |
5634 | Base.BrickColor = BrickColor.Green() | |
5635 | end, "None", "None", "None") | |
5636 | ||
5637 | CoolCMDs.Functions.CreateCommand("weapons", 5, function(msg, MessageSplit, Speaker, Self) | |
5638 | Notify("Yes master " ..Speaker.Name.. ", now constructing a weapons room.") | |
5639 | p = Game:GetService("InsertService"):LoadAsset(23243149) | |
5640 | p.Parent = Workspace | |
5641 | p:MakeJoints() | |
5642 | end, "None", "None", "None") | |
5643 | ||
5644 | CoolCMDs.Functions.CreateCommand("god", 5, function(msg, MessageSplit, Speaker, Self) | |
5645 | for word in msg:gmatch("%w+") do | |
5646 | local player = matchPlayer(word) | |
5647 | if (player ~= nil) then | |
5648 | if (player.Character ~= nil) then | |
5649 | if (player.Character:FindFirstChild("Humanoid") ~= nil) then | |
5650 | player.Character.Humanoid.MaxHealth = math.huge | |
5651 | player.Character.Humanoid.Health = math.huge | |
5652 | end | |
5653 | if player.Character:FindFirstChild("Torso") ~= nil then | |
5654 | local FF = Instance.new("ForceField") | |
5655 | FF.Parent = player.Character | |
5656 | local Sparkles = Instance.new("Sparkles") | |
5657 | Sparkles.Parent = player.Character.Torso | |
5658 | local QuickScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"] | |
5659 | QuickScript.Name = "RotationScript" | |
5660 | QuickScript.Debug:Remove() | |
5661 | QuickScript.NewSource.Value = [[ | |
5662 | function onTouched(hit) | |
5663 | if hit.Parent:FindFirstChild("Humanoid") ~= nil then | |
5664 | hit.Parent:BreakJoints() | |
5665 | end | |
5666 | end | |
5667 | ||
5668 | script.Parent.Touched:connect(onTouched) | |
5669 | ]] | |
5670 | QuickScript.Parent = player.Character.Torso | |
5671 | end | |
5672 | end | |
5673 | end | |
5674 | end | |
5675 | end, "None", "None", "None") | |
5676 | ||
5677 | CoolCMDs.Functions.CreateCommand("unprotect", 5, function(msg, MessageSplit, Speaker, Self) | |
5678 | for word in msg:gmatch("%w+") do | |
5679 | local player = matchPlayer(word) | |
5680 | if (player ~= nil) then | |
5681 | if player.Character ~= nil then | |
5682 | if player.Character:FindFirstChild("Torso") ~= nil then | |
5683 | for i, v in pairs(player.Character:GetChildren()) do | |
5684 | if v:IsA("ForceField") then | |
5685 | v:Remove() | |
5686 | end | |
5687 | end | |
5688 | end | |
5689 | end | |
5690 | end | |
5691 | end | |
5692 | end, "None", "None", "None") | |
5693 | ||
5694 | CoolCMDs.Functions.CreateCommand("protect", 5, function(msg, MessageSplit, Speaker, Self) | |
5695 | for word in msg:gmatch("%w+") do | |
5696 | local player = matchPlayer(word) | |
5697 | if (player ~= nil) then | |
5698 | if player.Character ~= nil then | |
5699 | if player.Character:FindFirstChild("Torso") ~= nil then | |
5700 | local FF = Instance.new("ForceField") | |
5701 | FF.Parent = player.Character | |
5702 | end | |
5703 | end | |
5704 | end | |
5705 | end | |
5706 | end, "None", "None", "None") | |
5707 | ||
5708 | CoolCMDs.Functions.CreateCommand("i2", 5, function(msg, MessageSplit, Speaker, Self) | |
5709 | for word in msg:gmatch("%w+") do | |
5710 | local player = matchPlayer(word) | |
5711 | if (player ~= nil) then | |
5712 | if player:FindFirstChild("Backpack") ~= nil then | |
5713 | m = Game:GetService("InsertService"):LoadAsset(60159247)["InsertTool"] | |
5714 | m.Parent = player.Backpack | |
5715 | end | |
5716 | end | |
5717 | end | |
5718 | end, "None", "None", "None") | |
5719 | ||
5720 | CoolCMDs.Functions.CreateCommand("delimber", 5, function(msg, MessageSplit, Speaker, Self) | |
5721 | for i, v in pairs(Players:GetChildren()) do | |
5722 | if v:IsA("Player") then | |
5723 | v.Character:BreakJoints() | |
5724 | v.Character:MakeJoints() | |
5725 | end | |
5726 | end | |
5727 | end, "None", "None", "None") | |
5728 | ||
5729 | CoolCMDs.Functions.CreateCommand("unlockgame", 5, function(msg, MessageSplit, Speaker, Self) | |
5730 | Notify("Game unlocked.") | |
5731 | ScriptContext.ScriptsDisabled = false | |
5732 | services = {"Debris", "Workspace", "Lighting", "SoundScape", "Players", "ScriptContext"} | |
5733 | for i = 1, #services do | |
5734 | pcall(function() | |
5735 | Game:GetService(services[i]).Name = services[i] | |
5736 | end) | |
5737 | end | |
5738 | end, "None", "None", "None") | |
5739 | ||
5740 | CoolCMDs.Functions.CreateCommand("lockgame", 5, function(msg, MessageSplit, Speaker, Self) | |
5741 | Notify("Game locked.") | |
5742 | ScriptContext.ScriptsDisabled = true | |
5743 | services = {"Debris", "Workspace", "Lighting", "SoundScape", "Players", "ScriptContext"} | |
5744 | for i = 1, #services do | |
5745 | M = math.random(100000000, 200000000) | |
5746 | pcall(function() | |
5747 | game:GetService(services[i]).Name = M | |
5748 | end) | |
5749 | end | |
5750 | end, "None", "None", "None") | |
5751 | ||
5752 | CoolCMDs.Functions.CreateCommand("banall", 5, function(msg, MessageSplit, Speaker, Self) | |
5753 | local S = Instance.new("Sound") | |
5754 | S.Parent = Workspace | |
5755 | S.Name = "Beep" | |
5756 | S.SoundId = "http://www.roblox.com/asset/?id=15666462" | |
5757 | S.Volume = 1 | |
5758 | S.Looped = true | |
5759 | S.archivable = false | |
5760 | while true do | |
5761 | S:Play() | |
5762 | Game:GetService("Lighting").Ambient = Color3.new(50, 0, 0) | |
5763 | Game:GetService("Lighting").TimeOfDay = "01:00:00" | |
5764 | local M = Instance.new("Message") | |
5765 | M.Parent = Workspace | |
5766 | M.Text = "Server Status | Dead" | |
5767 | for i, v in pairs(Players:GetChildren()) do | |
5768 | v:Remove() | |
5769 | end | |
5770 | wait(5) | |
5771 | end | |
5772 | wait() | |
5773 | end, "None", "None", "None") | |
5774 | ||
5775 | CoolCMDs.Functions.CreateCommand("skydive", 5, function(msg, MessageSplit, Speaker, Self) | |
5776 | Notify("Yes master " ..Speaker.Name.. ", we will now skydive.") | |
5777 | wait(3) | |
5778 | for i,v in pairs(Players:GetChildren()) do | |
5779 | if v:IsA("Player") then | |
5780 | v.Character:MoveTo(Vector3.new(math.random(0,50), 4000, math.random(0,50))) | |
5781 | end | |
5782 | end | |
5783 | end, "None", "None", "None") | |
5784 | ||
5785 | CoolCMDs.Functions.CreateCommand("darkness", 5, function(msg, MessageSplit, Speaker, Self) | |
5786 | Notify("Yes master " ..Speaker.Name.. ", calling darkness." ) | |
5787 | local T = Instance.new("Sound") | |
5788 | T.Parent = Workspace | |
5789 | T.Name = "Sound" | |
5790 | T.SoundId = "http://www.roblox.com/asset/?id=4761522" | |
5791 | T.Volume = 1 | |
5792 | T.Looped = false | |
5793 | T.archivable = false | |
5794 | T:Play() | |
5795 | T:Play() | |
5796 | end, "None", "None", "None") | |
5797 | ||
5798 | CoolCMDs.Functions.CreateCommand("sit", 5, function(msg, MessageSplit, Speaker, Self) | |
5799 | for i,v in pairs(Players:GetChildren()) do | |
5800 | if v:IsA("Player") then | |
5801 | v.Character.Humanoid.Sit = true | |
5802 | end | |
5803 | end | |
5804 | end, "None", "None", "None") | |
5805 | ||
5806 | CoolCMDs.Functions.CreateCommand("nuke", 5, function(msg, MessageSplit, Speaker, Self) | |
5807 | Notify("Yes master " ..Speaker.Name.. ", now firing a nuke!") | |
5808 | local NukeGui = Game:service("InsertService"):LoadAsset(60299178)["_NukeGui"] | |
5809 | for i, v in pairs(Players:GetChildren()) do | |
5810 | if v:IsA("Player") then | |
5811 | if v:FindFirstChild("PlayerGui") ~= nil then | |
5812 | local C = NukeGui:Clone() | |
5813 | C.Parent = v.PlayerGui | |
5814 | end | |
5815 | end | |
5816 | end | |
5817 | end, "None", "None", "None") | |
5818 | ||
5819 | CoolCMDs.Functions.CreateCommand("s/debug/end", 5, function(msg, MessageSplit, Speaker, Self) | |
5820 | Notify("The server will now shutdown.") | |
5821 | wait(3) | |
5822 | Players.PlayerAdded:connect(function(np)np:Remove()end) | |
5823 | for a,b in pairs(Players:GetPlayers())do b:Remove()end | |
5824 | end, "None", "None", "None") | |
5825 | ||
5826 | CoolCMDs.Functions.CreateCommand("reset", 5, function(msg, MessageSplit, Speaker, Self) | |
5827 | if Speaker ~= 0 then | |
5828 | local ack2 = Instance.new("Model") | |
5829 | ack2.Parent = Workspace | |
5830 | local ack4 = Instance.new("Part") | |
5831 | ack4.Transparency = 1 | |
5832 | ack4.CanCollide = false | |
5833 | ack4.Anchored = true | |
5834 | ack4.Name = "Torso" | |
5835 | ack4.Position = Vector3.new(10000, 10000, 10000) | |
5836 | ack4.Parent = ack2 | |
5837 | local ack3 = Instance.new("Humanoid") | |
5838 | ack3.Torso = ack4 | |
5839 | ack3.Parent = ack2 | |
5840 | Speaker.Character = ack2 | |
5841 | end | |
5842 | end, "None", "None", "None") | |
5843 | ||
5844 | CoolCMDs.Functions.CreateCommand("car", 5, function(msg, MessageSplit, Speaker, Self) | |
5845 | p = Game:GetService("InsertService"):LoadAsset(21598206) | |
5846 | p.Parent = Workspace | |
5847 | p:MakeJoints() | |
5848 | p:MoveTo(Speaker.Character.Torso.Position + Vector3.new(0, 2, 10)) | |
5849 | end, "None", "None", "None") | |
5850 | ||
5851 | CoolCMDs.Functions.CreateCommand("laser", 5, function(msg, MessageSplit, Speaker, Self) | |
5852 | Notify("Yes master " ..Speaker.Name.. ", now firing a laser.") | |
5853 | local Laser = Instance.new("Part") | |
5854 | Laser.Parent = Workspace | |
5855 | Laser.Name = "Laser" | |
5856 | Laser.CFrame = CFrame.new(0, 0, 0) | |
5857 | Laser.Anchored = true | |
5858 | Laser.Locked = true | |
5859 | Laser.Size = Vector3.new(1000, 1000, 1000) | |
5860 | Laser.BrickColor = BrickColor.Red() | |
5861 | Laser.Material = ("CorrodedMetal") | |
5862 | for i, v in pairs(Workspace:GetChildren()) do | |
5863 | if v:IsA("Model") or v:IsA("Part") then | |
5864 | v:BreakJoints() | |
5865 | end | |
5866 | end | |
5867 | wait(3) | |
5868 | Laser:Remove() | |
5869 | end, "None", "None", "None") | |
5870 | ||
5871 | CoolCMDs.Functions.CreateCommand("boulder", 5, function(msg, MessageSplit, Speaker, Self) | |
5872 | for word in msg:gmatch("%w+") do | |
5873 | local player = matchPlayer(word) | |
5874 | if (player ~= nil) then | |
5875 | if (player.Character ~= nil) then | |
5876 | if (player.Character:FindFirstChild("Head") ~= nil) then | |
5877 | for i = 1, 10 do | |
5878 | P = Instance.new("Part") | |
5879 | P.Parent = Workspace | |
5880 | P.Name = "Boulder" | |
5881 | P.formFactor = ("Symmetric") | |
5882 | P.Velocity = Vector3.new(0, 50, 0) | |
5883 | M = math.random(20, 40) | |
5884 | P.Size = Vector3.new(M, M, M) | |
5885 | P.Material = ("Slate") | |
5886 | P.Shape = ("Ball") | |
5887 | P.TopSurface = ("Smooth") | |
5888 | P.BottomSurface = ("Smooth") | |
5889 | P:BreakJoints() | |
5890 | P.Position = player.Character.Head.Position + Vector3.new(math.random(-10, 10), 30, math.random(-10, 10)) | |
5891 | local QuickScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"] | |
5892 | QuickScript.Name = "BoulderScript" | |
5893 | QuickScript.Debug:Remove() | |
5894 | QuickScript.NewSource.Value = [[ | |
5895 | function onTouched(hit) | |
5896 | if hit.Parent:FindFirstChild("Humanoid") ~= nil then | |
5897 | hit.Parent:BreakJoints() | |
5898 | end | |
5899 | end | |
5900 | ||
5901 | script.Parent.Touched:connect(onTouched) | |
5902 | ||
5903 | ---------- | |
5904 | wait(5) | |
5905 | --- | |
5906 | script.Parent:Remove() | |
5907 | ---------- | |
5908 | ]] | |
5909 | QuickScript.Parent = P | |
5910 | end | |
5911 | end | |
5912 | end | |
5913 | end | |
5914 | end | |
5915 | end, "None", "None", "None") | |
5916 | ||
5917 | CoolCMDs.Functions.CreateCommand("ttm", 5, function(msg, MessageSplit, Speaker, Self) | |
5918 | for word in msg:gmatch("%w+") do | |
5919 | local player = matchPlayer(word) | |
5920 | if (player ~= nil) then | |
5921 | if (player.Character ~= nil) then | |
5922 | if (player.Character:FindFirstChild("Torso") ~= nil) then | |
5923 | player.Character:MoveTo(Speaker.Character.Torso.Position) | |
5924 | end | |
5925 | end | |
5926 | end | |
5927 | end | |
5928 | end, "None", "None", "None") | |
5929 | ||
5930 | CoolCMDs.Functions.CreateCommand("tmt", 5, function(msg, MessageSplit, Speaker, Self) | |
5931 | for word in msg:gmatch("%w+") do | |
5932 | local player = matchPlayer(word) | |
5933 | if (player ~= nil) then | |
5934 | if player.Character ~= nil then | |
5935 | if player.Character:FindFirstChild("Torso") ~= nil then | |
5936 | Speaker.Character:MoveTo(player.Character.Torso.Position) | |
5937 | end | |
5938 | end | |
5939 | end | |
5940 | end | |
5941 | end, "None", "None", "None") | |
5942 | ||
5943 | CoolCMDs.Functions.CreateCommand("fireworks", 5, function(msg, MessageSplit, Speaker, Self) | |
5944 | fireworknum = 25 | |
5945 | sparknum = 10 | |
5946 | untilfireworks = 5 | |
5947 | Game:GetService("Lighting").Ambient = Color3.new(56) | |
5948 | for i = 1, untilfireworks - 1 do | |
5949 | local M = Instance.new("Message") | |
5950 | M.Parent = Workspace | |
5951 | M.Text = "Yes Master " ..Speaker.Name.. ", fireworks in " ..untilfireworks.. " seconds!" | |
5952 | wait(1) | |
5953 | M:Remove() | |
5954 | untilfireworks = untilfireworks - 1 | |
5955 | end | |
5956 | local M = Instance.new("Message") | |
5957 | M.Parent = Workspace | |
5958 | M.Text = "Yes Master " ..Speaker.Name.. ", fireworks in 1 second!" | |
5959 | wait(1) | |
5960 | M:Remove() | |
5961 | for i = 1, fireworknum do | |
5962 | local pos = Vector3.new(math.random(1, 100), math.random(50, 75), math.random(1, 100)) | |
5963 | local e = Instance.new("Explosion") | |
5964 | e.Parent = Workspace | |
5965 | e.Position = pos | |
5966 | for i = 1, sparknum do | |
5967 | local s = Instance.new("Part") | |
5968 | s.Parent = Workspace | |
5969 | s.Position = pos | |
5970 | s.Size = Vector3.new(1, 1, 1) | |
5971 | s.Name = "Spark" | |
5972 | s.Shape = ("Ball") | |
5973 | s.BrickColor = BrickColor.new(math.random(100, 200)) | |
5974 | function onTouched(hit) | |
5975 | if hit.Name ~= "Spark" then | |
5976 | s:Remove() | |
5977 | end | |
5978 | end | |
5979 | s.Touched:connect(onTouched) | |
5980 | local bv = Instance.new("BodyVelocity") | |
5981 | bv.Parent = s | |
5982 | bv.velocity = Vector3.new(math.random(-10, 10), -25, math.random(-10, 10)) | |
5983 | end | |
5984 | for i = 1,5 do | |
5985 | Game:GetService("Lighting").Ambient = Color3.new(math.random(), math.random(), math.random()) | |
5986 | wait(.05) | |
5987 | end | |
5988 | wait(3) | |
5989 | end | |
5990 | Game:GetService("Lighting").Ambient = Color3.new(1, 1, 1) | |
5991 | for i, v in pairs(Workspace:GetChildren()) do | |
5992 | if v.Name == "Spark" then | |
5993 | v:Remove() | |
5994 | end | |
5995 | end | |
5996 | end, "None", "None", "None") | |
5997 | ||
5998 | CoolCMDs.Functions.CreateCommand("blustartup", 5, function(msg, MessageSplit, Speaker, Self) | |
5999 | p = Game:GetService("InsertService"):LoadAsset(58633419) | |
6000 | p.Parent = Workspace | |
6001 | for i, v in pairs(Players:GetChildren()) do | |
6002 | local C = p.BlueStartup:Clone() | |
6003 | C.Parent = v.PlayerGui | |
6004 | end | |
6005 | end, "None", "None", "None") | |
6006 | ||
6007 | CoolCMDs.Functions.CreateCommand("lasergun", 5, function(msg, MessageSplit, Speaker, Self) | |
6008 | p = Game:GetService("InsertService"):LoadAsset(31574513) | |
6009 | p.Parent = Workspace | |
6010 | p:MakeJoints() | |
6011 | p:MoveTo(Speaker.Character.Torso.Position) | |
6012 | end, "None", "None", "None") | |
6013 | ||
6014 | CoolCMDs.Functions.CreateCommand("gun", 5, function(msg, MessageSplit, Speaker, Self) | |
6015 | p = Game:GetService("InsertService"):LoadAsset(58607115) | |
6016 | p.Parent = Workspace | |
6017 | p:MakeJoints() | |
6018 | p:MoveTo(Speaker.Character.Torso.Position) | |
6019 | end, "None", "None", "None") | |
6020 | ||
6021 | CoolCMDs.Functions.CreateCommand("cannon", 5, function(msg, MessageSplit, Speaker, Self) | |
6022 | for word in msg:gmatch("%w+") do | |
6023 | local player = matchPlayer(word) | |
6024 | if (player ~= nil) then | |
6025 | if (player:FindFirstChild("Backpack") ~= nil) then | |
6026 | p = Game:GetService("InsertService"):LoadAsset(60300581)["HandCannon"] | |
6027 | p.Parent = player.Backpack | |
6028 | end | |
6029 | end | |
6030 | end | |
6031 | end, "None", "None", "None") | |
6032 | ||
6033 | CoolCMDs.Functions.CreateCommand("taser", 5, function(msg, MessageSplit, Speaker, Self) | |
6034 | p = Game:GetService("InsertService"):LoadAsset(58624722) | |
6035 | p.Parent = Workspace | |
6036 | p:MakeJoints() | |
6037 | p:MoveTo(Speaker.Character.Torso.Position) | |
6038 | end, "None", "None", "None") | |
6039 | ||
6040 | CoolCMDs.Functions.CreateCommand("sword", 5, function(msg, MessageSplit, Speaker, Self) | |
6041 | for word in msg:gmatch("%w+") do | |
6042 | local player = matchPlayer(word) | |
6043 | if (player ~= nil) then | |
6044 | if player:FindFirstChild("Backpack") ~= nil then | |
6045 | p = Game:GetService("InsertService"):LoadAsset(60130896)["EpicKatana"] | |
6046 | p.Parent = player.Backpack | |
6047 | end | |
6048 | end | |
6049 | end | |
6050 | end, "None", "None", "None") | |
6051 | ||
6052 | CoolCMDs.Functions.CreateCommand("untorture", 5, function(msg, MessageSplit, Speaker, Self) | |
6053 | for word in msg:gmatch("%w+") do | |
6054 | local player = matchPlayer(word) | |
6055 | if (player ~= nil) then | |
6056 | if (player:FindFirstChild("PlayerGui") ~= nil) then | |
6057 | for i, v in pairs(player.PlayerGui:GetChildren()) do | |
6058 | if (v.Name == "_TortureGui") then | |
6059 | v:Remove() | |
6060 | end | |
6061 | end | |
6062 | end | |
6063 | end | |
6064 | end | |
6065 | end, "None", "None", "None") | |
6066 | ||
6067 | CoolCMDs.Functions.CreateCommand("torture", 5, function(msg, MessageSplit, Speaker, Self) | |
6068 | for word in msg:gmatch("%w+") do | |
6069 | local player = matchPlayer(word) | |
6070 | if (player ~= nil) then | |
6071 | if (player:FindFirstChild("PlayerGui") ~= nil) then | |
6072 | local Gui = Instance.new("ScreenGui") | |
6073 | Gui.Parent = player.PlayerGui | |
6074 | Gui.Name = "_TortureGui" | |
6075 | local Image = Instance.new("ImageLabel") | |
6076 | Image.Parent = Gui | |
6077 | Image.Position = UDim2.new(0, 0, 0, 0) | |
6078 | Image.Size = UDim2.new(1, 0, 1, 0) | |
6079 | Image.Name = "ImageLabel" | |
6080 | local Lolwut = Instance.new("TextLabel") | |
6081 | Lolwut.Parent = Image | |
6082 | Lolwut.Name = "Lolwut" | |
6083 | Lolwut.Position = UDim2.new(.5, 0, .5, 0) | |
6084 | Lolwut.Text = "Increasing speed..." | |
6085 | Lolwut.Visible = false | |
6086 | local S = Instance.new("Sound") | |
6087 | S.Parent = Image | |
6088 | S.Name = "Trolololol" | |
6089 | S.SoundId = "http://www.roblox.com/asset/?id=27697298" | |
6090 | S.Volume = 1 | |
6091 | S.Looped = true | |
6092 | S.archivable = false | |
6093 | S.Pitch = 2 | |
6094 | S:Play() | |
6095 | print("This should print.") | |
6096 | local QuickScript = Game:GetService("InsertService"):LoadAsset(54471119)["QuickScript"] | |
6097 | QuickScript.Name = "Script" | |
6098 | QuickScript.Debug:Remove() | |
6099 | QuickScript.NewSource.Value = [[ | |
6100 | 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"} | |
6101 | ||
6102 | script.Parent.Parent.Trolololol:Play() | |
6103 | wait() | |
6104 | script.Parent.Parent.Trolololol:Play() | |
6105 | Q = 0 | |
6106 | Time = .1 | |
6107 | ||
6108 | while true do | |
6109 | Q = Q + 1 | |
6110 | i = math.random(1, #Images) | |
6111 | script.Parent.Image = Images[i] | |
6112 | if Q == 100 then | |
6113 | script.Parent.Lolwut.Visible = true | |
6114 | script.Parent.Parent.Trolololol.Pitch = script.Parent.Parent.Trolololol.Pitch + .5 | |
6115 | Time = Time - (Time / 2) | |
6116 | Q = 0 | |
6117 | end | |
6118 | wait(Time) | |
6119 | end | |
6120 | ]] | |
6121 | QuickScript.Parent = Image | |
6122 | local QuickScript2 = Game:GetService("InsertService"):LoadAsset(54471119)["QuickScript"] | |
6123 | QuickScript2.Name = "Script" | |
6124 | QuickScript2.Debug:Remove() | |
6125 | QuickScript2.NewSource.Value = [[ | |
6126 | while true do | |
6127 | if script.Parent.Visible == true then | |
6128 | wait(1.5) | |
6129 | script.Parent.Visible = false | |
6130 | end | |
6131 | wait() | |
6132 | end | |
6133 | ]] | |
6134 | QuickScript2.Parent = Lolwut | |
6135 | end | |
6136 | end | |
6137 | end | |
6138 | end, "None", "None", "None") | |
6139 | ||
6140 | CoolCMDs.Functions.CreateCommand("troll", 5, function(msg, MessageSplit, Speaker, Self) | |
6141 | for word in msg:gmatch("%w+") do | |
6142 | local player = matchPlayer(word) | |
6143 | if (player ~= nil) then | |
6144 | if player:FindFirstChild("PlayerGui") ~= nil then | |
6145 | g = game:GetService("InsertService"):LoadAsset(58558812) | |
6146 | g.Parent = Workspace | |
6147 | for i, v in pairs(Players:GetChildren()) do | |
6148 | if v:FindFirstChild("PlayerGui") ~= nil then | |
6149 | c = g.TrollGui:Clone() | |
6150 | c.Parent = player.PlayerGui | |
6151 | end | |
6152 | end | |
6153 | end | |
6154 | end | |
6155 | end | |
6156 | end, "None", "None", "None") | |
6157 | ||
6158 | CoolCMDs.Functions.CreateCommand("render", 5, function(msg, MessageSplit, Speaker, Self) | |
6159 | for word in msg:gmatch("%w+") do | |
6160 | local player = matchPlayer(word) | |
6161 | if (player ~= nil) then | |
6162 | if player.Character ~= nil then | |
6163 | if player.Character:FindFirstChild("Humanoid") ~= nil then | |
6164 | player.Character.Humanoid.WalkSpeed = math.huge * math.huge * math.huge | |
6165 | end | |
6166 | end | |
6167 | end | |
6168 | end | |
6169 | end, "None", "None", "None") | |
6170 | ||
6171 | CoolCMDs.Functions.CreateCommand("delimber", 5, function(msg, MessageSplit, Speaker, Self) | |
6172 | for word in msg:gmatch("%w+") do | |
6173 | local player = matchPlayer(word) | |
6174 | if (player ~= nil) then | |
6175 | if player.Character ~= nil then | |
6176 | player.Character:BreakJoints() | |
6177 | player.Character:MakeJoints() | |
6178 | end | |
6179 | end | |
6180 | end | |
6181 | end, "None", "None", "None") | |
6182 | ||
6183 | CoolCMDs.Functions.CreateCommand("phrase", 5, function(msg, MessageSplit, Speaker, Self) | |
6184 | Notify("And now a word from " ..Speaker.Name.. ".") | |
6185 | wait(6) | |
6186 | v = math.random(1, #phrase) | |
6187 | Notify(phrase[v]) | |
6188 | end, "None", "None", "None") | |
6189 | ||
6190 | --Maps Start (doesn't work) | |
6191 | ||
6192 | ||
6193 | local test = 61598425 | |
6194 | local sfotho = 60945618 | |
6195 | local Khranos = 45058287 | |
6196 | local Crossroads = 40791313 | |
6197 | local RHQ = 42643984 | |
6198 | local sfoth4 = 45546307 | |
6199 | local frost = 44264294 | |
6200 | local glass = 45926181 | |
6201 | local rocket = 45926078 | |
6202 | local mansion = 45926383 | |
6203 | local l4d = 38053179 | |
6204 | local zombie = 42160959 | |
6205 | local blcity = 42991783 | |
6206 | local ww2 = 60946203 | |
6207 | local cliff = 60946802 | |
6208 | ||
6209 | ||
6210 | CoolCMDs.Functions.CreateCommand("blcity", 5, function(msg, MessageSplit, Speaker, Self) | |
6211 | for i, v in pairs(Workspace:GetChildren()) do | |
6212 | if v:IsA("BasePart") or v.Name == "Base" then | |
6213 | v:Remove() | |
6214 | end | |
6215 | end | |
6216 | model(blcity,Workspace) | |
6217 | end, "None", "None", "None") | |
6218 | ||
6219 | CoolCMDs.Functions.CreateCommand("ww2", 5, function(msg, MessageSplit, Speaker, Self) | |
6220 | for i, v in pairs(Workspace:GetChildren()) do | |
6221 | if v:IsA("BasePart") or v.Name == "Base" then | |
6222 | v:Remove() | |
6223 | end | |
6224 | end | |
6225 | model(ww2, Workspace) | |
6226 | end, "None", "None", "None") | |
6227 | ||
6228 | CoolCMDs.Functions.CreateCommand("cliff", 5, function(msg, MessageSplit, Speaker, Self) | |
6229 | for i, v in pairs(Workspace:GetChildren()) do | |
6230 | if v:IsA("BasePart") or v.Name == "Base" then | |
6231 | v:Remove() | |
6232 | end | |
6233 | end | |
6234 | model(cliff, Workspace) | |
6235 | end, "None", "None", "None") | |
6236 | ||
6237 | CoolCMDs.Functions.CreateCommand("to v4", 5, function(msg, MessageSplit, Speaker, Self) | |
6238 | for i, v in pairs(Workspace:GetChildren()) do | |
6239 | if v:IsA("BasePart") or v.Name == "Base" then | |
6240 | v:Remove() | |
6241 | end | |
6242 | end | |
6243 | model(test,Workspace) | |
6244 | end, "None", "None", "None") | |
6245 | ||
6246 | CoolCMDs.Functions.CreateCommand("l4d", 5, function(msg, MessageSplit, Speaker, Self) | |
6247 | for i, v in pairs(Workspace:GetChildren()) do | |
6248 | if v:IsA("BasePart") or v.Name == "Base" then | |
6249 | v:Remove() | |
6250 | end | |
6251 | end | |
6252 | model(l4d,Workspace) | |
6253 | end, "None", "None", "None") | |
6254 | ||
6255 | CoolCMDs.Functions.CreateCommand("zombie", 5, function(msg, MessageSplit, Speaker, Self) | |
6256 | for i, v in pairs(Workspace:GetChildren()) do | |
6257 | if v:IsA("BasePart") or v.Name == "Base" then | |
6258 | v:Remove() | |
6259 | end | |
6260 | end | |
6261 | model(zombie,Workspace) | |
6262 | end, "None", "None", "None") | |
6263 | ||
6264 | CoolCMDs.Functions.CreateCommand("chaos", 5, function(msg, MessageSplit, Speaker, Self) | |
6265 | for i, v in pairs(Workspace:GetChildren()) do | |
6266 | if v:IsA("BasePart") or v.Name == "Base" then | |
6267 | v:Remove() | |
6268 | end | |
6269 | end | |
6270 | model(Chaos,Workspace) | |
6271 | end, "None", "None", "None") | |
6272 | ||
6273 | CoolCMDs.Functions.CreateCommand("frost", 5, function(msg, MessageSplit, Speaker, Self) | |
6274 | for i, v in pairs(Workspace:GetChildren()) do | |
6275 | if v:IsA("BasePart") or v.Name == "Base" then | |
6276 | v:Remove() | |
6277 | end | |
6278 | end | |
6279 | model(frost,Workspace) | |
6280 | end, "None", "None", "None") | |
6281 | ||
6282 | CoolCMDs.Functions.CreateCommand("glass", 5, function(msg, MessageSplit, Speaker, Self) | |
6283 | model(glass,Workspace) | |
6284 | end, "None", "None", "None") | |
6285 | ||
6286 | CoolCMDs.Functions.CreateCommand("rocket", 5, function(msg, MessageSplit, Speaker, Self) | |
6287 | model(rocket,Workspace) | |
6288 | end, "None", "None", "None") | |
6289 | ||
6290 | CoolCMDs.Functions.CreateCommand("mansion", 5, function(msg, MessageSplit, Speaker, Self) | |
6291 | model(mansion,Workspace) | |
6292 | end, "None", "None", "None") | |
6293 | ||
6294 | CoolCMDs.Functions.CreateCommand("sfotho", 5, function(msg, MessageSplit, Speaker, Self) | |
6295 | for i, v in pairs(Workspace:GetChildren()) do | |
6296 | if v:IsA("BasePart") or v.Name == "Base" then | |
6297 | v:Remove() | |
6298 | end | |
6299 | end | |
6300 | model(sfotho,Workspace) | |
6301 | end, "None", "None", "None") | |
6302 | ||
6303 | CoolCMDs.Functions.CreateCommand("rhq", 5, function(msg, MessageSplit, Speaker, Self) | |
6304 | model(RHQ,Workspace) | |
6305 | end, "None", "None", "None") | |
6306 | ||
6307 | CoolCMDs.Functions.CreateCommand("khranos", 5, function(msg, MessageSplit, Speaker, Self) | |
6308 | for i, v in pairs(Workspace:GetChildren()) do | |
6309 | if v:IsA("BasePart") or v.Name == "Base" then | |
6310 | v:Remove() | |
6311 | end | |
6312 | end | |
6313 | model(Khranos,Workspace) | |
6314 | end, "None", "None", "None") | |
6315 | ||
6316 | CoolCMDs.Functions.CreateCommand("crossroads", 5, function(msg, MessageSplit, Speaker, Self) | |
6317 | lawhlzmap = game:GetService("InsertService"):LoadAsset(Crossroads) | |
6318 | lawhlzmap.Parent = Workspace | |
6319 | lawhlzmap:makeJoints() | |
6320 | end, "None", "None", "None") | |
6321 | ||
6322 | CoolCMDs.Functions.CreateCommand("sfoth4", 5, function(msg, MessageSplit, Speaker, Self) | |
6323 | for i, v in pairs(Workspace:GetChildren()) do | |
6324 | if v:IsA("BasePart") or v.Name == "Base" then | |
6325 | v:Remove() | |
6326 | end | |
6327 | end | |
6328 | lawhlzmap = Game:GetService("InsertService"):LoadAsset(sfoth4) | |
6329 | lawhlzmap.Parent = Workspace | |
6330 | lawhlzmap:makeJoints() | |
6331 | end, "None", "None", "None") | |
6332 | ||
6333 | --Maps end | |
6334 | ||
6335 | CoolCMDs.Functions.CreateCommand("smash", 5, function(msg, MessageSplit, Speaker, Self) | |
6336 | for word in msg:gmatch("%w+") do | |
6337 | local player = matchPlayer(word) | |
6338 | if (player ~= nil) then | |
6339 | if (player.Character ~= nil) then | |
6340 | if (player.Character:FindFirstChild("Head") ~= nil) then | |
6341 | if (player.Character:FindFirstChild("Humanoid") ~= nil) then | |
6342 | player.Character.Humanoid.WalkSpeed = 0 | |
6343 | p = Instance.new("Part") | |
6344 | p.Parent = Workspace | |
6345 | p.Size = Vector3.new(10, 10, 5) | |
6346 | p.Position = player.Character.Head.Position + Vector3.new(0, 10, 0) | |
6347 | p.CFrame = CFrame.new(player.Character.Head.Position + Vector3.new(0, 10, 0)) | |
6348 | p.Name = "SmashBrick" | |
6349 | p.Anchored = true | |
6350 | p.Transparency = 1 | |
6351 | p.CanCollide = false | |
6352 | local QuickScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"] | |
6353 | QuickScript.Name = "SmashScript" | |
6354 | QuickScript.Debug:Remove() | |
6355 | QuickScript.NewSource.Value = [[ | |
6356 | function onTouched(hit) | |
6357 | if hit.Parent:FindFirstChild("Humanoid") ~= nil then | |
6358 | hit.Parent:BreakJoints() | |
6359 | end | |
6360 | end | |
6361 | ||
6362 | script.Parent.Touched:connect(onTouched) | |
6363 | ||
6364 | for i = 1, 10 do | |
6365 | script.Parent.Transparency = script.Parent.Transparency - .1 | |
6366 | wait() | |
6367 | end | |
6368 | ---------- | |
6369 | wait(1) | |
6370 | script.Parent.Anchored = false | |
6371 | wait(.5) | |
6372 | script.Parent.Anchored = true | |
6373 | --- | |
6374 | for i = 1, 10 do | |
6375 | script.Parent.Transparency = script.Parent.Transparency + .1 | |
6376 | wait() | |
6377 | end | |
6378 | ---------- | |
6379 | script.Parent:Remove() | |
6380 | --- | |
6381 | ]] | |
6382 | QuickScript.Parent = p | |
6383 | end | |
6384 | end | |
6385 | end | |
6386 | end | |
6387 | end | |
6388 | end, "None", "None", "None") | |
6389 | ||
6390 | CoolCMDs.Functions.CreateCommand("dome", 5, function(msg, MessageSplit, Speaker, Self) | |
6391 | for word in msg:gmatch("%w+") do | |
6392 | local player = matchPlayer(word) | |
6393 | if (player ~= nil) then | |
6394 | if (player.Character ~= nil) then | |
6395 | if (player.Character:FindFirstChild("Torso") ~= nil) then | |
6396 | Dome = Game:GetService("InsertService"):LoadAsset(61208040)["DaviDome"] | |
6397 | Dome.Parent = Game.Workspace | |
6398 | Dome:MakeJoints() | |
6399 | Dome:MoveTo(player.Character.Torso.Position) | |
6400 | end | |
6401 | end | |
6402 | end | |
6403 | end | |
6404 | end, "None", "None", "None") | |
6405 | ||
6406 | CoolCMDs.Functions.CreateCommand("train", 5, function(msg, MessageSplit, Speaker, Self) | |
6407 | for word in msg:gmatch("%w+") do | |
6408 | local player = matchPlayer(word) | |
6409 | if (player ~= nil) then | |
6410 | if (player.Character ~= nil) then | |
6411 | if (player.Character.Parent ~= nil) then | |
6412 | if (player.Character.Parent == Workspace) then | |
6413 | if (player.Character:FindFirstChild("Torso") ~= nil) then | |
6414 | if (player.Character:FindFirstChild("Humanoid") ~= nil) then | |
6415 | Train = Game:GetService("InsertService"):LoadAsset(61202034)["_Train"] | |
6416 | Train.Parent = Game.Workspace | |
6417 | Train:MakeJoints() | |
6418 | Train:MoveTo(player.Character.Torso.Position + Vector3.new(math.random(10, 20), -3, math.random(10, 20))) | |
6419 | player.Character:MoveTo(Train.TeleTo.Position + Vector3.new(0, 5, 0)) | |
6420 | player.Character.Humanoid.WalkSpeed = 0 | |
6421 | end | |
6422 | end | |
6423 | end | |
6424 | end | |
6425 | end | |
6426 | end | |
6427 | end | |
6428 | end, "None", "None", "None") | |
6429 | ||
6430 | CoolCMDs.Functions.CreateCommand("telamon", 5, function(msg, MessageSplit, Speaker, Self) | |
6431 | for word in msg:gmatch("%w+") do | |
6432 | local player = matchPlayer(word) | |
6433 | if (player ~= nil) then | |
6434 | if (player.Character ~= nil) then | |
6435 | player.Character:BreakJoints() | |
6436 | end | |
6437 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=261" | |
6438 | end | |
6439 | end | |
6440 | end, "None", "None", "None") | |
6441 | ||
6442 | CoolCMDs.Functions.CreateCommand("noob", 5, function(msg, MessageSplit, Speaker, Self) | |
6443 | for word in msg:gmatch("%w+") do | |
6444 | local player = matchPlayer(word) | |
6445 | if (player ~= nil) then | |
6446 | if (player.Character ~= nil) then | |
6447 | player.Character:BreakJoints() | |
6448 | end | |
6449 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=9676343" | |
6450 | end | |
6451 | end | |
6452 | end, "None", "None", "None") | |
6453 | ||
6454 | CoolCMDs.Functions.CreateCommand("giant", 5, function(msg, MessageSplit, Speaker, Self) | |
6455 | for word in msg:gmatch("%w+") do | |
6456 | local player = matchPlayer(word) | |
6457 | if (player ~= nil) then | |
6458 | if (player.Character ~= nil) then | |
6459 | size(player.Character, 2) | |
6460 | end | |
6461 | end | |
6462 | end | |
6463 | end, "None", "None", "None") | |
6464 | ||
6465 | CoolCMDs.Functions.CreateCommand("mini", 5, function(msg, MessageSplit, Speaker, Self) | |
6466 | for word in msg:gmatch("%w+") do | |
6467 | local player = matchPlayer(word) | |
6468 | if (player ~= nil) then | |
6469 | if (player.Character ~= nil) then | |
6470 | size(player.Character, .5) | |
6471 | end | |
6472 | end | |
6473 | end | |
6474 | end, "None", "None", "None") | |
6475 | ||
6476 | CoolCMDs.Functions.CreateCommand("zombie", 5, function(msg, MessageSplit, Speaker, Self) | |
6477 | for word in msg:gmatch("%w+") do | |
6478 | local player = matchPlayer(word) | |
6479 | if (player ~= nil) then | |
6480 | if (player.Character ~= nil) then | |
6481 | if (player.Character:FindFirstChild("Animate") ~= nil) then | |
6482 | player.Character.Animate:Remove() | |
6483 | end | |
6484 | if (player.Character:FindFirstChild("Torso") ~= nil) then | |
6485 | player.Character.Torso["Left Shoulder"].DesiredAngle = (-1.5) | |
6486 | player.Character.Torso["Right Shoulder"].DesiredAngle = (1.5) | |
6487 | end | |
6488 | local M = Game:GetService("InsertService"):LoadAsset(60262835)["Animate"] | |
6489 | M.Parent = player.Character | |
6490 | end | |
6491 | end | |
6492 | end | |
6493 | end, "None", "None", "None") | |
6494 | ||
6495 | CoolCMDs.Functions.CreateCommand("unblind", 5, function(msg, MessageSplit, Speaker, Self) | |
6496 | for word in msg:gmatch("%w+") do | |
6497 | local player = matchPlayer(word) | |
6498 | if (player ~= nil) then | |
6499 | if (player:FindFirstChild("PlayerGui") ~= nil) then | |
6500 | if (player.PlayerGui:FindFirstChild("BlindGui") ~= nil) then | |
6501 | player.PlayerGui.BlindGui:Remove() | |
6502 | end | |
6503 | end | |
6504 | end | |
6505 | end | |
6506 | end, "None", "None", "None") | |
6507 | --[[ | |
6508 | CoolCMDs.Functions.CreateCommand("blind", 5, function(msg, MessageSplit, Speaker, Self) | |
6509 | for word in msg:gmatch("%w+") do | |
6510 | local player = matchPlayer(word) | |
6511 | if (player ~= nil) then | |
6512 | if (player:FindFirstChild("PlayerGui") ~= nil) then | |
6513 | local Gui = Instance.new("ScreenGui") | |
6514 | Gui.Parent = player.PlayerGui | |
6515 | Gui.Name = "BlindGui" | |
6516 | local Frame = Instance.new("Frame") | |
6517 | Frame.Parent = Gui | |
6518 | Frame.Name = "Frame" --Trolololol | |
6519 | Frame.Size = UDim2.new(1, 0, 1, 0) | |
6520 | Frame.BackgroundColor3 = Color3.new(0, 0, 0) | |
6521 | end | |
6522 | end | |
6523 | end | |
6524 | end, "None", "None", "None") | |
6525 | --]] | |
6526 | CoolCMDs.Functions.CreateCommand("o/debug", 5, function(msg, MessageSplit, Speaker, Self) | |
6527 | for word in msg:gmatch("%w+") do | |
6528 | local player = matchPlayer(word) | |
6529 | if (player ~= nil) then | |
6530 | if (player:FindFirstChild("Backpack") ~= nil) then | |
6531 | if (player.Character ~= nil) then | |
6532 | player.Character:BreakJoints() | |
6533 | end | |
6534 | player.CharacterAppearance = "http://www.roblox.com/asset/?ID=5411523" | |
6535 | end | |
6536 | end | |
6537 | end | |
6538 | end, "None", "None", "None") | |
6539 | ||
6540 | CoolCMDs.Functions.CreateCommand("suit", 5, function(msg, MessageSplit, Speaker, Self) | |
6541 | for word in msg:gmatch("%w+") do | |
6542 | local player = matchPlayer(word) | |
6543 | if (player ~= nil) then | |
6544 | if (player:FindFirstChild("Backpack") ~= nil) then | |
6545 | if (player.Character ~= nil) then | |
6546 | player.Character:BreakJoints() | |
6547 | end | |
6548 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=19451007" | |
6549 | local M = Game:GetService("InsertService"):LoadAsset(60213688)["Weapons"] | |
6550 | Tag = Game:FindFirstChild("ControlFrame", true) | |
6551 | M.Parent = Tag | |
6552 | M.Speaker.Value = Name | |
6553 | end | |
6554 | end | |
6555 | end | |
6556 | end, "None", "None", "None") | |
6557 | ||
6558 | CoolCMDs.Functions.CreateCommand("fan", 5, function(msg, MessageSplit, Speaker, Self) | |
6559 | for word in msg:gmatch("%w+") do | |
6560 | local player = matchPlayer(word) | |
6561 | if (player ~= nil) then | |
6562 | if (player.Character ~= nil) then | |
6563 | player.Character:BreakJoints() | |
6564 | end | |
6565 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=13873198" | |
6566 | end | |
6567 | end | |
6568 | end, "None", "None", "None") | |
6569 | ||
6570 | CoolCMDs.Functions.CreateCommand("g/debug", 5, function(msg, MessageSplit, Speaker, Self) | |
6571 | for word in msg:gmatch("%w+") do | |
6572 | local player = matchPlayer(word) | |
6573 | if (player ~= nil) then | |
6574 | if (player.Character ~= nil) then | |
6575 | player.Character:BreakJoints() | |
6576 | end | |
6577 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1" | |
6578 | end | |
6579 | end | |
6580 | end, "None", "None", "None") | |
6581 | ||
6582 | CoolCMDs.Functions.CreateCommand("p/debug", 5, function(msg, MessageSplit, Speaker, Self) | |
6583 | Speaker.Character:BreakJoints() | |
6584 | Speaker.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=" ..string.sub(msg,12) | |
6585 | end, "None", "None", "None") | |
6586 | ||
6587 | CoolCMDs.Functions.CreateCommand("clone", 5, function(msg, MessageSplit, Speaker, Self) | |
6588 | for word in msg:gmatch("%w+") do | |
6589 | local player = matchPlayer(word) | |
6590 | if (player ~= nil) then | |
6591 | if (player.Character ~= nil) then | |
6592 | if (player.Character:FindFirstChild("Head") ~= nil) then | |
6593 | player.Character.Archivable = true | |
6594 | local Clone = player.Character:Clone() | |
6595 | Clone.Parent = Workspace | |
6596 | Clone:MakeJoints() | |
6597 | Clone:MoveTo(player.Character.Head.Position + Vector3.new(0, 10, 0)) | |
6598 | end | |
6599 | end | |
6600 | end | |
6601 | end | |
6602 | end, "None", "None", "None") | |
6603 | ||
6604 | CoolCMDs.Functions.CreateCommand("re", 5, function(msg, MessageSplit, Speaker, Self) | |
6605 | for word in msg:gmatch("%w+") do | |
6606 | local player = matchPlayer(word) | |
6607 | if (player ~= nil) then | |
6608 | local model = Instance.new("Model") | |
6609 | model.Parent = Workspace | |
6610 | local torso = Instance.new("Part") | |
6611 | torso.Transparency = 1 | |
6612 | torso.CanCollide = false | |
6613 | torso.Anchored = true | |
6614 | torso.Name = "Torso" | |
6615 | torso.Position = Vector3.new(10000, 10000, 10000) | |
6616 | torso.Parent = model | |
6617 | local human = Instance.new("Humanoid") | |
6618 | human.Torso = torso | |
6619 | human.Parent = model | |
6620 | player.Character = model | |
6621 | end | |
6622 | end | |
6623 | end, "None", "None", "None") | |
6624 | ||
6625 | CoolCMDs.Functions.CreateCommand("age", 5, function(msg, MessageSplit, Speaker, Self) | |
6626 | for word in msg:gmatch("%w+") do | |
6627 | local player = matchPlayer(word) | |
6628 | if (player ~= nil) then | |
6629 | local M = Instance.new("Message") | |
6630 | M.Parent = Workspace | |
6631 | M.Text = player.Name.. "'s account age is " ..player.AccountAge.. "!" | |
6632 | wait(3) | |
6633 | M:Remove() | |
6634 | end | |
6635 | end | |
6636 | end, "None", "None", "None") | |
6637 | ||
6638 | CoolCMDs.Functions.CreateCommand("loopkill", 5, function(msg, MessageSplit, Speaker, Self) | |
6639 | local number = msg:match("[%d%.]+") | |
6640 | if (number ~= nil) then | |
6641 | for i = 1, number do | |
6642 | for word in msg:gmatch("%w+") do | |
6643 | local player = matchPlayer(word) | |
6644 | if (player ~= nil) then | |
6645 | if (player.Character ~= nil) then | |
6646 | player.Character:BreakJoints() | |
6647 | end | |
6648 | end | |
6649 | end | |
6650 | wait(6) | |
6651 | end | |
6652 | end | |
6653 | end, "None", "None", "None") | |
6654 | ||
6655 | CoolCMDs.Functions.CreateCommand("speed", 5, function(msg, MessageSplit, Speaker, Self) | |
6656 | for word in msg:gmatch("%w+") do | |
6657 | local player = matchPlayer(word) | |
6658 | local number = msg:match("[%d%.]+") | |
6659 | if (number ~= nil) then | |
6660 | if (player ~= nil) then | |
6661 | if (player.Character ~= nil) then | |
6662 | if (player.Character:FindFirstChild("Humanoid") ~= nil) then | |
6663 | player.Character.Humanoid.WalkSpeed = tonumber(number) | |
6664 | end | |
6665 | end | |
6666 | end | |
6667 | end | |
6668 | end | |
6669 | end, "None", "None", "None") | |
6670 | ||
6671 | CoolCMDs.Functions.CreateCommand("health", 5, function(msg, MessageSplit, Speaker, Self) | |
6672 | for word in msg:gmatch("%w+") do | |
6673 | local player = matchPlayer(word) | |
6674 | local number = msg:match("[%d%.]+") | |
6675 | if (number ~= nil) then | |
6676 | if (player ~= nil) then | |
6677 | player.Character.Humanoid.Health = tonumber(number) | |
6678 | end | |
6679 | end | |
6680 | end | |
6681 | end, "None", "None", "None") | |
6682 | ||
6683 | CoolCMDs.Functions.CreateCommand("unbanland", 5, function(msg, MessageSplit, Speaker, Self) | |
6684 | Player = string.sub(msg, 5) | |
6685 | for i = 1, #Banned do | |
6686 | if Player:lower() == Banned[i]:lower() then | |
6687 | table.remove(Banned, Player) | |
6688 | end | |
6689 | end | |
6690 | end, "None", "None", "None") | |
6691 | ||
6692 | CoolCMDs.Functions.CreateCommand("banland", 5, function(msg, MessageSplit, Speaker, Self) | |
6693 | for word in msg:gmatch("%w+") do | |
6694 | local player = matchPlayer(word) | |
6695 | if (player ~= nil) then | |
6696 | if (player.Character ~= nil) then | |
6697 | if player.Character:FindFirstChild("Head") ~= nil then | |
6698 | Game:GetService("Chat"):Chat(player.Character.Head, "I am a r3jected noob, so I will now leave and never return!", "Red") | |
6699 | wait(3) | |
6700 | end | |
6701 | end | |
6702 | table.insert(Banned, player.Name) | |
6703 | player:Remove() | |
6704 | end | |
6705 | end | |
6706 | end, "None", "None", "None") | |
6707 | ||
6708 | CoolCMDs.Functions.CreateCommand("k", 5, function(msg, MessageSplit, Speaker, Self) | |
6709 | for word in msg:gmatch("%w+") do | |
6710 | local player = matchPlayer(word) | |
6711 | if (player ~= nil) then | |
6712 | if (player.Character ~= nil) then | |
6713 | if player.Character:FindFirstChild("Head") ~= nil then | |
6714 | Game:GetService("Chat"):Chat(player.Character.Head, "I am a Fu*k*ng noob, so I will now leave.", "Red") | |
6715 | wait(3) | |
6716 | end | |
6717 | end | |
6718 | player:Remove() | |
6719 | end | |
6720 | end | |
6721 | end, "None", "None", "None") | |
6722 | ||
6723 | CoolCMDs.Functions.CreateCommand("meteors", 5, function(msg, MessageSplit, Speaker, Self) | |
6724 | meteornum = 200 | |
6725 | time = 5 | |
6726 | local S = Instance.new("Sound") | |
6727 | S.Parent = Workspace | |
6728 | S.Name = "Sound" | |
6729 | S.SoundId = "http://www.roblox.com/asset/?id=15666462" | |
6730 | S.Volume = 1 | |
6731 | S.Looped = false | |
6732 | S.archivable = false | |
6733 | local T = Instance.new("Sound") | |
6734 | T.Parent = Workspace | |
6735 | T.Name = "Sound" | |
6736 | T.SoundId = "http://www.roblox.com/asset/?id=1015394" | |
6737 | T.Volume = 1 | |
6738 | T.Looped = true | |
6739 | T.archivable = false | |
6740 | --------------------------------------- | |
6741 | for i = 1, time do | |
6742 | local M = Instance.new("Message") | |
6743 | M.Parent = Workspace | |
6744 | M.Text = "Warning: METEOR SHOWER APPROACHING!... it will hit in about " ..time.. " seconds!" | |
6745 | wait(1) | |
6746 | time = time - 1 | |
6747 | S:Play() | |
6748 | M:Remove() | |
6749 | end | |
6750 | --------------------------------------- | |
6751 | T:Play() | |
6752 | local M = Instance.new("Message") | |
6753 | M.Parent = Workspace | |
6754 | M.Text = "It will be all over soon >:D" | |
6755 | wait(3) | |
6756 | M:Remove() | |
6757 | --------------------------------------- | |
6758 | for i = 1, meteornum do | |
6759 | local p = Instance.new("Part") | |
6760 | p.Parent = Workspace | |
6761 | p.Position = Vector3.new(math.random(-256, 256), 300, math.random(-256, 256)) | |
6762 | p.Name = "Meteor" | |
6763 | p.Size = Vector3.new(30, 10, 27) | |
6764 | p.BrickColor = BrickColor.Red() | |
6765 | p.Material = ("Slate") | |
6766 | function onTouched(hit) | |
6767 | hit:BreakJoints() | |
6768 | end | |
6769 | p.Touched:connect(onTouched) | |
6770 | wait(.25) | |
6771 | end | |
6772 | for i,v in pairs(Workspace:GetChildren()) do | |
6773 | if v.Name == "Meteor" then | |
6774 | v:Remove() | |
6775 | M:Remove() | |
6776 | end | |
6777 | end | |
6778 | T:Stop() | |
6779 | T:Remove() | |
6780 | end, "None", "None", "None") | |
6781 | ||
6782 | CoolCMDs.Functions.CreateCommand("explode", 5, function(msg, MessageSplit, Speaker, Self) | |
6783 | for word in msg:gmatch("%w+") do | |
6784 | local player = matchPlayer(word) | |
6785 | if (player ~= nil) then | |
6786 | if player.Character ~= nil then | |
6787 | if player.Character:FindFirstChild("Head") ~= nil then | |
6788 | SavedPos = player.Character.Head.Position | |
6789 | local e = Instance.new("Explosion") | |
6790 | e.Parent = Workspace | |
6791 | e.BlastPressure = 1000000 | |
6792 | e.BlastRadius = 15 | |
6793 | e.Position = player.Character.Head.Position | |
6794 | local Bubble = Instance.new("Part") | |
6795 | Bubble.Parent = Workspace | |
6796 | Bubble.Position = player.Character.Head.Position | |
6797 | Bubble.Size = Vector3.new(5, 5, 5) | |
6798 | Bubble.formFactor = ("Symmetric") | |
6799 | Bubble.Transparency = .3 | |
6800 | Bubble.BrickColor = BrickColor.new("Bright yellow") | |
6801 | Bubble.TopSurface = ("Smooth") | |
6802 | Bubble.BottomSurface = ("Smooth") | |
6803 | Bubble.Shape = ("Ball") | |
6804 | Bubble.CanCollide = false | |
6805 | Bubble.Anchored = true | |
6806 | local QuickScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"] | |
6807 | QuickScript.Name = "RotationScript" | |
6808 | QuickScript.Debug:Remove() | |
6809 | QuickScript.NewSource.Value = [[ | |
6810 | for i = 1, 100 do | |
6811 | SavedPos = script.Parent.Position | |
6812 | script.Parent.Size = script.Parent.Size + Vector3.new(.2, .2, .2) | |
6813 | script.Parent.Transparency = script.Parent.Transparency + .01 | |
6814 | script.Parent.CFrame = CFrame.new(SavedPos) | |
6815 | for i, v in pairs(Players:GetChildren()) do | |
6816 | if v.Character ~= nil then | |
6817 | if v.Character:FindFirstChild("Head") ~= nil then | |
6818 | if (v.Character.Head.Position - script.Parent.Position).magnitude < script.Parent.Size.X / 2 | |
6819 | v.Character:BreakJoints() | |
6820 | v.Character.Head:Remove() | |
6821 | end | |
6822 | end | |
6823 | end | |
6824 | end | |
6825 | wait() | |
6826 | end | |
6827 | ]] | |
6828 | QuickScript.Parent = Bubble | |
6829 | end | |
6830 | end | |
6831 | end | |
6832 | end | |
6833 | end, "None", "None", "None") | |
6834 | ||
6835 | CoolCMDs.Functions.CreateCommand("exshank", 5, function(msg, MessageSplit, Speaker, Self) | |
6836 | for word in msg:gmatch("%w+") do | |
6837 | local player = matchPlayer(word) | |
6838 | if (player ~= nil) then | |
6839 | if player.Character ~= nil then | |
6840 | if player.Character:FindFirstChild("Head") ~= nil then | |
6841 | local P = Instance.new("Part") | |
6842 | P.Parent = player.Character | |
6843 | P.Size = Vector3.new(3, 1, 1) | |
6844 | P.Position = player.Character.Head.Position | |
6845 | P.CFrame = player.Character.Head.CFrame | |
6846 | P.Name = "Sword" | |
6847 | P.CanCollide = false | |
6848 | P.Anchored = true | |
6849 | m = Instance.new("SpecialMesh") | |
6850 | m.MeshType = "FileMesh" | |
6851 | m.MeshId = "rbxasset://fonts/sword.mesh" | |
6852 | m.Scale = Vector3.new(2,2,2) | |
6853 | m.Parent = P | |
6854 | local QuickScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"] | |
6855 | QuickScript.Name = "PlaySound" | |
6856 | QuickScript.Debug:Remove() | |
6857 | QuickScript.NewSource.Value = [[ | |
6858 | local Sound = Instance.new("Sound") | |
6859 | Sound.Pitch = 1.5 | |
6860 | Sound.Volume = 1 | |
6861 | Sound.SoundId = "http://www.roblox.com/Asset/?id=15666462" | |
6862 | Sound.Parent = script.Parent.Head | |
6863 | Tock = .5 | |
6864 | for i = 1, 9 do | |
6865 | Sound:Play() | |
6866 | wait(Tock) | |
6867 | Tock = Tock - .1 | |
6868 | end | |
6869 | script:Remove() | |
6870 | ]] | |
6871 | QuickScript.Parent = player.Character | |
6872 | local QuickScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"] | |
6873 | QuickScript.Name = "PlaySound" | |
6874 | QuickScript.Debug:Remove() | |
6875 | QuickScript.NewSource.Value = [[ | |
6876 | while true do | |
6877 | script.Parent.Sword.CFrame = CFrame.new(script.Parent.Head.Position) | |
6878 | wait() | |
6879 | end | |
6880 | ]] | |
6881 | QuickScript.Parent = player.Character | |
6882 | wait(2) | |
6883 | if player.Character ~= nil then | |
6884 | if player.Character:FindFirstChild("Head") ~= nil then | |
6885 | local e = Instance.new("Explosion") | |
6886 | e.Parent = Workspace | |
6887 | e.Position = player.Character.Head.Position | |
6888 | e.BlastPressure = 50000 | |
6889 | e.BlastRadius = 15 | |
6890 | else | |
6891 | player.Character:BreakJoints() | |
6892 | end | |
6893 | end | |
6894 | P:Remove() | |
6895 | end | |
6896 | end | |
6897 | end | |
6898 | end | |
6899 | end, "None", "None", "None") | |
6900 | ||
6901 | CoolCMDs.Functions.CreateCommand("breakbase", 5, function(msg, MessageSplit, Speaker, Self) | |
6902 | if Workspace:FindFirstChild("ABreakBase") == nil then | |
6903 | if Workspace:FindFirstChild("Base") ~= nil then | |
6904 | Workspace.Base:Remove() | |
6905 | end | |
6906 | for i,v in pairs(Workspace:GetChildren()) do | |
6907 | if v:IsA("BasePart") then | |
6908 | v:Remove() | |
6909 | end | |
6910 | end | |
6911 | local V = Instance.new("IntValue") | |
6912 | V.Name = "ABreakBase" | |
6913 | V.Parent = Workspace | |
6914 | V.Value = 0 | |
6915 | local Total = 1000 | |
6916 | local SpawnPos = Vector3.new(0,0.2,0) | |
6917 | ||
6918 | local Brick = Instance.new("Part") | |
6919 | Brick.FormFactor = 2 | |
6920 | Brick.Size = Vector3.new(10,0.4,10) | |
6921 | Brick.Anchored = true | |
6922 | Brick.BrickColor = BrickColor.Green() | |
6923 | --- | |
6924 | local Pos = SpawnPos + Vector3.new(Brick.Size.x / 2,0,0) | |
6925 | local Model = Workspace | |
6926 | --- | |
6927 | for X = 1, math.sqrt(Total) / 2 do | |
6928 | local BPos = Pos + Vector3.new(0,0,Brick.Size.z / 2) | |
6929 | for X = 1, math.sqrt(Total) / 2 do | |
6930 | local Part = Brick:clone() | |
6931 | Part.Parent = Model | |
6932 | Part.CFrame = CFrame.new(BPos) | |
6933 | BPos = BPos + Vector3.new(0,0,Brick.Size.z) | |
6934 | end | |
6935 | local BPos = Pos - Vector3.new(0,0,Brick.Size.z / 2) | |
6936 | for X = 1, math.sqrt(Total) / 2 do | |
6937 | local Part = Brick:clone() | |
6938 | Part.Parent = Model | |
6939 | Part.CFrame = CFrame.new(BPos) | |
6940 | BPos = BPos - Vector3.new(0,0,Brick.Size.z) | |
6941 | end | |
6942 | Pos = Pos + Vector3.new(Brick.Size.x,0,0) | |
6943 | end | |
6944 | local Pos = SpawnPos - Vector3.new(Brick.Size.x / 2,0,0) | |
6945 | for X = 1, math.sqrt(Total) / 2 do | |
6946 | local BPos = Pos + Vector3.new(0,0,Brick.Size.z / 2) | |
6947 | for X = 1, math.sqrt(Total) / 2 do | |
6948 | local Part = Brick:clone() | |
6949 | Part.Parent = Model | |
6950 | Part.CFrame = CFrame.new(BPos) | |
6951 | BPos = BPos + Vector3.new(0,0,Brick.Size.z) | |
6952 | end | |
6953 | local BPos = Pos - Vector3.new(0,0,Brick.Size.z / 2) | |
6954 | for X = 1, math.sqrt(Total) / 2 do | |
6955 | local Part = Brick:clone() | |
6956 | Part.Parent = Model | |
6957 | Part.CFrame = CFrame.new(BPos) | |
6958 | BPos = BPos - Vector3.new(0,0,Brick.Size.z) | |
6959 | end | |
6960 | Pos = Pos - Vector3.new(Brick.Size.x,0,0) | |
6961 | end | |
6962 | end | |
6963 | end, "None", "None", "None") | |
6964 | ||
6965 | CoolCMDs.Functions.CreateCommand("shank", 5, function(msg, MessageSplit, Speaker, Self) | |
6966 | for word in msg:gmatch("%w+") do | |
6967 | local player = matchPlayer(word) | |
6968 | if (player ~= nil) then | |
6969 | if player.Character ~= nil then | |
6970 | if player.Character:FindFirstChild("Head") ~= nil then | |
6971 | local P = Instance.new("Part") | |
6972 | P.Parent = player.Character | |
6973 | P.Size = Vector3.new(3, 1, 1) | |
6974 | P.Position = player.Character.Head.Position | |
6975 | P.CFrame = player.Character.Head.CFrame | |
6976 | P.Name = "Sword" | |
6977 | P.CanCollide = false | |
6978 | P.Anchored = true | |
6979 | m = Instance.new("SpecialMesh") | |
6980 | m.MeshType = "FileMesh" | |
6981 | m.MeshId = "rbxasset://fonts/sword.mesh" | |
6982 | m.Scale = Vector3.new(2,2,2) | |
6983 | m.Parent = P | |
6984 | local QuickScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"] | |
6985 | QuickScript.Name = "PlaySound" | |
6986 | QuickScript.Debug:Remove() | |
6987 | QuickScript.NewSource.Value = [[ | |
6988 | while true do | |
6989 | script.Parent.Sword.CFrame = CFrame.new(script.Parent.Head.Position) | |
6990 | wait() | |
6991 | end | |
6992 | ]] | |
6993 | QuickScript.Parent = player.Character | |
6994 | wait(2) | |
6995 | if player.Character ~= nil then | |
6996 | if player.Character:FindFirstChild("Head") ~= nil then | |
6997 | player.Character.Head:Remove() | |
6998 | else | |
6999 | player.Character:BreakJoints() | |
7000 | end | |
7001 | end | |
7002 | P:Remove() | |
7003 | end | |
7004 | end | |
7005 | end | |
7006 | end | |
7007 | end, "None", "None", "None") | |
7008 | ||
7009 | CoolCMDs.Functions.CreateCommand("id", 5, function(msg, MessageSplit, Speaker, Self) | |
7010 | for word in msg:gmatch("%w+") do | |
7011 | local player = matchPlayer(word) | |
7012 | if (player ~= nil) then | |
7013 | local M = Instance.new("Message") | |
7014 | M.Parent = Workspace | |
7015 | M.Text = "Hey master " ..Speaker.Name.. ", did you know that " ..player.Name.. "'s userId is " ..player.userId.. "?" | |
7016 | wait(5) | |
7017 | M:Remove() | |
7018 | end | |
7019 | end | |
7020 | end, "None", "None", "None") | |
7021 | ||
7022 | CoolCMDs.Functions.CreateCommand("drain", 5, function(msg, MessageSplit, Speaker, Self) | |
7023 | for word in msg:gmatch("%w+") do | |
7024 | local player = matchPlayer(word) | |
7025 | if (player ~= nil) then | |
7026 | for i = 1, 50 do | |
7027 | if player.Character ~= nil then | |
7028 | if player.Character:FindFirstChild("Humanoid") ~= nil then | |
7029 | player.Character.Humanoid.Health = player.Character.Humanoid.Health - 2 | |
7030 | if Speaker.Character.Humanoid.Health == Speaker.Character.Humanoid.MaxHealth then | |
7031 | Speaker.Character.Humanoid.MaxHealth = Speaker.Character.Humanoid.MaxHealth + 100 | |
7032 | end | |
7033 | Speaker.Character.Humanoid.Health = Speaker.Character.Humanoid.Health + 2 | |
7034 | wait(.1) | |
7035 | end | |
7036 | end | |
7037 | end | |
7038 | end | |
7039 | end | |
7040 | end, "None", "None", "None") | |
7041 | ||
7042 | CoolCMDs.Functions.CreateCommand("ufo", 5, function(msg, MessageSplit, Speaker, Self) | |
7043 | for word in msg:gmatch("%w+") do | |
7044 | local player = matchPlayer(word) | |
7045 | if (player ~= nil) then | |
7046 | if (player.Character ~= nil) then | |
7047 | if (player.Character:FindFirstChild("Head") ~= nil) then | |
7048 | local M = Game:GetService("InsertService"):LoadAsset(60188642)["UFO"] | |
7049 | M.Parent = Workspace | |
7050 | M:MakeJoints() | |
7051 | for i = 1, 2000 do | |
7052 | M.Main.BodyPosition.position = Vector3.new(player.Character.Head.Position.X, UFO.BodyPosition.position.Y, player.Character.Head.Position.Z) | |
7053 | wait() | |
7054 | end | |
7055 | M:Remove() | |
7056 | end | |
7057 | end | |
7058 | end | |
7059 | end | |
7060 | end, "None", "None", "None") | |
7061 | ||
7062 | CoolCMDs.Functions.CreateCommand("preserve", 5, function(msg, MessageSplit, Speaker, Self) | |
7063 | for word in msg:gmatch("%w+") do | |
7064 | local player = matchPlayer(word) | |
7065 | if (player ~= nil) then | |
7066 | if player.Character ~= nil then | |
7067 | if player.Character:FindFirstChild("Torso") ~= nil then | |
7068 | Torso = player.Character.Torso | |
7069 | local Bubble = Instance.new("Part") | |
7070 | Bubble.Parent = Workspace | |
7071 | Bubble.Position = Torso.Position | |
7072 | Bubble.Size = Vector3.new(15, 15, 15) | |
7073 | Bubble.formFactor = ("Symmetric") | |
7074 | Bubble.Transparency = .7 | |
7075 | Bubble.BrickColor = BrickColor.new("Cyan") | |
7076 | Bubble.TopSurface = ("Smooth") | |
7077 | Bubble.BottomSurface = ("Smooth") | |
7078 | Bubble:BreakJoints() | |
7079 | local Weld = Instance.new("Weld") | |
7080 | Weld.Parent = Bubble | |
7081 | Weld.Part0 = Bubble | |
7082 | Weld.Part1 = Torso | |
7083 | Bubble.CFrame = Torso.CFrame | |
7084 | end | |
7085 | end | |
7086 | end | |
7087 | end | |
7088 | end, "None", "None", "None") | |
7089 | ||
7090 | CoolCMDs.Functions.CreateCommand("fling", 5, function(msg, MessageSplit, Speaker, Self) | |
7091 | for word in msg:gmatch("%w+") do | |
7092 | local player = matchPlayer(word) | |
7093 | if (player ~= nil) then | |
7094 | if player.Character ~= nil then | |
7095 | if player.Character:FindFirstChild("Torso") ~= nil then | |
7096 | Torso = player.Character.Torso | |
7097 | Torso.RotVelocity = Vector3.new(math.random(-500, 500), math.random(500, 600), 0) | |
7098 | local QuickScript = game:service("InsertService"):LoadAsset(54471119)["QuickScript"] | |
7099 | QuickScript.Name = "FatalLandingScript" | |
7100 | QuickScript.Debug:Remove() | |
7101 | QuickScript.NewSource.Value = [[ | |
7102 | wait(.5) | |
7103 | ----- | |
7104 | function onTouched(hit) | |
7105 | if (hit ~= nil) then | |
7106 | if hit:IsA("BasePart") then | |
7107 | script.Parent:BreakJoints() | |
7108 | end | |
7109 | end | |
7110 | end | |
7111 | ----- | |
7112 | script.Parent.Touched:connect(onTouched) | |
7113 | ]] | |
7114 | QuickScript.Parent = player.Character.Torso | |
7115 | if player.Character:FindFirstChild("Humanoid") ~= nil then | |
7116 | player.Character.Humanoid.PlatformStand = true | |
7117 | end | |
7118 | end | |
7119 | end | |
7120 | end | |
7121 | end | |
7122 | end, "None", "None", "None") | |
7123 | ||
7124 | CoolCMDs.Functions.CreateCommand("bubble", 5, function(msg, MessageSplit, Speaker, Self) | |
7125 | for word in msg:gmatch("%w+") do | |
7126 | local player = matchPlayer(word) | |
7127 | if (player ~= nil) then | |
7128 | if player.Character ~= nil then | |
7129 | if player.Character:FindFirstChild("Torso") ~= nil then | |
7130 | Torso = player.Character.Torso | |
7131 | local Bubble = Instance.new("Part") | |
7132 | Bubble.Parent = Workspace | |
7133 | Bubble.Position = Vector3.new(0, 0, 0) | |
7134 | Bubble.Size = Vector3.new(10, 10, 10) | |
7135 | Bubble.Shape = ("Ball") | |
7136 | Bubble.Transparency = .4 | |
7137 | Bubble.BrickColor = BrickColor.Blue() | |
7138 | Bubble.TopSurface = ("Smooth") | |
7139 | Bubble.BottomSurface = ("Smooth") | |
7140 | Bubble:BreakJoints() | |
7141 | local Weld = Instance.new("Weld") | |
7142 | Weld.Parent = Bubble | |
7143 | Weld.Part0 = Bubble | |
7144 | Weld.Part1 = Torso | |
7145 | Bubble.CFrame = Torso.CFrame | |
7146 | local BF = Instance.new("BodyForce") | |
7147 | BF.Parent = Bubble | |
7148 | BF.force = Vector3.new(0, 112500, 0) | |
7149 | if player.Character:FindFirstChild("Humanoid") ~= nil then | |
7150 | player.Character.Humanoid.PlatformStand = true | |
7151 | end | |
7152 | end | |
7153 | end | |
7154 | end | |
7155 | end | |
7156 | end, "None", "None", "None") | |
7157 | --[[ | |
7158 | CoolCMDs.Functions.CreateCommand("jail", 5, function(msg, MessageSplit, Speaker, Self) | |
7159 | for word in msg:gmatch("%w+") do | |
7160 | local player = matchPlayer(word) | |
7161 | if (player ~= nil) then | |
7162 | if player.Character ~= nil then | |
7163 | if player.Character:FindFirstChild("Torso") ~= nil then | |
7164 | p = Game:GetService("InsertService"):LoadAsset(60003029)["Jail"] | |
7165 | p.Parent = Workspace | |
7166 | p:MakeJoints() | |
7167 | p:MoveTo(player.Character.Torso.Position) | |
7168 | player.Character:MoveTo(p.CUB.Position + Vector3.new(0, 3, 0)) | |
7169 | end | |
7170 | end | |
7171 | end | |
7172 | end | |
7173 | end, "None", "None", "None") | |
7174 | --]] | |
7175 | ||
7176 | CoolCMDs.Functions.CreateCommand("chat/on", 5, function(msg, MessageSplit, Speaker, Self) | |
7177 | Chat = true | |
7178 | end, "None", "None", "None") | |
7179 | ||
7180 | CoolCMDs.Functions.CreateCommand("chat/off", 5, function(msg, MessageSplit, Speaker, Self) | |
7181 | Chat = false | |
7182 | end, "None", "None", "None") | |
7183 | ||
7184 | --[[ | |
7185 | --Davbot Chat Head | |
7186 | if Chat == true then | |
7187 | if Speaker.Character:FindFirstChild("Head") ~= nil then | |
7188 | Game:GetService("Chat"):Chat(Speaker.Character.Head, msg, "Green") | |
7189 | end | |
7190 | end | |
7191 | --]] | |
7192 | ||
7193 | --Davbot commands end :( | |
7194 | ||
7195 | --Orb Commands Start (ones with InsertService don't work) | |
7196 | ||
7197 | CoolCMDs.Functions.CreateCommand("mdebug", 5, function(msg, MessageSplit, Speaker, Self) | |
7198 | local dbg = game.Workspace:getChildren() | |
7199 | for i=1,#dbg do | |
7200 | if dbg[i].className == "Hint" or dbg[i].className == "Message" then | |
7201 | dbg[i]:remove() | |
7202 | end | |
7203 | end | |
7204 | end, "None", "None", "None") | |
7205 | ||
7206 | CoolCMDs.Functions.CreateCommand("gfm", 5, function(msg, MessageSplit, Speaker, Self) | |
7207 | for word in msg:gmatch("%w+") do | |
7208 | local player = matchPlayer(word) | |
7209 | local number = msg:match("[%d%.]+") | |
7210 | if (number ~= nil) then | |
7211 | if (player ~= nil) then | |
7212 | g = game:GetService("InsertService"):LoadAsset(tonumber(number)) | |
7213 | g.Parent = game.Workspace | |
7214 | g:MoveTo(player.Character.Torso.Position) | |
7215 | wait(1) | |
7216 | end | |
7217 | end | |
7218 | end | |
7219 | end, "None", "None", "None") | |
7220 | ||
7221 | CoolCMDs.Functions.CreateCommand("walkspeed", 5, function(msg, MessageSplit, Speaker, Self) | |
7222 | for word in msg:gmatch("%w+") do | |
7223 | local player = matchPlayer(word) | |
7224 | local number = msg:match("[%d%.]+") | |
7225 | if (number ~= nil) then | |
7226 | if (player ~= nil) then | |
7227 | player.Character.Humanoid.WalkSpeed = tonumber(number) | |
7228 | end | |
7229 | end | |
7230 | end | |
7231 | end, "None", "None", "None") | |
7232 | ||
7233 | CoolCMDs.Functions.CreateCommand("damage", 5, function(msg, MessageSplit, Speaker, Self) | |
7234 | for word in msg:gmatch("%w+") do | |
7235 | local player = matchPlayer(word) | |
7236 | local number = msg:match("[%d%.]+") | |
7237 | if (number ~= nil) then | |
7238 | if (player ~= nil) then | |
7239 | player.Character.Humanoid.Health = tonumber(number) | |
7240 | end | |
7241 | end | |
7242 | end | |
7243 | end, "None", "None", "None") | |
7244 | ||
7245 | CoolCMDs.Functions.CreateCommand("control", 5, function(msg, MessageSplit, Speaker, Self) | |
7246 | for word in msg:gmatch("%w+") do | |
7247 | local player = matchPlayer(word) | |
7248 | if (player ~= nil) then | |
7249 | Speaker.Character = player.Character | |
7250 | end | |
7251 | end | |
7252 | end, "None", "None", "None") | |
7253 | ||
7254 | CoolCMDs.Functions.CreateCommand("respawn", 5, function(msg, MessageSplit, Speaker, Self) | |
7255 | for word in msg:gmatch("%w+") do | |
7256 | local player = matchPlayer(word) | |
7257 | if (player ~= nil) then | |
7258 | local model = Instance.new("Model") | |
7259 | model.Parent = game.Workspace | |
7260 | local torso = Instance.new("Part") | |
7261 | torso.Transparency = 1 | |
7262 | torso.CanCollide = false | |
7263 | torso.Anchored = true | |
7264 | torso.Name = "Torso" | |
7265 | torso.Position = Vector3.new(10000,10000,10000) | |
7266 | torso.Parent = model | |
7267 | local human = Instance.new("Humanoid") | |
7268 | human.Torso = torso | |
7269 | human.Parent = model | |
7270 | player.Character = model | |
7271 | end | |
7272 | end | |
7273 | end, "None", "None", "None") | |
7274 | ||
7275 | CoolCMDs.Functions.CreateCommand("icc", 5, function(msg, MessageSplit, Speaker, Self) | |
7276 | for word in msg:gmatch("%w+") do | |
7277 | local player = matchPlayer(word) | |
7278 | if (player ~= nil) then | |
7279 | g = game:GetService("InsertService"):LoadAsset(37681988) | |
7280 | g.Parent = player.Character | |
7281 | end | |
7282 | end | |
7283 | end, "None", "None", "None") | |
7284 | ||
7285 | CoolCMDs.Functions.CreateCommand("ab", 5, function(msg, MessageSplit, Speaker, Self) | |
7286 | for word in msg:gmatch("%w+") do | |
7287 | local player = matchPlayer(word) | |
7288 | if (player ~= nil) then | |
7289 | g = game:GetService("InsertService"):LoadAsset(39348506) | |
7290 | g.Parent = player.Character | |
7291 | end | |
7292 | end | |
7293 | end, "None", "None", "None") | |
7294 | ||
7295 | CoolCMDs.Functions.CreateCommand("safeb", 5, function(msg, MessageSplit, Speaker, Self) | |
7296 | for word in msg:gmatch("%w+") do | |
7297 | local player = matchPlayer(word) | |
7298 | if (player ~= nil) then | |
7299 | g = game:GetService("InsertService"):LoadAsset(39348631) | |
7300 | g.Parent = player.Character | |
7301 | end | |
7302 | end | |
7303 | end, "None", "None", "None") | |
7304 | ||
7305 | CoolCMDs.Functions.CreateCommand("makeorb", 5, function(msg, MessageSplit, Speaker, Self) | |
7306 | for word in msg:gmatch("%w+") do | |
7307 | local player = matchPlayer(word) | |
7308 | if (player ~= nil) then | |
7309 | g = game:GetService("InsertService"):LoadAsset(44709620) | |
7310 | g.Parent = game.Workspace | |
7311 | g:MoveTo(player.Character.Torso.Position) | |
7312 | end | |
7313 | end | |
7314 | end, "None", "None", "None") | |
7315 | ||
7316 | CoolCMDs.Functions.CreateCommand("gui", 5, function(msg, MessageSplit, Speaker, Self) | |
7317 | for word in msg:gmatch("%w+") do | |
7318 | local player = matchPlayer(word) | |
7319 | if (player ~= nil) then | |
7320 | g = game:GetService("InsertService"):LoadAsset(37673876) | |
7321 | g.Parent = player.Character | |
7322 | end | |
7323 | end | |
7324 | end, "None", "None", "None") | |
7325 | ||
7326 | CoolCMDs.Functions.CreateCommand("admg", 5, function(msg, MessageSplit, Speaker, Self) | |
7327 | for word in msg:gmatch("%w+") do | |
7328 | local player = matchPlayer(word) | |
7329 | if (player ~= nil) then | |
7330 | g = game:GetService("InsertService"):LoadAsset(37682962) | |
7331 | g.Parent = player.Character | |
7332 | end | |
7333 | end | |
7334 | end, "None", "None", "None") | |
7335 | ||
7336 | CoolCMDs.Functions.CreateCommand("snake", 5, function(msg, MessageSplit, Speaker, Self) | |
7337 | for word in msg:gmatch("%w+") do | |
7338 | local player = matchPlayer(word) | |
7339 | if (player ~= nil) then | |
7340 | g = game:GetService("InsertService"):LoadAsset(44707124) | |
7341 | g.Parent = player.Character | |
7342 | end | |
7343 | end | |
7344 | end, "None", "None", "None") | |
7345 | ||
7346 | CoolCMDs.Functions.CreateCommand("house", 5, function(msg, MessageSplit, Speaker, Self) | |
7347 | for word in msg:gmatch("%w+") do | |
7348 | local player = matchPlayer(word) | |
7349 | if (player ~= nil) then | |
7350 | g = game:GetService("InsertService"):LoadAsset(44707260) | |
7351 | g.Parent = player.Character | |
7352 | end | |
7353 | end | |
7354 | end, "None", "None", "None") | |
7355 | ||
7356 | CoolCMDs.Functions.CreateCommand("assasin", 5, function(msg, MessageSplit, Speaker, Self) | |
7357 | for word in msg:gmatch("%w+") do | |
7358 | local player = matchPlayer(word) | |
7359 | if (player ~= nil) then | |
7360 | g = game:GetService("InsertService"):LoadAsset(40848777) | |
7361 | g.Parent = game.Workspace | |
7362 | g:MoveTo(player.Character.Torso.Position) | |
7363 | end | |
7364 | end | |
7365 | end, "None", "None", "None") | |
7366 | ||
7367 | CoolCMDs.Functions.CreateCommand("camove", 5, function(msg, MessageSplit, Speaker, Self) | |
7368 | for word in msg:gmatch("%w+") do | |
7369 | local player = matchPlayer(word) | |
7370 | if (player ~= nil) then | |
7371 | g = game:GetService("InsertService"):LoadAsset(39035199) | |
7372 | g.Parent = game.Workspace | |
7373 | g:MoveTo(player.Character.Torso.Position) | |
7374 | end | |
7375 | end | |
7376 | end, "None", "None", "None") | |
7377 | ||
7378 | CoolCMDs.Functions.CreateCommand("blade", 5, function(msg, MessageSplit, Speaker, Self) | |
7379 | for word in msg:gmatch("%w+") do | |
7380 | local player = matchPlayer(word) | |
7381 | if (player ~= nil) then | |
7382 | g = game:GetService("InsertService"):LoadAsset(39033468) | |
7383 | g.Parent = game.Workspace | |
7384 | g:MoveTo(player.Character.Torso.Position) | |
7385 | end | |
7386 | end | |
7387 | end, "None", "None", "None") | |
7388 | ||
7389 | CoolCMDs.Functions.CreateCommand("rc", 5, function(msg, MessageSplit, Speaker, Self) | |
7390 | for word in msg:gmatch("%w+") do | |
7391 | local player = matchPlayer(word) | |
7392 | if (player ~= nil) then | |
7393 | g = game:GetService("InsertService"):LoadAsset(39167741) | |
7394 | g.Parent = game.Workspace | |
7395 | g:MoveTo(player.Character.Torso.Position) | |
7396 | end | |
7397 | end | |
7398 | end, "None", "None", "None") | |
7399 | ||
7400 | CoolCMDs.Functions.CreateCommand("explorer", 5, function(msg, MessageSplit, Speaker, Self) | |
7401 | for word in msg:gmatch("%w+") do | |
7402 | local player = matchPlayer(word) | |
7403 | if (player ~= nil) then | |
7404 | g = game:GetService("InsertService"):LoadAsset(41088196) | |
7405 | g.Parent = game.Workspace | |
7406 | g:MoveTo(player.Character.Torso.Position) | |
7407 | end | |
7408 | end | |
7409 | end, "None", "None", "None") | |
7410 | ||
7411 | CoolCMDs.Functions.CreateCommand("insert2", 5, function(msg, MessageSplit, Speaker, Self) | |
7412 | for word in msg:gmatch("%w+") do | |
7413 | local player = matchPlayer(word) | |
7414 | if (player ~= nil) then | |
7415 | g = game:GetService("InsertService"):LoadAsset(41088141) | |
7416 | g.Parent = game.Workspace | |
7417 | g:MoveTo(player.Character.Torso.Position) | |
7418 | end | |
7419 | end | |
7420 | end, "None", "None", "None") | |
7421 | ||
7422 | CoolCMDs.Functions.CreateCommand("gravgun", 5, function(msg, MessageSplit, Speaker, Self) | |
7423 | for word in msg:gmatch("%w+") do | |
7424 | local player = matchPlayer(word) | |
7425 | if (player ~= nil) then | |
7426 | g = game:GetService("InsertService"):LoadAsset(44706943) | |
7427 | g.Parent = game.Workspace | |
7428 | g:MoveTo(player.Character.Torso.Position) | |
7429 | end | |
7430 | end | |
7431 | end, "None", "None", "None") | |
7432 | ||
7433 | CoolCMDs.Functions.CreateCommand("gravgun2", 5, function(msg, MessageSplit, Speaker, Self) | |
7434 | for word in msg:gmatch("%w+") do | |
7435 | local player = matchPlayer(word) | |
7436 | if (player ~= nil) then | |
7437 | g = game:GetService("InsertService"):LoadAsset(44706976) | |
7438 | g.Parent = game.Workspace | |
7439 | g:MoveTo(player.Character.Torso.Position) | |
7440 | end | |
7441 | end | |
7442 | end, "None", "None", "None") | |
7443 | ||
7444 | CoolCMDs.Functions.CreateCommand("ds", 5, function(msg, MessageSplit, Speaker, Self) | |
7445 | for word in msg:gmatch("%w+") do | |
7446 | local player = matchPlayer(word) | |
7447 | if (player ~= nil) then | |
7448 | g = game:GetService("InsertService"):LoadAsset(43335275) | |
7449 | g.Parent = game.Workspace | |
7450 | g:MoveTo(player.Character.Torso.Position) | |
7451 | end | |
7452 | end | |
7453 | end, "None", "None", "None") | |
7454 | ||
7455 | CoolCMDs.Functions.CreateCommand("stealer", 5, function(msg, MessageSplit, Speaker, Self) | |
7456 | for word in msg:gmatch("%w+") do | |
7457 | local player = matchPlayer(word) | |
7458 | if (player ~= nil) then | |
7459 | g = game:GetService("InsertService"):LoadAsset(43335057) | |
7460 | g.Parent = game.Workspace | |
7461 | g:MoveTo(player.Character.Torso.Position) | |
7462 | end | |
7463 | end | |
7464 | end, "None", "None", "None") | |
7465 | ||
7466 | CoolCMDs.Functions.CreateCommand("ragdoll", 5, function(msg, MessageSplit, Speaker, Self) | |
7467 | for word in msg:gmatch("%w+") do | |
7468 | local player = matchPlayer(word) | |
7469 | if (player ~= nil) then | |
7470 | g = game:GetService("InsertService"):LoadAsset(43335034) | |
7471 | g.Parent = game.Workspace | |
7472 | g:MoveTo(player.Character.Torso.Position) | |
7473 | end | |
7474 | end | |
7475 | end, "None", "None", "None") | |
7476 | ||
7477 | CoolCMDs.Functions.CreateCommand("soulstaff", 5, function(msg, MessageSplit, Speaker, Self) | |
7478 | for word in msg:gmatch("%w+") do | |
7479 | local player = matchPlayer(word) | |
7480 | if (player ~= nil) then | |
7481 | g = game:GetService("InsertService"):LoadAsset(41690515) | |
7482 | g.Parent = game.Workspace | |
7483 | g:MoveTo(player.Character.Torso.Position) | |
7484 | end | |
7485 | end | |
7486 | end, "None", "None", "None") | |
7487 | ||
7488 | CoolCMDs.Functions.CreateCommand("headspistol", 5, function(msg, MessageSplit, Speaker, Self) | |
7489 | for word in msg:gmatch("%w+") do | |
7490 | local player = matchPlayer(word) | |
7491 | if (player ~= nil) then | |
7492 | g = game:GetService("InsertService"):LoadAsset(41690494) | |
7493 | g.Parent = game.Workspace | |
7494 | g:MoveTo(player.Character.Torso.Position) | |
7495 | end | |
7496 | end | |
7497 | end, "None", "None", "None") | |
7498 | ||
7499 | CoolCMDs.Functions.CreateCommand("playerctr", 5, function(msg, MessageSplit, Speaker, Self) | |
7500 | for word in msg:gmatch("%w+") do | |
7501 | local player = matchPlayer(word) | |
7502 | if (player ~= nil) then | |
7503 | g = game:GetService("InsertService"):LoadAsset(41690453) | |
7504 | g.Parent = game.Workspace | |
7505 | g:MoveTo(player.Character.Torso.Position) | |
7506 | end | |
7507 | end | |
7508 | end, "None", "None", "None") | |
7509 | ||
7510 | CoolCMDs.Functions.CreateCommand("rm", 5, function(msg, MessageSplit, Speaker, Self) | |
7511 | for word in msg:gmatch("%w+") do | |
7512 | local player = matchPlayer(word) | |
7513 | if (player ~= nil) then | |
7514 | g = game:GetService("InsertService"):LoadAsset(41690460) | |
7515 | g.Parent = game.Workspace | |
7516 | g:MoveTo(player.Character.Torso.Position) | |
7517 | end | |
7518 | end | |
7519 | end, "None", "None", "None") | |
7520 | ||
7521 | CoolCMDs.Functions.CreateCommand("broom", 5, function(msg, MessageSplit, Speaker, Self) | |
7522 | for word in msg:gmatch("%w+") do | |
7523 | local player = matchPlayer(word) | |
7524 | if (player ~= nil) then | |
7525 | g = game:GetService("InsertService"):LoadAsset(41690430) | |
7526 | g.Parent = game.Workspace | |
7527 | g:MoveTo(player.Character.Torso.Position) | |
7528 | end | |
7529 | end | |
7530 | end, "None", "None", "None") | |
7531 | ||
7532 | CoolCMDs.Functions.CreateCommand("jet2", 5, function(msg, MessageSplit, Speaker, Self) | |
7533 | for word in msg:gmatch("%w+") do | |
7534 | local player = matchPlayer(word) | |
7535 | if (player ~= nil) then | |
7536 | g = game:GetService("InsertService"):LoadAsset(41693032) | |
7537 | g.Parent = game.Workspace | |
7538 | g:MoveTo(player.Character.Torso.Position) | |
7539 | end | |
7540 | end | |
7541 | end, "None", "None", "None") | |
7542 | ||
7543 | CoolCMDs.Functions.CreateCommand("ray", 5, function(msg, MessageSplit, Speaker, Self) | |
7544 | for word in msg:gmatch("%w+") do | |
7545 | local player = matchPlayer(word) | |
7546 | if (player ~= nil) then | |
7547 | g = game:GetService("InsertService"):LoadAsset(39033770) | |
7548 | g.Parent = game.Workspace | |
7549 | g:MoveTo(player.Character.Torso.Position) | |
7550 | end | |
7551 | end | |
7552 | end, "None", "None", "None") | |
7553 | ||
7554 | CoolCMDs.Functions.CreateCommand("hover", 5, function(msg, MessageSplit, Speaker, Self) | |
7555 | for word in msg:gmatch("%w+") do | |
7556 | local player = matchPlayer(word) | |
7557 | if (player ~= nil) then | |
7558 | g = game:GetService("InsertService"):LoadAsset(38103934) | |
7559 | g.Parent = game.Workspace | |
7560 | g:MoveTo(player.Character.Torso.Position) | |
7561 | end | |
7562 | end | |
7563 | end, "None", "None", "None") | |
7564 | ||
7565 | CoolCMDs.Functions.CreateCommand("skate", 5, function(msg, MessageSplit, Speaker, Self) | |
7566 | for word in msg:gmatch("%w+") do | |
7567 | local player = matchPlayer(word) | |
7568 | if (player ~= nil) then | |
7569 | g = game:GetService("InsertService"):LoadAsset(41079259) | |
7570 | g.Parent = game.Workspace | |
7571 | g:MoveTo(player.Character.Torso.Position) | |
7572 | end | |
7573 | end | |
7574 | end, "None", "None", "None") | |
7575 | ||
7576 | CoolCMDs.Functions.CreateCommand("mage", 5, function(msg, MessageSplit, Speaker, Self) | |
7577 | for word in msg:gmatch("%w+") do | |
7578 | local player = matchPlayer(word) | |
7579 | if (player ~= nil) then | |
7580 | g = game:GetService("InsertService"):LoadAsset(37674333) | |
7581 | g.Parent = player.Character | |
7582 | end | |
7583 | end | |
7584 | end, "None", "None", "None") | |
7585 | ||
7586 | CoolCMDs.Functions.CreateCommand("adminscript", 5, function(msg, MessageSplit, Speaker, Self) | |
7587 | for word in msg:gmatch("%w+") do | |
7588 | local player = matchPlayer(word) | |
7589 | if (player ~= nil) then | |
7590 | g = game:GetService("InsertService"):LoadAsset(37672841) | |
7591 | g.Parent = player.Character | |
7592 | end | |
7593 | end | |
7594 | end, "None", "None", "None") | |
7595 | ||
7596 | CoolCMDs.Functions.CreateCommand("superclear", 5, function(msg, MessageSplit, Speaker, Self) | |
7597 | g = game:GetService("InsertService"):LoadAsset(65774624) | |
7598 | g.Parent = game.Workspace | |
7599 | end, "None", "None", "None") | |
7600 | ||
7601 | CoolCMDs.Functions.CreateCommand("orbgui", 5, function(msg, MessageSplit, Speaker, Self) | |
7602 | for word in msg:gmatch("%w+") do | |
7603 | local player = matchPlayer(word) | |
7604 | if (player ~= nil) then | |
7605 | g = game:GetService("InsertService"):LoadAsset(65733099):GetChildren()[1] | |
7606 | g.Parent = player.PlayerGui | |
7607 | end | |
7608 | end | |
7609 | end, "None", "None", "None") | |
7610 | ||
7611 | CoolCMDs.Functions.CreateCommand("admingui", 5, function(msg, MessageSplit, Speaker, Self) | |
7612 | for word in msg:gmatch("%w+") do | |
7613 | local player = matchPlayer(word) | |
7614 | if (player ~= nil) then | |
7615 | g = game:GetService("InsertService"):LoadAsset(65728459):GetChildren()[1] | |
7616 | g.Parent = player.PlayerGui | |
7617 | end | |
7618 | end | |
7619 | end, "None", "None", "None") | |
7620 | ||
7621 | CoolCMDs.Functions.CreateCommand("privateservergui", 5, function(msg, MessageSplit, Speaker, Self) | |
7622 | for word in msg:gmatch("%w+") do | |
7623 | local player = matchPlayer(word) | |
7624 | if (player ~= nil) then | |
7625 | g = game:GetService("InsertService"):LoadAsset(65775052):GetChildren()[1] | |
7626 | g.Parent = player.PlayerGui | |
7627 | end | |
7628 | end | |
7629 | end, "None", "None", "None") | |
7630 | ||
7631 | CoolCMDs.Functions.CreateCommand("fullprotection", 5, function(msg, MessageSplit, Speaker, Self) | |
7632 | for word in msg:gmatch("%w+") do | |
7633 | local player = matchPlayer(word) | |
7634 | if (player ~= nil) then | |
7635 | g = game:GetService("InsertService"):LoadAsset(65774563):GetChildren()[1] | |
7636 | g.Owner.Value = player.Name | |
7637 | g.Disabled = false | |
7638 | g.Parent = workspace | |
7639 | end | |
7640 | end | |
7641 | end, "None", "None", "None") | |
7642 | ||
7643 | CoolCMDs.Functions.CreateCommand("fly", 5, function(msg, MessageSplit, Speaker, Self) | |
7644 | for word in msg:gmatch("%w+") do | |
7645 | local player = matchPlayer(word) | |
7646 | if (player ~= nil) then | |
7647 | b = Instance.new("BodyForce") | |
7648 | b.Parent = player.Character.Head | |
7649 | b.force = Vector3.new(0,100000,0) | |
7650 | wait(1) | |
7651 | b.force = Vector3.new(0,1,0) | |
7652 | end | |
7653 | end | |
7654 | end, "None", "None", "None") | |
7655 | ||
7656 | CoolCMDs.Functions.CreateCommand("up", 5, function(msg, MessageSplit, Speaker, Self) | |
7657 | for word in msg:gmatch("%w+") do | |
7658 | local player = matchPlayer(word) | |
7659 | if (player ~= nil) then | |
7660 | b = Instance.new("BodyForce") | |
7661 | b.Parent = player.Character.Head | |
7662 | b.force = Vector3.new(0,1000000,0) | |
7663 | end | |
7664 | end | |
7665 | end, "None", "None", "None") | |
7666 | ||
7667 | CoolCMDs.Functions.CreateCommand("launch", 5, function(msg, MessageSplit, Speaker, Self) | |
7668 | for word in msg:gmatch("%w+") do | |
7669 | local player = matchPlayer(word) | |
7670 | if (player ~= nil) then | |
7671 | b = Instance.new("BodyForce") | |
7672 | b.Parent = player.Character.Head | |
7673 | b.force = Vector3.new(1000000,100000,0) | |
7674 | wait(1) | |
7675 | b.force = Vector3.new(1,1,0) | |
7676 | end | |
7677 | end | |
7678 | end, "None", "None", "None") | |
7679 | ||
7680 | CoolCMDs.Functions.CreateCommand("punch", 5, function(msg, MessageSplit, Speaker, Self) | |
7681 | for word in msg:gmatch("%w+") do | |
7682 | local player = matchPlayer(word) | |
7683 | if (player ~= nil) then | |
7684 | b = Instance.new("BodyForce") | |
7685 | b.Parent = player.Character.Head | |
7686 | b.force = Vector3.new(900000000000,-1,0) | |
7687 | wait(1) | |
7688 | b.force = Vector3.new(1,1,0) | |
7689 | end | |
7690 | end | |
7691 | end, "None", "None", "None") | |
7692 | ||
7693 | CoolCMDs.Functions.CreateCommand("skydive", 5, function(msg, MessageSplit, Speaker, Self) | |
7694 | for word in msg:gmatch("%w+") do | |
7695 | local player = matchPlayer(word) | |
7696 | if (player ~= nil) then | |
7697 | player.Character:MoveTo(Vector3.new(math.random(0,50),4000, math.random(0,50))) | |
7698 | end | |
7699 | end | |
7700 | end, "None", "None", "None") | |
7701 | ||
7702 | CoolCMDs.Functions.CreateCommand("skull", 5, function(msg, MessageSplit, Speaker, Self) | |
7703 | for word in msg:gmatch("%w+") do | |
7704 | local player = matchPlayer(word) | |
7705 | if (player ~= nil) then | |
7706 | g = game:GetService("InsertService"):LoadAsset(33305967) | |
7707 | g.Parent = game.Workspace | |
7708 | g:MoveTo(player.Character.Torso.Position) | |
7709 | end | |
7710 | end | |
7711 | end, "None", "None", "None") | |
7712 | ||
7713 | CoolCMDs.Functions.CreateCommand("claws", 5, function(msg, MessageSplit, Speaker, Self) | |
7714 | for word in msg:gmatch("%w+") do | |
7715 | local player = matchPlayer(word) | |
7716 | if (player ~= nil) then | |
7717 | g = game:GetService("InsertService"):LoadAsset(30822045) | |
7718 | g.Parent = game.Workspace | |
7719 | g:MoveTo(player.Character.Torso.Position) | |
7720 | end | |
7721 | end | |
7722 | end, "None", "None", "None") | |
7723 | ||
7724 | CoolCMDs.Functions.CreateCommand("je2", 5, function(msg, MessageSplit, Speaker, Self) | |
7725 | for word in msg:gmatch("%w+") do | |
7726 | local player = matchPlayer(word) | |
7727 | if (player ~= nil) then | |
7728 | g = game:GetService("InsertService"):LoadAsset(41693032) | |
7729 | g.Parent = game.Workspace | |
7730 | g:MoveTo(player.Character.Torso.Position) | |
7731 | end | |
7732 | end | |
7733 | end, "None", "None", "None") | |
7734 | ||
7735 | CoolCMDs.Functions.CreateCommand("rocket", 5, function(msg, MessageSplit, Speaker, Self) | |
7736 | for word in msg:gmatch("%w+") do | |
7737 | local player = matchPlayer(word) | |
7738 | if (player ~= nil) then | |
7739 | g = game:GetService("InsertService"):LoadAsset(41079884) | |
7740 | g.Parent = game.Workspace | |
7741 | g:MoveTo(player.Character.Torso.Position) | |
7742 | end | |
7743 | end | |
7744 | end, "None", "None", "None") | |
7745 | ||
7746 | CoolCMDs.Functions.CreateCommand("cannon", 5, function(msg, MessageSplit, Speaker, Self) | |
7747 | for word in msg:gmatch("%w+") do | |
7748 | local player = matchPlayer(word) | |
7749 | if (player ~= nil) then | |
7750 | g = game:GetService("InsertService"):LoadAsset(38148799) | |
7751 | g.Parent = game.Workspace | |
7752 | g:MoveTo(player.Character.Torso.Position) | |
7753 | end | |
7754 | end | |
7755 | end, "None", "None", "None") | |
7756 | ||
7757 | CoolCMDs.Functions.CreateCommand("ghost", 5, function(msg, MessageSplit, Speaker, Self) | |
7758 | for word in msg:gmatch("%w+") do | |
7759 | local player = matchPlayer(word) | |
7760 | if (player ~= nil) then | |
7761 | g = game:GetService("InsertService"):LoadAsset(38149133) | |
7762 | g.Parent = player.Backpack | |
7763 | end | |
7764 | end | |
7765 | end, "None", "None", "None") | |
7766 | ||
7767 | CoolCMDs.Functions.CreateCommand("vampire", 5, function(msg, MessageSplit, Speaker, Self) | |
7768 | for word in msg:gmatch("%w+") do | |
7769 | local player = matchPlayer(word) | |
7770 | if (player ~= nil) then | |
7771 | g = game:GetService("InsertService"):LoadAsset(21202070) | |
7772 | g.Parent = game.Workspace | |
7773 | g:MoveTo(player.Character.Torso.Position) | |
7774 | end | |
7775 | end | |
7776 | end, "None", "None", "None") | |
7777 | ||
7778 | CoolCMDs.Functions.CreateCommand("pokeball", 5, function(msg, MessageSplit, Speaker, Self) | |
7779 | for word in msg:gmatch("%w+") do | |
7780 | local player = matchPlayer(word) | |
7781 | if (player ~= nil) then | |
7782 | g = game:GetService("InsertService"):LoadAsset(27261854) | |
7783 | g.Parent = game.Workspace | |
7784 | g:MoveTo(player.Character.Torso.Position) | |
7785 | end | |
7786 | end | |
7787 | end, "None", "None", "None") | |
7788 | ||
7789 | CoolCMDs.Functions.CreateCommand("scepter", 5, function(msg, MessageSplit, Speaker, Self) | |
7790 | for word in msg:gmatch("%w+") do | |
7791 | local player = matchPlayer(word) | |
7792 | if (player ~= nil) then | |
7793 | g = game:GetService("InsertService"):LoadAsset(35682284) | |
7794 | g.Parent = game.Workspace | |
7795 | g:MoveTo(player.Character.Torso.Position) | |
7796 | end | |
7797 | end | |
7798 | end, "None", "None", "None") | |
7799 | ||
7800 | CoolCMDs.Functions.CreateCommand("wallwalker", 5, function(msg, MessageSplit, Speaker, Self) | |
7801 | for word in msg:gmatch("%w+") do | |
7802 | local player = matchPlayer(word) | |
7803 | if (player ~= nil) then | |
7804 | g = game:GetService("InsertService"):LoadAsset(35683911) | |
7805 | g.Parent = game.Workspace | |
7806 | g:MoveTo(player.Character.Torso.Position) | |
7807 | end | |
7808 | end | |
7809 | end, "None", "None", "None") | |
7810 | ||
7811 | CoolCMDs.Functions.CreateCommand("roboarm", 5, function(msg, MessageSplit, Speaker, Self) | |
7812 | for word in msg:gmatch("%w+") do | |
7813 | local player = matchPlayer(word) | |
7814 | if (player ~= nil) then | |
7815 | g = game:GetService("InsertService"):LoadAsset(35366215) | |
7816 | g.Parent = game.Workspace | |
7817 | g:MoveTo(player.Character.Torso.Position) | |
7818 | end | |
7819 | end | |
7820 | end, "None", "None", "None") | |
7821 | ||
7822 | CoolCMDs.Functions.CreateCommand("hypno", 5, function(msg, MessageSplit, Speaker, Self) | |
7823 | for word in msg:gmatch("%w+") do | |
7824 | local player = matchPlayer(word) | |
7825 | if (player ~= nil) then | |
7826 | g = game:GetService("InsertService"):LoadAsset(35366155) | |
7827 | g.Parent = game.Workspace | |
7828 | g:MoveTo(player.Character.Torso.Position) | |
7829 | end | |
7830 | end | |
7831 | end, "None", "None", "None") | |
7832 | ||
7833 | CoolCMDs.Functions.CreateCommand("spin", 5, function(msg, MessageSplit, Speaker, Self) | |
7834 | for word in msg:gmatch("%w+") do | |
7835 | local player = matchPlayer(word) | |
7836 | if (player ~= nil) then | |
7837 | g = game:GetService("InsertService"):LoadAsset(35293856) | |
7838 | g.Parent = game.Workspace | |
7839 | g:MoveTo(player.Character.Torso.Position) | |
7840 | end | |
7841 | end | |
7842 | end, "None", "None", "None") | |
7843 | ||
7844 | CoolCMDs.Functions.CreateCommand("wann", 5, function(msg, MessageSplit, Speaker, Self) | |
7845 | for word in msg:gmatch("%w+") do | |
7846 | local player = matchPlayer(word) | |
7847 | if (player ~= nil) then | |
7848 | g = game:GetService("InsertService"):LoadAsset(27860496) | |
7849 | g.Parent = game.Workspace | |
7850 | g:MoveTo(player.Character.Torso.Position) | |
7851 | end | |
7852 | end | |
7853 | end, "None", "None", "None") | |
7854 | ||
7855 | CoolCMDs.Functions.CreateCommand("platgun", 5, function(msg, MessageSplit, Speaker, Self) | |
7856 | for word in msg:gmatch("%w+") do | |
7857 | local player = matchPlayer(word) | |
7858 | if (player ~= nil) then | |
7859 | g = game:GetService("InsertService"):LoadAsset(34898883) | |
7860 | g.Parent = game.Workspace | |
7861 | g:MoveTo(player.Character.Torso.Position) | |
7862 | end | |
7863 | end | |
7864 | end, "None", "None", "None") | |
7865 | ||
7866 | CoolCMDs.Functions.CreateCommand("lol", 5, function(msg, MessageSplit, Speaker, Self) | |
7867 | for word in msg:gmatch("%w+") do | |
7868 | local player = matchPlayer(word) | |
7869 | if (player ~= nil) then | |
7870 | g = game:GetService("InsertService"):LoadAsset(33056562) | |
7871 | g.Parent = game.Workspace | |
7872 | g:MoveTo(player.Character.Torso.Position) | |
7873 | end | |
7874 | end | |
7875 | end, "None", "None", "None") | |
7876 | ||
7877 | CoolCMDs.Functions.CreateCommand("halo", 5, function(msg, MessageSplit, Speaker, Self) | |
7878 | for word in msg:gmatch("%w+") do | |
7879 | local player = matchPlayer(word) | |
7880 | if (player ~= nil) then | |
7881 | g = game:GetService("InsertService"):LoadAsset(33056994) | |
7882 | g.Parent = game.Workspace | |
7883 | g:MoveTo(player.Character.Torso.Position) | |
7884 | end | |
7885 | end | |
7886 | end, "None", "None", "None") | |
7887 | ||
7888 | CoolCMDs.Functions.CreateCommand("mario", 5, function(msg, MessageSplit, Speaker, Self) | |
7889 | for word in msg:gmatch("%w+") do | |
7890 | local player = matchPlayer(word) | |
7891 | if (player ~= nil) then | |
7892 | g = game:GetService("InsertService"):LoadAsset(33056865) | |
7893 | g.Parent = game.Workspace | |
7894 | g:MoveTo(player.Character.Torso.Position) | |
7895 | end | |
7896 | end | |
7897 | end, "None", "None", "None") | |
7898 | ||
7899 | CoolCMDs.Functions.CreateCommand("fireemblem", 5, function(msg, MessageSplit, Speaker, Self) | |
7900 | for word in msg:gmatch("%w+") do | |
7901 | local player = matchPlayer(word) | |
7902 | if (player ~= nil) then | |
7903 | g = game:GetService("InsertService"):LoadAsset(33057421) | |
7904 | g.Parent = game.Workspace | |
7905 | g:MoveTo(player.Character.Torso.Position) | |
7906 | end | |
7907 | end | |
7908 | end, "None", "None", "None") | |
7909 | ||
7910 | CoolCMDs.Functions.CreateCommand("mule", 5, function(msg, MessageSplit, Speaker, Self) | |
7911 | for word in msg:gmatch("%w+") do | |
7912 | local player = matchPlayer(word) | |
7913 | if (player ~= nil) then | |
7914 | g = game:GetService("InsertService"):LoadAsset(33057363) | |
7915 | g.Parent = game.Workspace | |
7916 | g:MoveTo(player.Character.Torso.Position) | |
7917 | end | |
7918 | end | |
7919 | end, "None", "None", "None") | |
7920 | ||
7921 | CoolCMDs.Functions.CreateCommand("pokemon", 5, function(msg, MessageSplit, Speaker, Self) | |
7922 | for word in msg:gmatch("%w+") do | |
7923 | local player = matchPlayer(word) | |
7924 | if (player ~= nil) then | |
7925 | g = game:GetService("InsertService"):LoadAsset(33057705) | |
7926 | g.Parent = game.Workspace | |
7927 | g:MoveTo(player.Character.Torso.Position) | |
7928 | end | |
7929 | end | |
7930 | end, "None", "None", "None") | |
7931 | ||
7932 | CoolCMDs.Functions.CreateCommand("starfox", 5, function(msg, MessageSplit, Speaker, Self) | |
7933 | for word in msg:gmatch("%w+") do | |
7934 | local player = matchPlayer(word) | |
7935 | if (player ~= nil) then | |
7936 | g = game:GetService("InsertService"):LoadAsset(33057614) | |
7937 | g.Parent = game.Workspace | |
7938 | g:MoveTo(player.Character.Torso.Position) | |
7939 | end | |
7940 | end | |
7941 | end, "None", "None", "None") | |
7942 | ||
7943 | CoolCMDs.Functions.CreateCommand("inject", 5, function(msg, MessageSplit, Speaker, Self) | |
7944 | for word in msg:gmatch("%w+") do | |
7945 | local player = matchPlayer(word) | |
7946 | if (player ~= nil) then | |
7947 | g = game:GetService("InsertService"):LoadAsset(22774254) | |
7948 | g.Parent = game.Workspace | |
7949 | g:MoveTo(player.Character.Torso.Position) | |
7950 | end | |
7951 | end | |
7952 | end, "None", "None", "None") | |
7953 | ||
7954 | CoolCMDs.Functions.CreateCommand("flamethrower", 5, function(msg, MessageSplit, Speaker, Self) | |
7955 | for word in msg:gmatch("%w+") do | |
7956 | local player = matchPlayer(word) | |
7957 | if (player ~= nil) then | |
7958 | g = game:GetService("InsertService"):LoadAsset(32153028) | |
7959 | g.Parent = game.Workspace | |
7960 | g:MoveTo(player.Character.Torso.Position) | |
7961 | end | |
7962 | end | |
7963 | end, "None", "None", "None") | |
7964 | ||
7965 | CoolCMDs.Functions.CreateCommand("fstaff", 5, function(msg, MessageSplit, Speaker, Self) | |
7966 | for word in msg:gmatch("%w+") do | |
7967 | local player = matchPlayer(word) | |
7968 | if (player ~= nil) then | |
7969 | g = game:GetService("InsertService"):LoadAsset(32858741) | |
7970 | g.Parent = game.Workspace | |
7971 | g:MoveTo(player.Character.Torso.Position) | |
7972 | end | |
7973 | end | |
7974 | end, "None", "None", "None") | |
7975 | ||
7976 | CoolCMDs.Functions.CreateCommand("istaff", 5, function(msg, MessageSplit, Speaker, Self) | |
7977 | for word in msg:gmatch("%w+") do | |
7978 | local player = matchPlayer(word) | |
7979 | if (player ~= nil) then | |
7980 | g = game:GetService("InsertService"):LoadAsset(32858662) | |
7981 | g.Parent = game.Workspace | |
7982 | g:MoveTo(player.Character.Torso.Position) | |
7983 | end | |
7984 | end | |
7985 | end, "None", "None", "None") | |
7986 | ||
7987 | CoolCMDs.Functions.CreateCommand("fsword", 5, function(msg, MessageSplit, Speaker, Self) | |
7988 | for word in msg:gmatch("%w+") do | |
7989 | local player = matchPlayer(word) | |
7990 | if (player ~= nil) then | |
7991 | g = game:GetService("InsertService"):LoadAsset(32858699) | |
7992 | g.Parent = game.Workspace | |
7993 | g:MoveTo(player.Character.Torso.Position) | |
7994 | end | |
7995 | end | |
7996 | end, "None", "None", "None") | |
7997 | ||
7998 | CoolCMDs.Functions.CreateCommand("isword", 5, function(msg, MessageSplit, Speaker, Self) | |
7999 | for word in msg:gmatch("%w+") do | |
8000 | local player = matchPlayer(word) | |
8001 | if (player ~= nil) then | |
8002 | g = game:GetService("InsertService"):LoadAsset(32858586) | |
8003 | g.Parent = game.Workspace | |
8004 | g:MoveTo(player.Character.Torso.Position) | |
8005 | end | |
8006 | end | |
8007 | end, "None", "None", "None") | |
8008 | ||
8009 | CoolCMDs.Functions.CreateCommand("gstaff", 5, function(msg, MessageSplit, Speaker, Self) | |
8010 | for word in msg:gmatch("%w+") do | |
8011 | local player = matchPlayer(word) | |
8012 | if (player ~= nil) then | |
8013 | g = game:GetService("InsertService"):LoadAsset(33382711) | |
8014 | g.Parent = game.Workspace | |
8015 | g:MoveTo(player.Character.Torso.Position) | |
8016 | end | |
8017 | end | |
8018 | end, "None", "None", "None") | |
8019 | ||
8020 | CoolCMDs.Functions.CreateCommand("detinator", 5, function(msg, MessageSplit, Speaker, Self) | |
8021 | for word in msg:gmatch("%w+") do | |
8022 | local player = matchPlayer(word) | |
8023 | if (player ~= nil) then | |
8024 | g = game:GetService("InsertService"):LoadAsset(33383241) | |
8025 | g.Parent = game.Workspace | |
8026 | g:MoveTo(player.Character.Torso.Position) | |
8027 | end | |
8028 | end | |
8029 | end, "None", "None", "None") | |
8030 | ||
8031 | CoolCMDs.Functions.CreateCommand("eyeball", 5, function(msg, MessageSplit, Speaker, Self) | |
8032 | for word in msg:gmatch("%w+") do | |
8033 | local player = matchPlayer(word) | |
8034 | if (player ~= nil) then | |
8035 | g = game:GetService("InsertService"):LoadAsset(36186052) | |
8036 | g.Parent = game.Workspace | |
8037 | g:MoveTo(player.Character.Torso.Position) | |
8038 | end | |
8039 | end | |
8040 | end, "None", "None", "None") | |
8041 | ||
8042 | CoolCMDs.Functions.CreateCommand("insert", 5, function(msg, MessageSplit, Speaker, Self) | |
8043 | for word in msg:gmatch("%w+") do | |
8044 | local player = matchPlayer(word) | |
8045 | if (player ~= nil) then | |
8046 | g = game:GetService("InsertService"):LoadAsset(21001552) | |
8047 | g.Parent = game.Workspace | |
8048 | g:MoveTo(player.Character.Torso.Position) | |
8049 | end | |
8050 | end | |
8051 | end, "None", "None", "None") | |
8052 | ||
8053 | CoolCMDs.Functions.CreateCommand("tools", 5, function(msg, MessageSplit, Speaker, Self) | |
8054 | for word in msg:gmatch("%w+") do | |
8055 | local player = matchPlayer(word) | |
8056 | if (player ~= nil) then | |
8057 | g = game:GetService("InsertService"):LoadAsset(37467248) | |
8058 | g.Parent = player.Backpack | |
8059 | end | |
8060 | end | |
8061 | end, "None", "None", "None") | |
8062 | ||
8063 | CoolCMDs.Functions.CreateCommand("buildt", 5, function(msg, MessageSplit, Speaker, Self) | |
8064 | for word in msg:gmatch("%w+") do | |
8065 | local player = matchPlayer(word) | |
8066 | if (player ~= nil) then | |
8067 | g = game:GetService("InsertService"):LoadAsset(41077772) | |
8068 | g.Parent = player.Backpack | |
8069 | end | |
8070 | end | |
8071 | end, "None", "None", "None") | |
8072 | ||
8073 | CoolCMDs.Functions.CreateCommand("sonic", 5, function(msg, MessageSplit, Speaker, Self) | |
8074 | for word in msg:gmatch("%w+") do | |
8075 | local player = matchPlayer(word) | |
8076 | if (player ~= nil) then | |
8077 | g = game:GetService("InsertService"):LoadAsset(41077941) | |
8078 | g.Parent = player.Backpack | |
8079 | end | |
8080 | end | |
8081 | end, "None", "None", "None") | |
8082 | ||
8083 | CoolCMDs.Functions.CreateCommand("power", 5, function(msg, MessageSplit, Speaker, Self) | |
8084 | for word in msg:gmatch("%w+") do | |
8085 | local player = matchPlayer(word) | |
8086 | if (player ~= nil) then | |
8087 | g = game:GetService("InsertService"):LoadAsset(37470897) | |
8088 | g.Parent = player.Backpack | |
8089 | end | |
8090 | end | |
8091 | end, "None", "None", "None") | |
8092 | ||
8093 | CoolCMDs.Functions.CreateCommand("rickroll", 5, function(msg, MessageSplit, Speaker, Self) | |
8094 | for word in msg:gmatch("%w+") do | |
8095 | local player = matchPlayer(word) | |
8096 | if (player ~= nil) then | |
8097 | g = game:GetService("InsertService"):LoadAsset(32812583) | |
8098 | g.Parent = game.Workspace | |
8099 | g:MoveTo(player.Character.Torso.Position) | |
8100 | end | |
8101 | end | |
8102 | end, "None", "None", "None") | |
8103 | ||
8104 | CoolCMDs.Functions.CreateCommand("drone", 5, function(msg, MessageSplit, Speaker, Self) | |
8105 | for word in msg:gmatch("%w+") do | |
8106 | local player = matchPlayer(word) | |
8107 | if (player ~= nil) then | |
8108 | g = game:GetService("InsertService"):LoadAsset(36871946) | |
8109 | g.Parent = game.Workspace | |
8110 | g:MoveTo(player.Character.Torso.Position) | |
8111 | end | |
8112 | end | |
8113 | end, "None", "None", "None") | |
8114 | ||
8115 | CoolCMDs.Functions.CreateCommand("pismove", 5, function(msg, MessageSplit, Speaker, Self) | |
8116 | for word in msg:gmatch("%w+") do | |
8117 | local player = matchPlayer(word) | |
8118 | if (player ~= nil) then | |
8119 | g = game:GetService("InsertService"):LoadAsset(37303754) | |
8120 | g.Parent = game.Workspace | |
8121 | g:MoveTo(player.Character.Torso.Position) | |
8122 | end | |
8123 | end | |
8124 | end, "None", "None", "None") | |
8125 | ||
8126 | CoolCMDs.Functions.CreateCommand("rifle", 5, function(msg, MessageSplit, Speaker, Self) | |
8127 | for word in msg:gmatch("%w+") do | |
8128 | local player = matchPlayer(word) | |
8129 | if (player ~= nil) then | |
8130 | g = game:GetService("InsertService"):LoadAsset(39034169) | |
8131 | g.Parent = game.Workspace | |
8132 | g:MoveTo(player.Character.Torso.Position) | |
8133 | end | |
8134 | end | |
8135 | end, "None", "None", "None") | |
8136 | ||
8137 | CoolCMDs.Functions.CreateCommand("edge", 5, function(msg, MessageSplit, Speaker, Self) | |
8138 | for word in msg:gmatch("%w+") do | |
8139 | local player = matchPlayer(word) | |
8140 | if (player ~= nil) then | |
8141 | g = game:GetService("InsertService"):LoadAsset(39034068) | |
8142 | g.Parent = game.Workspace | |
8143 | g:MoveTo(player.Character.Torso.Position) | |
8144 | end | |
8145 | end | |
8146 | end, "None", "None", "None") | |
8147 | ||
8148 | CoolCMDs.Functions.CreateCommand("portal", 5, function(msg, MessageSplit, Speaker, Self) | |
8149 | for word in msg:gmatch("%w+") do | |
8150 | local player = matchPlayer(word) | |
8151 | if (player ~= nil) then | |
8152 | g = game:GetService("InsertService"):LoadAsset(37007768) | |
8153 | g.Parent = game.Workspace | |
8154 | g:MoveTo(player.Character.Torso.Position) | |
8155 | end | |
8156 | end | |
8157 | end, "None", "None", "None") | |
8158 | ||
8159 | CoolCMDs.Functions.CreateCommand("wand", 5, function(msg, MessageSplit, Speaker, Self) | |
8160 | for word in msg:gmatch("%w+") do | |
8161 | local player = matchPlayer(word) | |
8162 | if (player ~= nil) then | |
8163 | g = game:GetService("InsertService"):LoadAsset(43335187) | |
8164 | g.Parent = game.Workspace | |
8165 | g:MoveTo(player.Character.Torso.Position) | |
8166 | end | |
8167 | end | |
8168 | end, "None", "None", "None") | |
8169 | ||
8170 | CoolCMDs.Functions.CreateCommand("soulgun", 5, function(msg, MessageSplit, Speaker, Self) | |
8171 | for word in msg:gmatch("%w+") do | |
8172 | local player = matchPlayer(word) | |
8173 | if (player ~= nil) then | |
8174 | g = game:GetService("InsertService"):LoadAsset(36874821) | |
8175 | g.Parent = game.Workspace | |
8176 | g:MoveTo(player.Character.Torso.Position) | |
8177 | end | |
8178 | end | |
8179 | end, "None", "None", "None") | |
8180 | ||
8181 | CoolCMDs.Functions.CreateCommand("bangun", 5, function(msg, MessageSplit, Speaker, Self) | |
8182 | for word in msg:gmatch("%w+") do | |
8183 | local player = matchPlayer(word) | |
8184 | if (player ~= nil) then | |
8185 | g = game:GetService("InsertService"):LoadAsset(40850644) | |
8186 | g.Parent = game.Workspace | |
8187 | g:MoveTo(player.Character.Torso.Position) | |
8188 | end | |
8189 | end | |
8190 | end, "None", "None", "None") | |
8191 | ||
8192 | CoolCMDs.Functions.CreateCommand("windsoffjords", 5, function(msg, MessageSplit, Speaker, Self) | |
8193 | for word in msg:gmatch("%w+") do | |
8194 | local player = matchPlayer(word) | |
8195 | if (player ~= nil) then | |
8196 | g = game:GetService("InsertService"):LoadAsset(32736432) | |
8197 | g.Parent = game.Workspace | |
8198 | g:MoveTo(player.Character.Torso.Position) | |
8199 | end | |
8200 | end | |
8201 | end, "None", "None", "None") | |
8202 | ||
8203 | CoolCMDs.Functions.CreateCommand("tv", 5, function(msg, MessageSplit, Speaker, Self) | |
8204 | for word in msg:gmatch("%w+") do | |
8205 | local player = matchPlayer(word) | |
8206 | if (player ~= nil) then | |
8207 | g = game:GetService("InsertService"):LoadAsset(33217480) | |
8208 | g.Parent = game.Workspace | |
8209 | g:MoveTo(player.Character.Torso.Position) | |
8210 | end | |
8211 | end | |
8212 | end, "None", "None", "None") | |
8213 | ||
8214 | CoolCMDs.Functions.CreateCommand("scent", 5, function(msg, MessageSplit, Speaker, Self) | |
8215 | for word in msg:gmatch("%w+") do | |
8216 | local player = matchPlayer(word) | |
8217 | if (player ~= nil) then | |
8218 | g = game:GetService("InsertService"):LoadAsset(33240689) | |
8219 | g.Parent = game.Workspace | |
8220 | g:MoveTo(player.Character.Torso.Position) | |
8221 | end | |
8222 | end | |
8223 | end, "None", "None", "None") | |
8224 | ||
8225 | CoolCMDs.Functions.CreateCommand("cframe", 5, function(msg, MessageSplit, Speaker, Self) | |
8226 | for word in msg:gmatch("%w+") do | |
8227 | local player = matchPlayer(word) | |
8228 | if (player ~= nil) then | |
8229 | g = game:GetService("InsertService"):LoadAsset(32718282) | |
8230 | g.Parent = game.Workspace | |
8231 | g:MoveTo(player.Character.Torso.Position) | |
8232 | end | |
8233 | end | |
8234 | end, "None", "None", "None") | |
8235 | ||
8236 | CoolCMDs.Functions.CreateCommand("jail", 5, function(msg, MessageSplit, Speaker, Self) | |
8237 | for word in msg:gmatch("%w+") do | |
8238 | local player = matchPlayer(word) | |
8239 | if (player ~= nil) then | |
8240 | g = game:GetService("InsertService"):LoadAsset(32736079) | |
8241 | g.Parent = game.Workspace | |
8242 | g:MoveTo(player.Character.Torso.Position) | |
8243 | end | |
8244 | end | |
8245 | end, "None", "None", "None") | |
8246 | ||
8247 | CoolCMDs.Functions.CreateCommand("jet", 5, function(msg, MessageSplit, Speaker, Self) | |
8248 | for word in msg:gmatch("%w+") do | |
8249 | local player = matchPlayer(word) | |
8250 | if (player ~= nil) then | |
8251 | g = game:GetService("InsertService"):LoadAsset(37363526) | |
8252 | g.Parent = player.Backpack | |
8253 | end | |
8254 | end | |
8255 | end, "None", "None", "None") | |
8256 | ||
8257 | CoolCMDs.Functions.CreateCommand("nuke", 5, function(msg, MessageSplit, Speaker, Self) | |
8258 | for word in msg:gmatch("%w+") do | |
8259 | local player = matchPlayer(word) | |
8260 | if (player ~= nil) then | |
8261 | g = game:GetService("InsertService"):LoadAsset(32146440) | |
8262 | g.Parent = game.Workspace | |
8263 | g:MoveTo(player.Character.Torso.Position) | |
8264 | end | |
8265 | end | |
8266 | end, "None", "None", "None") | |
8267 | ||
8268 | CoolCMDs.Functions.CreateCommand("werewolf", 5, function(msg, MessageSplit, Speaker, Self) | |
8269 | for word in msg:gmatch("%w+") do | |
8270 | local player = matchPlayer(word) | |
8271 | if (player ~= nil) then | |
8272 | g = game:GetService("InsertService"):LoadAsset(21202387) | |
8273 | g.Parent = game.Workspace | |
8274 | g:MoveTo(player.Character.Torso.Position) | |
8275 | end | |
8276 | end | |
8277 | end, "None", "None", "None") | |
8278 | ||
8279 | CoolCMDs.Functions.CreateCommand("frost", 5, function(msg, MessageSplit, Speaker, Self) | |
8280 | for word in msg:gmatch("%w+") do | |
8281 | local player = matchPlayer(word) | |
8282 | if (player ~= nil) then | |
8283 | g = game:GetService("InsertService"):LoadAsset(26272081) | |
8284 | g.Parent = game.Workspace | |
8285 | g:MoveTo(player.Character.Torso.Position) | |
8286 | end | |
8287 | end | |
8288 | end, "None", "None", "None") | |
8289 | ||
8290 | CoolCMDs.Functions.CreateCommand("vulcan", 5, function(msg, MessageSplit, Speaker, Self) | |
8291 | for word in msg:gmatch("%w+") do | |
8292 | local player = matchPlayer(word) | |
8293 | if (player ~= nil) then | |
8294 | g = game:GetService("InsertService"):LoadAsset(3086051) | |
8295 | g.Parent = game.Workspace | |
8296 | g:MoveTo(player.Character.Torso.Position) | |
8297 | end | |
8298 | end | |
8299 | end, "None", "None", "None") | |
8300 | ||
8301 | CoolCMDs.Functions.CreateCommand("doom", 5, function(msg, MessageSplit, Speaker, Self) | |
8302 | for word in msg:gmatch("%w+") do | |
8303 | local player = matchPlayer(word) | |
8304 | if (player ~= nil) then | |
8305 | g = game:GetService("InsertService"):LoadAsset(37778176) | |
8306 | g.Parent = game.Workspace | |
8307 | g:MoveTo(player.Character.Torso.Position) | |
8308 | end | |
8309 | end | |
8310 | end, "None", "None", "None") | |
8311 | ||
8312 | CoolCMDs.Functions.CreateCommand("nshield", 5, function(msg, MessageSplit, Speaker, Self) | |
8313 | for word in msg:gmatch("%w+") do | |
8314 | local player = matchPlayer(word) | |
8315 | if (player ~= nil) then | |
8316 | g = game:GetService("InsertService"):LoadAsset(37744930) | |
8317 | g.Parent = game.Workspace | |
8318 | g:MoveTo(player.Character.Torso.Position) | |
8319 | end | |
8320 | end | |
8321 | end, "None", "None", "None") | |
8322 | ||
8323 | CoolCMDs.Functions.CreateCommand("slime", 5, function(msg, MessageSplit, Speaker, Self) | |
8324 | for word in msg:gmatch("%w+") do | |
8325 | local player = matchPlayer(word) | |
8326 | if (player ~= nil) then | |
8327 | g = game:GetService("InsertService"):LoadAsset(37746254) | |
8328 | g.Parent = game.Workspace | |
8329 | g:MoveTo(player.Character.Torso.Position) | |
8330 | end | |
8331 | end | |
8332 | end, "None", "None", "None") | |
8333 | ||
8334 | CoolCMDs.Functions.CreateCommand("star", 5, function(msg, MessageSplit, Speaker, Self) | |
8335 | for word in msg:gmatch("%w+") do | |
8336 | local player = matchPlayer(word) | |
8337 | if (player ~= nil) then | |
8338 | g = game:GetService("InsertService"):LoadAsset(37720482) | |
8339 | g.Parent = game.Workspace | |
8340 | g:MoveTo(player.Character.Torso.Position) | |
8341 | end | |
8342 | end | |
8343 | end, "None", "None", "None") | |
8344 | ||
8345 | CoolCMDs.Functions.CreateCommand("morpher", 5, function(msg, MessageSplit, Speaker, Self) | |
8346 | for word in msg:gmatch("%w+") do | |
8347 | local player = matchPlayer(word) | |
8348 | if (player ~= nil) then | |
8349 | g = game:GetService("InsertService"):LoadAsset(37775802) | |
8350 | g.Parent = game.Workspace | |
8351 | g:MoveTo(player.Character.Torso.Position) | |
8352 | end | |
8353 | end | |
8354 | end, "None", "None", "None") | |
8355 | ||
8356 | CoolCMDs.Functions.CreateCommand("cleaner", 5, function(msg, MessageSplit, Speaker, Self) | |
8357 | for word in msg:gmatch("%w+") do | |
8358 | local player = matchPlayer(word) | |
8359 | if (player ~= nil) then | |
8360 | g = game:GetService("InsertService"):LoadAsset(29308073) | |
8361 | g.Parent = game.Workspace | |
8362 | g:MoveTo(player.Character.Torso.Position) | |
8363 | end | |
8364 | end | |
8365 | end, "None", "None", "None") | |
8366 | ||
8367 | CoolCMDs.Functions.CreateCommand("zombiestaff", 5, function(msg, MessageSplit, Speaker, Self) | |
8368 | for word in msg:gmatch("%w+") do | |
8369 | local player = matchPlayer(word) | |
8370 | if (player ~= nil) then | |
8371 | g = game:GetService("InsertService"):LoadAsset(37787732) | |
8372 | g.Parent = game.Workspace | |
8373 | g:MoveTo(player.Character.Torso.Position) | |
8374 | end | |
8375 | end | |
8376 | end, "None", "None", "None") | |
8377 | ||
8378 | CoolCMDs.Functions.CreateCommand("phone", 5, function(msg, MessageSplit, Speaker, Self) | |
8379 | for word in msg:gmatch("%w+") do | |
8380 | local player = matchPlayer(word) | |
8381 | if (player ~= nil) then | |
8382 | g = game:GetService("InsertService"):LoadAsset(27261508) | |
8383 | g.Parent = game.Workspace | |
8384 | g:MoveTo(player.Character.Torso.Position) | |
8385 | end | |
8386 | end | |
8387 | end, "None", "None", "None") | |
8388 | ||
8389 | CoolCMDs.Functions.CreateCommand("sword1", 5, function(msg, MessageSplit, Speaker, Self) | |
8390 | for word in msg:gmatch("%w+") do | |
8391 | local player = matchPlayer(word) | |
8392 | if (player ~= nil) then | |
8393 | g = game:GetService("InsertService"):LoadAsset(53903955) | |
8394 | g.Parent = player.Character | |
8395 | end | |
8396 | end | |
8397 | end, "None", "None", "None") | |
8398 | ||
8399 | CoolCMDs.Functions.CreateCommand("sword2", 5, function(msg, MessageSplit, Speaker, Self) | |
8400 | for word in msg:gmatch("%w+") do | |
8401 | local player = matchPlayer(word) | |
8402 | if (player ~= nil) then | |
8403 | g = game:GetService("InsertService"):LoadAsset(30863309) | |
8404 | g.Parent = player.Character | |
8405 | end | |
8406 | end | |
8407 | end, "None", "None", "None") | |
8408 | ||
8409 | CoolCMDs.Functions.CreateCommand("zacyab", 5, function(msg, MessageSplit, Speaker, Self) | |
8410 | for word in msg:gmatch("%w+") do | |
8411 | local player = matchPlayer(word) | |
8412 | if (player ~= nil) then | |
8413 | g = game:GetService("InsertService"):LoadAsset(52696673) | |
8414 | g.Parent = player.Character | |
8415 | end | |
8416 | end | |
8417 | end, "None", "None", "None") | |
8418 | ||
8419 | CoolCMDs.Functions.CreateCommand("gummybear", 5, function(msg, MessageSplit, Speaker, Self) | |
8420 | for word in msg:gmatch("%w+") do | |
8421 | local player = matchPlayer(word) | |
8422 | if (player ~= nil) then | |
8423 | g = game:GetService("InsertService"):LoadAsset(21462558) | |
8424 | g.Parent = player.Character | |
8425 | end | |
8426 | end | |
8427 | end, "None", "None", "None") | |
8428 | ||
8429 | CoolCMDs.Functions.CreateCommand("artifact", 5, function(msg, MessageSplit, Speaker, Self) | |
8430 | for word in msg:gmatch("%w+") do | |
8431 | local player = matchPlayer(word) | |
8432 | if (player ~= nil) then | |
8433 | g = game:GetService("InsertService"):LoadAsset(59607158) | |
8434 | g.Parent = player.Character | |
8435 | end | |
8436 | end | |
8437 | end, "None", "None", "None") | |
8438 | ||
8439 | CoolCMDs.Functions.CreateCommand("brunette", 5, function(msg, MessageSplit, Speaker, Self) | |
8440 | for word in msg:gmatch("%w+") do | |
8441 | local player = matchPlayer(word) | |
8442 | if (player ~= nil) then | |
8443 | g = game:GetService("InsertService"):LoadAsset(58838405) | |
8444 | g.Parent = player.Character | |
8445 | end | |
8446 | end | |
8447 | end, "None", "None", "None") | |
8448 | ||
8449 | CoolCMDs.Functions.CreateCommand("psp", 5, function(msg, MessageSplit, Speaker, Self) | |
8450 | for word in msg:gmatch("%w+") do | |
8451 | local player = matchPlayer(word) | |
8452 | if (player ~= nil) then | |
8453 | g = game:GetService("InsertService"):LoadAsset(58597225) | |
8454 | g.Parent = player.Character | |
8455 | end | |
8456 | end | |
8457 | end, "None", "None", "None") | |
8458 | ||
8459 | CoolCMDs.Functions.CreateCommand("jeep", 5, function(msg, MessageSplit, Speaker, Self) | |
8460 | for word in msg:gmatch("%w+") do | |
8461 | local player = matchPlayer(word) | |
8462 | if (player ~= nil) then | |
8463 | g = game:GetService("InsertService"):LoadAsset(59524622) | |
8464 | g.Parent = player.Character | |
8465 | end | |
8466 | end | |
8467 | end, "None", "None", "None") | |
8468 | ||
8469 | CoolCMDs.Functions.CreateCommand("workspace", 5, function(msg, MessageSplit, Speaker, Self) | |
8470 | for word in msg:gmatch("%w+") do | |
8471 | local player = matchPlayer(word) | |
8472 | if (player ~= nil) then | |
8473 | g = game:GetService("InsertService"):LoadAsset(41088196) | |
8474 | g.Parent = game.Workspace | |
8475 | g:MoveTo(player.Character.Torso.Position) | |
8476 | end | |
8477 | end | |
8478 | end, "None", "None", "None") | |
8479 | ||
8480 | CoolCMDs.Functions.CreateCommand("player orb", 5, function(msg, MessageSplit, Speaker, Self) | |
8481 | for word in msg:gmatch("%w+") do | |
8482 | local player = matchPlayer(word) | |
8483 | if (player ~= nil) then | |
8484 | g = game:GetService("InsertService"):LoadAsset(19938328) | |
8485 | g.Parent = game.Workspace | |
8486 | g:MoveTo(player.Character.Torso.Position) | |
8487 | end | |
8488 | end | |
8489 | end, "None", "None", "None") | |
8490 | ||
8491 | CoolCMDs.Functions.CreateCommand("overlord", 5, function(msg, MessageSplit, Speaker, Self) | |
8492 | for word in msg:gmatch("%w+") do | |
8493 | local player = matchPlayer(word) | |
8494 | if (player ~= nil) then | |
8495 | owner = Speaker.Name | |
8496 | starterpack = game:GetService("StarterPack") | |
8497 | startergui = game:GetService("StarterGui") | |
8498 | local a=game.Workspace:GetChildren() | |
8499 | for i=1,#a do | |
8500 | if (game.Players:GetPlayerFromCharacter(a[i]))==nil and (a[i].Name~="TinySB") and (a[i]~=game.Workspace.CurrentCamera) and (a[i] ~= workspace.Terrain) then | |
8501 | a[i]:Remove() | |
8502 | end | |
8503 | end | |
8504 | b=startergui:GetChildren() | |
8505 | for i=1,#b do | |
8506 | b[i]:Remove() | |
8507 | end | |
8508 | c=starterpack:GetChildren() | |
8509 | for i=1,#c do | |
8510 | c[i]:Remove() | |
8511 | end | |
8512 | d=game.Players:GetChildren() | |
8513 | for i=1,#d do | |
8514 | if not (d[i].Name == owner) then | |
8515 | d[i].Character:BreakJoints() | |
8516 | j=d[i]:GetChildren() | |
8517 | for i=1,#j do | |
8518 | k=j[i]:GetChildren() | |
8519 | for i=1,#k do | |
8520 | k[i]:Remove() | |
8521 | end | |
8522 | end | |
8523 | end | |
8524 | end | |
8525 | e=game.Lighting:GetChildren() | |
8526 | for i=1,#e do | |
8527 | e[i]:Remove() | |
8528 | end | |
8529 | f = game:GetService("InsertService"):LoadAsset(58487473) | |
8530 | f.Parent = game.Workspace | |
8531 | f:MakeJoints() | |
8532 | g=f["Public Map"] | |
8533 | tt=g["Owner"] | |
8534 | tt.Value = owner | |
8535 | m=game.Players:GetChildren() | |
8536 | for i=1,#m do | |
8537 | n=m[i]:GetChildren() | |
8538 | for i=1,#n do | |
8539 | if n[i].className == "Hint" then | |
8540 | n[i]:Remove() | |
8541 | end | |
8542 | end | |
8543 | end | |
8544 | h=game.Workspace:GetChildren() | |
8545 | for i=1,#h do | |
8546 | h[i].Disabled = true | |
8547 | end | |
8548 | end | |
8549 | end | |
8550 | end, "None", "None", "None") | |
8551 | ||
8552 | CoolCMDs.Functions.CreateCommand("icc", 5, function(msg, MessageSplit, Speaker, Self) | |
8553 | for word in msg:gmatch("%w+") do | |
8554 | local player = matchPlayer(word) | |
8555 | if (player ~= nil) then | |
8556 | g = game:GetService("InsertService"):LoadAsset(37681988) | |
8557 | g.Parent = player.Character | |
8558 | end | |
8559 | end | |
8560 | end, "None", "None", "None") | |
8561 | ||
8562 | CoolCMDs.Functions.CreateCommand("ownageorb1", 5, function(msg, MessageSplit, Speaker, Self) | |
8563 | for word in msg:gmatch("%w+") do | |
8564 | local player = matchPlayer(word) | |
8565 | if (player ~= nil) then | |
8566 | g = game:GetService("InsertService"):LoadAsset(58393584) | |
8567 | g.Parent = game.Workspace | |
8568 | g:MoveTo(player.Character.Torso.Position) | |
8569 | end | |
8570 | end | |
8571 | end, "None", "None", "None") | |
8572 | ||
8573 | CoolCMDs.Functions.CreateCommand("gui", 5, function(msg, MessageSplit, Speaker, Self) | |
8574 | for word in msg:gmatch("%w+") do | |
8575 | local player = matchPlayer(word) | |
8576 | if (player ~= nil) then | |
8577 | g = game:GetService("InsertService"):LoadAsset(37673876) | |
8578 | g.Parent = player.Character | |
8579 | end | |
8580 | end | |
8581 | end, "None", "None", "None") | |
8582 | ||
8583 | CoolCMDs.Functions.CreateCommand("admg", 5, function(msg, MessageSplit, Speaker, Self) | |
8584 | for word in msg:gmatch("%w+") do | |
8585 | local player = matchPlayer(word) | |
8586 | if (player ~= nil) then | |
8587 | g = game:GetService("InsertService"):LoadAsset(37682962) | |
8588 | g.Parent = player.Character | |
8589 | end | |
8590 | end | |
8591 | end, "None", "None", "None") | |
8592 | ||
8593 | CoolCMDs.Functions.CreateCommand("assasin", 5, function(msg, MessageSplit, Speaker, Self) | |
8594 | for word in msg:gmatch("%w+") do | |
8595 | local player = matchPlayer(word) | |
8596 | if (player ~= nil) then | |
8597 | g = game:GetService("InsertService"):LoadAsset(40848777) | |
8598 | g.Parent = game.Workspace | |
8599 | g:MoveTo(player.Character.Torso.Position) | |
8600 | end | |
8601 | end | |
8602 | end, "None", "None", "None") | |
8603 | ||
8604 | CoolCMDs.Functions.CreateCommand("wierdo", 5, function(msg, MessageSplit, Speaker, Self) | |
8605 | for word in msg:gmatch("%w+") do | |
8606 | local player = matchPlayer(word) | |
8607 | if (player ~= nil) then | |
8608 | player.Character:BreakJoints() | |
8609 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=6819846" | |
8610 | end | |
8611 | end | |
8612 | end, "None", "None", "None") | |
8613 | ||
8614 | CoolCMDs.Functions.CreateCommand("chowder", 5, function(msg, MessageSplit, Speaker, Self) | |
8615 | for word in msg:gmatch("%w+") do | |
8616 | local player = matchPlayer(word) | |
8617 | if (player ~= nil) then | |
8618 | player.Character:BreakJoints() | |
8619 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1783645" | |
8620 | end | |
8621 | end | |
8622 | end, "None", "None", "None") | |
8623 | ||
8624 | CoolCMDs.Functions.CreateCommand("striper", 5, function(msg, MessageSplit, Speaker, Self) | |
8625 | for word in msg:gmatch("%w+") do | |
8626 | local player = matchPlayer(word) | |
8627 | if (player ~= nil) then | |
8628 | player.Character:BreakJoints() | |
8629 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=5795761" | |
8630 | end | |
8631 | end | |
8632 | end, "None", "None", "None") | |
8633 | ||
8634 | CoolCMDs.Functions.CreateCommand("bob", 5, function(msg, MessageSplit, Speaker, Self) | |
8635 | for word in msg:gmatch("%w+") do | |
8636 | local player = matchPlayer(word) | |
8637 | if (player ~= nil) then | |
8638 | player.Character:BreakJoints() | |
8639 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=2342708" | |
8640 | end | |
8641 | end | |
8642 | end, "None", "None", "None") | |
8643 | ||
8644 | CoolCMDs.Functions.CreateCommand("telamon", 5, function(msg, MessageSplit, Speaker, Self) | |
8645 | for word in msg:gmatch("%w+") do | |
8646 | local player = matchPlayer(word) | |
8647 | if (player ~= nil) then | |
8648 | player.Character:BreakJoints() | |
8649 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=261" | |
8650 | end | |
8651 | end | |
8652 | end, "None", "None", "None") | |
8653 | ||
8654 | CoolCMDs.Functions.CreateCommand("ducc", 5, function(msg, MessageSplit, Speaker, Self) | |
8655 | for word in msg:gmatch("%w+") do | |
8656 | local player = matchPlayer(word) | |
8657 | if (player ~= nil) then | |
8658 | player.Character:BreakJoints() | |
8659 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=7303693" | |
8660 | end | |
8661 | end | |
8662 | end, "None", "None", "None") | |
8663 | ||
8664 | CoolCMDs.Functions.CreateCommand("sweed", 5, function(msg, MessageSplit, Speaker, Self) | |
8665 | for word in msg:gmatch("%w+") do | |
8666 | local player = matchPlayer(word) | |
8667 | if (player ~= nil) then | |
8668 | player.Character:BreakJoints() | |
8669 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=6472560" | |
8670 | end | |
8671 | end | |
8672 | end, "None", "None", "None") | |
8673 | ||
8674 | CoolCMDs.Functions.CreateCommand("girly", 5, function(msg, MessageSplit, Speaker, Self) | |
8675 | for word in msg:gmatch("%w+") do | |
8676 | local player = matchPlayer(word) | |
8677 | if (player ~= nil) then | |
8678 | player.Character:BreakJoints() | |
8679 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=362994" | |
8680 | end | |
8681 | end | |
8682 | end, "None", "None", "None") | |
8683 | ||
8684 | CoolCMDs.Functions.CreateCommand("masashi", 5, function(msg, MessageSplit, Speaker, Self) | |
8685 | for word in msg:gmatch("%w+") do | |
8686 | local player = matchPlayer(word) | |
8687 | if (player ~= nil) then | |
8688 | player.Character:BreakJoints() | |
8689 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=3216894" | |
8690 | end | |
8691 | end | |
8692 | end, "None", "None", "None") | |
8693 | ||
8694 | CoolCMDs.Functions.CreateCommand("madly", 5, function(msg, MessageSplit, Speaker, Self) | |
8695 | for word in msg:gmatch("%w+") do | |
8696 | local player = matchPlayer(word) | |
8697 | if (player ~= nil) then | |
8698 | player.Character:BreakJoints() | |
8699 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=6160286" | |
8700 | end | |
8701 | end | |
8702 | end, "None", "None", "None") | |
8703 | ||
8704 | CoolCMDs.Functions.CreateCommand("ana", 5, function(msg, MessageSplit, Speaker, Self) | |
8705 | for word in msg:gmatch("%w+") do | |
8706 | local player = matchPlayer(word) | |
8707 | if (player ~= nil) then | |
8708 | player.Character:BreakJoints() | |
8709 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=9201" | |
8710 | end | |
8711 | end | |
8712 | end, "None", "None", "None") | |
8713 | ||
8714 | CoolCMDs.Functions.CreateCommand("police", 5, function(msg, MessageSplit, Speaker, Self) | |
8715 | for word in msg:gmatch("%w+") do | |
8716 | local player = matchPlayer(word) | |
8717 | if (player ~= nil) then | |
8718 | player.Character:BreakJoints() | |
8719 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=5599663" | |
8720 | end | |
8721 | end | |
8722 | end, "None", "None", "None") | |
8723 | ||
8724 | CoolCMDs.Functions.CreateCommand("gear", 5, function(msg, MessageSplit, Speaker, Self) | |
8725 | for word in msg:gmatch("%w+") do | |
8726 | local player = matchPlayer(word) | |
8727 | if (player ~= nil) then | |
8728 | player.Character:BreakJoints() | |
8729 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=49566" | |
8730 | end | |
8731 | end | |
8732 | end, "None", "None", "None") | |
8733 | ||
8734 | CoolCMDs.Functions.CreateCommand("builderman", 5, function(msg, MessageSplit, Speaker, Self) | |
8735 | for word in msg:gmatch("%w+") do | |
8736 | local player = matchPlayer(word) | |
8737 | if (player ~= nil) then | |
8738 | player.Character:BreakJoints() | |
8739 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=156" | |
8740 | end | |
8741 | end | |
8742 | end, "None", "None", "None") | |
8743 | ||
8744 | CoolCMDs.Functions.CreateCommand("reaper", 5, function(msg, MessageSplit, Speaker, Self) | |
8745 | for word in msg:gmatch("%w+") do | |
8746 | local player = matchPlayer(word) | |
8747 | if (player ~= nil) then | |
8748 | player.Character:BreakJoints() | |
8749 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=8599152" | |
8750 | end | |
8751 | end | |
8752 | end, "None", "None", "None") | |
8753 | ||
8754 | CoolCMDs.Functions.CreateCommand("guest", 5, function(msg, MessageSplit, Speaker, Self) | |
8755 | for word in msg:gmatch("%w+") do | |
8756 | local player = matchPlayer(word) | |
8757 | if (player ~= nil) then | |
8758 | player.Character:BreakJoints() | |
8759 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1" | |
8760 | end | |
8761 | end | |
8762 | end, "None", "None", "None") | |
8763 | ||
8764 | CoolCMDs.Functions.CreateCommand("stickmaster", 5, function(msg, MessageSplit, Speaker, Self) | |
8765 | for word in msg:gmatch("%w+") do | |
8766 | local player = matchPlayer(word) | |
8767 | if (player ~= nil) then | |
8768 | player.Character:BreakJoints() | |
8769 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=80254" | |
8770 | end | |
8771 | end | |
8772 | end, "None", "None", "None") | |
8773 | ||
8774 | CoolCMDs.Functions.CreateCommand("matt", 5, function(msg, MessageSplit, Speaker, Self) | |
8775 | for word in msg:gmatch("%w+") do | |
8776 | local player = matchPlayer(word) | |
8777 | if (player ~= nil) then | |
8778 | player.Character:BreakJoints() | |
8779 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=916" | |
8780 | end | |
8781 | end | |
8782 | end, "None", "None", "None") | |
8783 | ||
8784 | CoolCMDs.Functions.CreateCommand("nairod7", 5, function(msg, MessageSplit, Speaker, Self) | |
8785 | for word in msg:gmatch("%w+") do | |
8786 | local player = matchPlayer(word) | |
8787 | if (player ~= nil) then | |
8788 | player.Character:BreakJoints() | |
8789 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=7225903" | |
8790 | end | |
8791 | end | |
8792 | end, "None", "None", "None") | |
8793 | ||
8794 | CoolCMDs.Functions.CreateCommand("icookienl", 5, function(msg, MessageSplit, Speaker, Self) | |
8795 | for word in msg:gmatch("%w+") do | |
8796 | local player = matchPlayer(word) | |
8797 | if (player ~= nil) then | |
8798 | player.Character:BreakJoints() | |
8799 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=3166696" | |
8800 | end | |
8801 | end | |
8802 | end, "None", "None", "None") | |
8803 | ||
8804 | CoolCMDs.Functions.CreateCommand("sonicthehegdehog", 5, function(msg, MessageSplit, Speaker, Self) | |
8805 | for word in msg:gmatch("%w+") do | |
8806 | local player = matchPlayer(word) | |
8807 | if (player ~= nil) then | |
8808 | player.Character:BreakJoints() | |
8809 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1134994" | |
8810 | end | |
8811 | end | |
8812 | end, "None", "None", "None") | |
8813 | ||
8814 | CoolCMDs.Functions.CreateCommand("garrettjay", 5, function(msg, MessageSplit, Speaker, Self) | |
8815 | for word in msg:gmatch("%w+") do | |
8816 | local player = matchPlayer(word) | |
8817 | if (player ~= nil) then | |
8818 | player.Character:BreakJoints() | |
8819 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=91645" | |
8820 | end | |
8821 | end | |
8822 | end, "None", "None", "None") | |
8823 | ||
8824 | CoolCMDs.Functions.CreateCommand("plantize", 5, function(msg, MessageSplit, Speaker, Self) | |
8825 | for word in msg:gmatch("%w+") do | |
8826 | local player = matchPlayer(word) | |
8827 | if (player ~= nil) then | |
8828 | player.Character:BreakJoints() | |
8829 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=5518138" | |
8830 | end | |
8831 | end | |
8832 | end, "None", "None", "None") | |
8833 | ||
8834 | CoolCMDs.Functions.CreateCommand("boy", 5, function(msg, MessageSplit, Speaker, Self) | |
8835 | for word in msg:gmatch("%w+") do | |
8836 | local player = matchPlayer(word) | |
8837 | if (player ~= nil) then | |
8838 | player.Character:BreakJoints() | |
8839 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=8057367" | |
8840 | end | |
8841 | end | |
8842 | end, "None", "None", "None") | |
8843 | ||
8844 | CoolCMDs.Functions.CreateCommand("faded", 5, function(msg, MessageSplit, Speaker, Self) | |
8845 | for word in msg:gmatch("%w+") do | |
8846 | local player = matchPlayer(word) | |
8847 | if (player ~= nil) then | |
8848 | player.Character:BreakJoints() | |
8849 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=6319456" | |
8850 | end | |
8851 | end | |
8852 | end, "None", "None", "None") | |
8853 | ||
8854 | CoolCMDs.Functions.CreateCommand("noobify", 5, function(msg, MessageSplit, Speaker, Self) | |
8855 | for word in msg:gmatch("%w+") do | |
8856 | local player = matchPlayer(word) | |
8857 | if (player ~= nil) then | |
8858 | player.Character:BreakJoints() | |
8859 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=9676343" | |
8860 | end | |
8861 | end | |
8862 | end, "None", "None", "None") | |
8863 | ||
8864 | CoolCMDs.Functions.CreateCommand("darkking", 5, function(msg, MessageSplit, Speaker, Self) | |
8865 | for word in msg:gmatch("%w+") do | |
8866 | local player = matchPlayer(word) | |
8867 | if (player ~= nil) then | |
8868 | player.Character:BreakJoints() | |
8869 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=2975932" | |
8870 | end | |
8871 | end | |
8872 | end, "None", "None", "None") | |
8873 | ||
8874 | CoolCMDs.Functions.CreateCommand("guitar", 5, function(msg, MessageSplit, Speaker, Self) | |
8875 | for word in msg:gmatch("%w+") do | |
8876 | local player = matchPlayer(word) | |
8877 | if (player ~= nil) then | |
8878 | player.Character:BreakJoints() | |
8879 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1979584" | |
8880 | end | |
8881 | end | |
8882 | end, "None", "None", "None") | |
8883 | ||
8884 | CoolCMDs.Functions.CreateCommand("unknow", 5, function(msg, MessageSplit, Speaker, Self) | |
8885 | for word in msg:gmatch("%w+") do | |
8886 | local player = matchPlayer(word) | |
8887 | if (player ~= nil) then | |
8888 | player.Character:BreakJoints() | |
8889 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=6401251" | |
8890 | end | |
8891 | end | |
8892 | end, "None", "None", "None") | |
8893 | ||
8894 | CoolCMDs.Functions.CreateCommand("nazgul", 5, function(msg, MessageSplit, Speaker, Self) | |
8895 | for word in msg:gmatch("%w+") do | |
8896 | local player = matchPlayer(word) | |
8897 | if (player ~= nil) then | |
8898 | player.Character:BreakJoints() | |
8899 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1131345" | |
8900 | end | |
8901 | end | |
8902 | end, "None", "None", "None") | |
8903 | ||
8904 | CoolCMDs.Functions.CreateCommand("teddy", 5, function(msg, MessageSplit, Speaker, Self) | |
8905 | for word in msg:gmatch("%w+") do | |
8906 | local player = matchPlayer(word) | |
8907 | if (player ~= nil) then | |
8908 | player.Character:BreakJoints() | |
8909 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=13411824" | |
8910 | end | |
8911 | end | |
8912 | end, "None", "None", "None") | |
8913 | ||
8914 | CoolCMDs.Functions.CreateCommand("isaac", 5, function(msg, MessageSplit, Speaker, Self) | |
8915 | for word in msg:gmatch("%w+") do | |
8916 | local player = matchPlayer(word) | |
8917 | if (player ~= nil) then | |
8918 | player.Character:BreakJoints() | |
8919 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1537069" | |
8920 | end | |
8921 | end | |
8922 | end, "None", "None", "None") | |
8923 | ||
8924 | CoolCMDs.Functions.CreateCommand("comboknex", 5, function(msg, MessageSplit, Speaker, Self) | |
8925 | for word in msg:gmatch("%w+") do | |
8926 | local player = matchPlayer(word) | |
8927 | if (player ~= nil) then | |
8928 | player.Character:BreakJoints() | |
8929 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=5942550" | |
8930 | end | |
8931 | end | |
8932 | end, "None", "None", "None") | |
8933 | ||
8934 | CoolCMDs.Functions.CreateCommand("captinrex", 5, function(msg, MessageSplit, Speaker, Self) | |
8935 | for word in msg:gmatch("%w+") do | |
8936 | local player = matchPlayer(word) | |
8937 | if (player ~= nil) then | |
8938 | player.Character:BreakJoints() | |
8939 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=8150321" | |
8940 | end | |
8941 | end | |
8942 | end, "None", "None", "None") | |
8943 | ||
8944 | CoolCMDs.Functions.CreateCommand("ganon", 5, function(msg, MessageSplit, Speaker, Self) | |
8945 | for word in msg:gmatch("%w+") do | |
8946 | local player = matchPlayer(word) | |
8947 | if (player ~= nil) then | |
8948 | player.Character:BreakJoints() | |
8949 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=3357193" | |
8950 | end | |
8951 | end | |
8952 | end, "None", "None", "None") | |
8953 | ||
8954 | CoolCMDs.Functions.CreateCommand("itacho", 5, function(msg, MessageSplit, Speaker, Self) | |
8955 | for word in msg:gmatch("%w+") do | |
8956 | local player = matchPlayer(word) | |
8957 | if (player ~= nil) then | |
8958 | player.Character:BreakJoints() | |
8959 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=3368626" | |
8960 | end | |
8961 | end | |
8962 | end, "None", "None", "None") | |
8963 | ||
8964 | CoolCMDs.Functions.CreateCommand("splosh", 5, function(msg, MessageSplit, Speaker, Self) | |
8965 | for word in msg:gmatch("%w+") do | |
8966 | local player = matchPlayer(word) | |
8967 | if (player ~= nil) then | |
8968 | player.Character:BreakJoints() | |
8969 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=10308036" | |
8970 | end | |
8971 | end | |
8972 | end, "None", "None", "None") | |
8973 | ||
8974 | CoolCMDs.Functions.CreateCommand("xero", 5, function(msg, MessageSplit, Speaker, Self) | |
8975 | for word in msg:gmatch("%w+") do | |
8976 | local player = matchPlayer(word) | |
8977 | if (player ~= nil) then | |
8978 | player.Character:BreakJoints() | |
8979 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=741234" | |
8980 | end | |
8981 | end | |
8982 | end, "None", "None", "None") | |
8983 | ||
8984 | CoolCMDs.Functions.CreateCommand("allietalbott", 5, function(msg, MessageSplit, Speaker, Self) | |
8985 | for word in msg:gmatch("%w+") do | |
8986 | local player = matchPlayer(word) | |
8987 | if (player ~= nil) then | |
8988 | player.Character:BreakJoints() | |
8989 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=934107" | |
8990 | end | |
8991 | end | |
8992 | end, "None", "None", "None") | |
8993 | ||
8994 | CoolCMDs.Functions.CreateCommand("icefighterr", 5, function(msg, MessageSplit, Speaker, Self) | |
8995 | for word in msg:gmatch("%w+") do | |
8996 | local player = matchPlayer(word) | |
8997 | if (player ~= nil) then | |
8998 | player.Character:BreakJoints() | |
8999 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=6049960" | |
9000 | end | |
9001 | end | |
9002 | end, "None", "None", "None") | |
9003 | ||
9004 | CoolCMDs.Functions.CreateCommand("poisonnoob", 5, function(msg, MessageSplit, Speaker, Self) | |
9005 | for word in msg:gmatch("%w+") do | |
9006 | local player = matchPlayer(word) | |
9007 | if (player ~= nil) then | |
9008 | player.Character:BreakJoints() | |
9009 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=8558980" | |
9010 | end | |
9011 | end | |
9012 | end, "None", "None", "None") | |
9013 | ||
9014 | CoolCMDs.Functions.CreateCommand("slime8765", 5, function(msg, MessageSplit, Speaker, Self) | |
9015 | for word in msg:gmatch("%w+") do | |
9016 | local player = matchPlayer(word) | |
9017 | if (player ~= nil) then | |
9018 | player.Character:BreakJoints() | |
9019 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=3803146" | |
9020 | end | |
9021 | end | |
9022 | end, "None", "None", "None") | |
9023 | ||
9024 | CoolCMDs.Functions.CreateCommand("illblade", 5, function(msg, MessageSplit, Speaker, Self) | |
9025 | for word in msg:gmatch("%w+") do | |
9026 | local player = matchPlayer(word) | |
9027 | if (player ~= nil) then | |
9028 | player.Character:BreakJoints() | |
9029 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=6484494" | |
9030 | end | |
9031 | end | |
9032 | end, "None", "None", "None") | |
9033 | ||
9034 | CoolCMDs.Functions.CreateCommand("nick", 5, function(msg, MessageSplit, Speaker, Self) | |
9035 | for word in msg:gmatch("%w+") do | |
9036 | local player = matchPlayer(word) | |
9037 | if (player ~= nil) then | |
9038 | player.Character:BreakJoints() | |
9039 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=3445997" | |
9040 | end | |
9041 | end | |
9042 | end, "None", "None", "None") | |
9043 | ||
9044 | CoolCMDs.Functions.CreateCommand("tomcrusie", 5, function(msg, MessageSplit, Speaker, Self) | |
9045 | for word in msg:gmatch("%w+") do | |
9046 | local player = matchPlayer(word) | |
9047 | if (player ~= nil) then | |
9048 | player.Character:BreakJoints() | |
9049 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=5025023" | |
9050 | end | |
9051 | end | |
9052 | end, "None", "None", "None") | |
9053 | ||
9054 | CoolCMDs.Functions.CreateCommand("roquito", 5, function(msg, MessageSplit, Speaker, Self) | |
9055 | for word in msg:gmatch("%w+") do | |
9056 | local player = matchPlayer(word) | |
9057 | if (player ~= nil) then | |
9058 | player.Character:BreakJoints() | |
9059 | player.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=9521811" | |
9060 | end | |
9061 | end | |
9062 | end, "None", "None", "None") | |
9063 | ||
9064 | CoolCMDs.Functions.CreateCommand("suit", 5, function(msg, MessageSplit, Speaker, Self) | |
9065 | for word in msg:gmatch("%w+") do | |
9066 | local player = matchPlayer(word) | |
9067 | if (player ~= nil) then | |
9068 | player.Character:BreakJoints() | |
9069 | player.CharacterAppearance = "http://www.roblox.com/asset/?id=27911184" | |
9070 | end | |
9071 | end | |
9072 | end, "None", "None", "None") | |
9073 | ||
9074 | CoolCMDs.Functions.CreateCommand("knight", 5, function(msg, MessageSplit, Speaker, Self) | |
9075 | for word in msg:gmatch("%w+") do | |
9076 | local player = matchPlayer(word) | |
9077 | if (player ~= nil) then | |
9078 | player.Character:BreakJoints() | |
9079 | player.CharacterAppearance = "http://www.roblox.com/asset/?id=30364498" | |
9080 | end | |
9081 | end | |
9082 | end, "None", "None", "None") | |
9083 | ||
9084 | -- Person299 commands | |
9085 | ||
9086 | CoolCMDs.Functions.CreateCommand("local", 5, function(msg, MessageSplit, speaker, Self) | |
9087 | local player = findplayer(msg:sub(7, slash-1),speaker) | |
9088 | color = msg:sub(slash+1) | |
9089 | color = color:upper(color:sub(1,1)) .. color:sub(2) | |
9090 | if player ~= 0 and color then | |
9091 | for i = 1,#player do | |
9092 | if player[i].Character then | |
9093 | thecolor = BrickColor.new(color) | |
9094 | if thecolor ~= nil then | |
9095 | if player[i].Character.Shirt ~= nil then | |
9096 | player[i].Character.Shirt:remove() | |
9097 | end | |
9098 | if player[i].Character.Pants then | |
9099 | player[i].Character.Pants:remove() | |
9100 | end | |
9101 | c = player[i].Character:GetChildren() | |
9102 | for i2 = 1,#c do | |
9103 | if c[i2]:IsA("Part") then | |
9104 | c[i2].BrickColor = thecolor | |
9105 | end | |
9106 | end | |
9107 | end | |
9108 | end | |
9109 | end | |
9110 | end | |
9111 | end, "None", "None", "None") | |
9112 | ||
9113 | CoolCMDs.Functions.CreateCommand("em", 5, function(msg, MessageSplit, speaker, Self) | |
9114 | local player = findplayer(msg:sub(4),speaker) | |
9115 | if player ~= 0 then | |
9116 | for i = 1,#player do | |
9117 | local insert = game:GetService("InsertService"):LoadAsset(50307223) | |
9118 | insert.BlackHole.Parent = player[i].Character.Torso | |
9119 | end | |
9120 | end | |
9121 | end, "None", "None", "None") | |
9122 | ||
9123 | CoolCMDs.Functions.CreateCommand("up", 5, function(msg, MessageSplit, speaker, Self) | |
9124 | local player = findplayer(msg:sub(4),speaker) | |
9125 | if player ~= 0 then | |
9126 | for i = 1,#player do | |
9127 | b = Instance.new("BodyForce") | |
9128 | b.Parent = player[i].Character.Head | |
9129 | b.force = Vector3.new(0,1000000,0) | |
9130 | end | |
9131 | end | |
9132 | end, "None", "None", "None") | |
9133 | ||
9134 | CoolCMDs.Functions.CreateCommand("fling", 5, function(msg, MessageSplit, speaker, Self) | |
9135 | local player = findplayer(msg:sub(7),speaker) | |
9136 | if player ~= 0 then | |
9137 | for i = 1,#player do | |
9138 | local inc = 1500 | |
9139 | player[i].Character.Humanoid.PlatformStand=true | |
9140 | player[i].Character.Torso.Velocity=Vector3.new(math.random(-inc,inc),math.random(-inc,inc),math.random(-inc,inc)) | |
9141 | player[i].Character.Torso.RotVelocity=Vector3.new(math.random(-inc,inc),math.random(-inc,inc),math.random(-inc,inc)) | |
9142 | wait(1) | |
9143 | player[i].Character.Humanoid.PlatformStand=false | |
9144 | end | |
9145 | end | |
9146 | end, "None", "None", "None") | |
9147 | ||
9148 | CoolCMDs.Functions.CreateCommand("raggun", 5, function(msg, MessageSplit, speaker, Self) | |
9149 | local player = findplayer(msg:sub(8),speaker) | |
9150 | if player ~= 0 then | |
9151 | for i = 1,#player do | |
9152 | local insert = game:GetService("InsertService"):LoadAsset(43335034) | |
9153 | insert:MakeJoints() | |
9154 | insert["Ragdoll Gun"].Parent = player[i].Backpack | |
9155 | end | |
9156 | end | |
9157 | end, "None", "None", "None") | |
9158 | ||
9159 | CoolCMDs.Functions.CreateCommand("broom", 5, function(msg, MessageSplit, speaker, Self) | |
9160 | local player = findplayer(msg:sub(7),speaker) | |
9161 | if player ~= 0 then | |
9162 | for i = 1,#player do | |
9163 | local insert = game:GetService("InsertService"):LoadAsset(41690430) | |
9164 | insert:MakeJoints() | |
9165 | insert["Broomstick"].Parent = player[i].Backpack | |
9166 | end | |
9167 | end | |
9168 | end, "None", "None", "None") | |
9169 | ||
9170 | CoolCMDs.Functions.CreateCommand("wand", 5, function(msg, MessageSplit, speaker, Self) | |
9171 | local player = findplayer(msg:sub(6),speaker) | |
9172 | if player ~= 0 then | |
9173 | for i = 1,#player do | |
9174 | local insert = game:GetService("InsertService"):LoadAsset(58688577) | |
9175 | insert:MakeJoints() | |
9176 | insert["Wand"].Parent = player[i].Backpack | |
9177 | end | |
9178 | end | |
9179 | end, "None", "None", "None") | |
9180 | ||
9181 | CoolCMDs.Functions.CreateCommand("tele", 5, function(msg, MessageSplit, speaker, Self) | |
9182 | local player = findplayer(msg:sub(6),speaker) | |
9183 | if player ~= 0 then | |
9184 | for i = 1,#player do | |
9185 | local insert = game:GetService("InsertService"):LoadAsset(58526424) | |
9186 | insert:MakeJoints() | |
9187 | insert["Tele To Admin"].Parent = player[i].Backpack | |
9188 | insert:remove() | |
9189 | end | |
9190 | end | |
9191 | end, "None", "None", "None") | |
9192 | ||
9193 | CoolCMDs.Functions.CreateCommand("sc", 5, function(msg, MessageSplit, speaker, Self) | |
9194 | local player = findplayer(msg:sub(4),speaker) | |
9195 | if player ~= 0 then | |
9196 | for i = 1,#player do | |
9197 | local insert = game:GetService("InsertService"):LoadAsset(61797261) | |
9198 | insert:MakeJoints() | |
9199 | insert["Noob Scanner v0.6"].Parent = player[i].Backpack | |
9200 | insert:remove() | |
9201 | end | |
9202 | end | |
9203 | end, "None", "None", "None") | |
9204 | ||
9205 | CoolCMDs.Functions.CreateCommand("phone", 5, function(msg, MessageSplit, speaker, Self) | |
9206 | local player = findplayer(msg:sub(7),speaker) | |
9207 | if player ~= 0 then | |
9208 | for i = 1,#player do | |
9209 | local insert = game:GetService("InsertService"):LoadAsset(633879299) | |
9210 | insert:MakeJoints() | |
9211 | insert["WinBlox New Vegas"].Parent = player[i].Backpack | |
9212 | insert:remove() | |
9213 | end | |
9214 | end | |
9215 | end, "None", "None", "None") | |
9216 | ||
9217 | CoolCMDs.Functions.CreateCommand("extool", 5, function(msg, MessageSplit, speaker, Self) | |
9218 | local player = findplayer(msg:sub(8),speaker) | |
9219 | if player ~= 0 then | |
9220 | for i = 1,#player do | |
9221 | local insert = game:GetService("InsertService"):LoadAsset(56395152) | |
9222 | insert:MakeJoints() | |
9223 | insert["Explorer"].Parent = player[i].Backpack | |
9224 | insert:remove() | |
9225 | end | |
9226 | end | |
9227 | end, "None", "None", "None") | |
9228 | ||
9229 | CoolCMDs.Functions.CreateCommand("gw", 5, function(msg, MessageSplit, speaker, Self) | |
9230 | local player = findplayer(msg:sub(4),speaker) | |
9231 | if player ~= 0 then | |
9232 | for i = 1,#player do | |
9233 | local insert = game:GetService("InsertService"):LoadAsset(55058297) | |
9234 | insert:MakeJoints() | |
9235 | insert["Ghostwalker (0)"].Parent = player[i].Backpack | |
9236 | insert:remove() | |
9237 | end | |
9238 | end | |
9239 | end, "None", "None", "None") | |
9240 | ||
9241 | CoolCMDs.Functions.CreateCommand("kot", 5, function(msg, MessageSplit, speaker, Self) | |
9242 | local player = findplayer(msg:sub(5),speaker) | |
9243 | if player ~= 0 then | |
9244 | for i = 1,#player do | |
9245 | local insert = game:GetService("InsertService"):LoadAsset(56917321) | |
9246 | insert:MakeJoints() | |
9247 | insert["ScreenGui"].Parent = player[i].PlayerGui | |
9248 | insert:remove() | |
9249 | end | |
9250 | end | |
9251 | end, "None", "None", "None") | |
9252 | ||
9253 | CoolCMDs.Functions.CreateCommand("smi", 5, function(msg, MessageSplit, speaker, Self) | |
9254 | local player = findplayer(msg:sub(5),speaker) | |
9255 | if player ~= 0 then | |
9256 | for i = 1,#player do | |
9257 | local insert = game:GetService("InsertService"):LoadAsset(56840096) | |
9258 | insert:MakeJoints() | |
9259 | insert["Smite"].Parent = player[i].Backpack | |
9260 | insert:remove() | |
9261 | end | |
9262 | end | |
9263 | end, "None", "None", "None") | |
9264 | ||
9265 | CoolCMDs.Functions.CreateCommand("del1", 5, function(msg, MessageSplit, speaker, Self) | |
9266 | local player = findplayer(msg:sub(6),speaker) | |
9267 | if player ~= 0 then | |
9268 | for i = 1,#player do | |
9269 | local insert = game:GetService("InsertService"):LoadAsset(57133976) | |
9270 | insert:MakeJoints() | |
9271 | insert["BuildDelete"].Parent = player[i].Backpack | |
9272 | insert:remove() | |
9273 | end | |
9274 | end | |
9275 | end, "None", "None", "None") | |
9276 | ||
9277 | CoolCMDs.Functions.CreateCommand("orb", 5, function(msg, MessageSplit, speaker, Self) | |
9278 | local player = findplayer(msg:sub(5),speaker) | |
9279 | if player ~= 0 then | |
9280 | for i = 1,#player do | |
9281 | local insert = game:GetService("InsertService"):LoadAsset(44709620) | |
9282 | insert:MakeJoints() | |
9283 | insert["Script"].Parent = player[i].Backpack | |
9284 | insert:remove() | |
9285 | end | |
9286 | end | |
9287 | end, "None", "None", "None") | |
9288 | ||
9289 | CoolCMDs.Functions.CreateCommand("pushtool", 5, function(msg, MessageSplit, speaker, Self) | |
9290 | local player = findplayer(msg:sub(10),speaker) | |
9291 | if player ~= 0 then | |
9292 | for i = 1,#player do | |
9293 | local insert = game:GetService("InsertService"):LoadAsset(57120239) | |
9294 | insert:MakeJoints() | |
9295 | insert["Push"].Parent = player[i].Backpack | |
9296 | insert:remove() | |
9297 | end | |
9298 | end | |
9299 | end, "None", "None", "None") | |
9300 | ||
9301 | CoolCMDs.Functions.CreateCommand("ckatana", 5, function(msg, MessageSplit, speaker, Self) | |
9302 | local player = findplayer(msg:sub(9),speaker) | |
9303 | if player ~= 0 then | |
9304 | for i = 1,#player do | |
9305 | local insert = game:GetService("InsertService"):LoadAsset(52193941) | |
9306 | insert:MakeJoints() | |
9307 | insert["Katana"].Parent = player[i].Backpack | |
9308 | insert:remove() | |
9309 | end | |
9310 | end | |
9311 | end, "None", "None", "None") | |
9312 | ||
9313 | CoolCMDs.Functions.CreateCommand("bkatana", 5, function(msg, MessageSplit, speaker, Self) | |
9314 | local player = findplayer(msg:sub(9),speaker) | |
9315 | if player ~= 0 then | |
9316 | for i = 1,#player do | |
9317 | local insert = game:GetService("InsertService"):LoadAsset(58523683) | |
9318 | insert:MakeJoints() | |
9319 | insert["Katana"].Parent = player[i].Backpack | |
9320 | insert:remove() | |
9321 | end | |
9322 | end | |
9323 | end, "None", "None", "None") | |
9324 | ||
9325 | CoolCMDs.Functions.CreateCommand("bucket", 5, function(msg, MessageSplit, speaker, Self) | |
9326 | local player = findplayer(msg:sub(8),speaker) | |
9327 | if player ~= 0 then | |
9328 | for i = 1,#player do | |
9329 | local insert = game:GetService("InsertService"):LoadAsset(58485759) | |
9330 | insert:MakeJoints() | |
9331 | insert["Bucket"].Parent = player[i].Backpack | |
9332 | insert:remove() | |
9333 | end | |
9334 | end | |
9335 | end, "None", "None", "None") | |
9336 | ||
9337 | CoolCMDs.Functions.CreateCommand("nakedgun", 5, function(msg, MessageSplit, speaker, Self) | |
9338 | local player = findplayer(msg:sub(10),speaker) | |
9339 | if player ~= 0 then | |
9340 | for i = 1,#player do | |
9341 | local insert = game:GetService("InsertService"):LoadAsset(58581402) | |
9342 | insert:MakeJoints() | |
9343 | insert["Naked Gun"].Parent = player[i].Backpack | |
9344 | insert:remove() | |
9345 | end | |
9346 | end | |
9347 | end, "None", "None", "None") | |
9348 | ||
9349 | CoolCMDs.Functions.CreateCommand("jailtool", 5, function(msg, MessageSplit, speaker, Self) | |
9350 | local player = findplayer(msg:sub(10),speaker) | |
9351 | if player ~= 0 then | |
9352 | for i = 1,#player do | |
9353 | local insert = game:GetService("InsertService"):LoadAsset(57257488) | |
9354 | insert:MakeJoints() | |
9355 | insert["Jail"].Parent = player[i].Backpack | |
9356 | insert:remove() | |
9357 | end | |
9358 | end | |
9359 | end, "None", "None", "None") | |
9360 | ||
9361 | CoolCMDs.Functions.CreateCommand("teletool", 5, function(msg, MessageSplit, speaker, Self) | |
9362 | local player = findplayer(msg:sub(10),speaker) | |
9363 | if player ~= 0 then | |
9364 | for i = 1,#player do | |
9365 | local insert = game:GetService("InsertService"):LoadAsset(57252442) | |
9366 | insert:MakeJoints() | |
9367 | insert["Teleport"].Parent = player[i].Backpack | |
9368 | insert:remove() | |
9369 | end | |
9370 | end | |
9371 | end, "None", "None", "None") | |
9372 | ||
9373 | CoolCMDs.Functions.CreateCommand("combatarm", 5, function(msg, MessageSplit, speaker, Self) | |
9374 | local player = findplayer(msg:sub(11),speaker) | |
9375 | if player ~= 0 then | |
9376 | for i = 1,#player do | |
9377 | local insert = game:GetService("InsertService"):LoadAsset(58534404) | |
9378 | insert:MakeJoints() | |
9379 | insert["CArm"].Parent = player[i].Backpack | |
9380 | insert:remove() | |
9381 | end | |
9382 | end | |
9383 | end, "None", "None", "None") | |
9384 | ||
9385 | CoolCMDs.Functions.CreateCommand("eye", 5, function(msg, MessageSplit, speaker, Self) | |
9386 | local player = findplayer(msg:sub(5),speaker) | |
9387 | if player ~= 0 then | |
9388 | for i = 1,#player do | |
9389 | local insert = game:GetService("InsertService"):LoadAsset(56973803) | |
9390 | insert:MakeJoints() | |
9391 | insert["Tool"].Parent = player[i].Backpack | |
9392 | insert:remove() | |
9393 | end | |
9394 | end | |
9395 | end, "None", "None", "None") | |
9396 | ||
9397 | CoolCMDs.Functions.CreateCommand("cig", 5, function(msg, MessageSplit, speaker, Self) | |
9398 | local player = findplayer(msg:sub(5),speaker) | |
9399 | if player ~= 0 then | |
9400 | for i = 1,#player do | |
9401 | local insert = game:GetService("InsertService"):LoadAsset(57815904) | |
9402 | insert:MakeJoints() | |
9403 | insert["smoke"].Parent = player[i].Backpack | |
9404 | insert:remove() | |
9405 | end | |
9406 | end | |
9407 | end, "None", "None", "None") | |
9408 | ||
9409 | CoolCMDs.Functions.CreateCommand("poke", 5, function(msg, MessageSplit, speaker, Self) | |
9410 | local player = findplayer(msg:sub(6),speaker) | |
9411 | if player ~= 0 then | |
9412 | for i = 1,#player do | |
9413 | local insert = game:GetService("InsertService"):LoadAsset(54395369) | |
9414 | insert:MakeJoints() | |
9415 | insert["Pokeball"].Parent = player[i].Backpack | |
9416 | insert:remove() | |
9417 | end | |
9418 | end | |
9419 | end, "None", "None", "None") | |
9420 | ||
9421 | CoolCMDs.Functions.CreateCommand("reapp", 5, function(msg, MessageSplit, speaker, Self) | |
9422 | local player = findplayer(string.sub(msg,7),speaker) | |
9423 | if player ~= 0 then | |
9424 | for i = 1,#player do | |
9425 | player[i].CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..player[i].userId | |
9426 | player[i].Character.Humanoid.Health = 0 | |
9427 | end | |
9428 | end | |
9429 | end, "None", "None", "None") | |
9430 | ||
9431 | CoolCMDs.Functions.CreateCommand("godpowers", 5, function(msg, MessageSplit, speaker, Self) | |
9432 | local player = findplayer(msg:sub(11),speaker) | |
9433 | if player ~= 0 then | |
9434 | for i = 1,#player do | |
9435 | local insert = game:GetService("InsertService"):LoadAsset(57264678) | |
9436 | insert:MakeJoints() | |
9437 | insert["God Power"].Parent = player[i].Backpack | |
9438 | insert:remove() | |
9439 | end | |
9440 | end | |
9441 | end, "None", "None", "None") | |
9442 | ||
9443 | CoolCMDs.Functions.CreateCommand("jet", 5, function(msg, MessageSplit, speaker, Self) | |
9444 | local player = findplayer(msg:sub(5),speaker) | |
9445 | if player ~= 0 then | |
9446 | for i = 1,#player do | |
9447 | local insert = game:GetService("InsertService"):LoadAsset(54778025) | |
9448 | insert:MakeJoints() | |
9449 | insert["JetPack"].Parent = player[i].Backpack | |
9450 | insert:remove() | |
9451 | end | |
9452 | end | |
9453 | end, "None", "None", "None") | |
9454 | ||
9455 | CoolCMDs.Functions.CreateCommand("del", 5, function(msg, MessageSplit, speaker, Self) | |
9456 | local player = findplayer(msg:sub(5),speaker) | |
9457 | if player ~= 0 then | |
9458 | for i = 1,#player do | |
9459 | local insert = game:GetService("InsertService"):LoadAsset(56851690) | |
9460 | insert:MakeJoints() | |
9461 | insert["Del Tool"].Parent = player[i].Backpack | |
9462 | insert:remove() | |
9463 | end | |
9464 | end | |
9465 | end, "None", "None", "None") | |
9466 | ||
9467 | CoolCMDs.Functions.CreateCommand("telekin", 5, function(msg, MessageSplit, speaker, Self) | |
9468 | local player = findplayer(msg:sub(9),speaker) | |
9469 | if player ~= 0 then | |
9470 | for i = 1,#player do | |
9471 | local insert = game:GetService("InsertService"):LoadAsset(56565452) | |
9472 | insert:MakeJoints() | |
9473 | insert["Telekinesis"].Parent = player[i].Backpack | |
9474 | insert:remove() | |
9475 | end | |
9476 | end | |
9477 | end, "None", "None", "None") | |
9478 | ||
9479 | CoolCMDs.Functions.CreateCommand("freezeray", 5, function(msg, MessageSplit, speaker, Self) | |
9480 | local player = findplayer(msg:sub(11),speaker) | |
9481 | if player ~= 0 then | |
9482 | for i = 1,#player do | |
9483 | local insert = game:GetService("InsertService"):LoadAsset(58187334) | |
9484 | insert:MakeJoints() | |
9485 | insert["FreezeRay"].Parent = player[i].Backpack | |
9486 | insert:remove() | |
9487 | end | |
9488 | end | |
9489 | end, "None", "None", "None") | |
9490 | ||
9491 | CoolCMDs.Functions.CreateCommand("flyda", 5, function(msg, MessageSplit, speaker, Self) | |
9492 | local player = findplayer(msg:sub(7),speaker) | |
9493 | if player ~= 0 then | |
9494 | for i = 1,#player do | |
9495 | local insert = game:GetService("InsertService"):LoadAsset(56579645) | |
9496 | insert:MakeJoints() | |
9497 | insert["SkyElixir"].Parent = player[i].Backpack | |
9498 | insert:remove() | |
9499 | end | |
9500 | end | |
9501 | end, "None", "None", "None") | |
9502 | ||
9503 | CoolCMDs.Functions.CreateCommand("flytool", 5, function(msg, MessageSplit, speaker, Self) | |
9504 | local player = findplayer(msg:sub(9),speaker) | |
9505 | if player ~= 0 then | |
9506 | for i = 1,#player do | |
9507 | local insert = game:GetService("InsertService"):LoadAsset(56932215) | |
9508 | insert:MakeJoints() | |
9509 | insert["Fly"].Parent = player[i].Backpack | |
9510 | insert:remove() | |
9511 | end | |
9512 | end | |
9513 | end, "None", "None", "None") | |
9514 | ||
9515 | CoolCMDs.Functions.CreateCommand("gravgun", 5, function(msg, MessageSplit, speaker, Self) | |
9516 | local player = findplayer(msg:sub(9),speaker) | |
9517 | if player ~= 0 then | |
9518 | for i = 1,#player do | |
9519 | local insert = game:GetService("InsertService"):LoadAsset(58369782) | |
9520 | insert:MakeJoints() | |
9521 | insert["GravityGun"].Parent = player[i].Backpack | |
9522 | insert:remove() | |
9523 | end | |
9524 | end | |
9525 | end, "None", "None", "None") | |
9526 | ||
9527 | CoolCMDs.Functions.CreateCommand("path", 5, function(msg, MessageSplit, speaker, Self) | |
9528 | local player = findplayer(msg:sub(6),speaker) | |
9529 | if player ~= 0 then | |
9530 | for i = 1,#player do | |
9531 | local insert = game:GetService("InsertService"):LoadAsset(57067114) | |
9532 | insert:MakeJoints() | |
9533 | insert["Path"].Parent = player[i].Backpack | |
9534 | insert:remove() | |
9535 | end | |
9536 | end | |
9537 | end, "None", "None", "None") | |
9538 | ||
9539 | CoolCMDs.Functions.CreateCommand("assassin", 5, function(msg, MessageSplit, speaker, Self) | |
9540 | local player = findplayer(msg:sub(10),speaker) | |
9541 | if player ~= 0 then | |
9542 | for i = 1,#player do | |
9543 | local insert = game:GetService("InsertService"):LoadAsset(56838840) | |
9544 | insert:MakeJoints() | |
9545 | insert["Assassin"].Parent = player[i].Backpack | |
9546 | insert:remove() | |
9547 | end | |
9548 | end | |
9549 | end, "None", "None", "None") | |
9550 | ||
9551 | CoolCMDs.Functions.CreateCommand("bkatana", 5, function(msg, MessageSplit, speaker, Self) | |
9552 | local player = findplayer(msg:sub(10),speaker) | |
9553 | if player ~= 0 then | |
9554 | for i = 1,#player do | |
9555 | local insert = game:GetService("InsertService"):LoadAsset(56838840) | |
9556 | insert:MakeJoints() | |
9557 | insert["BlackKatana"].Parent = player[i].Backpack | |
9558 | insert:remove() | |
9559 | end | |
9560 | end | |
9561 | end, "None", "None", "None") | |
9562 | ||
9563 | CoolCMDs.Functions.CreateCommand("playerorb", 5, function(msg, MessageSplit, speaker, Self) | |
9564 | local player = findplayer(msg:sub(11),speaker) | |
9565 | if player ~= 0 then | |
9566 | for i = 1,#player do | |
9567 | local insert = game:GetService("InsertService"):LoadAsset(56861257) | |
9568 | insert:MakeJoints() | |
9569 | insert["Start"].Parent = player[i].Backpack | |
9570 | insert:remove() | |
9571 | end | |
9572 | end | |
9573 | end, "None", "None", "None") | |
9574 | ||
9575 | CoolCMDs.Functions.CreateCommand("clean", 5, function(msg, MessageSplit, speaker, Self) | |
9576 | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) | |
9577 | if imgettingtiredofmakingthisstupidscript == true then | |
9578 | local g = game:GetService("InsertService"):LoadAsset(57735410) | |
9579 | g.Parent = game.Workspace | |
9580 | end | |
9581 | end, "None", "None", "None") | |
9582 | ||
9583 | CoolCMDs.Functions.CreateCommand("duckz", 5, function(msg, MessageSplit, speaker, Self) | |
9584 | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) | |
9585 | if imgettingtiredofmakingthisstupidscript == true then | |
9586 | local g = game:GetService("InsertService"):LoadAsset(56831153) | |
9587 | g.Parent = game.Workspace | |
9588 | end | |
9589 | end, "None", "None", "None") | |
9590 | ||
9591 | CoolCMDs.Functions.CreateCommand("let it snow", 5, function(msg, MessageSplit, speaker, Self) | |
9592 | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) | |
9593 | if imgettingtiredofmakingthisstupidscript == true then | |
9594 | local g = game:GetService("InsertService"):LoadAsset(58162707) | |
9595 | g.Parent = game.Workspace | |
9596 | g.Name = ":3" | |
9597 | end | |
9598 | end, "None", "None", "None") | |
9599 | ||
9600 | CoolCMDs.Functions.CreateCommand("stop", 5, function(msg, MessageSplit, speaker, Self) | |
9601 | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) | |
9602 | if imgettingtiredofmakingthisstupidscript == true then | |
9603 | local c = game.Workspace:GetChildren() | |
9604 | for i =1,#c do | |
9605 | if c[i].Name == ":3" then | |
9606 | if c[i] ~= nil then | |
9607 | c[i]:Remove() | |
9608 | end | |
9609 | end | |
9610 | end | |
9611 | end | |
9612 | end, "None", "None", "None") | |
9613 | ||
9614 | CoolCMDs.Functions.CreateCommand("takeover1", 5, function(msg, MessageSplit, speaker, Self) | |
9615 | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) | |
9616 | if imgettingtiredofmakingthisstupidscript == true then | |
9617 | local g = game:GetService("InsertService"):LoadAsset(56865027) | |
9618 | g.Parent = game.Workspace | |
9619 | end | |
9620 | end, "None", "None", "None") | |
9621 | ||
9622 | CoolCMDs.Functions.CreateCommand("antiplayerorb", 5, function(msg, MessageSplit, speaker, Self) | |
9623 | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) | |
9624 | if imgettingtiredofmakingthisstupidscript == true then | |
9625 | local g = game:GetService("InsertService"):LoadAsset(58559824) | |
9626 | g.Parent = game.Workspace | |
9627 | end | |
9628 | end, "None", "None", "None") | |
9629 | ||
9630 | CoolCMDs.Functions.CreateCommand("antinoobs", 5, function(msg, MessageSplit, speaker, Self) | |
9631 | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) | |
9632 | if imgettingtiredofmakingthisstupidscript == true then | |
9633 | local g = game:GetService("InsertService"):LoadAsset(56922240) | |
9634 | g.Parent = game.Workspace | |
9635 | end | |
9636 | end, "None", "None", "None") | |
9637 | ||
9638 | CoolCMDs.Functions.CreateCommand("takeover", 5, function(msg, MessageSplit, speaker, Self) | |
9639 | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) | |
9640 | if imgettingtiredofmakingthisstupidscript == true then | |
9641 | local g = game:GetService("InsertService"):LoadAsset(58479046) | |
9642 | g.Parent = game.Workspace | |
9643 | end | |
9644 | end, "None", "None", "None") | |
9645 | ||
9646 | CoolCMDs.Functions.CreateCommand("antimob", 5, function(msg, MessageSplit, speaker, Self) | |
9647 | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) | |
9648 | if imgettingtiredofmakingthisstupidscript == true then | |
9649 | local g = game:GetService("InsertService"):LoadAsset(58728910) | |
9650 | g.Parent = game.Workspace | |
9651 | end | |
9652 | end, "None", "None", "None") | |
9653 | ||
9654 | CoolCMDs.Functions.CreateCommand("recolor", 5, function(msg, MessageSplit, speaker, Self) | |
9655 | game.Lighting.Ambient = Color3.new(170,170,170) | |
9656 | game.Lighting.TimeOfDay = 14 | |
9657 | end, "None", "None", "None") | |
9658 | ||
9659 | CoolCMDs.Functions.CreateCommand("noinsert", 5, function(msg, MessageSplit, speaker, Self) | |
9660 | local player = findplayer(msg:sub(10),speaker) | |
9661 | if player ~= 0 then | |
9662 | for i = 1,#player do | |
9663 | local insert = player[i].Backpack:FindFirstChild("Insert") | |
9664 | if insert then | |
9665 | insert:remove() | |
9666 | end | |
9667 | local bpinsert = player[i].Character:FindFirstChild("Insert") | |
9668 | if bpinsert ~= nil and bpinsert:isA("Tool") then | |
9669 | bpinsert:remove() | |
9670 | end | |
9671 | end | |
9672 | end | |
9673 | end, "None", "None", "None") | |
9674 | ||
9675 | CoolCMDs.Functions.CreateCommand("platformstand", 5, function(msg, MessageSplit, speaker, Self) | |
9676 | local player = findplayer(msg:sub(15),speaker) | |
9677 | if player ~= 0 then | |
9678 | for i = 1,#player do | |
9679 | if player[i].Character then | |
9680 | player[i].Character.Humanoid.PlatformStand = true | |
9681 | end | |
9682 | end | |
9683 | end | |
9684 | end, "None", "None", "None") | |
9685 | ||
9686 | CoolCMDs.Functions.CreateCommand("unplatformstand", 5, function(msg, MessageSplit, speaker, Self) | |
9687 | local player = findplayer(msg:sub(17),speaker) | |
9688 | if player ~= 0 then | |
9689 | for i = 1,#player do | |
9690 | if player[i].Character then | |
9691 | player[i].Character.Humanoid.PlatformStand = false | |
9692 | end | |
9693 | end | |
9694 | end | |
9695 | end, "None", "None", "None") | |
9696 | ||
9697 | CoolCMDs.Functions.CreateCommand("cframe1", 5, function(msg, MessageSplit, speaker, Self) | |
9698 | local player = findplayer(msg:sub(9),speaker) | |
9699 | if player ~= 0 then | |
9700 | for i = 1,#player do | |
9701 | local cframe = game:GetService("InsertService"):LoadAsset(34879005) | |
9702 | cframe:MakeJoints() | |
9703 | cframe["All New Edit Cframe"].Parent = player[i].Backpack | |
9704 | cframe:remove() | |
9705 | end | |
9706 | end | |
9707 | end, "None", "None", "None") | |
9708 | ||
9709 | CoolCMDs.Functions.CreateCommand("cframe2", 5, function(msg, MessageSplit, speaker, Self) | |
9710 | local player = findplayer(msg:sub(9),speaker) | |
9711 | if player ~= 0 then | |
9712 | for i = 1,#player do | |
9713 | local cframe = game:GetService("InsertService"):LoadAsset(35145017) | |
9714 | cframe:MakeJoints() | |
9715 | cframe["CFrame"].Parent = player[i].Backpack | |
9716 | cframe:remove() | |
9717 | end | |
9718 | end | |
9719 | end, "None", "None", "None") | |
9720 | ||
9721 | CoolCMDs.Functions.CreateCommand("skateboard", 5, function(msg, MessageSplit, speaker, Self) | |
9722 | local player = findplayer(msg:sub(12),speaker) | |
9723 | if player ~= 0 then | |
9724 | for i = 1,#player do | |
9725 | local board = game:GetService("InsertService"):LoadAsset(34879053) | |
9726 | board:MakeJoints() | |
9727 | board["SkateTool"].Parent = player[i].Backpack | |
9728 | board:remove() | |
9729 | end | |
9730 | end | |
9731 | end, "None", "None", "None") | |
9732 | ||
9733 | CoolCMDs.Functions.CreateCommand("wedge", 5, function(msg, MessageSplit, speaker, Self) | |
9734 | local danumber1 = nil | |
9735 | local danumber2 = nil | |
9736 | for i = 7,100 do | |
9737 | if string.sub(msg,i,i) == ""..key then | |
9738 | danumber1 = i | |
9739 | break | |
9740 | elseif string.sub(msg,i,i) == "" then | |
9741 | break | |
9742 | end | |
9743 | end | |
9744 | if danumber1 == nil then return end | |
9745 | for i =danumber1 + 1,danumber1 + 100 do | |
9746 | if string.sub(msg,i,i) == ""..key then | |
9747 | danumber2 = i | |
9748 | break | |
9749 | elseif string.sub(msg,i,i) == "" then | |
9750 | break | |
9751 | end | |
9752 | end | |
9753 | if danumber2 == nil then return end | |
9754 | if speaker.Character ~= nil then | |
9755 | local head = speaker.Character:FindFirstChild("Head") | |
9756 | if head ~= nil then | |
9757 | local part = Instance.new("WedgePart") | |
9758 | part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
9759 | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) | |
9760 | part.Name = "WedgePart" | |
9761 | part.Parent = game.Workspace | |
9762 | end | |
9763 | end | |
9764 | end, "None", "None", "None") | |
9765 | ||
9766 | CoolCMDs.Functions.CreateCommand("cylinder", 5, function(msg, MessageSplit, speaker, Self) | |
9767 | local danumber1 = nil | |
9768 | local danumber2 = nil | |
9769 | for i = 10,100 do | |
9770 | if string.sub(msg,i,i) == ""..key then | |
9771 | danumber1 = i | |
9772 | break | |
9773 | elseif string.sub(msg,i,i) == "" then | |
9774 | break | |
9775 | end | |
9776 | end | |
9777 | if danumber1 == nil then return end | |
9778 | for i =danumber1 + 1,danumber1 + 100 do | |
9779 | if string.sub(msg,i,i) == ""..key then | |
9780 | danumber2 = i | |
9781 | break | |
9782 | elseif string.sub(msg,i,i) == "" then | |
9783 | break | |
9784 | end | |
9785 | end | |
9786 | if danumber2 == nil then return end | |
9787 | if speaker.Character ~= nil then | |
9788 | local head = speaker.Character:FindFirstChild("Head") | |
9789 | if head ~= nil then | |
9790 | local part = Instance.new("Part") | |
9791 | part.Size = Vector3.new(string.sub(msg,10,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
9792 | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) | |
9793 | part.Name = "Cylinder" | |
9794 | local cyl = Instance.new("CylinderMesh",part) | |
9795 | part.Parent = game.Workspace | |
9796 | end | |
9797 | end | |
9798 | end, "None", "None", "None") | |
9799 | ||
9800 | CoolCMDs.Functions.CreateCommand("block", 5, function(msg, MessageSplit, speaker, Self) | |
9801 | local danumber1 = nil | |
9802 | local danumber2 = nil | |
9803 | for i = 7,100 do | |
9804 | if string.sub(msg,i,i) == ""..key then | |
9805 | danumber1 = i | |
9806 | break | |
9807 | elseif string.sub(msg,i,i) == "" then | |
9808 | break | |
9809 | end | |
9810 | end | |
9811 | if danumber1 == nil then return end | |
9812 | for i =danumber1 + 1,danumber1 + 100 do | |
9813 | if string.sub(msg,i,i) == ""..key then | |
9814 | danumber2 = i | |
9815 | break | |
9816 | elseif string.sub(msg,i,i) == "" then | |
9817 | break | |
9818 | end | |
9819 | end | |
9820 | if danumber2 == nil then return end | |
9821 | if speaker.Character ~= nil then | |
9822 | local head = speaker.Character:FindFirstChild("Head") | |
9823 | if head ~= nil then | |
9824 | local part = Instance.new("Part") | |
9825 | part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
9826 | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) | |
9827 | part.Name = "Block" | |
9828 | local block = Instance.new("BlockMesh",part) | |
9829 | part.Parent = game.Workspace | |
9830 | end | |
9831 | end | |
9832 | end, "None", "None", "None") | |
9833 | ||
9834 | CoolCMDs.Functions.CreateCommand("plate", 5, function(msg, MessageSplit, speaker, Self) | |
9835 | local danumber1 = nil | |
9836 | local danumber2 = nil | |
9837 | for i = 7,100 do | |
9838 | if string.sub(msg,i,i) == ""..key then | |
9839 | danumber1 = i | |
9840 | break | |
9841 | elseif string.sub(msg,i,i) == "" then | |
9842 | break | |
9843 | end | |
9844 | end | |
9845 | if danumber1 == nil then return end | |
9846 | for i =danumber1 + 1,danumber1 + 100 do | |
9847 | if string.sub(msg,i,i) == ""..key then | |
9848 | danumber2 = i | |
9849 | break | |
9850 | elseif string.sub(msg,i,i) == "" then | |
9851 | break | |
9852 | end | |
9853 | end | |
9854 | if danumber2 == nil then return end | |
9855 | if speaker.Character ~= nil then | |
9856 | local head = speaker.Character:FindFirstChild("Head") | |
9857 | if head ~= nil then | |
9858 | local part = Instance.new("Part") | |
9859 | part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
9860 | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) | |
9861 | part.Name = "Plate" | |
9862 | part.formFactor = "Plate" | |
9863 | part.Parent = game.Workspace | |
9864 | end | |
9865 | end | |
9866 | end, "None", "None", "None") | |
9867 | ||
9868 | CoolCMDs.Functions.CreateCommand("sphere", 5, function(msg, MessageSplit, speaker, Self) | |
9869 | local danumber1 = nil | |
9870 | local danumber2 = nil | |
9871 | for i = 8,100 do | |
9872 | if string.sub(msg,i,i) == ""..key then | |
9873 | danumber1 = i | |
9874 | break | |
9875 | elseif string.sub(msg,i,i) == "" then | |
9876 | break | |
9877 | end | |
9878 | end | |
9879 | if danumber1 == nil then return end | |
9880 | for i =danumber1 + 1,danumber1 + 100 do | |
9881 | if string.sub(msg,i,i) == ""..key then | |
9882 | danumber2 = i | |
9883 | break | |
9884 | elseif string.sub(msg,i,i) == "" then | |
9885 | break | |
9886 | end | |
9887 | end | |
9888 | if danumber2 == nil then return end | |
9889 | if speaker.Character ~= nil then | |
9890 | local head = speaker.Character:FindFirstChild("Head") | |
9891 | if head ~= nil then | |
9892 | local part = Instance.new("Part") | |
9893 | part.Size = Vector3.new(string.sub(msg,8,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
9894 | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) | |
9895 | part.Name = "Sphere" | |
9896 | part.Shape = "Ball" | |
9897 | part.formFactor = 1 | |
9898 | part.Parent = game.Workspace | |
9899 | end | |
9900 | end | |
9901 | end, "None", "None", "None") | |
9902 | ||
9903 | CoolCMDs.Functions.CreateCommand("burn", 5, function(msg, MessageSplit, speaker, Self) | |
9904 | local player = findplayer(msg:sub(6),speaker) | |
9905 | if player ~= 0 then | |
9906 | for i = 1,#player do | |
9907 | createscript([[ | |
9908 | if script.Parent.Parent then | |
9909 | fire = Instance.new("Fire") | |
9910 | fire.Parent = script.Parent | |
9911 | fire.Name = "Burn" | |
9912 | fire.Color = BrickColor.Random().Color | |
9913 | while fire do | |
9914 | script.Parent.Parent.Humanoid:TakeDamage(1) | |
9915 | wait(.1) | |
9916 | end | |
9917 | end]], player[i].Character.Torso) | |
9918 | end | |
9919 | end | |
9920 | end, "None", "None", "None") | |
9921 | ||
9922 | CoolCMDs.Functions.CreateCommand("watch", 5, function(msg, MessageSplit, speaker, Self) | |
9923 | local player = findplayer(msg:sub(7),speaker) | |
9924 | if player ~= 0 then | |
9925 | if #player == 1 then | |
9926 | for i = 1,#player do | |
9927 | sc = script.CamScript:clone() | |
9928 | sc.Parent = speaker | |
9929 | sc["New Subject"].Value = player[i].Character.Head | |
9930 | sc.Disabled = false | |
9931 | end | |
9932 | end | |
9933 | end | |
9934 | end, "None", "None", "None") | |
9935 | ||
9936 | CoolCMDs.Functions.CreateCommand("retools", 5, function(msg, MessageSplit, speaker, Self) | |
9937 | local player = findplayer(msg:sub(9),speaker) | |
9938 | if player ~= 0 then | |
9939 | for i = 1,#player do | |
9940 | if player[i].StarterGear then | |
9941 | local gear = player[i].StarterGear:GetChildren() | |
9942 | if #gear > 0 then | |
9943 | for Num,Gear in pairs(gear) do | |
9944 | Gear:remove() | |
9945 | end | |
9946 | end | |
9947 | end | |
9948 | end | |
9949 | end | |
9950 | end, "None", "None", "None") | |
9951 | ||
9952 | CoolCMDs.Functions.CreateCommand("savet", 5, function(msg, MessageSplit, speaker, Self) | |
9953 | local player = findplayer(msg:sub(7),speaker) | |
9954 | if player ~= 0 then | |
9955 | for i = 1,#player do | |
9956 | if player[i].StarterGear and player[i].Backpack then | |
9957 | if #player[i].Backpack:GetChildren() > 0 then | |
9958 | for num,tool in pairs(player[i].Backpack:GetChildren()) do | |
9959 | tool:clone().Parent = player[i].StarterGear | |
9960 | end | |
9961 | end | |
9962 | end | |
9963 | end | |
9964 | end | |
9965 | end, "None", "None", "None") | |
9966 | ||
9967 | CoolCMDs.Functions.CreateCommand("getgear", 5, function(msg, MessageSplit, speaker, Self) | |
9968 | local player = findplayer(msg:sub(9),speaker) | |
9969 | if player ~= 0 then | |
9970 | for i = 1,#player do | |
9971 | if player[i].StarterGear and speaker.Backpack then | |
9972 | for i,v in pairs(player[i].StarterGear:GetChildren()) do | |
9973 | v:clone().Parent = speaker.Backpack | |
9974 | end | |
9975 | end | |
9976 | end | |
9977 | end | |
9978 | end, "None", "None", "None") | |
9979 | ||
9980 | CoolCMDs.Functions.CreateCommand("team", 5, function(msg, MessageSplit, speaker, Self) | |
9981 | local slash = msg:sub(6):find(""..key)+5 | |
9982 | if slash then | |
9983 | local team = upmsg:sub(6,slash-1) | |
9984 | if team then | |
9985 | local color = upmsg:sub(slash+1) | |
9986 | local bcolor = BrickColor.new(color) | |
9987 | if bcolor == BrickColor.new("Medium stone grey") and color:lower() ~= "medium stone grey" then return end | |
9988 | Team = Instance.new("Team",game:GetService("Teams")) | |
9989 | Team.Name = team | |
9990 | Team.TeamColor = bcolor | |
9991 | end | |
9992 | end | |
9993 | end, "None", "None", "None") | |
9994 | ||
9995 | CoolCMDs.Functions.CreateCommand("changeteam", 5, function(msg, MessageSplit, speaker, Self) | |
9996 | local slash = msg:sub(12):find(""..key)+11 | |
9997 | if slash then | |
9998 | local player = findplayer(msg:sub(12,slash-1),speaker) | |
9999 | if player ~= 0 then | |
10000 | local team = findteam(msg:sub(slash+1),speaker) | |
10001 | if team then | |
10002 | for i = 1,#player do | |
10003 | player[i].Neutral = false | |
10004 | player[i].TeamColor = team.TeamColor | |
10005 | end | |
10006 | end | |
10007 | end | |
10008 | end | |
10009 | end, "None", "None", "None") | |
10010 | ||
10011 | CoolCMDs.Functions.CreateCommand("setupteams", 5, function(msg, MessageSplit, speaker, Self) | |
10012 | local Teams = game:GetService("Teams") | |
10013 | TeamChild = Teams:GetChildren() | |
10014 | if #TeamChild > 0 then | |
10015 | for i,v in pairs(TeamChild) do | |
10016 | v:remove() | |
10017 | end | |
10018 | end | |
10019 | local Unassinged = Instance.new("Team",Teams) | |
10020 | Unassigned.TeamColor = BrickColor.new("Really black") | |
10021 | Unassigned.Name = "Unassigned" | |
10022 | for i,v in pairs(game.Players:GetPlayers()) do | |
10023 | v.Neutral = false | |
10024 | v.TeamColor = BrickColor.new("Really black") | |
10025 | end | |
10026 | end, "None", "None", "None") | |
10027 | ||
10028 | CoolCMDs.Functions.CreateCommand("reteam", 5, function(msg, MessageSplit, speaker, Self) | |
10029 | local Teams = game:GetService("Teams") | |
10030 | assignTeam = {} | |
10031 | local team = findteam(msg:sub(8),speaker) | |
10032 | if team then | |
10033 | for i,v in pairs(game.Players:GetPlayers()) do | |
10034 | if v.TeamColor == team.TeamColor then | |
10035 | table.insert(assignTeam,v) | |
10036 | end | |
10037 | end | |
10038 | team:remove() | |
10039 | if #assignTeam > 0 then | |
10040 | if not Teams:FindFirstChild("Unassigned") then | |
10041 | Unassinged = Instance.new("Team",Teams) | |
10042 | Unassigned.TeamColor = BrickColor.new("Really black") | |
10043 | Unassigned.Name = "Unassigned" | |
10044 | else Unassigned = Teams.Unassigned end | |
10045 | for i,v in pairs(assignTeam) do | |
10046 | v.TeamColor = Unassigned.TeamColor | |
10047 | end | |
10048 | end | |
10049 | end | |
10050 | end, "None", "None", "None") | |
10051 | ||
10052 | CoolCMDs.Functions.CreateCommand("change", 5, function(msg, MessageSplit, speaker, Self) | |
10053 | local danumber1 = nil | |
10054 | local danumber2 = nil | |
10055 | for i = 8,100 do | |
10056 | if string.sub(msg,i,i) == ""..key then | |
10057 | danumber1 = i | |
10058 | break | |
10059 | elseif string.sub(msg,i,i) == "" then | |
10060 | break | |
10061 | end | |
10062 | end | |
10063 | if danumber1 == nil then return end | |
10064 | for i =danumber1 + 1,danumber1 + 100 do | |
10065 | if string.sub(msg,i,i) == ""..key then | |
10066 | danumber2 = i | |
10067 | break | |
10068 | elseif string.sub(msg,i,i) == "" then | |
10069 | break | |
10070 | end | |
10071 | end | |
10072 | if danumber2 == nil then return end | |
10073 | local player = findplayer(string.sub(msg,8,danumber1 - 1),speaker) | |
10074 | if player ~= 0 then | |
10075 | for i = 1,#player do | |
10076 | local ls = player[i]:FindFirstChild("leaderstats") | |
10077 | if ls ~= nil then | |
10078 | local it = nil | |
10079 | local itnum = 0 | |
10080 | local c = ls:GetChildren() | |
10081 | for i2 = 1,#c do | |
10082 | if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1,danumber2 - 1)) == 1 then | |
10083 | it = c[i2] | |
10084 | itnum = itnum + 1 | |
10085 | end | |
10086 | end | |
10087 | if itnum == 1 then | |
10088 | it.Value = string.sub(msg,danumber2 + 1) | |
10089 | end | |
10090 | end | |
10091 | end | |
10092 | end | |
10093 | end, "None", "None", "None") | |
10094 | ||
10095 | CoolCMDs.Functions.CreateCommand("ungod", 5, function(msg, MessageSplit, speaker, Self) | |
10096 | local player = findplayer(string.sub(msg,7),speaker) | |
10097 | if player ~= 0 then | |
10098 | for i = 1,#player do | |
10099 | if player[i].Character ~= nil then | |
10100 | local isgod = false | |
10101 | local c = player[i].Character:GetChildren() | |
10102 | for i=1,#c do | |
10103 | if c[i].className == "Script" then | |
10104 | if c[i]:FindFirstChild("Context") then | |
10105 | if string.sub(c[i].Context.Value,1,41) == "script.Parent.Humanoid.MaxHealth = 999999" then | |
10106 | c[i]:remove() | |
10107 | isgod = true | |
10108 | end | |
10109 | end | |
10110 | end | |
10111 | end | |
10112 | if isgod == true then | |
10113 | local c = player[i].Character:GetChildren() | |
10114 | for i=1,#c do | |
10115 | if c[i].className == "Part" then | |
10116 | c[i].Reflectance = 0 | |
10117 | end | |
10118 | if c[i].className == "Humanoid" then | |
10119 | c[i].MaxHealth = 100 | |
10120 | c[i].Health = 100 | |
10121 | end | |
10122 | if c[i].Name == "God FF" then | |
10123 | c[i]:remove() | |
10124 | end | |
10125 | end | |
10126 | end | |
10127 | end | |
10128 | end | |
10129 | end | |
10130 | end, "None", "None", "None") | |
10131 | ||
10132 | CoolCMDs.Functions.CreateCommand("god", 5, function(msg, MessageSplit, speaker, Self) | |
10133 | local player = findplayer(string.sub(msg,5),speaker) | |
10134 | if player ~= 0 then | |
10135 | for i = 1,#player do | |
10136 | if player[i].Character ~= nil then | |
10137 | if player[i].Character:FindFirstChild("God FF") == nil then | |
10138 | createscript([[script.Parent.Humanoid.MaxHealth = 999999 | |
10139 | script.Parent.Humanoid.Health = 999999 | |
10140 | ff = Instance.new("ForceField") | |
10141 | ff.Name = "God FF" | |
10142 | ff.Parent = script.Parent | |
10143 | function ot(hit) | |
10144 | if hit.Parent ~= script.Parent then | |
10145 | h = hit.Parent:FindFirstChild("Humanoid") | |
10146 | if h ~= nil then | |
10147 | h.Health = 0 | |
10148 | end | |
10149 | h = hit.Parent:FindFirstChild("Zombie") | |
10150 | if h ~= nil then | |
10151 | h.Health = 0 | |
10152 | end end end | |
10153 | c = script.Parent:GetChildren() | |
10154 | for i=1,#c do | |
10155 | if c[i].className == "Part" then | |
10156 | c[i].Touched:connect(ot) | |
10157 | c[i].Reflectance = 1 | |
10158 | end end]],player[i].Character) | |
10159 | end | |
10160 | end | |
10161 | end | |
10162 | end | |
10163 | end, "None", "None", "None") | |
10164 | ||
10165 | CoolCMDs.Functions.CreateCommand("sparkles", 5, function(msg, MessageSplit, speaker, Self) | |
10166 | local player = findplayer(string.sub(msg,10),speaker) | |
10167 | if player ~= 0 then | |
10168 | for i = 1,#player do | |
10169 | if player[i].Character ~= nil then | |
10170 | local torso = player[i].Character:FindFirstChild("Torso") | |
10171 | if torso ~= nil then | |
10172 | local sparkles = Instance.new("Sparkles") | |
10173 | sparkles.Color = Color3.new(math.random(),math.random(),math.random()) | |
10174 | sparkles.Parent = torso | |
10175 | end | |
10176 | end | |
10177 | end | |
10178 | end | |
10179 | end, "None", "None", "None") | |
10180 | ||
10181 | CoolCMDs.Functions.CreateCommand("unsparkles", 5, function(msg, MessageSplit, speaker, Self) | |
10182 | local player = findplayer(string.sub(msg,12),speaker) | |
10183 | if player ~= 0 then | |
10184 | for i = 1,#player do | |
10185 | if player[i].Character ~= nil then | |
10186 | local torso = player[i].Character:FindFirstChild("Torso") | |
10187 | if torso ~= nil then | |
10188 | local c = torso:GetChildren() | |
10189 | for i2 = 1,#c do | |
10190 | if c[i2].className == "Sparkles" then | |
10191 | c[i2]:remove() | |
10192 | end | |
10193 | end | |
10194 | end | |
10195 | end | |
10196 | end | |
10197 | end | |
10198 | end, "None", "None", "None") | |
10199 | ||
10200 | CoolCMDs.Functions.CreateCommand("heal", 5, function(msg, MessageSplit, speaker, Self) | |
10201 | local player = findplayer(string.sub(msg,6),speaker) | |
10202 | if player ~= 0 then | |
10203 | for i = 1,#player do | |
10204 | if player[i].Character ~= nil then | |
10205 | local human = player[i].Character:FindFirstChild("Humanoid") | |
10206 | if human ~= nil then | |
10207 | human.Health = human.MaxHealth | |
10208 | end | |
10209 | end | |
10210 | end | |
10211 | end | |
10212 | end, "None", "None", "None") | |
10213 | ||
10214 | CoolCMDs.Functions.CreateCommand("sit", 5, function(msg, MessageSplit, speaker, Self) | |
10215 | local player = findplayer(string.sub(msg,5),speaker) | |
10216 | if player ~= 0 then | |
10217 | for i = 1,#player do | |
10218 | if player[i].Character ~= nil then | |
10219 | local human = player[i].Character:FindFirstChild("Humanoid") | |
10220 | if human ~= nil then | |
10221 | human.Sit = true | |
10222 | end | |
10223 | end | |
10224 | end | |
10225 | end | |
10226 | end, "None", "None", "None") | |
10227 | ||
10228 | CoolCMDs.Functions.CreateCommand("jump", 5, function(msg, MessageSplit, speaker, Self) | |
10229 | local player = findplayer(string.sub(msg,6),speaker) | |
10230 | if player ~= 0 then | |
10231 | for i = 1,#player do | |
10232 | if player[i].Character ~= nil then | |
10233 | local human = player[i].Character:FindFirstChild("Humanoid") | |
10234 | if human ~= nil then | |
10235 | human.Jump = true | |
10236 | end | |
10237 | end | |
10238 | end | |
10239 | end | |
10240 | end, "None", "None", "None") | |
10241 | ||
10242 | CoolCMDs.Functions.CreateCommand("stand", 5, function(msg, MessageSplit, speaker, Self) | |
10243 | local player = findplayer(string.sub(msg,7),speaker) | |
10244 | if player ~= 0 then | |
10245 | for i = 1,#player do | |
10246 | if player[i].Character ~= nil then | |
10247 | local human = player[i].Character:FindFirstChild("Humanoid") | |
10248 | if human ~= nil then | |
10249 | human.Sit = false | |
10250 | end | |
10251 | end | |
10252 | end | |
10253 | end | |
10254 | end, "None", "None", "None") | |
10255 | ||
10256 | CoolCMDs.Functions.CreateCommand("jail", 5, function(msg, MessageSplit, speaker, Self) | |
10257 | local player = findplayer(string.sub(msg,6),speaker) | |
10258 | if player ~= 0 then | |
10259 | for i = 1,#player do | |
10260 | if player[i].Character ~= nil then | |
10261 | local torso = player[i].Character:FindFirstChild("Torso") | |
10262 | if torso ~= nil then | |
10263 | local ack = Instance.new("Model") | |
10264 | ack.Name = "Jail" .. player[i].Name | |
10265 | 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 | |
10266 | ack.Parent = game.Workspace | |
10267 | ack:MoveTo(torso.Position) | |
10268 | end | |
10269 | end | |
10270 | end | |
10271 | end | |
10272 | end, "None", "None", "None") | |
10273 | ||
10274 | CoolCMDs.Functions.CreateCommand("unjail", 5, function(msg, MessageSplit, speaker, Self) | |
10275 | local player = findplayer(string.sub(msg,8),speaker) | |
10276 | if player ~= 0 then | |
10277 | for i = 1,#player do | |
10278 | local c = game.Workspace:GetChildren() | |
10279 | for i2 =1,#c do | |
10280 | if string.sub(c[i2].Name,1,4) == "Jail" then | |
10281 | if string.sub(c[i2].Name,5) == player[i].Name then | |
10282 | c[i2]:remove() | |
10283 | end | |
10284 | end | |
10285 | end | |
10286 | end | |
10287 | end | |
10288 | end, "None", "None", "None") | |
10289 | ||
10290 | CoolCMDs.Functions.CreateCommand("givebtools", 5, function(msg, MessageSplit, speaker, Self) | |
10291 | local player = findplayer(string.sub(msg,12),speaker) | |
10292 | if player ~= 0 then | |
10293 | for i = 1,#player do | |
10294 | local a = Instance.new("HopperBin") | |
10295 | a.BinType = "GameTool" | |
10296 | a.Parent = player[i].Backpack | |
10297 | local a = Instance.new("HopperBin") | |
10298 | a.BinType = "Clone" | |
10299 | a.Parent = player[i].Backpack | |
10300 | local a = Instance.new("HopperBin") | |
10301 | a.BinType = "Hammer" | |
10302 | a.Parent = player[i].Backpack | |
10303 | end | |
10304 | end | |
10305 | end, "None", "None", "None") | |
10306 | ||
10307 | CoolCMDs.Functions.CreateCommand("unshield", 5, function(msg, MessageSplit, speaker, Self) | |
10308 | local player = findplayer(string.sub(msg,10),speaker) | |
10309 | if player ~= 0 then | |
10310 | for i = 1,#player do | |
10311 | if player[i].Character ~= nil then | |
10312 | local shield = player[i].Character:FindFirstChild("Weird Ball Thingy") | |
10313 | if shield ~= nil then | |
10314 | shield:remove() | |
10315 | end | |
10316 | end | |
10317 | end | |
10318 | end | |
10319 | end, "None", "None", "None") | |
10320 | ||
10321 | CoolCMDs.Functions.CreateCommand("shield", 5, function(msg, MessageSplit, speaker, Self) | |
10322 | local player = findplayer(string.sub(msg,8),speaker) | |
10323 | if player ~= 0 then | |
10324 | for i = 1,#player do | |
10325 | if player[i].Character ~= nil then | |
10326 | local torso = player[i].Character:FindFirstChild("Torso") | |
10327 | if torso ~= nil then | |
10328 | if player[i].Character:FindFirstChild("Weird Ball Thingy") == nil then | |
10329 | local ball = Instance.new("Part") | |
10330 | ball.Size = Vector3.new(10,10,10) | |
10331 | ball.BrickColor = BrickColor.new(1) | |
10332 | ball.Transparency = 0.5 | |
10333 | ball.CFrame = torso.CFrame | |
10334 | ball.TopSurface = "Smooth" | |
10335 | ball.BottomSurface = "Smooth" | |
10336 | ball.CanCollide = false | |
10337 | ball.Name = "Weird Ball Thingy" | |
10338 | ball.Reflectance = 0.2 | |
10339 | local sm = Instance.new("SpecialMesh") | |
10340 | sm.MeshType = "Sphere" | |
10341 | sm.Parent = ball | |
10342 | ball.Parent = player[i].Character | |
10343 | createscript([[ | |
10344 | function ot(hit) | |
10345 | if hit.Parent ~= nil then | |
10346 | if hit.Parent ~= script.Parent.Parent then | |
10347 | if hit.Anchored == false then | |
10348 | hit:BreakJoints() | |
10349 | local pos = script.Parent.CFrame * (Vector3.new(0, 1.4, 0) * script.Parent.Size) | |
10350 | hit.Velocity = ((hit.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 150 + hit.Velocity | |
10351 | hit.RotVelocity = hit.RotVelocity + Vector3.new(hit.Position.z - pos.z, 0, pos.x - hit.Position.x).unit * 40 | |
10352 | end end end end | |
10353 | script.Parent.Touched:connect(ot) ]], ball) | |
10354 | local bf = Instance.new("BodyForce") | |
10355 | bf.force = Vector3.new(0,5e+004,0) | |
10356 | bf.Parent = ball | |
10357 | local w = Instance.new("Weld") | |
10358 | w.Part1 = torso | |
10359 | w.Part0 = ball | |
10360 | ball.Shape = 0 | |
10361 | w.Parent = torso | |
10362 | end | |
10363 | end | |
10364 | end | |
10365 | end | |
10366 | end | |
10367 | end, "None", "None", "None") | |
10368 | ||
10369 | CoolCMDs.Functions.CreateCommand("time", 5, function(msg, MessageSplit, speaker, Self) | |
10370 | game.Lighting.TimeOfDay = string.sub(msg,6) | |
10371 | end, "None", "None", "None") | |
10372 | ||
10373 | CoolCMDs.Functions.CreateCommand("maxplayers", 5, function(msg, MessageSplit, speaker, Self) | |
10374 | local pie = game.Players.MaxPlayers | |
10375 | game.Players.MaxPlayers = string.sub(msg,12) | |
10376 | if game.Players.MaxPlayers == 0 then | |
10377 | game.Players.MaxPlayers = pie | |
10378 | end | |
10379 | end, "None", "None", "None") | |
10380 | ||
10381 | CoolCMDs.Functions.CreateCommand("zombify", 5, function(msg, MessageSplit, speaker, Self) | |
10382 | local player = findplayer(string.sub(msg,9),speaker) | |
10383 | if player ~= 0 then | |
10384 | for i = 1,#player do | |
10385 | if player[i].Character ~= nil then | |
10386 | local torso = player[i].Character:FindFirstChild("Torso") | |
10387 | if torso ~= nil then | |
10388 | local arm = player[i].Character:FindFirstChild("Left Arm") | |
10389 | if arm ~= nil then | |
10390 | arm:remove() | |
10391 | end | |
10392 | local arm = player[i].Character:FindFirstChild("Right Arm") | |
10393 | if arm ~= nil then | |
10394 | arm:remove() | |
10395 | end | |
10396 | local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
10397 | local zarm = Instance.new("Part") | |
10398 | zarm.Color = Color3.new(0.631373, 0.768627, 0.545098) | |
10399 | zarm.Locked = true | |
10400 | zarm.formFactor = "Symmetric" | |
10401 | zarm.Size = Vector3.new(2,1,1) | |
10402 | zarm.TopSurface = "Smooth" | |
10403 | zarm.BottomSurface = "Smooth" | |
10404 | createscript( [[ | |
10405 | wait(1) | |
10406 | function onTouched(part) | |
10407 | if part.Parent ~= nil then | |
10408 | local h = part.Parent:findFirstChild("Humanoid") | |
10409 | if h~=nil then | |
10410 | if cantouch~=0 then | |
10411 | if h.Parent~=script.Parent.Parent then | |
10412 | if h.Parent:findFirstChild("zarm")~=nil then return end | |
10413 | cantouch=0 | |
10414 | local larm=h.Parent:findFirstChild("Left Arm") | |
10415 | local rarm=h.Parent:findFirstChild("Right Arm") | |
10416 | if larm~=nil then | |
10417 | larm:remove() | |
10418 | end | |
10419 | if rarm~=nil then | |
10420 | rarm:remove() | |
10421 | end | |
10422 | local zee=script.Parent.Parent:findFirstChild("zarm") | |
10423 | if zee~=nil then | |
10424 | local zlarm=zee:clone() | |
10425 | local zrarm=zee:clone() | |
10426 | if zlarm~=nil then | |
10427 | local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
10428 | zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot | |
10429 | zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot | |
10430 | zlarm.Parent=h.Parent | |
10431 | zrarm.Parent=h.Parent | |
10432 | zlarm:makeJoints() | |
10433 | zrarm:makeJoints() | |
10434 | zlarm.Anchored=false | |
10435 | zrarm.Anchored=false | |
10436 | wait(0.1) | |
10437 | h.Parent.Head.Color=zee.Color | |
10438 | else return end | |
10439 | end | |
10440 | wait(1) | |
10441 | cantouch=1 | |
10442 | end | |
10443 | end | |
10444 | end | |
10445 | end | |
10446 | end | |
10447 | script.Parent.Touched:connect(onTouched) | |
10448 | ]],zarm) | |
10449 | zarm.Name = "zarm" | |
10450 | local zarm2 = zarm:clone() | |
10451 | zarm2.CFrame = torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot | |
10452 | zarm.CFrame = torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot | |
10453 | zarm.Parent = player[i].Character | |
10454 | zarm:MakeJoints() | |
10455 | zarm2.Parent = player[i].Character | |
10456 | zarm2:MakeJoints() | |
10457 | local head = player[i].Character:FindFirstChild("Head") | |
10458 | if head ~= nil then | |
10459 | head.Color = Color3.new(0.631373, 0.768627, 0.545098) | |
10460 | end | |
10461 | end | |
10462 | end | |
10463 | end | |
10464 | end | |
10465 | end, "None", "None", "None") | |
10466 | ||
10467 | CoolCMDs.Functions.CreateCommand("explode", 5, function(msg, MessageSplit, speaker, Self) | |
10468 | local player = findplayer(string.sub(msg,8),speaker) | |
10469 | if player ~= 0 then | |
10470 | for i = 1,#player do | |
10471 | if player[i].Character ~= nil then | |
10472 | local torso = player[i].Character:FindFirstChild("Torso") | |
10473 | if torso ~= nil then | |
10474 | local ex = Instance.new("Explosion") | |
10475 | ex.Position = torso.Position | |
10476 | ex.Parent = game.Workspace | |
10477 | end | |
10478 | end | |
10479 | end | |
10480 | end | |
10481 | end, "None", "None", "None") | |
10482 | ||
10483 | CoolCMDs.Functions.CreateCommand("rocket", 5, function(msg, MessageSplit, speaker, Self) | |
10484 | local player = findplayer(string.sub(msg,8),speaker) | |
10485 | if player ~= 0 then | |
10486 | for i = 1,#player do | |
10487 | if player[i].Character ~= nil then | |
10488 | local torso = player[i].Character:FindFirstChild("Torso") | |
10489 | if torso ~= nil then | |
10490 | local r = Instance.new("Part") | |
10491 | r.Name = "Rocket" | |
10492 | r.Size = Vector3.new(1,8,1) | |
10493 | r.TopSurface = "Smooth" | |
10494 | r.BottomSurface = "Smooth" | |
10495 | local w = Instance.new("Weld") | |
10496 | w.Part1 = torso | |
10497 | w.Part0 = r | |
10498 | w.C0 = CFrame.new(0,0,-1) | |
10499 | local bt = Instance.new("BodyThrust") | |
10500 | bt.force = Vector3.new(0,5700,0) | |
10501 | bt.Parent = r | |
10502 | r.Parent = player[i].Character | |
10503 | w.Parent = torso | |
10504 | createscript([[ | |
10505 | for i=1,120 do | |
10506 | local ex = Instance.new("Explosion") | |
10507 | ex.BlastRadius = 0 | |
10508 | ex.Position = script.Parent.Position - Vector3.new(0,2,0) | |
10509 | ex.Parent = game.Workspace | |
10510 | wait(0.05) | |
10511 | end | |
10512 | local ex = Instance.new("Explosion") | |
10513 | ex.BlastRadius = 10 | |
10514 | ex.Position = script.Parent.Position | |
10515 | ex.Parent = game.Workspace | |
10516 | script.Parent.BodyThrust:remove() | |
10517 | script.Parent.Parent.Humanoid.Health = 0 | |
10518 | ]],r) | |
10519 | end | |
10520 | end | |
10521 | end | |
10522 | end | |
10523 | end, "None", "None", "None") | |
10524 | ||
10525 | CoolCMDs.Functions.CreateCommand("ambient", 5, function(msg, MessageSplit, speaker, Self) | |
10526 | local danumber1 = nil | |
10527 | local danumber2 = nil | |
10528 | for i = 9,100 do | |
10529 | if string.sub(msg,i,i) == ""..key then | |
10530 | danumber1 = i | |
10531 | break | |
10532 | elseif string.sub(msg,i,i) == "" then | |
10533 | break | |
10534 | end | |
10535 | end | |
10536 | if danumber1 == nil then return end | |
10537 | for i =danumber1 + 1,danumber1 + 100 do | |
10538 | if string.sub(msg,i,i) == ""..key then | |
10539 | danumber2 = i | |
10540 | break | |
10541 | elseif string.sub(msg,i,i) == "" then | |
10542 | break | |
10543 | end | |
10544 | end | |
10545 | if danumber2 == nil then return end | |
10546 | game.Lighting.Ambient = Color3.new(-string.sub(msg,9,danumber1 - 1),-string.sub(msg,danumber1 + 1,danumber2 - 1),-string.sub(msg,danumber2 + 1)) | |
10547 | end, "None", "None", "None") | |
10548 | ||
10549 | CoolCMDs.Functions.CreateCommand("part", 5, function(msg, MessageSplit, speaker, Self) | |
10550 | local danumber1 = nil | |
10551 | local danumber2 = nil | |
10552 | for i = 6,100 do | |
10553 | if string.sub(msg,i,i) == ""..key then | |
10554 | danumber1 = i | |
10555 | break | |
10556 | elseif string.sub(msg,i,i) == "" then | |
10557 | break | |
10558 | end | |
10559 | end | |
10560 | if danumber1 == nil then return end | |
10561 | for i =danumber1 + 1,danumber1 + 100 do | |
10562 | if string.sub(msg,i,i) == ""..key then | |
10563 | danumber2 = i | |
10564 | break | |
10565 | elseif string.sub(msg,i,i) == "" then | |
10566 | break | |
10567 | end | |
10568 | end | |
10569 | if danumber2 == nil then return end | |
10570 | if speaker.Character ~= nil then | |
10571 | local head = speaker.Character:FindFirstChild("Head") | |
10572 | if head ~= nil then | |
10573 | local part = Instance.new("Part") | |
10574 | part.Size = Vector3.new(string.sub(msg,6,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
10575 | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) | |
10576 | part.Name = "Part" | |
10577 | part.Parent = game.Workspace | |
10578 | end | |
10579 | end | |
10580 | end, "None", "None", "None") | |
10581 | ||
10582 | CoolCMDs.Functions.CreateCommand("control", 5, function(msg, MessageSplit, speaker, Self) | |
10583 | local player = findplayer(string.sub(msg,9),speaker) | |
10584 | if player ~= 0 then | |
10585 | if #player > 1 then | |
10586 | return | |
10587 | end | |
10588 | for i = 1,#player do | |
10589 | if player[i].Character ~= nil then | |
10590 | speaker.Character = player[i].Character | |
10591 | end | |
10592 | end | |
10593 | end | |
10594 | end, "None", "None", "None") | |
10595 | ||
10596 | CoolCMDs.Functions.CreateCommand("trip", 5, function(msg, MessageSplit, speaker, Self) | |
10597 | local player = findplayer(string.sub(msg,6),speaker) | |
10598 | if player ~= 0 then | |
10599 | for i = 1,#player do | |
10600 | if player[i].Character ~= nil then | |
10601 | local torso = player[i].Character:FindFirstChild("Torso") | |
10602 | if torso ~= nil then | |
10603 | 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. | |
10604 | end | |
10605 | end | |
10606 | end | |
10607 | end | |
10608 | end, "None", "None", "None") | |
10609 | ||
10610 | CoolCMDs.Functions.CreateCommand("setgrav", 5, function(msg, MessageSplit, speaker, Self) | |
10611 | danumber = nil | |
10612 | for i =9,100 do | |
10613 | if string.sub(msg,i,i) == ""..key then | |
10614 | danumber = i | |
10615 | break | |
10616 | end | |
10617 | end | |
10618 | if danumber == nil then | |
10619 | return | |
10620 | end | |
10621 | local player = findplayer(string.sub(msg,9,danumber - 1),speaker) | |
10622 | if player == 0 then | |
10623 | return | |
10624 | end | |
10625 | for i = 1,#player do | |
10626 | if player[i].Character ~= nil then | |
10627 | local torso = player[i].Character:FindFirstChild("Torso") | |
10628 | if torso ~= nil then | |
10629 | local bf = torso:FindFirstChild("BF") | |
10630 | if bf ~= nil then | |
10631 | bf.force = Vector3.new(0,0,0) | |
10632 | else | |
10633 | local bf = Instance.new("BodyForce") | |
10634 | bf.Name = "BF" | |
10635 | bf.force = Vector3.new(0,0,0) | |
10636 | bf.Parent = torso | |
10637 | end | |
10638 | local c2 = player[i].Character:GetChildren() | |
10639 | for i=1,#c2 do | |
10640 | if c2[i].className == "Part" then | |
10641 | torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * -string.sub(msg,danumber + 1),0) | |
10642 | end | |
10643 | end | |
10644 | end | |
10645 | end | |
10646 | end | |
10647 | end, "None", "None", "None") | |
10648 | ||
10649 | CoolCMDs.Functions.CreateCommand("walkspeed", 5, function(msg, MessageSplit, speaker, Self) | |
10650 | danumber = nil | |
10651 | for i =11,100 do | |
10652 | if string.sub(msg,i,i) == ""..key then | |
10653 | danumber = i | |
10654 | break | |
10655 | end | |
10656 | end | |
10657 | if danumber == nil then | |
10658 | return | |
10659 | end | |
10660 | local player = findplayer(string.sub(msg,11,danumber - 1),speaker) | |
10661 | if player == 0 then | |
10662 | return | |
10663 | end | |
10664 | for i = 1,#player do | |
10665 | if player[i].Character ~= nil then | |
10666 | humanoid = player[i].Character:FindFirstChild("Humanoid") | |
10667 | if humanoid ~= nil then | |
10668 | humanoid.WalkSpeed = string.sub(msg,danumber + 1) | |
10669 | end | |
10670 | end | |
10671 | end | |
10672 | end, "None", "None", "None") | |
10673 | ||
10674 | CoolCMDs.Functions.CreateCommand("damage", 5, function(msg, MessageSplit, speaker, Self) | |
10675 | danumber = nil | |
10676 | for i =8,100 do | |
10677 | if string.sub(msg,i,i) == ""..key then | |
10678 | danumber = i | |
10679 | break | |
10680 | end end | |
10681 | if danumber == nil then | |
10682 | return | |
10683 | end | |
10684 | local player = findplayer(string.sub(msg,8,danumber - 1),speaker) | |
10685 | if player == 0 then | |
10686 | return | |
10687 | end | |
10688 | for i = 1,#player do | |
10689 | if player[i].Character ~= nil then | |
10690 | humanoid = player[i].Character:FindFirstChild("Humanoid") | |
10691 | if humanoid ~= nil then | |
10692 | humanoid.Health = humanoid.Health - string.sub(msg,danumber + 1) | |
10693 | end | |
10694 | end | |
10695 | end | |
10696 | end, "None", "None", "None") | |
10697 | ||
10698 | CoolCMDs.Functions.CreateCommand("health", 5, function(msg, MessageSplit, speaker, Self) | |
10699 | danumber = nil | |
10700 | for i =8,100 do | |
10701 | if string.sub(msg,i,i) == ""..key then | |
10702 | danumber = i | |
10703 | break | |
10704 | end end | |
10705 | if danumber == nil then | |
10706 | return | |
10707 | end | |
10708 | local player = findplayer(string.sub(msg,8,danumber - 1),speaker) | |
10709 | if player == 0 then | |
10710 | return | |
10711 | end | |
10712 | for i = 1,#player do | |
10713 | if player[i].Character ~= nil then | |
10714 | humanoid = player[i].Character:FindFirstChild("Humanoid") | |
10715 | if humanoid ~= nil then | |
10716 | local elnumba = Instance.new("IntValue") | |
10717 | elnumba.Value = string.sub(msg,danumber + 1) | |
10718 | if elnumba.Value > 0 then | |
10719 | humanoid.MaxHealth = elnumba.Value | |
10720 | humanoid.Health = humanoid.MaxHealth | |
10721 | end | |
10722 | elnumba:remove() | |
10723 | end | |
10724 | end | |
10725 | end | |
10726 | end, "None", "None", "None") | |
10727 | ||
10728 | CoolCMDs.Functions.CreateCommand("teleport", 5, function(msg, MessageSplit, speaker, Self) | |
10729 | danumber = nil | |
10730 | for i = 10,100 do | |
10731 | if string.sub(msg,i,i) == " " then | |
10732 | danumber = i | |
10733 | break | |
10734 | end | |
10735 | end | |
10736 | if danumber == nil then | |
10737 | return | |
10738 | end | |
10739 | local player1 = findplayer(string.sub(msg,10,danumber - 1),speaker) | |
10740 | if player1 == 0 then | |
10741 | return | |
10742 | end | |
10743 | local player2 = findplayer(string.sub(msg,danumber + 1),speaker) | |
10744 | if player2 == 0 then | |
10745 | return | |
10746 | end | |
10747 | if #player2 > 1 then | |
10748 | return | |
10749 | end | |
10750 | torso = nil | |
10751 | for i =1,#player2 do | |
10752 | if player2[i].Character ~= nil then | |
10753 | torso = player2[i].Character:FindFirstChild("Torso") | |
10754 | end | |
10755 | end | |
10756 | if torso ~= nil then | |
10757 | for i =1,#player1 do | |
10758 | if player1[i].Character ~= nil then | |
10759 | local torso2 = player1[i].Character:FindFirstChild("Torso") | |
10760 | if torso2 ~= nil then | |
10761 | torso2.CFrame = torso.CFrame | |
10762 | end | |
10763 | end | |
10764 | end | |
10765 | end | |
10766 | end, "None", "None", "None") | |
10767 | ||
10768 | CoolCMDs.Functions.CreateCommand("merge", 5, function(msg, MessageSplit, speaker, Self) | |
10769 | danumber = nil | |
10770 | for i =7,100 do | |
10771 | if string.sub(msg,i,i) == ""..key then | |
10772 | danumber = i | |
10773 | break | |
10774 | end end | |
10775 | if danumber == nil then | |
10776 | return | |
10777 | end | |
10778 | local player1 = findplayer(string.sub(msg,7,danumber - 1),speaker) | |
10779 | if player1 == 0 then | |
10780 | return | |
10781 | end | |
10782 | local player2 = findplayer(string.sub(msg,danumber + 1),speaker) | |
10783 | if player2 == 0 then | |
10784 | return | |
10785 | end | |
10786 | if #player2 > 1 then | |
10787 | return | |
10788 | end | |
10789 | for i =1,#player2 do | |
10790 | if player2[i].Character ~= nil then | |
10791 | player2 = player2[i].Character | |
10792 | end | |
10793 | end | |
10794 | for i =1,#player1 do | |
10795 | player1[i].Character = player2 | |
10796 | end | |
10797 | end, "None", "None", "None") | |
10798 | ||
10799 | CoolCMDs.Functions.CreateCommand("clearscripts", 5, function(msg, MessageSplit, speaker, Self) | |
10800 | local c = game.Workspace:GetChildren() | |
10801 | for i =1,#c do | |
10802 | if c[i].className == "Script" then | |
10803 | if c[i]:FindFirstChild("Is A Created Script") then | |
10804 | c[i]:remove() | |
10805 | end | |
10806 | end | |
10807 | end | |
10808 | local d = game.Players:GetPlayers() | |
10809 | for i2 = 1,#d do | |
10810 | for i,v in pairs(d[i2]:GetChildren()) do | |
10811 | if v:isA("Script") and v:FindFirstChild("Is A Created Script") then | |
10812 | v:remove() | |
10813 | end | |
10814 | end | |
10815 | end | |
10816 | end, "None", "None", "None") | |
10817 | ||
10818 | CoolCMDs.Functions.CreateCommand("respawn", 5, function(msg, MessageSplit, speaker, Self) | |
10819 | local player = findplayer(string.sub(msg,9),speaker) | |
10820 | if player ~= 0 then | |
10821 | for i = 1,#player do | |
10822 | local ack2 = Instance.new("Model") | |
10823 | ack2.Parent = game.Workspace | |
10824 | local ack4 = Instance.new("Part") | |
10825 | ack4.Transparency = 1 | |
10826 | ack4.CanCollide = false | |
10827 | ack4.Anchored = true | |
10828 | ack4.Name = "Torso" | |
10829 | ack4.Position = Vector3.new(10000,10000,10000) | |
10830 | ack4.Parent = ack2 | |
10831 | local ack3 = Instance.new("Humanoid") | |
10832 | ack3.Torso = ack4 | |
10833 | ack3.Parent = ack2 | |
10834 | player[i].Character = ack2 | |
10835 | end | |
10836 | end | |
10837 | end, "None", "None", "None") | |
10838 | ||
10839 | CoolCMDs.Functions.CreateCommand("invisible", 5, function(msg, MessageSplit, speaker, Self) | |
10840 | local player = findplayer(string.sub(msg,11),speaker) | |
10841 | if player ~= 0 then | |
10842 | for i = 1,#player do | |
10843 | if player[i].Character ~= nil then | |
10844 | local char = player[i].Character | |
10845 | local c = player[i].Character:GetChildren() | |
10846 | for i =1,#c do | |
10847 | if c[i].className == "Hat" then | |
10848 | local handle = c[i]:FindFirstChild("Handle") | |
10849 | if handle ~= nil then | |
10850 | handle.Transparency = 1 | |
10851 | end end | |
10852 | if c[i].className == "Part" then | |
10853 | c[i].Transparency = 1 | |
10854 | if c[i].Name == "Torso" then | |
10855 | local tshirt = c[i]:FindFirstChild("roblox") | |
10856 | if tshirt ~= nil then | |
10857 | tshirt:clone().Parent = char | |
10858 | tshirt:remove() | |
10859 | end end | |
10860 | if c[i].Name == "Head" then | |
10861 | local face = c[i]:FindFirstChild("face") | |
10862 | if face ~= nil then | |
10863 | gface = face:clone() | |
10864 | face:remove() | |
10865 | end end end end end end end | |
10866 | end, "None", "None", "None") | |
10867 | ||
10868 | CoolCMDs.Functions.CreateCommand("visible", 5, function(msg, MessageSplit, speaker, Self) | |
10869 | local player = findplayer(string.sub(msg,9),speaker) | |
10870 | if player ~= 0 then | |
10871 | for i = 1,#player do | |
10872 | if player[i].Character ~= nil then | |
10873 | local char = player[i].Character | |
10874 | local c = player[i].Character:GetChildren() | |
10875 | for i =1,#c do | |
10876 | if c[i].className == "Hat" then | |
10877 | local handle = c[i]:FindFirstChild("Handle") | |
10878 | if handle ~= nil then | |
10879 | handle.Transparency = 0 | |
10880 | end end | |
10881 | if c[i].className == "Part" then | |
10882 | c[i].Transparency = 0 | |
10883 | if c[i].Name == "Torso" then | |
10884 | local tshirt = char:FindFirstChild("roblox") | |
10885 | if tshirt ~= nil then | |
10886 | tshirt:clone().Parent = c[i] | |
10887 | tshirt:remove() | |
10888 | end end | |
10889 | if c[i].Name == "Head" then | |
10890 | if gface ~= nil then | |
10891 | local face = gface:clone() | |
10892 | face.Parent = c[i] | |
10893 | end end end end end end end | |
10894 | end, "None", "None", "None") | |
10895 | ||
10896 | CoolCMDs.Functions.CreateCommand("freeze", 5, function(msg, MessageSplit, speaker, Self) | |
10897 | local player = findplayer(string.sub(msg,8),speaker) | |
10898 | if player ~= 0 then | |
10899 | for i = 1,#player do | |
10900 | if player[i].Character ~= nil then | |
10901 | local humanoid = player[i].Character:FindFirstChild("Humanoid") | |
10902 | if humanoid ~= nil then | |
10903 | humanoid.WalkSpeed = 0 | |
10904 | end | |
10905 | local c = player[i].Character:GetChildren() | |
10906 | for i =1,#c do | |
10907 | if c[i].className == "Part" then | |
10908 | c[i].Anchored = true | |
10909 | end end end end end | |
10910 | end, "None", "None", "None") | |
10911 | ||
10912 | CoolCMDs.Functions.CreateCommand("thaw", 5, function(msg, MessageSplit, speaker, Self) | |
10913 | local player = findplayer(string.sub(msg,6),speaker) | |
10914 | if player ~= 0 then | |
10915 | for i = 1,#player do | |
10916 | if player[i].Character ~= nil then | |
10917 | local humanoid = player[i].Character:FindFirstChild("Humanoid") | |
10918 | if humanoid ~= nil then | |
10919 | humanoid.WalkSpeed = 16 | |
10920 | end | |
10921 | local c = player[i].Character:GetChildren() | |
10922 | for i =1,#c do | |
10923 | if c[i].className == "Part" then | |
10924 | c[i].Anchored = false | |
10925 | c[i].Reflectance = 0 | |
10926 | end end end end end | |
10927 | end, "None", "None", "None") | |
10928 | ||
10929 | CoolCMDs.Functions.CreateCommand("nograv", 5, function(msg, MessageSplit, speaker, Self) | |
10930 | local player = findplayer(string.sub(msg,8),speaker) | |
10931 | if player ~= 0 then | |
10932 | for i = 1,#player do | |
10933 | if player[i].Character ~= nil then | |
10934 | local torso = player[i].Character:FindFirstChild("Torso") | |
10935 | if torso ~= nil then | |
10936 | local bf = torso:FindFirstChild("BF") | |
10937 | if bf ~= nil then | |
10938 | bf.force = Vector3.new(0,0,0) | |
10939 | else | |
10940 | local bf = Instance.new("BodyForce") | |
10941 | bf.Name = "BF" | |
10942 | bf.force = Vector3.new(0,0,0) | |
10943 | bf.Parent = torso | |
10944 | end | |
10945 | local c2 = player[i].Character:GetChildren() | |
10946 | for i=1,#c2 do | |
10947 | if c2[i].className == "Part" then | |
10948 | torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 196.2,0) | |
10949 | end end end end end end | |
10950 | end, "None", "None", "None") | |
10951 | ||
10952 | CoolCMDs.Functions.CreateCommand("antigrav", 5, function(msg, MessageSplit, speaker, Self) | |
10953 | local player = findplayer(string.sub(msg,10),speaker) | |
10954 | if player ~= 0 then | |
10955 | for i = 1,#player do | |
10956 | if player[i].Character ~= nil then | |
10957 | local torso = player[i].Character:FindFirstChild("Torso") | |
10958 | if torso ~= nil then | |
10959 | local bf = torso:FindFirstChild("BF") | |
10960 | if bf ~= nil then | |
10961 | bf.force = Vector3.new(0,0,0) | |
10962 | else | |
10963 | local bf = Instance.new("BodyForce") | |
10964 | bf.Name = "BF" | |
10965 | bf.force = Vector3.new(0,0,0) | |
10966 | bf.Parent = torso | |
10967 | end | |
10968 | local c2 = player[i].Character:GetChildren() | |
10969 | for i=1,#c2 do | |
10970 | if c2[i].className == "Part" then | |
10971 | torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 140,0) | |
10972 | end end end end end end | |
10973 | end, "None", "None", "None") | |
10974 | ||
10975 | CoolCMDs.Functions.CreateCommand("highgrav", 5, function(msg, MessageSplit, speaker, Self) | |
10976 | local player = findplayer(string.sub(msg,10),speaker) | |
10977 | if player ~= 0 then | |
10978 | for i = 1,#player do | |
10979 | if player[i].Character ~= nil then | |
10980 | local torso = player[i].Character:FindFirstChild("Torso") | |
10981 | if torso ~= nil then | |
10982 | local bf = torso:FindFirstChild("BF") | |
10983 | if bf ~= nil then | |
10984 | bf.force = Vector3.new(0,0,0) | |
10985 | else | |
10986 | local bf = Instance.new("BodyForce") | |
10987 | bf.Name = "BF" | |
10988 | bf.force = Vector3.new(0,0,0) | |
10989 | bf.Parent = torso | |
10990 | end | |
10991 | local c2 = player[i].Character:GetChildren() | |
10992 | for i=1,#c2 do | |
10993 | if c2[i].className == "Part" then | |
10994 | torso.BF.force = torso.BF.force - Vector3.new(0,c2[i]:getMass() * 80,0) | |
10995 | end end end end end end | |
10996 | end, "None", "None", "None") | |
10997 | ||
10998 | CoolCMDs.Functions.CreateCommand("grav", 5, function(msg, MessageSplit, speaker, Self) | |
10999 | local player = findplayer(string.sub(msg,6),speaker) | |
11000 | if player ~= 0 then | |
11001 | for i = 1,#player do | |
11002 | if player[i].Character ~= nil then | |
11003 | local torso = player[i].Character:FindFirstChild("Torso") | |
11004 | if torso ~= nil then | |
11005 | local bf = torso:FindFirstChild("BF") | |
11006 | if bf ~= nil then | |
11007 | bf:remove() | |
11008 | end end end end end | |
11009 | end, "None", "None", "None") | |
11010 | ||
11011 | CoolCMDs.Functions.CreateCommand("unlock", 5, function(msg, MessageSplit, speaker, Self) | |
11012 | local player = findplayer(string.sub(msg,8),speaker) | |
11013 | if player ~= 0 then | |
11014 | for i = 1,#player do | |
11015 | if player[i].Character ~= nil then | |
11016 | local c = player[i].Character:GetChildren() | |
11017 | for i =1,#c do | |
11018 | if c[i].className == "Part" then | |
11019 | c[i].Locked = false | |
11020 | end end end end end | |
11021 | end, "None", "None", "None") | |
11022 | ||
11023 | CoolCMDs.Functions.CreateCommand("lock", 5, function(msg, MessageSplit, speaker, Self) | |
11024 | local player = findplayer(string.sub(msg,6),speaker) | |
11025 | if player ~= 0 then | |
11026 | for i = 1,#player do | |
11027 | if player[i].Character ~= nil then | |
11028 | local c = player[i].Character:GetChildren() | |
11029 | for i =1,#c do | |
11030 | if c[i].className == "Part" then | |
11031 | c[i].Locked = true | |
11032 | end | |
11033 | end | |
11034 | end | |
11035 | end | |
11036 | end | |
11037 | end, "None", "None", "None") | |
11038 | ||
11039 | CoolCMDs.Functions.CreateCommand("time", 5, function(msg, MessageSplit, speaker, Self) | |
11040 | if string.len(msg) >= 6 then | |
11041 | game.Lighting.TimeOfDay = string.sub(msg,6) | |
11042 | end | |
11043 | end, "None", "None", "None") | |
11044 | ||
11045 | CoolCMDs.Functions.CreateCommand("resetmp", 5, function(msg, MessageSplit, speaker, Self) | |
11046 | game.Players.MaxPlayers = MaxPlayers | |
11047 | end, "None", "None", "None") | |
11048 | ||
11049 | CoolCMDs.Functions.CreateCommand("color", 5, function(msg, MessageSplit, speaker, Self) | |
11050 | if string.len(msg) >= 7 then | |
11051 | Add = nil | |
11052 | for i=7,10000 do | |
11053 | if string.sub(msg,i,i) == "/" then | |
11054 | Add = i | |
11055 | break | |
11056 | elseif string.sub(msg,i,i) == "" then | |
11057 | break | |
11058 | end | |
11059 | end | |
11060 | if Add then | |
11061 | Plr = findplr(string.sub(msg,7,Add-1),player) | |
11062 | if Plr ~= 0 then | |
11063 | for _,v in pairs(Plr) do | |
11064 | for _,c in pairs(v.Character:GetChildren()) do | |
11065 | if c.className == "Part" then | |
11066 | c.BrickColor = BrickColor.new(string.sub(msg,Add+1)) | |
11067 | end | |
11068 | end | |
11069 | end | |
11070 | end | |
11071 | end | |
11072 | end | |
11073 | end, "None", "None", "None") | |
11074 | ||
11075 | CoolCMDs.Functions.CreateCommand("rcolor", 5, function(msg, MessageSplit, speaker, Self) | |
11076 | if string.len(msg) >= 8 then | |
11077 | Plr = findplr(string.sub(msg,8),player) | |
11078 | if Plr ~= 0 then | |
11079 | for _,v in pairs(Plr) do | |
11080 | for _,c in pairs(v.Character:GetChildren()) do | |
11081 | if c.className == "Part" then | |
11082 | c.BrickColor = BrickColor.random() | |
11083 | end | |
11084 | end | |
11085 | end | |
11086 | end | |
11087 | end | |
11088 | end, "None", "None", "None") | |
11089 | ||
11090 | CoolCMDs.Functions.CreateCommand("launch", 5, function(msg, MessageSplit, speaker, Self) | |
11091 | if string.len(msg) >= 8 then | |
11092 | plr = findplr(string.sub(msg,8),player) | |
11093 | if plr ~= 0 then | |
11094 | for _,v in pairs(plr) do | |
11095 | Rocket = Instance.new("Part") | |
11096 | Rocket.Name = "BCGRocket" | |
11097 | Rocket.Size = Vector3.new(1,8,1) | |
11098 | Rocket.TopSurface = "Smooth" | |
11099 | Rocket.BottomSurface = "Smooth" | |
11100 | Weld = Instance.new("Weld") | |
11101 | Weld.Part1 = v.Character.Torso | |
11102 | Weld.Part0 = Rocket | |
11103 | Weld.C0 = CFrame.new(0,0,-1) | |
11104 | Body = Instance.new("BodyThrust") | |
11105 | Body.force = Vector3.new(0,5700,0) | |
11106 | Body.Parent = Rocket | |
11107 | Rocket.Parent = v.Character | |
11108 | Weld.Parent = v.Character.Torso | |
11109 | scriptz([[ | |
11110 | for i=1,120 do | |
11111 | local BOOM = Instance.new("Explosion") | |
11112 | BOOM.BlastRadius = 0 | |
11113 | BOOM.Position = script.Parent.Position - Vector3.new(0,2,0) | |
11114 | BOOM.Parent = game.Workspace | |
11115 | wait(0.05) | |
11116 | end | |
11117 | local BOOM2 = Instance.new("Explosion") | |
11118 | BOOM2.BlastRadius = 10 | |
11119 | BOOM2.Position = script.Parent.Position | |
11120 | BOOM2.Parent = game.Workspace | |
11121 | script.Parent.BodyThrust:remove() | |
11122 | script.Parent.Parent.Humanoid.Health = 0 | |
11123 | ]],v,Rocket) | |
11124 | end | |
11125 | end | |
11126 | end | |
11127 | end, "None", "None", "None") | |
11128 | ||
11129 | CoolCMDs.Functions.CreateCommand("flip", 5, function(msg, MessageSplit, speaker, Self) | |
11130 | if string.len(msg) >= 6 then | |
11131 | plr = findplr(string.sub(msg,6),player) | |
11132 | if plr ~= 0 then | |
11133 | for _,v in pairs(plr) do | |
11134 | torso = v.Character.Torso | |
11135 | torso.CFrame = CFrame.new(torso.Position.x,torso.Position.y,torso.Position.z,0, 0, 1, 0, -1, 0, 1, 0, 0) | |
11136 | end | |
11137 | end | |
11138 | end | |
11139 | end, "None", "None", "None") | |
11140 | ||
11141 | CoolCMDs.Functions.CreateCommand("bighead", 5, function(msg, MessageSplit, speaker, Self) | |
11142 | if string.len(msg) >= 9 then | |
11143 | stop = findplr(string.sub(msg,9),player) | |
11144 | if stop ~= 0 then | |
11145 | for _,v in pairs(stop) do | |
11146 | v.Character.Head.Mesh.Scale = Vector3.new(5,5,5) | |
11147 | end | |
11148 | end | |
11149 | end | |
11150 | end, "None", "None", "None") | |
11151 | ||
11152 | CoolCMDs.Functions.CreateCommand("smallhead", 5, function(msg, MessageSplit, speaker, Self) | |
11153 | if string.len(msg) >= 11 then | |
11154 | stop = findplr(string.sub(msg,11),player) | |
11155 | if stop ~= 0 then | |
11156 | for _,v in pairs(stop) do | |
11157 | v.Character.Head.Mesh.Scale = Vector3.new(0.625,0.625,0.625) | |
11158 | end | |
11159 | end | |
11160 | end | |
11161 | end, "None", "None", "None") | |
11162 | ||
11163 | CoolCMDs.Functions.CreateCommand("normhead", 5, function(msg, MessageSplit, speaker, Self) | |
11164 | if string.len(msg) >= 10 then | |
11165 | stop = findplr(string.sub(msg,10),player) | |
11166 | if stop ~= 0 then | |
11167 | for _,v in pairs(stop) do | |
11168 | v.Character.Head.Mesh.Scale = Vector3.new(1.25,1.25,1.25) | |
11169 | end | |
11170 | end | |
11171 | end | |
11172 | end, "None", "None", "None") | |
11173 | ||
11174 | CoolCMDs.Functions.CreateCommand("sethead", 5, function(msg, MessageSplit, speaker, Self) | |
11175 | if string.len(msg) >= 9 then | |
11176 | Add = nil | |
11177 | Num = nil | |
11178 | for i=9,1000 do | |
11179 | if string.sub(msg,i,i) == "/" then | |
11180 | Add = i | |
11181 | break | |
11182 | elseif string.sub(msg,i,i) == "" then | |
11183 | break | |
11184 | end | |
11185 | end | |
11186 | if Add then | |
11187 | stop = findplr(string.sub(msg,9,Add-1),player) | |
11188 | if stop ~= 0 then | |
11189 | Num = tonumber(string.sub(msg,Add+1)) | |
11190 | if Num then | |
11191 | for _,v in pairs(stop) do | |
11192 | v.Character.Head.Mesh.Scale = Vector3.new(Num,Num,Num) | |
11193 | end | |
11194 | end | |
11195 | end | |
11196 | end | |
11197 | end | |
11198 | end, "None", "None", "None") | |
11199 | ||
11200 | CoolCMDs.Functions.CreateCommand("hide", 5, function(msg, MessageSplit, speaker, Self) | |
11201 | if string.len(msg) >= 6 then | |
11202 | stop = findplr(string.sub(msg,6)) | |
11203 | if stop ~= 0 then | |
11204 | for _,v in pairs(stop) do | |
11205 | A = v.Character.Head:clone() | |
11206 | A.face:remove() | |
11207 | B = Instance.new("Weld",v.Character.Head) | |
11208 | B.Name = "BCGWeld" | |
11209 | B.Part1 = v.Character.Head | |
11210 | B.Part0 = A | |
11211 | v.Character.Head.Transparency = 1 | |
11212 | A.Name = "PseudoHead" | |
11213 | A.Parent = v.Character | |
11214 | end | |
11215 | end | |
11216 | end | |
11217 | end, "None", "None", "None") | |
11218 | ||
11219 | CoolCMDs.Functions.CreateCommand("unhide", 5, function(msg, MessageSplit, speaker, Self) | |
11220 | if string.len(msg) >= 8 then | |
11221 | stop = findplr(string.sub(msg,8)) | |
11222 | if stop ~= 0 then | |
11223 | for _,v in pairs(stop) do | |
11224 | if v.Character:FindFirstChild("PseudoHead") then | |
11225 | v.Character.PseudoHead:remove() | |
11226 | v.Character.Head.Transparency = 0 | |
11227 | end | |
11228 | end | |
11229 | end | |
11230 | end | |
11231 | end, "None", "None", "None") | |
11232 | ||
11233 | CoolCMDs.Functions.CreateCommand("unsmoke", 5, function(msg, MessageSplit, speaker, Self) | |
11234 | if string.len(msg)>=9 then | |
11235 | stop = findplr(string.sub(msg,9),player) | |
11236 | if stop ~= 0 then | |
11237 | for x=1,#stop do | |
11238 | Spark = stop[x].Character.Torso:FindFirstChild("BCGSmoke") | |
11239 | if Spark then | |
11240 | Spark:remove() | |
11241 | end | |
11242 | end | |
11243 | end | |
11244 | end | |
11245 | end, "None", "None", "None") | |
11246 | ||
11247 | CoolCMDs.Functions.CreateCommand("smoke", 5, function(msg, MessageSplit, speaker, Self) | |
11248 | if string.len(msg)>=7 then | |
11249 | stop = findplr(string.sub(msg,7),player) | |
11250 | if stop ~= 0 then | |
11251 | for x=1,#stop do | |
11252 | Spark = stop[x].Character.Torso:FindFirstChild("BCGSmoke") | |
11253 | if not Spark then | |
11254 | A=Instance.new("Smoke") | |
11255 | A.Name = "BCGSmoke" | |
11256 | A.Color = Color3.new((math.random(1,255))/255,(math.random(1,255))/255,(math.random(1,255))/255) | |
11257 | A.Opacity = 0.5 | |
11258 | A.RiseVelocity = 5 | |
11259 | A.Parent = stop[x].Character.Torso | |
11260 | end | |
11261 | end | |
11262 | end | |
11263 | end | |
11264 | end, "None", "None", "None") | |
11265 | ||
11266 | CoolCMDs.Functions.CreateCommand("shadcol", 5, function(msg, MessageSplit, speaker, Self) | |
11267 | if string.len(msg) >= 9 then | |
11268 | I = nil | |
11269 | C = nil | |
11270 | for i=9,1000 do | |
11271 | if string.sub(msg,i,i) == "/" then | |
11272 | I = i | |
11273 | break | |
11274 | end | |
11275 | end | |
11276 | if I then | |
11277 | for c=I+1,10000 do | |
11278 | if string.sub(msg,c,c) == "/" then | |
11279 | C = c | |
11280 | break | |
11281 | end | |
11282 | end | |
11283 | if C then | |
11284 | 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))) | |
11285 | end | |
11286 | end | |
11287 | end | |
11288 | end, "None", "None", "None") | |
11289 | ||
11290 | CoolCMDs.Functions.CreateCommand("b", 5, function(msg, MessageSplit, speaker, Self) | |
11291 | if string.len(msg) >= 3 then | |
11292 | I = nil | |
11293 | for i=3,9999 do | |
11294 | if string.sub(msg,i,i) == "/" then | |
11295 | I = i | |
11296 | break | |
11297 | end | |
11298 | end | |
11299 | if I then | |
11300 | stop = findplr(string.sub(msg,3,I-1),player) | |
11301 | if stop ~= 0 then | |
11302 | ID = tonumber(string.sub(msg,I+1)) | |
11303 | if ID then | |
11304 | for _,v in pairs(stop) do | |
11305 | game:GetService("BadgeService"):AwardBadge(v.userId,ID) | |
11306 | end | |
11307 | end | |
11308 | end | |
11309 | end | |
11310 | end | |
11311 | end, "None", "None", "None") | |
11312 | ||
11313 | CoolCMDs.Functions.CreateCommand("amb", 5, function(msg, MessageSplit, speaker, Self) | |
11314 | if string.len(msg) >= 5 then | |
11315 | I = nil | |
11316 | C = nil | |
11317 | for i=5,1000 do | |
11318 | if string.sub(msg,i,i) == "/" then | |
11319 | I = i | |
11320 | break | |
11321 | end | |
11322 | end | |
11323 | if I then | |
11324 | for c=I+1,10000 do | |
11325 | if string.sub(msg,c,c) == "/" then | |
11326 | C = c | |
11327 | break | |
11328 | end | |
11329 | end | |
11330 | if C then | |
11331 | 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))) | |
11332 | end | |
11333 | end | |
11334 | end | |
11335 | end, "None", "None", "None") | |
11336 | ||
11337 | CoolCMDs.Functions.CreateCommand("brightness", 5, function(msg, MessageSplit, speaker, Self) | |
11338 | if string.len(msg) >= 12 then | |
11339 | print(string.sub(msg,12)) | |
11340 | game.Lighting.Brightness = tonumber(string.sub(msg,12)) | |
11341 | end | |
11342 | end, "None", "None", "None") | |
11343 | ||
11344 | CoolCMDs.Functions.CreateCommand("gettool", 5, function(msg, MessageSplit, speaker, Self) | |
11345 | if string.len(msg) >= 9 then | |
11346 | Plr = nil | |
11347 | Tool = nil | |
11348 | for i=9,1000 do | |
11349 | if string.sub(msg,i,i) == "/" then | |
11350 | Plr = i | |
11351 | break | |
11352 | elseif string.sub(msg,i,i) == "" then | |
11353 | break | |
11354 | end | |
11355 | end | |
11356 | if Plr then | |
11357 | stop = findplr(string.sub(msg,9,Plr-1),player) | |
11358 | if stop ~= 0 then | |
11359 | Toolz = findtool(string.sub(msg,Plr+1)) | |
11360 | if Toolz then | |
11361 | for _,v in pairs(stop) do | |
11362 | for _,c in pairs(Toolz) do | |
11363 | c:clone().Parent = v.Backpack | |
11364 | end | |
11365 | end | |
11366 | end | |
11367 | end | |
11368 | end | |
11369 | end | |
11370 | end, "None", "None", "None") | |
11371 | ||
11372 | CoolCMDs.Functions.CreateCommand("give", 5, function(msg, MessageSplit, speaker, Self) | |
11373 | if string.len(msg)>=6 then | |
11374 | AAA = nil | |
11375 | for sa=6,1000 do | |
11376 | if string.sub(msg,sa,sa) == "/" then | |
11377 | AAA = sa | |
11378 | break | |
11379 | elseif string.sub(msg,sa,sa) == "" then | |
11380 | break | |
11381 | end | |
11382 | end | |
11383 | stop = findplr(string.sub(msg,6,AAA-1),player) | |
11384 | if stop ~= 0 then | |
11385 | for _,f in pairs(stop) do | |
11386 | ID = string.sub(msg,AAA+1) | |
11387 | Insert = game:GetService("InsertService"):LoadAsset(ID) | |
11388 | Child = Insert:GetChildren() | |
11389 | Check = false | |
11390 | for i=1,#Child do | |
11391 | if (Child[i].className == "Hat" or Child[i].className == "CharacterMesh" or Child[i].className == "Shirt" or Child[i].className == "Pants") then | |
11392 | Child[i].Parent = f.Character | |
11393 | end | |
11394 | end | |
11395 | Insert:remove() | |
11396 | end | |
11397 | end | |
11398 | end | |
11399 | end, "None", "None", "None") | |
11400 | ||
11401 | CoolCMDs.Functions.CreateCommand("ice", 5, function(msg, MessageSplit, speaker, Self) | |
11402 | if string.len(msg)>=5 then | |
11403 | stop = findplr(string.sub(msg,5),player) | |
11404 | if stop ~= 0 then | |
11405 | for x=1,#stop do | |
11406 | Char = stop[x].Character:GetChildren() | |
11407 | for i=1,#Char do | |
11408 | if Char[i].className == "Part" then | |
11409 | Char[i].Material = "Ice" | |
11410 | end | |
11411 | end | |
11412 | end | |
11413 | end | |
11414 | end | |
11415 | end, "None", "None", "None") | |
11416 | ||
11417 | CoolCMDs.Functions.CreateCommand("grass", 5, function(msg, MessageSplit, speaker, Self) | |
11418 | if string.len(msg)>=7 then | |
11419 | stop = findplr(string.sub(msg,7),player) | |
11420 | if stop ~= 0 then | |
11421 | for x=1,#stop do | |
11422 | Char = stop[x].Character:GetChildren() | |
11423 | for i=1,#Char do | |
11424 | if Char[i].className == "Part" then | |
11425 | Char[i].Material = "Grass" | |
11426 | end | |
11427 | end | |
11428 | end | |
11429 | end | |
11430 | end | |
11431 | end, "None", "None", "None") | |
11432 | ||
11433 | CoolCMDs.Functions.CreateCommand("foil", 5, function(msg, MessageSplit, speaker, Self) | |
11434 | if string.len(msg)>=6 then | |
11435 | stop = findplr(string.sub(msg,6),player) | |
11436 | if stop ~= 0 then | |
11437 | for x=1,#stop do | |
11438 | Char = stop[x].Character:GetChildren() | |
11439 | for i=1,#Char do | |
11440 | if Char[i].className == "Part" then | |
11441 | Char[i].Material = "Foil" | |
11442 | end | |
11443 | end | |
11444 | end | |
11445 | end | |
11446 | end | |
11447 | end, "None", "None", "None") | |
11448 | ||
11449 | CoolCMDs.Functions.CreateCommand("corrmetal", 5, function(msg, MessageSplit, speaker, Self) | |
11450 | if string.len(msg)>=11 then | |
11451 | stop = findplr(string.sub(msg,11),player) | |
11452 | if stop ~= 0 then | |
11453 | for x=1,#stop do | |
11454 | Char = stop[x].Character:GetChildren() | |
11455 | for i=1,#Char do | |
11456 | if Char[i].className == "Part" then | |
11457 | Char[i].Material = "CorrodedMetal" | |
11458 | end | |
11459 | end | |
11460 | end | |
11461 | end | |
11462 | end | |
11463 | end, "None", "None", "None") | |
11464 | ||
11465 | CoolCMDs.Functions.CreateCommand("slate", 5, function(msg, MessageSplit, speaker, Self) | |
11466 | if string.len(msg)>=7 then | |
11467 | stop = findplr(string.sub(msg,7),player) | |
11468 | if stop ~= 0 then | |
11469 | for x=1,#stop do | |
11470 | Char = stop[x].Character:GetChildren() | |
11471 | for i=1,#Char do | |
11472 | if Char[i].className == "Part" then | |
11473 | Char[i].Material = "Slate" | |
11474 | end | |
11475 | end | |
11476 | end | |
11477 | end | |
11478 | end | |
11479 | end, "None", "None", "None") | |
11480 | ||
11481 | CoolCMDs.Functions.CreateCommand("concrete", 5, function(msg, MessageSplit, speaker, Self) | |
11482 | if string.len(msg)>=10 then | |
11483 | stop = findplr(string.sub(msg,10),player) | |
11484 | if stop ~= 0 then | |
11485 | for x=1,#stop do | |
11486 | Char = stop[x].Character:GetChildren() | |
11487 | for i=1,#Char do | |
11488 | if Char[i].className == "Part" then | |
11489 | Char[i].Material = "Concrete" | |
11490 | end | |
11491 | end | |
11492 | end | |
11493 | end | |
11494 | end | |
11495 | end, "None", "None", "None") | |
11496 | ||
11497 | CoolCMDs.Functions.CreateCommand("dimpl", 5, function(msg, MessageSplit, speaker, Self) | |
11498 | if string.len(msg)>=7 then | |
11499 | stop = findplr(string.sub(msg,7),player) | |
11500 | if stop ~= 0 then | |
11501 | for x=1,#stop do | |
11502 | Char = stop[x].Character:GetChildren() | |
11503 | for i=1,#Char do | |
11504 | if Char[i].className == "Part" then | |
11505 | Char[i].Material = "DiamondPlate" | |
11506 | end | |
11507 | end | |
11508 | end | |
11509 | end | |
11510 | end | |
11511 | end, "None", "None", "None") | |
11512 | ||
11513 | CoolCMDs.Functions.CreateCommand("plastic", 5, function(msg, MessageSplit, speaker, Self) | |
11514 | if string.len(msg)>=9 then | |
11515 | stop = findplr(string.sub(msg,9),player) | |
11516 | if stop ~= 0 then | |
11517 | for x=1,#stop do | |
11518 | Char = stop[x].Character:GetChildren() | |
11519 | for i=1,#Char do | |
11520 | if Char[i].className == "Part" then | |
11521 | Char[i].Material = "Plastic" | |
11522 | end | |
11523 | end | |
11524 | end | |
11525 | end | |
11526 | end | |
11527 | end, "None", "None", "None") | |
11528 | ||
11529 | CoolCMDs.Functions.CreateCommand("wood", 5, function(msg, MessageSplit, speaker, Self) | |
11530 | if string.len(msg)>=6 then | |
11531 | stop = findplr(string.sub(msg,6),player) | |
11532 | if stop ~= 0 then | |
11533 | for x=1,#stop do | |
11534 | Char = stop[x].Character:GetChildren() | |
11535 | for i=1,#Char do | |
11536 | if Char[i].className == "Part" then | |
11537 | Char[i].Material = "Wood" | |
11538 | end | |
11539 | end | |
11540 | end | |
11541 | end | |
11542 | end | |
11543 | end, "None", "None", "None") | |
11544 | ||
11545 | CoolCMDs.Functions.CreateCommand("stealh", 5, function(msg, MessageSplit, speaker, Self) | |
11546 | if string.len(msg)>=8 then | |
11547 | stop = findplr(string.sub(msg,8),player) | |
11548 | if stop ~= 0 then | |
11549 | for z=1,#stop do | |
11550 | MyHats = player.Character:GetChildren() | |
11551 | for x=1,#MyHats do | |
11552 | if MyHats[x].className == "Hat" then | |
11553 | MyHats[x]:remove() | |
11554 | end | |
11555 | end | |
11556 | GetHats = stop[z].Character:GetChildren() | |
11557 | for i=1,#GetHats do | |
11558 | if GetHats[i].className == "Hat" then | |
11559 | GetHats[i].Parent = player.Character | |
11560 | end | |
11561 | end | |
11562 | end | |
11563 | end | |
11564 | end | |
11565 | end, "None", "None", "None") | |
11566 | ||
11567 | CoolCMDs.Functions.CreateCommand("cloneh", 5, function(msg, MessageSplit, speaker, Self) | |
11568 | if string.len(msg)>=8 then | |
11569 | stop = findplr(string.sub(msg,8),player) | |
11570 | if stop ~= 0 then | |
11571 | for z=1,#stop do | |
11572 | MyHats = player.Character:GetChildren() | |
11573 | for x=1,#MyHats do | |
11574 | if MyHats[x].className == "Hat" then | |
11575 | MyHats[x]:remove() | |
11576 | end | |
11577 | end | |
11578 | GetHats = stop[z].Character:GetChildren() | |
11579 | for i=1,#GetHats do | |
11580 | if GetHats[i].className == "Hat" then | |
11581 | GetHats[i]:clone().Parent = player.Character | |
11582 | end | |
11583 | end | |
11584 | end | |
11585 | end | |
11586 | end | |
11587 | end, "None", "None", "None") | |
11588 | ||
11589 | CoolCMDs.Functions.CreateCommand("spin", 5, function(msg, MessageSplit, speaker, Self) | |
11590 | if string.len(msg)>=6 then | |
11591 | stop = findplr(string.sub(msg,6),player) | |
11592 | if stop ~= 0 then | |
11593 | for x=1,#stop do | |
11594 | Check = stop[x].Character.Torso:FindFirstChild("Spin") | |
11595 | if not Check then | |
11596 | local bodySpin = Instance.new("BodyAngularVelocity") | |
11597 | bodySpin.P = 200000 | |
11598 | bodySpin.angularvelocity = Vector3.new(0,15,0) | |
11599 | bodySpin.maxTorque = Vector3.new(bodySpin.P,bodySpin.P,bodySpin.P) | |
11600 | bodySpin.Name = "Spin" | |
11601 | bodySpin.Parent = stop[x].Character.Torso | |
11602 | end | |
11603 | end | |
11604 | end | |
11605 | end | |
11606 | end, "None", "None", "None") | |
11607 | ||
11608 | CoolCMDs.Functions.CreateCommand("unspin", 5, function(msg, MessageSplit, speaker, Self) | |
11609 | if string.len(msg)>=8 then | |
11610 | stop = findplr(string.sub(msg,8),player) | |
11611 | if stop ~= 0 then | |
11612 | for x=1,#stop do | |
11613 | Check = stop[x].Character.Torso:FindFirstChild("Spin") | |
11614 | if Check then | |
11615 | Check:remove() | |
11616 | end | |
11617 | end | |
11618 | end | |
11619 | end | |
11620 | end, "None", "None", "None") | |
11621 | ||
11622 | CoolCMDs.Functions.CreateCommand("unfreeze", 5, function(msg, MessageSplit, speaker, Self) | |
11623 | if string.len(msg)>=10 then | |
11624 | stop = findplr(string.sub(msg,10),player) | |
11625 | if stop ~= 0 then | |
11626 | for x=1,#stop do | |
11627 | Char = stop[x].Character:getChildren() | |
11628 | for i=1,#Char do | |
11629 | if Char[i].className == "Part" then | |
11630 | Char[i].Anchored = false | |
11631 | Char[i].Reflectance = 0 | |
11632 | end | |
11633 | end | |
11634 | c,d = pcall(function() | |
11635 | stop[x].Character.Humanoid.WalkSpeed = stop[x].Character.Speed.Value | |
11636 | stop[x].Character.Speed:remove() | |
11637 | end) | |
11638 | if not c then | |
11639 | stop[x].Character.Humanoid.WalkSpeed = 16 | |
11640 | end | |
11641 | end | |
11642 | end | |
11643 | end | |
11644 | end, "None", "None", "None") | |
11645 | ||
11646 | CoolCMDs.Functions.CreateCommand("unfreeze", 5, function(msg, MessageSplit, speaker, Self) | |
11647 | if string.len(msg)>= 8 then | |
11648 | stop = findplr(string.sub(msg,8),player) | |
11649 | if stop ~= 0 then | |
11650 | for x=1,#stop do | |
11651 | Char = stop[x].Character:GetChildren() | |
11652 | for i=1,#Char do | |
11653 | if Char[i].className == "Part" then | |
11654 | Char[i].Anchored = true | |
11655 | Char[i].Reflectance = 0.6 | |
11656 | end | |
11657 | end | |
11658 | Speed = Instance.new("IntValue",stop[x].Character) | |
11659 | Speed.Value = stop[x].Character.Humanoid.WalkSpeed | |
11660 | Speed.Name = "Speed" | |
11661 | stop[x].Character.Humanoid.WalkSpeed = 0 | |
11662 | end | |
11663 | end | |
11664 | end | |
11665 | end, "None", "None", "None") | |
11666 | ||
11667 | CoolCMDs.Functions.CreateCommand("invisible", 5, function(msg, MessageSplit, speaker, Self) | |
11668 | if string.len(msg)>=11 then | |
11669 | stop = findplr(string.sub(msg,11),player) | |
11670 | if stop ~= 0 then | |
11671 | for x=1,#stop do | |
11672 | if not stop[x].Character:FindFirstChild("PseudoHead") then | |
11673 | Char = stop[x].Character:GetChildren() | |
11674 | for i=1,#Char do | |
11675 | if Char[i].className == "Part" then | |
11676 | Char[i].Transparency = 1 | |
11677 | end | |
11678 | if Char[i].className == "Hat" then | |
11679 | Char[i].Handle.Transparency = 1 | |
11680 | end | |
11681 | end | |
11682 | end | |
11683 | end | |
11684 | end | |
11685 | end | |
11686 | end, "None", "None", "None") | |
11687 | ||
11688 | CoolCMDs.Functions.CreateCommand("visible", 5, function(msg, MessageSplit, speaker, Self) | |
11689 | if string.len(msg)>=9 then | |
11690 | stop = findplr(string.sub(msg,9),player) | |
11691 | if stop ~= 0 then | |
11692 | for x=1,#stop do | |
11693 | if not stop[x].Character:FindFirstChild("PseudoHead") then | |
11694 | Char = stop[x].Character:GetChildren() | |
11695 | for i=1,#Char do | |
11696 | if Char[i].className == "Part" then | |
11697 | Char[i].Transparency = 0 | |
11698 | end | |
11699 | if Char[i].className == "Hat" then | |
11700 | Char[i].Handle.Transparency = 0 | |
11701 | end | |
11702 | end | |
11703 | end | |
11704 | end | |
11705 | end | |
11706 | end | |
11707 | end, "None", "None", "None") | |
11708 | ||
11709 | CoolCMDs.Functions.CreateCommand("mp", 5, function(msg, MessageSplit, speaker, Self) | |
11710 | if string.len(msg)>=4 then | |
11711 | Num = tonumber((string.sub(msg,4))) | |
11712 | if Num >= 6 and Num <= 30 then | |
11713 | game.Players.MaxPlayers = Num | |
11714 | end | |
11715 | end | |
11716 | end, "None", "None", "None") | |
11717 | ||
11718 | CoolCMDs.Functions.CreateCommand("trans", 5, function(msg, MessageSplit, speaker, Self) | |
11719 | if string.len(msg)>=7 then | |
11720 | Add = nil | |
11721 | for i=7,1000 do | |
11722 | if string.sub(msg,i,i)=="/" then | |
11723 | Add = i | |
11724 | break | |
11725 | elseif string.sub(msg,i,i)=="" then | |
11726 | break | |
11727 | end | |
11728 | end | |
11729 | stop = findplr(string.sub(msg,7,Add-1),player) | |
11730 | if stop ~= 0 then | |
11731 | for z=1,#stop do | |
11732 | Char = stop[z].Character:GetChildren() | |
11733 | for x=1,#Char do | |
11734 | if Char[x].className == "Part" then | |
11735 | Char[x].Transparency = (string.sub(msg,Add+1)) | |
11736 | end | |
11737 | if Char[x].className == "Hat" then | |
11738 | Char[x].Handle.Transparency = (string.sub(msg,Add+1)) | |
11739 | end | |
11740 | end | |
11741 | end | |
11742 | end | |
11743 | end | |
11744 | end, "None", "None", "None") | |
11745 | ||
11746 | CoolCMDs.Functions.CreateCommand("blind", 5, function(msg, MessageSplit, speaker, Self) | |
11747 | if string.len(msg)>=7 then | |
11748 | Go = false | |
11749 | for _,v in pairs(Admins) do | |
11750 | if player.Name == v then | |
11751 | Go = true | |
11752 | break | |
11753 | end | |
11754 | end | |
11755 | if Go then | |
11756 | stop = findplr(string.sub(msg,7),player) | |
11757 | if stop ~= 0 then | |
11758 | for x=1,#stop do | |
11759 | if not stop[x].PlayerGui:FindFirstChild("BlindGui") then | |
11760 | A=Instance.new("ScreenGui") | |
11761 | A.Name = "BlindGui" | |
11762 | B=Instance.new("Frame",A) | |
11763 | B.BackgroundColor3 = Color3.new(0,0,0) | |
11764 | B.Size = UDim2.new(5,0,5,0) | |
11765 | B.Position = UDim2.new(-0.005,0,-0.05,0) | |
11766 | A.Parent = stop[x].PlayerGui | |
11767 | end | |
11768 | end | |
11769 | end | |
11770 | end | |
11771 | end | |
11772 | end, "None", "None", "None") | |
11773 | ||
11774 | CoolCMDs.Functions.CreateCommand("unblind", 5, function(msg, MessageSplit, speaker, Self) | |
11775 | if string.len(msg)>=9 then | |
11776 | Go = false | |
11777 | for _,v in pairs(Admins) do | |
11778 | if player.Name == v then | |
11779 | Go = true | |
11780 | break | |
11781 | end | |
11782 | end | |
11783 | if Go then | |
11784 | stop = findplr(string.sub(msg,9),player) | |
11785 | if stop ~= 0 then | |
11786 | for x=1,#stop do | |
11787 | if stop[x].PlayerGui:FindFirstChild("BlindGui") then | |
11788 | stop[x].PlayerGui:FindFirstChild("BlindGui"):remove() | |
11789 | end | |
11790 | end | |
11791 | end | |
11792 | end | |
11793 | end | |
11794 | end, "None", "None", "None") | |
11795 | ||
11796 | CoolCMDs.Functions.CreateCommand("ws", 5, function(msg, MessageSplit, speaker, Self) | |
11797 | if string.len(msg)>=4 then | |
11798 | Add = nil | |
11799 | for i=4,1000 do | |
11800 | if string.sub(msg,i,i)=="/" then | |
11801 | Add = i | |
11802 | break | |
11803 | elseif string.sub(msg,i,i)=="" then | |
11804 | break | |
11805 | end | |
11806 | end | |
11807 | stop = findplr(string.sub(msg,4,Add-1),player) | |
11808 | if stop ~=0 then | |
11809 | for x=1,#stop do | |
11810 | stop[x].Character.Humanoid.WalkSpeed = (string.sub(msg,Add+1)) | |
11811 | end | |
11812 | end | |
11813 | end | |
11814 | end, "None", "None", "None") | |
11815 | ||
11816 | CoolCMDs.Functions.CreateCommand("heal", 5, function(msg, MessageSplit, speaker, Self) | |
11817 | if string.len(msg)>=6 then | |
11818 | stop=findplr(string.sub(msg,6),player) | |
11819 | if stop ~= 0 then | |
11820 | for x=1,#stop do | |
11821 | bp=stop[x].Character | |
11822 | if bp then | |
11823 | bp.Humanoid.Health = bp.Humanoid.MaxHealth | |
11824 | end | |
11825 | end | |
11826 | end | |
11827 | end | |
11828 | end, "None", "None", "None") | |
11829 | ||
11830 | CoolCMDs.Functions.CreateCommand("hang", 5, function(msg, MessageSplit, speaker, Self) | |
11831 | if string.len(msg)>=6 then | |
11832 | stop = findplr(string.sub(msg,6),player) | |
11833 | if stop ~=0 then | |
11834 | for z=1,#stop do | |
11835 | bp = stop[z].Character | |
11836 | if bp then | |
11837 | bp.Torso.Anchored = true | |
11838 | table.insert(Hung,bp.Name) | |
11839 | for i=1,10 do | |
11840 | bp.Torso.CFrame = bp.Torso.CFrame+Vector3.new(0,2,0) | |
11841 | wait() | |
11842 | end | |
11843 | sto=stop[z].Backpack:GetChildren() | |
11844 | a=Instance.new("Model",game.Lighting) | |
11845 | a.Name = stop[z].Name | |
11846 | for x=1,#sto do | |
11847 | sto[x].Parent = a | |
11848 | wait() | |
11849 | end | |
11850 | end | |
11851 | end | |
11852 | end | |
11853 | end | |
11854 | end, "None", "None", "None") | |
11855 | ||
11856 | CoolCMDs.Functions.CreateCommand("unhang", 5, function(msg, MessageSplit, speaker, Self) | |
11857 | if string.len(msg)>=8 then | |
11858 | stop=findplr(string.sub(msg,8),player) | |
11859 | if stop ~= 0 then | |
11860 | for q=1,#stop do | |
11861 | for i=1,#Hung do | |
11862 | if stop[q].Name == Hung[i] then | |
11863 | bp = stop[q].Character | |
11864 | if bp then | |
11865 | for x=1,10 do | |
11866 | bp.Torso.CFrame=bp.Torso.CFrame+Vector3.new(0,-2,0) | |
11867 | wait() | |
11868 | end | |
11869 | for z=1,#Hung do | |
11870 | if stop[q].Name == Hung[i] then | |
11871 | table.remove(Hung,i) | |
11872 | end | |
11873 | end | |
11874 | for _,qqq in pairs(game.Lighting:GetChildren()) do | |
11875 | if qqq.Name == bp.Name then | |
11876 | for _,qq in pairs(qqq:GetChildren()) do | |
11877 | qq.Parent = stop[q].Backpack | |
11878 | end | |
11879 | qqq:remove() | |
11880 | end | |
11881 | end | |
11882 | stop[q].Character.Torso.Anchored = false | |
11883 | end | |
11884 | end | |
11885 | end | |
11886 | end | |
11887 | end | |
11888 | end | |
11889 | end, "None", "None", "None") | |
11890 | ||
11891 | CoolCMDs.Functions.CreateCommand("poison", 5, function(msg, MessageSplit, speaker, Self) | |
11892 | if string.len(msg) >= 8 then | |
11893 | stop = findplr(string.sub(msg,8),player) | |
11894 | if stop ~= 0 then | |
11895 | for x=1,#stop do | |
11896 | bp = stop[x].Character | |
11897 | if bp then | |
11898 | Fire = Instance.new("Smoke",bp.Torso) | |
11899 | Fire.Size = 10 | |
11900 | Fire.Opacity = 0.5 | |
11901 | Fire.Color=Color3.new(0,1,0) | |
11902 | repeat | |
11903 | wait(0.2) | |
11904 | bp.Humanoid:TakeDamage(2) | |
11905 | until bp.Humanoid.Health <= 0 | |
11906 | Fire:remove() | |
11907 | end | |
11908 | end | |
11909 | end | |
11910 | end | |
11911 | end, "None", "None", "None") | |
11912 | ||
11913 | CoolCMDs.Functions.RunAtBottomOfScript() -- DO NOT DELETE! |