SHOW:
|
|
- or go back to the newest paste.
1 | - | print'hi' |
1 | + | --[[ |
2 | --------------------------------------------------------------- | |
3 | | _____ _ _ _____ _ | | |
4 | | | __ \ (_) | | | __ \ | | | | |
5 | | | |__) | __ ___ _ ___ ___| |_ | | | |_ _ ___| | __ | | |
6 | | | ___/ '__/ _ \| |/ _ \/ __| __| | | | | | | |/ __| |/ / | | |
7 | | | | | | | (_) | | __/ (__| |_ | |__| | |_| | (__| < | | |
8 | | |_| |_| \___/| |\___|\___|\__| |_____/ \__,_|\___|_|\_\ | | |
9 | | _/ | | | |
10 | | |__/ | | |
11 | --------------------------------------------------------------- | |
12 | --]] | |
13 | ||
14 | -- SethMilkman -- | |
15 | ||
16 | --| Thanks ROBLOX, for removing GetObjects |-- | |
17 | ||
18 | local Player = game.Players.LocalPlayer | |
19 | local Mouse = Player:GetMouse() | |
20 | local char = Player.Character | |
21 | ||
22 | local gPlayers = game:GetService("Players") | |
23 | local admin = gPlayers.LocalPlayer.Name | |
24 | ||
25 | local services={} | |
26 | local cmds={} | |
27 | local std={} | |
28 | ||
29 | local Version = '3.0.2' | |
30 | ||
31 | wait(0.1) | |
32 | ||
33 | services.players=gPlayers | |
34 | services.lighting=game:GetService('Lighting') | |
35 | services.workspace=game:GetService('Workspace') | |
36 | services.events = {} | |
37 | local user = gPlayers.LocalPlayer | |
38 | ||
39 | local cmdprefix='' | |
40 | local scriptprefix='\\' | |
41 | local split=" " | |
42 | ||
43 | --| Ban Data |-- | |
44 | ||
45 | local BanFolder = Instance.new("Fire", game.ContextActionService) | |
46 | BanFolder.Name = "BanList" | |
47 | BanFolder.RobloxLocked = true | |
48 | _G.Banned = function(Ban) | |
49 | local SValue = Instance.new("StringValue", BanFolder) | |
50 | SValue.Value = Ban | |
51 | SValue.RobloxLocked = true | |
52 | end | |
53 | ||
54 | BannedPlayers = { | |
55 | 'KrystalTeam', -- For banning me. | |
56 | 'LordCrazy13', -- You're fucking annoying. | |
57 | 'CRICKET69' | |
58 | } | |
59 | ||
60 | --| Tables |-- | |
61 | ||
62 | --| Admins |-- | |
63 | ||
64 | local AdminFolder = Instance.new("Folder", game.ContextActionService) | |
65 | AdminFolder.Name = "AdminList" | |
66 | AdminFolder.RobloxLocked = true | |
67 | _G.Admin = function(Admin) | |
68 | local SValue = Instance.new("StringValue", AdminFolder) | |
69 | SValue.Value = Admin | |
70 | SValue.RobloxLocked = true | |
71 | end | |
72 | ||
73 | -- These are my friends that don't have Seven, remove then off the list if you'd like. | |
74 | local admins = { | |
75 | 'guestpro1', | |
76 | 'THEGAMINGTRTLE', | |
77 | 'JackLikesBugs', | |
78 | 'JoshuaAsencio' | |
79 | } | |
80 | ||
81 | --| CMD List |-- | |
82 | ||
83 | CMDs = { | |
84 | '1. ff player', | |
85 | '2. noff player', | |
86 | '3. fire player', | |
87 | '4. nofire player', | |
88 | '5. sp player', | |
89 | '6. nosp player', | |
90 | '7. smoke player', | |
91 | '8. nosmoke player', | |
92 | '9. btools player', | |
93 | '10. god player', | |
94 | '11. sgod player', | |
95 | '12. ungod player', | |
96 | '13. heal player', | |
97 | '14. freeze player', | |
98 | '15. thaw player', | |
99 | '16. kill player', | |
100 | '17. sound', | |
101 | '18. volume', | |
102 | '19. pitch', | |
103 | '20. explode player', | |
104 | '21. invis player', | |
105 | '22. vis player', | |
106 | '23. goto player', | |
107 | '24. bring player', | |
108 | '25. tp player', | |
109 | '26. charapp player', | |
110 | '27. ws player', | |
111 | '28. time', | |
112 | '29. kick player', | |
113 | '30. ban player', | |
114 | '31. unlockws', | |
115 | '32. unanchorws', | |
116 | '33. hat player', | |
117 | '34. gear player', | |
118 | '35. pstools player', | |
119 | '36. skick player', | |
120 | '37. admin player', | |
121 | '38. unadmin player', | |
122 | '39. firstp player', | |
123 | '40. thirdp player', | |
124 | '41. chat player', | |
125 | '42. insert', | |
126 | '43. name player', | |
127 | '44. unname player', | |
128 | '45. stun player', | |
129 | '46. unstun player', | |
130 | '47. sit player', | |
131 | '48. guest player', | |
132 | '49. damage player', | |
133 | '50. view player', | |
134 | '51. unview player', | |
135 | '52. nolimbs player', | |
136 | '53. box player 1012', | |
137 | '54. nobox player', | |
138 | '55. ghost player', | |
139 | '56. sphere player', | |
140 | '57. loadmap', | |
141 | '58. sky', | |
142 | '59. ambient', | |
143 | '60. gui', | |
144 | '61. jail player', | |
145 | '62. unjail player', | |
146 | '63. shutdown', | |
147 | '64. animation player', | |
148 | '65. fix player', | |
149 | '66. creeper player', | |
150 | '67. uncreeper player', | |
151 | '68. shrek player', | |
152 | '69. unshrek player', | |
153 | '70. spam', | |
154 | '71. nospam', | |
155 | '72. control player', | |
156 | '73. nuke player', | |
157 | '74. infect player', | |
158 | '75. uninfect player', | |
159 | '76. duck player', | |
160 | '77. unduck player', | |
161 | '78. disable player', | |
162 | '79. enable player', | |
163 | '80. size player', | |
164 | '81. confuse player', | |
165 | '82. unconfuse player', | |
166 | '83. clone player', | |
167 | '84. spin player', | |
168 | '85. unspin player', | |
169 | '86. dog player', | |
170 | '87. undog player', | |
171 | '88. tptool', | |
172 | '89. loopsit player', | |
173 | '90. unloopsit player', | |
174 | '91. loopjump player', | |
175 | '92. unloopjump player', | |
176 | '93. loopheal player', | |
177 | '94. unloopheal player', | |
178 | '95. fling player', | |
179 | '96. ayylmao player', | |
180 | '97. nograv player', | |
181 | '98. grav player', | |
182 | '99. seizure player', | |
183 | '100. unseizure player', | |
184 | '101. cape 1012', | |
185 | '102. uncape', | |
186 | '103. paper player', | |
187 | '104. punish player', | |
188 | '105. unpunish player', | |
189 | '106. disco', | |
190 | '107. undisco', | |
191 | '- float player', | |
192 | '- unfloat player', | |
193 | '- noclip', | |
194 | '- clip', | |
195 | '- prefix <string>', | |
196 | '- admins', | |
197 | '- bans', | |
198 | '- cmds', | |
199 | '- version' | |
200 | } | |
201 | ||
202 | --| Lib |-- | |
203 | ||
204 | updateevents=function() | |
205 | for i,v in pairs(services.events) do services.events:remove(i) v:disconnect() end | |
206 | for i,v in pairs(gPlayers:players())do | |
207 | local ev = v.Chatted:connect(function(msg) do_exec(msg,v) end) | |
208 | services.events[#services.events+1] = ev | |
209 | end | |
210 | end | |
211 | ||
212 | std.inTable=function(tbl,val) | |
213 | if tbl==nil then return false end | |
214 | ||
215 | for _,v in pairs(tbl)do | |
216 | if v==val then return true end | |
217 | end | |
218 | return false | |
219 | end | |
220 | ||
221 | std.out=function(str) | |
222 | print(str) | |
223 | end | |
224 | ||
225 | std.list=function(tbl) | |
226 | local str='' | |
227 | for i,v in pairs(tbl)do | |
228 | str=str..tostring(v) | |
229 | if i~=#tbl then str=str..', ' end | |
230 | end | |
231 | return str | |
232 | end | |
233 | ||
234 | std.endat=function(str,val) | |
235 | local z=str:find(val) | |
236 | if z then | |
237 | return str:sub(0,z-string.len(val)),true | |
238 | else | |
239 | return str,false | |
240 | end | |
241 | end | |
242 | ||
243 | std.first=function(str) return str:sub(1,1) end | |
244 | ||
245 | isAdmin=function(name) | |
246 | if name==admin then | |
247 | return true | |
248 | elseif admins[name]==true then | |
249 | return true | |
250 | end | |
251 | return false | |
252 | end | |
253 | ||
254 | local exec=function(str) | |
255 | spawn(function() | |
256 | local script, loaderr = loadstring(str) | |
257 | if not script then | |
258 | error(loaderr) | |
259 | else | |
260 | script() | |
261 | end | |
262 | end) | |
263 | end | |
264 | ||
265 | local findCmd=function(cmd_name) | |
266 | for i,v in pairs(cmds)do | |
267 | if v.NAME:lower()==cmd_name:lower() or std.inTable(v.ALIAS,cmd_name:lower())then | |
268 | return v | |
269 | end | |
270 | end | |
271 | end | |
272 | ||
273 | local getCmd=function(msg) | |
274 | local cmd,hassplit=std.endat(msg:lower(),split) | |
275 | if hassplit then | |
276 | return {cmd,true} | |
277 | else | |
278 | return {cmd,false} | |
279 | end | |
280 | end | |
281 | ||
282 | local getprfx=function(strn) | |
283 | if strn:sub(1,string.len(cmdprefix))==cmdprefix then return{'cmd',string.len(cmdprefix)+1} | |
284 | elseif strn:sub(1,string.len(scriptprefix))==scriptprefix then return{'exec',string.len(scriptprefix)+1} | |
285 | end return | |
286 | end | |
287 | ||
288 | local getArgs=function(str) | |
289 | local args={} | |
290 | local new_arg=nil | |
291 | local hassplit=nil | |
292 | local s=str | |
293 | repeat | |
294 | new_arg,hassplit=std.endat(s:lower(),split) | |
295 | if new_arg~='' then | |
296 | args[#args+1]=new_arg | |
297 | s=s:sub(string.len(new_arg)+string.len(split)+1) | |
298 | end | |
299 | until hassplit==false | |
300 | return args | |
301 | end | |
302 | ||
303 | local function execCmd(str, plr) | |
304 | local s_cmd | |
305 | local a | |
306 | local cmd | |
307 | s_cmd = getCmd(str) | |
308 | cmd = findCmd(s_cmd[1]) | |
309 | if cmd == nil then return end | |
310 | a = str:sub(string.len(s_cmd[1]) + string.len(split) + 1) | |
311 | local args=getArgs(a) | |
312 | ||
313 | pcall(function() | |
314 | cmd.FUNC(args, plr) | |
315 | end) | |
316 | end | |
317 | ||
318 | function do_exec(str,plr) | |
319 | if not isAdmin(plr.Name)then return end | |
320 | ||
321 | str=str:gsub('/e ','') | |
322 | ||
323 | local t=getprfx(str) | |
324 | if t==nil then return end | |
325 | str=str:sub(t[2]) | |
326 | if t[1]=='exec' then | |
327 | exec(str) | |
328 | elseif t[1]=='cmd' then | |
329 | execCmd(str, plr) | |
330 | end | |
331 | end | |
332 | ||
333 | updateevents() | |
334 | _G.exec_cmd = execCmd | |
335 | --game.Players.LocalPlayer.Chatted:connect(doexec) | |
336 | ||
337 | local _char=function(plr_name) | |
338 | for i,v in pairs(game.Players:GetChildren())do | |
339 | if v:IsA'Player'then | |
340 | if v.Name==plr_name then return v.Character end | |
341 | end | |
342 | end | |
343 | return | |
344 | end | |
345 | ||
346 | local _plr=function(plr_name) | |
347 | for i,v in pairs(game.Players:GetChildren())do | |
348 | if v:IsA'Player'then | |
349 | if v.Name==plr_name then return v end | |
350 | end | |
351 | end | |
352 | return | |
353 | end | |
354 | ||
355 | function addcmd(name,desc,alias,func) | |
356 | cmds[#cmds+1]= | |
357 | { | |
358 | NAME=name; | |
359 | DESC=desc; | |
360 | ALIAS=alias; | |
361 | FUNC=func; | |
362 | } | |
363 | end | |
364 | ||
365 | local function getPlayer(name) | |
366 | local nameTable = {} | |
367 | name=name:lower() | |
368 | if name == "me" then | |
369 | nameTable[#nameTable+1]=admin | |
370 | elseif name == "others" then | |
371 | for i,v in pairs(gPlayers:GetChildren()) do | |
372 | if v:IsA'Player'then | |
373 | if v.Name~=admin then | |
374 | nameTable[#nameTable+1]=v.Name | |
375 | end | |
376 | end | |
377 | end | |
378 | elseif name == "all" then | |
379 | for i,v in pairs(gPlayers:GetChildren()) do | |
380 | if v:IsA'Player'then | |
381 | nameTable[#nameTable+1]=v.Name | |
382 | end | |
383 | end | |
384 | else | |
385 | for i,v in pairs(gPlayers:GetChildren()) do | |
386 | local lname = v.Name:lower() | |
387 | local i,j = lname:find(name) | |
388 | if i == 1 then | |
389 | return {v.Name} | |
390 | end | |
391 | end | |
392 | end | |
393 | return nameTable | |
394 | end | |
395 | ||
396 | --| Cape Function |-- | |
397 | ||
398 | local capeColor = 1012 | |
399 | ||
400 | function Cape(playerCaped) | |
401 | ||
402 | if playerCaped.Character:FindFirstChild("Cape") ~= nil then | |
403 | playerCaped.Character.Cape:Destroy() | |
404 | end | |
405 | ||
406 | repeat | |
407 | wait() | |
408 | until playerCaped and playerCaped.Character and playerCaped.Character:FindFirstChild("Torso") | |
409 | ||
410 | local Torso = playerCaped.Character.Torso | |
411 | ||
412 | local Cape = Instance.new("Part", Torso.Parent) | |
413 | Cape.Name = "Cape" | |
414 | Cape.Anchored = false | |
415 | Cape.CanCollide = false | |
416 | Cape.TopSurface = 0 | |
417 | Cape.BottomSurface = 0 | |
418 | Cape.BrickColor = BrickColor.new("" .. capeColor) | |
419 | Cape.Material = "Neon" | |
420 | Cape.formFactor = "Custom" | |
421 | Cape.Size = Vector3.new(0.2,0.2,0.2) | |
422 | ||
423 | local msh = Instance.new("BlockMesh", Cape) | |
424 | msh.Scale = Vector3.new(9,17.5,.5) | |
425 | ||
426 | local motor1 = Instance.new("Motor", Cape) | |
427 | motor1.Part0 = Cape | |
428 | motor1.Part1 = Torso | |
429 | ||
430 | motor1.MaxVelocity = 1 | |
431 | motor1.C0 = CFrame.new(0,1.75,0)*CFrame.Angles(0,math.rad(90),0) | |
432 | motor1.C1 = CFrame.new(0,1,.45)*CFrame.Angles(0,math.rad(90),0) | |
433 | ||
434 | local wave = false | |
435 | ||
436 | repeat wait(1/44) | |
437 | local ang = 0.2 | |
438 | local oldmag = Torso.Velocity.magnitude | |
439 | local mv = .1 | |
440 | ||
441 | if wave then | |
442 | ang = ang + ((Torso.Velocity.magnitude/10) * .05) + 1 | |
443 | wave = false | |
444 | else | |
445 | wave = false | |
446 | end | |
447 | ang = ang + math.min(Torso.Velocity.magnitude/30, 1) | |
448 | motor1.MaxVelocity = math.min((Torso.Velocity.magnitude/10), .04) + mv | |
449 | motor1.DesiredAngle = -ang | |
450 | if motor1.CurrentAngle < -.05 and motor1.DesiredAngle > -.05 then | |
451 | motor1.MaxVelocity = .04 | |
452 | end | |
453 | repeat | |
454 | wait() | |
455 | until | |
456 | motor1.CurrentAngle == motor1.DesiredAngle or math.abs(Torso.Velocity.magnitude - oldmag) >= (Torso.Velocity.magnitude/10) + 1 | |
457 | if Torso.Velocity.magnitude < .1 then | |
458 | wait(.1) | |
459 | end | |
460 | until not Cape or Cape.Parent ~= Torso.Parent | |
461 | end | |
462 | ||
463 | game.Lighting.Outlines = false -- Outlines are disgusting | |
464 | ||
465 | --| Commands |-- | |
466 | ||
467 | addcmd('ff','gives ff to player',{}, | |
468 | function(args) | |
469 | local players = getPlayer(args[1]) | |
470 | for i,v in pairs(players)do | |
471 | local pchar=_char(v) | |
472 | Instance.new("ForceField", pchar) | |
473 | end | |
474 | end) | |
475 | ||
476 | addcmd('noff', 'takes away ff from player',{'unff'}, | |
477 | function(args) | |
478 | local players = getPlayer(args[1]) | |
479 | for i,v in pairs(players)do | |
480 | local pchar=_char(v) | |
481 | for j,v1 in pairs(pchar:GetChildren()) do | |
482 | if v1:IsA("ForceField") then | |
483 | v1:Destroy() | |
484 | end | |
485 | end | |
486 | end | |
487 | end) | |
488 | ||
489 | addcmd('fire', 'set a player on fire',{}, | |
490 | function(args) | |
491 | local players = getPlayer(args[1]) | |
492 | for i,v in pairs(players)do | |
493 | local pchar=_char(v) | |
494 | local Fire1 = Instance.new("Fire", pchar.Head) | |
495 | local Fire2 = Instance.new("Fire", pchar.Torso) | |
496 | local Fire3 = Instance.new("Fire", pchar["Left Arm"]) | |
497 | local Fire4 = Instance.new("Fire", pchar["Right Arm"]) | |
498 | local Fire5 = Instance.new("Fire", pchar["Left Leg"]) | |
499 | local Fire6 = Instance.new("Fire", pchar["Right Leg"]) | |
500 | Fire1.Color = Color3.new((args[2]),(args[3]),(args[4])) | |
501 | Fire1.SecondaryColor = Color3.new((args[2]),(args[3]),(args[4])) | |
502 | Fire2.Color = Color3.new((args[2]),(args[3]),(args[4])) | |
503 | Fire2.SecondaryColor = Color3.new((args[2]),(args[3]),(args[4])) | |
504 | Fire3.Color = Color3.new((args[2]),(args[3]),(args[4])) | |
505 | Fire3.SecondaryColor = Color3.new((args[2]),(args[3]),(args[4])) | |
506 | Fire4.Color = Color3.new((args[2]),(args[3]),(args[4])) | |
507 | Fire4.SecondaryColor = Color3.new((args[2]),(args[3]),(args[4])) | |
508 | Fire5.Color = Color3.new((args[2]),(args[3]),(args[4])) | |
509 | Fire5.SecondaryColor = Color3.new((args[2]),(args[3]),(args[4])) | |
510 | Fire6.Color = Color3.new((args[2]),(args[3]),(args[4])) | |
511 | Fire6.SecondaryColor = Color3.new((args[2]),(args[3]),(args[4])) | |
512 | end | |
513 | end) | |
514 | ||
515 | addcmd('nofire', 'extinguish a player',{'unfire'}, | |
516 | function(args) | |
517 | local players = getPlayer(args[1]) | |
518 | for i,v in pairs(players)do | |
519 | local pchar=_char(v) | |
520 | for j,v1 in pairs(pchar.Head:GetChildren()) do | |
521 | if v1:IsA("Fire") then | |
522 | v1:Destroy() | |
523 | end | |
524 | end | |
525 | for j,v1 in pairs(pchar.Torso:GetChildren()) do | |
526 | if v1:IsA("Fire") then | |
527 | v1:Destroy() | |
528 | end | |
529 | end | |
530 | for j,v1 in pairs(pchar["Left Arm"]:GetChildren()) do | |
531 | if v1:IsA("Fire") then | |
532 | v1:Destroy() | |
533 | end | |
534 | end | |
535 | for j,v1 in pairs(pchar["Right Arm"]:GetChildren()) do | |
536 | if v1:IsA("Fire") then | |
537 | v1:Destroy() | |
538 | end | |
539 | end | |
540 | for j,v1 in pairs(pchar["Left Leg"]:GetChildren()) do | |
541 | if v1:IsA("Fire") then | |
542 | v1:Destroy() | |
543 | end | |
544 | end | |
545 | for j,v1 in pairs(pchar["Right Leg"]:GetChildren()) do | |
546 | if v1:IsA("Fire") then | |
547 | v1:Destroy() | |
548 | end | |
549 | end | |
550 | end | |
551 | end) | |
552 | ||
553 | addcmd('sp', 'give a player sparkles',{}, | |
554 | function(args) | |
555 | local players = getPlayer(args[1]) | |
556 | for i,v in pairs(players)do | |
557 | local pchar=_char(v) | |
558 | local Sparkles1 = Instance.new("Sparkles", pchar.Head) | |
559 | local Sparkles2 = Instance.new("Sparkles", pchar.Torso) | |
560 | local Sparkles3 = Instance.new("Sparkles", pchar["Left Arm"]) | |
561 | local Sparkles4 = Instance.new("Sparkles", pchar["Right Arm"]) | |
562 | local Sparkles5 = Instance.new("Sparkles", pchar["Left Leg"]) | |
563 | local Sparkles6 = Instance.new("Sparkles", pchar["Right Leg"]) | |
564 | Sparkles1.Color = Color3.new((args[2]),(args[3]),(args[4])) | |
565 | Sparkles2.Color = Color3.new((args[2]),(args[3]),(args[4])) | |
566 | Sparkles3.Color = Color3.new((args[2]),(args[3]),(args[4])) | |
567 | Sparkles4.Color = Color3.new((args[2]),(args[3]),(args[4])) | |
568 | Sparkles5.Color = Color3.new((args[2]),(args[3]),(args[4])) | |
569 | Sparkles6.Color = Color3.new((args[2]),(args[3]),(args[4])) | |
570 | end | |
571 | end) | |
572 | ||
573 | addcmd('nosp', 'remove sparkles from a player',{'unsp'}, | |
574 | function(args) | |
575 | local players = getPlayer(args[1]) | |
576 | for i,v in pairs(players)do | |
577 | local pchar=_char(v) | |
578 | for j,v1 in pairs(pchar.Head:GetChildren()) do | |
579 | if v1:IsA("Sparkles") then | |
580 | v1:Destroy() | |
581 | end | |
582 | end | |
583 | for j,v1 in pairs(pchar.Torso:GetChildren()) do | |
584 | if v1:IsA("Sparkles") then | |
585 | v1:Destroy() | |
586 | end | |
587 | end | |
588 | for j,v1 in pairs(pchar["Left Arm"]:GetChildren()) do | |
589 | if v1:IsA("Sparkles") then | |
590 | v1:Destroy() | |
591 | end | |
592 | end | |
593 | for j,v1 in pairs(pchar["Right Arm"]:GetChildren()) do | |
594 | if v1:IsA("Sparkles") then | |
595 | v1:Destroy() | |
596 | end | |
597 | end | |
598 | for j,v1 in pairs(pchar["Left Leg"]:GetChildren()) do | |
599 | if v1:IsA("Sparkles") then | |
600 | v1:Destroy() | |
601 | end | |
602 | end | |
603 | for j,v1 in pairs(pchar["Right Leg"]:GetChildren()) do | |
604 | if v1:IsA("Sparkles") then | |
605 | v1:Destroy() | |
606 | end | |
607 | end | |
608 | end | |
609 | end) | |
610 | ||
611 | addcmd('smoke', 'give a player smoke',{}, | |
612 | function(args) | |
613 | local players = getPlayer(args[1]) | |
614 | for i,v in pairs(players)do | |
615 | local pchar=_char(v) | |
616 | Instance.new("Smoke", pchar.Torso) | |
617 | end | |
618 | end) | |
619 | ||
620 | addcmd('nosmoke', 'remove smoke from a player',{}, | |
621 | function(args) | |
622 | local players = getPlayer(args[1]) | |
623 | for i,v in pairs(players)do | |
624 | local pchar=_char(v) | |
625 | for j,v1 in pairs(pchar.Torso:GetChildren()) do | |
626 | if v1:IsA("Smoke") then | |
627 | v1:Destroy() | |
628 | end | |
629 | end | |
630 | end | |
631 | end) | |
632 | ||
633 | addcmd('btools', 'gives a player btools',{}, | |
634 | function(args) | |
635 | local players = getPlayer(args[1]) | |
636 | if players ~= nil then | |
637 | for i, v in pairs(players) do | |
638 | Instance.new("HopperBin", gPlayers[v].Backpack).BinType = 2 | |
639 | Instance.new("HopperBin", gPlayers[v].Backpack).BinType = 3 | |
640 | Instance.new("HopperBin", gPlayers[v].Backpack).BinType = 4 | |
641 | end | |
642 | end | |
643 | end) | |
644 | ||
645 | addcmd('god', 'gods player',{}, | |
646 | function(args) | |
647 | local players = getPlayer(args[1]) | |
648 | for i,v in pairs(players)do | |
649 | local pchar=_char(v) | |
650 | if pchar then pchar.Humanoid.MaxHealth=math.huge end | |
651 | end | |
652 | end) | |
653 | ||
654 | addcmd('sgod', 'silently gods player',{}, | |
655 | function(args) | |
656 | local players = getPlayer(args[1]) | |
657 | for i,v in pairs(players)do | |
658 | local pchar=_char(v) | |
659 | spawn(function() | |
660 | pchar.Humanoid.MaxHealth = 10000000 | |
661 | wait() | |
662 | pchar.Humanoid.Health = 10000000 | |
663 | end) | |
664 | end | |
665 | end) | |
666 | ||
667 | addcmd('ungod', 'removes god from a player',{}, | |
668 | function(args) | |
669 | local players = getPlayer(args[1]) | |
670 | for i,v in pairs(players)do | |
671 | local pchar=_char(v) | |
672 | if pchar then | |
673 | pchar.Humanoid.MaxHealth=100 | |
674 | pchar.Humanoid.Health=100 | |
675 | end | |
676 | end | |
677 | end) | |
678 | ||
679 | addcmd('heal', 'resets a players health',{}, | |
680 | function(args) | |
681 | local players = getPlayer(args[1]) | |
682 | for i,v in pairs(players)do | |
683 | local pchar=_char(v) | |
684 | if pchar then pchar.Humanoid.Health=pchar.Humanoid.MaxHealth;end | |
685 | end | |
686 | end) | |
687 | ||
688 | addcmd('frz', 'freezes a player',{'freeze'}, | |
689 | function(args) | |
690 | local players = getPlayer(args[1]) | |
691 | if players ~= nil then | |
692 | for i, v in pairs(players) do | |
693 | _char(v).Torso.Anchored = true | |
694 | end | |
695 | end | |
696 | end) | |
697 | ||
698 | addcmd('thaw', 'freezes a player',{}, | |
699 | function(args) | |
700 | local players = getPlayer(args[1]) | |
701 | if players ~= nil then | |
702 | for i, v in pairs(players) do | |
703 | _char(v).Torso.Anchored = false | |
704 | end | |
705 | end | |
706 | end) | |
707 | ||
708 | addcmd('kill', 'kills a player',{}, | |
709 | function(args) | |
710 | local players = getPlayer(args[1]) | |
711 | for i,v in pairs(players)do | |
712 | local pchar=_char(v) | |
713 | if pchar then pchar.Humanoid.MaxHealth=0;pchar.Humanoid.Health=0;end | |
714 | end | |
715 | end) | |
716 | ||
717 | addcmd('sound', 'plays a sound',{}, | |
718 | function(args) | |
719 | local function dels(instance) | |
720 | for i,v in pairs(instance:GetChildren())do | |
721 | if v:IsA'Sound'then v:Destroy()end | |
722 | dels(v) | |
723 | end | |
724 | end | |
725 | dels(workspace) | |
726 | ||
727 | local c = args[1] or 'stop' | |
728 | if std.inTable({'stop'}, c:lower()) then return end | |
729 | local s = Instance.new("Sound", workspace) | |
730 | s.Name = "DuckSong" | |
731 | s.Looped = true | |
732 | s.SoundId = "rbxassetid://" .. c | |
733 | s.Volume = 1 | |
734 | s:Play() | |
735 | end) | |
736 | ||
737 | addcmd('volume','changes volume of sound',{}, | |
738 | function(args) | |
739 | for i,v in pairs(game.Workspace:GetChildren())do | |
740 | if v:IsA("Sound") and v.Name == "DuckSong" then | |
741 | v.Volume = args[1] | |
742 | end | |
743 | end | |
744 | end) | |
745 | ||
746 | addcmd('pitch','changes pitch of sound',{}, | |
747 | function(args) | |
748 | for i,v in pairs(game.Workspace:GetChildren())do | |
749 | if v:IsA("Sound") and v.Name == "DuckSong" then | |
750 | v.Pitch = args[1] | |
751 | end | |
752 | end | |
753 | end) | |
754 | ||
755 | addcmd('explode', 'explode a player', {}, | |
756 | function(args) | |
757 | local players = getPlayer(args[1]) | |
758 | for i, v in pairs(players) do | |
759 | local char = _char(v) | |
760 | if char:FindFirstChild("Torso") then | |
761 | Instance.new("Explosion", char).Position = char.Torso.Position | |
762 | end | |
763 | end | |
764 | end) | |
765 | ||
766 | addcmd('invis', 'make a player invisible',{}, | |
767 | function(args) | |
768 | local players = getPlayer(args[1]) | |
769 | for i, v in pairs(players) do | |
770 | for k, v2 in pairs(_char(v):GetChildren()) do | |
771 | if v2.className == "Part" then | |
772 | if v2.Name ~= "HumanoidRootPart" then v2.Transparency = 1 end | |
773 | elseif v2.className == "Hat" then | |
774 | if v2:FindFirstChild("Handle") then | |
775 | v2.Handle.Transparency = 1 | |
776 | end | |
777 | end | |
778 | if v2:FindFirstChild("face") then | |
779 | v2.face:Destroy() | |
780 | end | |
781 | end | |
782 | end | |
783 | end) | |
784 | ||
785 | addcmd('vis', 'make a player visible',{}, | |
786 | function(args) | |
787 | local players = getPlayer(args[1]) | |
788 | for i, v in pairs(players) do | |
789 | for k, v2 in pairs(_char(v):GetChildren()) do | |
790 | if v2.className == "Part" then | |
791 | if v2.Name ~= "HumanoidRootPart" then v2.Transparency = 0 end | |
792 | elseif v2.className == "Hat" then | |
793 | if v2:FindFirstChild("Handle") then v2.Handle.Transparency = 0 end | |
794 | end | |
795 | if v2:FindFirstChild("face") then | |
796 | v2.face:Destroy() | |
797 | end | |
798 | end | |
799 | end | |
800 | end) | |
801 | ||
802 | addcmd('goto', 'go to a player',{}, | |
803 | function(args) | |
804 | local players = getPlayer(args[1]) | |
805 | if players ~= nil and _char(players[1]):FindFirstChild("HumanoidRootPart") then | |
806 | _char(admin).HumanoidRootPart.CFrame = _char(players[1]).HumanoidRootPart.CFrame | |
807 | end | |
808 | end) | |
809 | ||
810 | addcmd('bring', 'bring a player to you',{}, | |
811 | function(args) | |
812 | local players = getPlayer(args[1]) | |
813 | for i,v in pairs(players) do | |
814 | if _char(v):FindFirstChild("HumanoidRootPart") then | |
815 | _char(v).HumanoidRootPart.CFrame = _char(admin).HumanoidRootPart.CFrame | |
816 | end | |
817 | end | |
818 | end) | |
819 | ||
820 | addcmd('tp', 'teleport player 1 to player 2',{}, | |
821 | function(args) | |
822 | local players1=getPlayer(args[1]) | |
823 | local players2=getPlayer(args[2]) | |
824 | if not players2[1] then return end | |
825 | for i,v in pairs(players1) do | |
826 | if _char(v):FindFirstChild("HumanoidRootPart") and _char(players2[1]):FindFirstChild("HumanoidRootPart") then | |
827 | _char(v).HumanoidRootPart.CFrame = _char(players2[1]).HumanoidRootPart.CFrame | |
828 | end | |
829 | end | |
830 | end) | |
831 | ||
832 | addcmd('charapp', 'change a players appearance',{'char'}, | |
833 | function(args) | |
834 | local players = getPlayer(args[1]) | |
835 | if not args[1]or not args[2]then return end | |
836 | local id=args[2] | |
837 | if players ~= nil then | |
838 | for i,v in pairs(players) do | |
839 | gPlayers[v].CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId="..id | |
840 | if _char(v):FindFirstChild("Head") then | |
841 | _char(v).Head:Destroy() | |
842 | end | |
843 | end | |
844 | end | |
845 | end) | |
846 | ||
847 | addcmd('ws', 'change a players walkspeed',{}, | |
848 | function(args) | |
849 | local players = getPlayer(args[1]) | |
850 | if not args[1]or not args[2]then return end | |
851 | local num=args[2] | |
852 | for i,v in pairs(players) do | |
853 | if _char(v):FindFirstChild("Humanoid") then | |
854 | _char(v).Humanoid.WalkSpeed=tonumber(num) | |
855 | end | |
856 | end | |
857 | end) | |
858 | ||
859 | addcmd('time', 'change the time of day',{}, | |
860 | function(args) | |
861 | if not args[1]then return end | |
862 | local time_=tonumber(args[1]) | |
863 | ||
864 | game.Lighting:SetMinutesAfterMidnight(time_*60) | |
865 | end) | |
866 | ||
867 | addcmd('kick', 'kick a player',{}, | |
868 | function(args) | |
869 | local players = getPlayer(args[1]) | |
870 | for i,v in pairs(players) do | |
871 | Notify('Kicked ' .. gPlayers[v].Name) | |
872 | gPlayers[v]:Destroy() | |
873 | end | |
874 | end) | |
875 | ||
876 | addcmd('ban', 'ban a player',{}, | |
877 | function(args) | |
878 | local players=getPlayer(args[1]) | |
879 | for i,v in pairs(players) do | |
880 | _G.Banned(gPlayers[v].Name) | |
881 | gPlayers[v]:Destroy() | |
882 | end | |
883 | end) | |
884 | ||
885 | addcmd('unlockws', 'unlock the whole workspace',{'unlock'}, | |
886 | function(args) | |
887 | local function unlock(instance) | |
888 | for i,v in pairs(instance:GetChildren()) do | |
889 | if v:IsA("BasePart") then | |
890 | v.Locked = false | |
891 | end | |
892 | unlock(v) | |
893 | end | |
894 | end | |
895 | unlock(workspace) | |
896 | end) | |
897 | ||
898 | addcmd('unanchorws', 'unanchor the whole workspace',{'unanchor', 'unanchr'}, | |
899 | function(args) | |
900 | local function unanchor(instance) | |
901 | for i,v in pairs(instance:GetChildren()) do | |
902 | if v:IsA("BasePart") then | |
903 | v.Anchored=false | |
904 | end | |
905 | unanchor(v) | |
906 | end | |
907 | end | |
908 | unanchor(workspace) | |
909 | end) | |
910 | ||
911 | addcmd('hat', 'give player a hat ingame',{}, | |
912 | function(args) | |
913 | if not args[1] or not args[2] then return end | |
914 | local players = getPlayer(args[1]) | |
915 | local id=args[2] | |
916 | local hat = game:GetService("InsertService"):LoadAsset(id) | |
917 | if hat:IsA("Hat") then | |
918 | for i,v in pairs(players) do | |
919 | hat:clone().Parent = _char(v) | |
920 | end | |
921 | end | |
922 | hat:Destroy() | |
923 | end) | |
924 | ||
925 | addcmd('gear', 'give player a gear ingame',{}, | |
926 | function(args) | |
927 | spawn(function() | |
928 | if not args[1] or not args[2] then return end | |
929 | local players = getPlayer(args[1]) | |
930 | local id=args[2] | |
931 | local model = game:GetService("InsertService"):LoadAsset(id) | |
932 | for i,v in pairs(players) do | |
933 | for _,j in pairs(model:GetChildren()) do | |
934 | if j:IsA("Tool") then | |
935 | j:Clone().Parent = gPlayers[v].Backpack | |
936 | end | |
937 | end | |
938 | end | |
939 | model:Destroy() | |
940 | end) | |
941 | end) | |
942 | ||
943 | addcmd('pstools', 'give player personal server tools',{}, | |
944 | function(args) | |
945 | local players = getPlayer(args[1]) | |
946 | for i,v in pairs(players) do | |
947 | gPlayers[v].PersonalServerRank = 240 | |
948 | end | |
949 | end) | |
950 | ||
951 | addcmd('skick','kicks a player by shutting them down, takes a few seconds',{}, | |
952 | function(args) | |
953 | local players = getPlayer(args[1]) | |
954 | for i,v in pairs(players) do | |
955 | spawn(function() | |
956 | gPlayers[v].PersonalServerRank = 240 | |
957 | gPlayers[v].Backpack:WaitForChild("ClassicTool") | |
958 | gPlayers[v].PersonalServerRank = 0 | |
959 | end) | |
960 | end | |
961 | end) | |
962 | ||
963 | addcmd('admin', 'gives a player admin',{}, | |
964 | function(args) | |
965 | if not args[1]then return end | |
966 | local players = getPlayer(args[1]) | |
967 | table.foreach(players,function(k,v) | |
968 | admins[v]=true | |
969 | Notify(gPlayers[v].Name .. ' has been given Admin.') | |
970 | end) | |
971 | for i,v in pairs(players) do | |
972 | local pchar = gPlayers[v].Character | |
973 | game.Chat:Chat(pchar.Head, "You've been given admin.") | |
974 | wait(2.5) | |
975 | game.Chat:Chat(pchar.Head, 'Prefix is "' .. cmdprefix .. '"') | |
976 | wait(2.5) | |
977 | game.Chat:Chat(pchar.Head, "[NO] ;fire me [YES] ;fire YourName") | |
978 | wait(2.5) | |
979 | game.Chat:Chat(pchar.Head, "You may now use commands.") | |
980 | end | |
981 | end) | |
982 | ||
983 | addcmd('unadmin', 'removes a players admin',{}, | |
984 | function(args) | |
985 | if not args[1] then return end | |
986 | local players = getPlayer(args[1]) | |
987 | table.foreach(players,function(k,v) | |
988 | admins[v]=nil | |
989 | Notify(gPlayers[v].Name .. ' no longer has Admin.') | |
990 | end) | |
991 | end) | |
992 | ||
993 | addcmd('firstp', 'forces player to go into first person',{}, | |
994 | function(args) | |
995 | local players = getPlayer(args[1]) | |
996 | for i,v in pairs(players)do | |
997 | gPlayers[v].CameraMode = "LockFirstPerson" | |
998 | end | |
999 | end) | |
1000 | ||
1001 | addcmd('thirdp', 'allows player to go into third person',{}, | |
1002 | function(args) | |
1003 | local players = getPlayer(args[1]) | |
1004 | for i,v in pairs(players)do | |
1005 | gPlayers[v].CameraMode = "Classic" | |
1006 | end | |
1007 | end) | |
1008 | ||
1009 | addcmd('chat', 'forces player to chat what you input',{}, | |
1010 | function(args) | |
1011 | local players = getPlayer(args[1]) | |
1012 | local MSG = table.concat(args, " ") | |
1013 | local newMSG = string.gsub(MSG, args[1] .. " ", "") | |
1014 | for i,v in pairs(players)do | |
1015 | game.Chat:Chat(gPlayers[v].Character.Head, newMSG) | |
1016 | end | |
1017 | end) | |
1018 | ||
1019 | addcmd('insert', 'inserts a model',{}, | |
1020 | function(args) | |
1021 | local model = game:GetService("InsertService"):LoadAsset(args[1]) | |
1022 | model.Parent = game.Workspace | |
1023 | model:MoveTo(game.Players.LocalPlayer.Character.Torso.Position) | |
1024 | model:MakeJoints() | |
1025 | end) | |
1026 | ||
1027 | addcmd('name', 'names player',{}, | |
1028 | function(args) | |
1029 | local players = getPlayer(args[1]) | |
1030 | local msg = table.concat(args, " ") | |
1031 | local newmsg = string.gsub(msg, args[1] .. " ", "") | |
1032 | for i,v in pairs(players) do | |
1033 | for a, mod in pairs(gPlayers[v].Character:children()) do | |
1034 | if mod:FindFirstChild("TAG") then | |
1035 | gPlayers[v].Character.Head.Transparency = 0 | |
1036 | mod:Destroy() | |
1037 | end | |
1038 | end | |
1039 | ||
1040 | local char = gPlayers[v].Character | |
1041 | local model = Instance.new("Model", char) | |
1042 | local clone = char.Head:Clone() | |
1043 | local hum = Instance.new("Humanoid", model) | |
1044 | local weld = Instance.new("Weld", clone) | |
1045 | model.Name = newmsg | |
1046 | clone.Parent = model | |
1047 | hum.Name = "TAG" | |
1048 | hum.MaxHealth = 100 | |
1049 | hum.Health = 100 | |
1050 | weld.Part0 = clone | |
1051 | weld.Part1 = char.Head | |
1052 | char.Head.Transparency = 1 | |
1053 | end | |
1054 | end) | |
1055 | ||
1056 | addcmd('unname', 'unnames player',{}, | |
1057 | function(args) | |
1058 | local players = getPlayer(args[1]) | |
1059 | local name = (args[2]) | |
1060 | for i,v in pairs(players) do | |
1061 | for a, mod in pairs(gPlayers[v].Character:children()) do | |
1062 | if mod:FindFirstChild("TAG") then | |
1063 | gPlayers[v].Character.Head.Transparency = 0 | |
1064 | mod:Destroy() | |
1065 | end | |
1066 | end | |
1067 | end | |
1068 | end) | |
1069 | ||
1070 | addcmd('stun', 'stuns player',{}, | |
1071 | function(args) | |
1072 | local players = getPlayer(args[1]) | |
1073 | for i,v in pairs(players) do | |
1074 | gPlayers[v].Character.Humanoid.PlatformStand = true | |
1075 | end | |
1076 | end) | |
1077 | ||
1078 | addcmd('unstun', 'stuns player',{}, | |
1079 | function(args) | |
1080 | local players = getPlayer(args[1]) | |
1081 | for i,v in pairs(players) do | |
1082 | gPlayers[v].Character.Humanoid.PlatformStand = false | |
1083 | end | |
1084 | end) | |
1085 | ||
1086 | addcmd('sit', 'stuns player',{}, | |
1087 | function(args) | |
1088 | local players = getPlayer(args[1]) | |
1089 | for i,v in pairs(players) do | |
1090 | gPlayers[v].Character.Humanoid.Sit = true | |
1091 | end | |
1092 | end) | |
1093 | ||
1094 | addcmd('guest', 'ew a guest',{}, | |
1095 | function(args) | |
1096 | local players = getPlayer(args[1]) | |
1097 | for i,v in pairs(players) do | |
1098 | gPlayers[v].CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=1" | |
1099 | gPlayers[v].Character:BreakJoints() | |
1100 | end | |
1101 | end) | |
1102 | ||
1103 | addcmd('damage', 'damages a player',{}, | |
1104 | function(args) | |
1105 | local players = getPlayer(args[1]) | |
1106 | for i,v in pairs(players) do | |
1107 | gPlayers[v].Character.Humanoid.Health = gPlayers[v].Character.Humanoid.Health - 25 | |
1108 | end | |
1109 | end) | |
1110 | ||
1111 | addcmd('view', 'views player',{}, | |
1112 | function(args) | |
1113 | local players = getPlayer(args[1]) | |
1114 | for i,v in pairs(players) do | |
1115 | game.Workspace.CurrentCamera.CameraSubject = gPlayers[v].Character | |
1116 | end | |
1117 | end) | |
1118 | ||
1119 | addcmd('unview', 'stops viewing player',{}, | |
1120 | function() | |
1121 | game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character | |
1122 | end) | |
1123 | ||
1124 | addcmd('nolimbs', 'removes limbs from player',{}, | |
1125 | function(args) | |
1126 | local players = getPlayer(args[1]) | |
1127 | for i,v in pairs(players) do | |
1128 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
1129 | if v:IsA("BasePart") and | |
1130 | v.Name == "Right Leg" or | |
1131 | v.Name == "Left Leg" or | |
1132 | v.Name == "Right Arm" or | |
1133 | v.Name == "Left Arm" then | |
1134 | v:Remove() | |
1135 | end | |
1136 | end | |
1137 | end | |
1138 | end) | |
1139 | ||
1140 | addcmd('box', 'creates a box around player',{}, | |
1141 | function(args) | |
1142 | local players = getPlayer(args[1]) | |
1143 | for i,v in pairs(players)do | |
1144 | local pchar=_char(v) | |
1145 | local SB = Instance.new("SelectionBox", pchar) | |
1146 | SB.Adornee = SB.Parent | |
1147 | SB.Color = BrickColor.new("" .. (args[2])) | |
1148 | end | |
1149 | end) | |
1150 | ||
1151 | addcmd('nobox', 'takes away box from player',{'unbox'}, | |
1152 | function(args) | |
1153 | local players = getPlayer(args[1]) | |
1154 | for i,v in pairs(players)do | |
1155 | local pchar=_char(v) | |
1156 | for i,v in pairs(gPlayers[v].Character:GetChildren()) do | |
1157 | if v:IsA("SelectionBox") then | |
1158 | v:Destroy() | |
1159 | end | |
1160 | end | |
1161 | end | |
1162 | end) | |
1163 | ||
1164 | addcmd('ghost', 'ghostifys player',{}, | |
1165 | function(args) | |
1166 | local players = getPlayer(args[1]) | |
1167 | for i,v in pairs(players)do | |
1168 | local pchar=gPlayers[v].Character | |
1169 | pchar.Head.Transparency = 0.5 | |
1170 | pchar.Torso.Transparency = 0.5 | |
1171 | pchar["Left Arm"].Transparency = 0.5 | |
1172 | pchar["Right Arm"].Transparency = 0.5 | |
1173 | pchar["Left Leg"].Transparency = 0.5 | |
1174 | pchar["Right Leg"].Transparency = 0.5 | |
1175 | pchar.Head.face.Transparency = 0.5 | |
1176 | end | |
1177 | end) | |
1178 | ||
1179 | addcmd('sphere', 'puts sphere around player',{}, | |
1180 | function(args) | |
1181 | local players = getPlayer(args[1]) | |
1182 | for i,v in pairs(players)do | |
1183 | local pchar=gPlayers[v].Character | |
1184 | local SS = Instance.new("SelectionSphere", pchar) | |
1185 | SS.Adornee = SS.Parent | |
1186 | end | |
1187 | end) | |
1188 | ||
1189 | addcmd('loadmap','loads map from model',{}, | |
1190 | function(args) | |
1191 | pcall(function() | |
1192 | for i,v in pairs(workspace:GetChildren()) do | |
1193 | if v.Name~="Camera" and v.Name~="Terrain" then | |
1194 | v:Destroy() | |
1195 | end | |
1196 | end | |
1197 | workspace.Terrain:Clear() | |
1198 | for i,v in pairs(game.Players:GetChildren()) do | |
1199 | local plr = v | |
1200 | local prt = Instance.new("Model", workspace) | |
1201 | Instance.new("Part", prt).Name="Torso" | |
1202 | Instance.new("Part", prt).Name="Head" | |
1203 | Instance.new("Humanoid", prt).Name="Humanoid" | |
1204 | plr.Character = prt | |
1205 | end | |
1206 | if (args[1]) == "sfotho" then | |
1207 | local b = Insert(296400126, game.Workspace, "sfotho") | |
1208 | b:MakeJoints() | |
1209 | end | |
1210 | local b = Insert(args[1], game.Workspace, "LoadedMap") | |
1211 | b:MakeJoints() | |
1212 | end) | |
1213 | Notify('Loaded Map') | |
1214 | end) | |
1215 | ||
1216 | addcmd('sky','changes skybox',{}, | |
1217 | function(args) | |
1218 | pcall(function() | |
1219 | local ID = (args[1]) | |
1220 | local sky = Instance.new("Sky", game.Lighting) | |
1221 | sky.SkyboxBk = "rbxassetid://" .. ID | |
1222 | sky.SkyboxDn = "rbxassetid://" .. ID | |
1223 | sky.SkyboxFt = "rbxassetid://" .. ID | |
1224 | sky.SkyboxLf = "rbxassetid://" .. ID | |
1225 | sky.SkyboxRt = "rbxassetid://" .. ID | |
1226 | sky.SkyboxUp = "rbxassetid://" .. ID | |
1227 | end) | |
1228 | end) | |
1229 | ||
1230 | addcmd('ambient','changes ambient',{}, | |
1231 | function(args) | |
1232 | game.Lighting.Ambient = Color3.new(args[1],args[2],args[3]) | |
1233 | end) | |
1234 | ||
1235 | addcmd('gui','gives YourMom GUI',{}, | |
1236 | function(args) | |
1237 | loadstring(Insert(289110135, game.CoreGui.RobloxGui).Source)() | |
1238 | end) | |
1239 | ||
1240 | addcmd('jail','jails player',{}, | |
1241 | function(args) | |
1242 | local players = getPlayer(args[1]) | |
1243 | for i,v in pairs(players)do | |
1244 | local pchar=gPlayers[v].Character | |
1245 | local JailPlayer = DATA.JAIL:Clone() | |
1246 | JailPlayer.Parent = game.Workspace | |
1247 | JailPlayer:MoveTo(pchar.Torso.Position) | |
1248 | JailPlayer.Name = "JAIL_" .. gPlayers[v].Name | |
1249 | if pchar:FindFirstChild("HumanoidRootPart") then | |
1250 | pchar.HumanoidRootPart.CFrame = JailPlayer.MAIN.CFrame | |
1251 | end | |
1252 | end | |
1253 | end) | |
1254 | ||
1255 | addcmd('unjail','unjails player',{}, | |
1256 | function(args) | |
1257 | local players = getPlayer(args[1]) | |
1258 | for i,v in pairs(players)do | |
1259 | game.Workspace["JAIL_" .. gPlayers[v].Name]:Destroy() | |
1260 | end | |
1261 | end) | |
1262 | ||
1263 | addcmd('shutdown', 'shuts the server down',{}, | |
1264 | function(args) | |
1265 | local function ShutDown(Base) | |
1266 | for i,v in pairs(Base:GetChildren()) do | |
1267 | v:Destroy() | |
1268 | end | |
1269 | end | |
1270 | ShutDown(game.Players) | |
1271 | end) | |
1272 | ||
1273 | addcmd('animation','makes player animate',{'anim'}, | |
1274 | function(args) | |
1275 | local players = getPlayer(args[1]) | |
1276 | for i,v in pairs(players)do | |
1277 | local pchar = gPlayers[v].Character | |
1278 | local ID = args[2] | |
1279 | ||
1280 | if args[2] == "climb" then | |
1281 | ID = "180436334" | |
1282 | end | |
1283 | if args[2] == "fall" then | |
1284 | ID = "180436148" | |
1285 | end | |
1286 | if args[2] == "jump" then | |
1287 | ID = "125750702" | |
1288 | end | |
1289 | if args[2] == "sit" then | |
1290 | ID = "178130996" | |
1291 | end | |
1292 | for _,x in pairs(gPlayers[v].Character.Animate:GetChildren()) do | |
1293 | if x:IsA("StringValue") then | |
1294 | for _,c in pairs(x:GetChildren()) do | |
1295 | if c:IsA("Animation") then | |
1296 | c.AnimationId = "rbxassetid://" .. ID | |
1297 | end | |
1298 | end | |
1299 | end | |
1300 | end | |
1301 | end | |
1302 | end) | |
1303 | ||
1304 | addcmd('fix','turns player back to normal',{}, | |
1305 | function(args) | |
1306 | local players = getPlayer(args[1]) | |
1307 | for i,v in pairs(players)do | |
1308 | local pchar = gPlayers[v].Character | |
1309 | ||
1310 | pchar.Torso.Neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(90),math.rad(180),0) | |
1311 | pchar.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,0) * CFrame.Angles(0,math.rad(90),0) | |
1312 | pchar.Torso["Left Shoulder"].C0 = CFrame.new(-1,0.5,0) * CFrame.Angles(0,math.rad(-90),0) | |
1313 | pchar.Torso["Right Hip"].C0 = CFrame.new(1,-1,0) * CFrame.Angles(0,math.rad(90),0) | |
1314 | pchar.Torso["Left Hip"].C0 = CFrame.new(-1,-1,0) * CFrame.Angles(0,math.rad(-90),0) | |
1315 | ||
1316 | for i,v in pairs(pchar.Head:GetChildren()) do | |
1317 | if v:IsA("SpecialMesh") then | |
1318 | v:Destroy() | |
1319 | end | |
1320 | end | |
1321 | ||
1322 | for i,v in pairs(pchar:GetChildren()) do | |
1323 | if v:IsA("Shirt") then | |
1324 | v:Destroy() | |
1325 | end | |
1326 | end | |
1327 | ||
1328 | for i,v in pairs(pchar:GetChildren()) do | |
1329 | if v:IsA("Pants") then | |
1330 | v:Destroy() | |
1331 | end | |
1332 | end | |
1333 | ||
1334 | if Player.Character:FindFirstChild("Shirt Graphic") ~= nil then | |
1335 | Player.Character["Shirt Graphic"].Graphic = "" | |
1336 | end | |
1337 | ||
1338 | local HeadMesh = Instance.new("SpecialMesh", pchar.Head) | |
1339 | HeadMesh.MeshType = "Head" | |
1340 | HeadMesh.Scale = Vector3.new(1.25, 1.25, 1.25) | |
1341 | ||
1342 | pchar.Head.Transparency = 0 | |
1343 | pchar.Torso.Transparency = 0 | |
1344 | pchar["Left Arm"].Transparency = 0 | |
1345 | pchar["Right Arm"].Transparency = 0 | |
1346 | pchar["Left Leg"].Transparency = 0 | |
1347 | pchar["Right Leg"].Transparency = 0 | |
1348 | ||
1349 | for i,v in pairs(pchar.Head:GetChildren()) do | |
1350 | if v:IsA("Decal") then | |
1351 | v:Destroy() | |
1352 | end | |
1353 | end | |
1354 | ||
1355 | local face = Instance.new("Decal", pchar.Head) | |
1356 | face.Name = "face" | |
1357 | face.Texture = "rbxasset://textures/face.png" | |
1358 | face.Face = "Front" | |
1359 | ||
1360 | for i,v in pairs(pchar:GetChildren()) do | |
1361 | if v:IsA("Seat") then | |
1362 | v:Destroy() | |
1363 | end | |
1364 | end | |
1365 | ||
1366 | for i,v in pairs(pchar.Torso:GetChildren()) do | |
1367 | if v:IsA("Weld") then | |
1368 | v:Destroy() | |
1369 | end | |
1370 | end | |
1371 | ||
1372 | for i,v in pairs(pchar.Torso:GetChildren()) do | |
1373 | if v:IsA("SpecialMesh") then | |
1374 | v:Destroy() | |
1375 | end | |
1376 | end | |
1377 | ||
1378 | pchar["Body Colors"].HeadColor = BrickColor.new("Cool yellow") | |
1379 | pchar["Body Colors"].LeftArmColor = BrickColor.new("Cool yellow") | |
1380 | pchar["Body Colors"].LeftLegColor = BrickColor.new("Medium blue") | |
1381 | pchar["Body Colors"].RightArmColor = BrickColor.new("Cool yellow") | |
1382 | pchar["Body Colors"].RightLegColor = BrickColor.new("Medium blue") | |
1383 | pchar["Body Colors"].TorsoColor = BrickColor.new("Bright blue") | |
1384 | for _,v in pairs(Player.Character:GetChildren()) do | |
1385 | if v:IsA("Hat") then | |
1386 | v:Destroy() | |
1387 | end | |
1388 | end | |
1389 | end | |
1390 | end) | |
1391 | ||
1392 | addcmd('creeper','make the player a creeper',{'crpr'}, | |
1393 | function(args) | |
1394 | local players = getPlayer(args[1]) | |
1395 | for i,v in pairs(players)do | |
1396 | local pchar = gPlayers[v].Character | |
1397 | if gPlayers[v] and pchar and pchar:findFirstChild("Torso") then | |
1398 | if pchar:FindFirstChild("Shirt") then | |
1399 | pchar.Shirt.Parent = pchar.Torso | |
1400 | end | |
1401 | if pchar:FindFirstChild("Pants") then | |
1402 | pchar.Pants.Parent = pchar.Torso | |
1403 | end | |
1404 | if pchar:FindFirstChild("Shirt Graphic") then | |
1405 | pchar["Shirt Graphic"].Graphic = "" | |
1406 | end | |
1407 | for i,v in pairs(pchar:GetChildren()) do | |
1408 | if v:IsA("Hat") then | |
1409 | v:Destroy() | |
1410 | end | |
1411 | end | |
1412 | pchar.Torso.Neck.C0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(90),math.rad(180),0) | |
1413 | pchar.Torso["Right Shoulder"].C0 = CFrame.new(0,-1.5,-.5) * CFrame.Angles(0,math.rad(90),0) | |
1414 | pchar.Torso["Left Shoulder"].C0 = CFrame.new(0,-1.5,-.5) * CFrame.Angles(0,math.rad(-90),0) | |
1415 | pchar.Torso["Right Hip"].C0 = CFrame.new(0,-1,.5) * CFrame.Angles(0,math.rad(90),0) | |
1416 | pchar.Torso["Left Hip"].C0 = CFrame.new(0,-1,.5) * CFrame.Angles(0,math.rad(-90),0) | |
1417 | pchar["Body Colors"].HeadColor = BrickColor.new("Bright green") | |
1418 | pchar["Body Colors"].LeftArmColor = BrickColor.new("Bright green") | |
1419 | pchar["Body Colors"].LeftLegColor = BrickColor.new("Bright green") | |
1420 | pchar["Body Colors"].RightArmColor = BrickColor.new("Bright green") | |
1421 | pchar["Body Colors"].RightLegColor = BrickColor.new("Bright green") | |
1422 | pchar["Body Colors"].TorsoColor = BrickColor.new("Bright green") | |
1423 | end | |
1424 | end | |
1425 | end) | |
1426 | ||
1427 | addcmd('uncreeper','makes player back to normal',{}, | |
1428 | function(args) | |
1429 | local players = getPlayer(args[1]) | |
1430 | for i,v in pairs(players)do | |
1431 | execCmd("fix " .. gPlayers[v].Name, Player) | |
1432 | end | |
1433 | end) | |
1434 | ||
1435 | addcmd('shrek', 'makes player shrek',{}, | |
1436 | function(args) | |
1437 | local players = getPlayer(args[1]) | |
1438 | for i,v in pairs(players) do | |
1439 | local pchar = gPlayers[v].Character | |
1440 | for i,v in pairs(pchar:GetChildren()) do | |
1441 | if v:IsA("Hat") or v:IsA("CharacterMesh") or v:IsA("Shirt") or v:IsA("Pants") then | |
1442 | v:Destroy() | |
1443 | end | |
1444 | end | |
1445 | for i,v in pairs(pchar.Head:GetChildren()) do | |
1446 | if v:IsA("Decal") or v:IsA("SpecialMesh") then | |
1447 | v:Destroy() | |
1448 | end | |
1449 | end | |
1450 | ||
1451 | local mesh = Instance.new("SpecialMesh", pchar.Head) | |
1452 | mesh.MeshType = "FileMesh" | |
1453 | pchar.Head.Mesh.MeshId = "http://www.roblox.com/asset/?id=19999257" | |
1454 | pchar.Head.Mesh.Offset = Vector3.new(-0.1, 0.1, 0) | |
1455 | pchar.Head.Mesh.TextureId = "http://www.roblox.com/asset/?id=156397869" | |
1456 | ||
1457 | local Shirt = Instance.new("Shirt", gPlayers[v].Character) | |
1458 | local Pants = Instance.new("Pants", gPlayers[v].Character) | |
1459 | ||
1460 | Shirt.ShirtTemplate = "rbxassetid://133078194" | |
1461 | Pants.PantsTemplate = "rbxassetid://133078204" | |
1462 | end | |
1463 | end) | |
1464 | ||
1465 | addcmd('unshrek','makes player back to normal',{}, | |
1466 | function(args) | |
1467 | local players = getPlayer(args[1]) | |
1468 | for i,v in pairs(players)do | |
1469 | execCmd("fix " .. gPlayers[v].Name, Player) | |
1470 | end | |
1471 | end) | |
1472 | ||
1473 | local Spamming = false | |
1474 | ||
1475 | addcmd('spam','spams text',{}, | |
1476 | function(args) | |
1477 | Spamming = true | |
1478 | spawn(function() | |
1479 | while wait(0) do | |
1480 | if Spamming == true then | |
1481 | while wait(0.1) do | |
1482 | if Spamming == true then | |
1483 | game.Players:Chat("" .. args[1]) | |
1484 | elseif Spamming == false then | |
1485 | return | |
1486 | end | |
1487 | end | |
1488 | end | |
1489 | end | |
1490 | end) | |
1491 | end) | |
1492 | ||
1493 | addcmd('nospam','stops spamming',{}, | |
1494 | function(args) | |
1495 | Spamming = false | |
1496 | end) | |
1497 | ||
1498 | addcmd('control','controls player',{}, | |
1499 | function(args) | |
1500 | local players = getPlayer(args[1]) | |
1501 | for i,v in pairs(players)do | |
1502 | local pchar = gPlayers[v].Character | |
1503 | if gPlayers[v] and pchar then | |
1504 | pchar.Humanoid.PlatformStand = true | |
1505 | local w = Instance.new("Weld", Player.Character.Torso) | |
1506 | w.Part0 = Player.Character.Torso | |
1507 | w.Part1 = pchar.Torso | |
1508 | local w2 = Instance.new("Weld", Player.Character.Head) | |
1509 | w2.Part0 = Player.Character.Head | |
1510 | w2.Part1 = pchar.Head | |
1511 | local w3 = Instance.new("Weld", Player.Character:findFirstChild("Right Arm")) | |
1512 | w3.Part0 = Player.Character:findFirstChild("Right Arm") | |
1513 | w3.Part1 = pchar:findFirstChild("Right Arm") | |
1514 | local w4 = Instance.new("Weld", Player.Character:findFirstChild("Left Arm")) | |
1515 | w4.Part0 = Player.Character:findFirstChild("Left Arm") | |
1516 | w4.Part1 = pchar:findFirstChild("Left Arm") | |
1517 | local w5 = Instance.new("Weld", Player.Character:findFirstChild("Right Leg")) | |
1518 | w5.Part0 = Player.Character:findFirstChild("Right Leg") | |
1519 | w5.Part1 = pchar:findFirstChild("Right Leg") | |
1520 | local w6 = Instance.new("Weld", Player.Character:findFirstChild("Left Leg")) | |
1521 | w6.Part0 = Player.Character:findFirstChild("Left Leg") | |
1522 | w6.Part1 = pchar:findFirstChild("Left Leg") | |
1523 | char.Head.face:Destroy() | |
1524 | for i,v in pairs(pchar:GetChildren()) do | |
1525 | if v:IsA("BasePart") then | |
1526 | v.CanCollide = false | |
1527 | end | |
1528 | end | |
1529 | for i,v in pairs(char:GetChildren()) do | |
1530 | if v:IsA("BasePart") then | |
1531 | v.Transparency = 1 | |
1532 | elseif v:IsA("Hat") then | |
1533 | v:Destroy() | |
1534 | end | |
1535 | end | |
1536 | pchar.Parent = char | |
1537 | pchar.Humanoid.Changed:connect(function() | |
1538 | pchar.Humanoid.PlatformStand = true | |
1539 | end) | |
1540 | end | |
1541 | end | |
1542 | end) | |
1543 | ||
1544 | addcmd('nuke','nukes player',{}, | |
1545 | function(args) | |
1546 | local players = getPlayer(args[1]) | |
1547 | for i,v in pairs(players)do | |
1548 | local pchar = gPlayers[v].Character | |
1549 | if gPlayers[v] and pchar and pchar:FindFirstChild("Torso") then | |
1550 | local nuke = Instance.new("Part", game.Workspace) | |
1551 | nuke.Anchored = true | |
1552 | nuke.CanCollide = false | |
1553 | nuke.FormFactor = "Symmetric" | |
1554 | nuke.Shape = "Ball" | |
1555 | nuke.Size = Vector3.new(1,1,1) | |
1556 | nuke.BrickColor = BrickColor.new("New Yeller") | |
1557 | nuke.Transparency = 0.5 | |
1558 | nuke.Reflectance = 0.2 | |
1559 | nuke.TopSurface = 0 | |
1560 | nuke.BottomSurface = 0 | |
1561 | nuke.Touched:connect(function (hit) | |
1562 | if hit and hit.Parent then | |
1563 | local boom = Instance.new("Explosion", game.Workspace) | |
1564 | boom.Position = hit.Position | |
1565 | boom.BlastRadius = 11 | |
1566 | boom.BlastPressure = math.huge | |
1567 | end | |
1568 | end) | |
1569 | local CF = pchar.Torso.CFrame | |
1570 | nuke.CFrame = CF | |
1571 | for i = 1,333 do | |
1572 | nuke.Size = nuke.Size + Vector3.new(3,3,3) | |
1573 | nuke.CFrame = CF | |
1574 | wait(1/44) | |
1575 | end | |
1576 | nuke:Destroy() | |
1577 | end | |
1578 | end | |
1579 | end) | |
1580 | ||
1581 | addcmd('infect','infects player',{}, | |
1582 | function(args) | |
1583 | local players = getPlayer(args[1]) | |
1584 | for i,v in pairs(players)do | |
1585 | function infect(rip) | |
1586 | local pchar = gPlayers[v].Character | |
1587 | for i,v in pairs(pchar:GetChildren()) do | |
1588 | if v:IsA("Hat") or v:IsA("Shirt") or v:IsA("Pants") then | |
1589 | v:Destroy() | |
1590 | end | |
1591 | end | |
1592 | if pchar.Torso:FindFirstChild("roblox") then | |
1593 | pchar.Torso.roblox:Destroy() | |
1594 | end | |
1595 | if pchar.Head:FindFirstChild("face") then | |
1596 | pchar.Head.face.Texture = "http://www.roblox.com/asset/?id=94634491" | |
1597 | end | |
1598 | if pchar:FindFirstChild("Body Colors") then | |
1599 | local Colors = pchar["Body Colors"] | |
1600 | local Skin = BrickColor.new("Pastel green") | |
1601 | local Clothes = BrickColor.new("Reddish brown") | |
1602 | Colors.HeadColor = Skin | |
1603 | Colors.LeftArmColor = Skin | |
1604 | Colors.RightArmColor = Skin | |
1605 | Colors.LeftLegColor = Clothes | |
1606 | Colors.RightLegColor = Clothes | |
1607 | Colors.TorsoColor = Clothes | |
1608 | end | |
1609 | local w1 = Instance.new("Weld", pchar) | |
1610 | w1.Part0 = pchar["Right Arm"] | |
1611 | w1.Part1 = pchar.Torso | |
1612 | w1.C0 = CFrame.new(-1.5, 0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(0)) | |
1613 | local w2 = Instance.new("Weld", pchar) | |
1614 | w2.Part0 = pchar["Left Arm"] | |
1615 | w2.Part1 = pchar.Torso | |
1616 | w2.C0 = CFrame.new(1.5, 0.5, 0.5) * CFrame.fromEulerAnglesXYZ(math.rad(-90), math.rad(0), math.rad(0)) | |
1617 | local rip = false | |
1618 | local connect1 = pchar["Left Arm"].Touched:connect(function(hit) | |
1619 | if connect1 == false then | |
1620 | connect1 = true | |
1621 | if game.Players:FindFirstChild(hit.Parent.Name) then | |
1622 | infect(game.Players[hit.Parent.Name]) | |
1623 | end | |
1624 | wait(0.5) | |
1625 | connect1 = true | |
1626 | end | |
1627 | end) | |
1628 | local connect2 = pchar["Right Arm"].Touched:connect(function(hit) | |
1629 | if connect2 == false then | |
1630 | connect2 = true | |
1631 | if game.Players:FindFirstChild(hit.Parent.Name) then | |
1632 | infect(game.Players[hit.Parent.Name]) | |
1633 | end | |
1634 | wait(0.5) | |
1635 | connect2 = true | |
1636 | end | |
1637 | end) | |
1638 | local IV = Instance.new("IntValue", pchar) | |
1639 | IV.Name = "Infected" | |
1640 | IV.Value = 0 | |
1641 | IV.Changed:connect(function() | |
1642 | connect1:disconnect() | |
1643 | connect2:disconnect() | |
1644 | end) | |
1645 | end | |
1646 | infect(v) | |
1647 | end | |
1648 | end) | |
1649 | ||
1650 | addcmd('uninfect','makes player back to normal',{}, | |
1651 | function(args) | |
1652 | local players = getPlayer(args[1]) | |
1653 | for i,v in pairs(players)do | |
1654 | execCmd("fix " .. gPlayers[v].Name, Player) | |
1655 | end | |
1656 | end) | |
1657 | ||
1658 | addcmd('duck','makes players head a duck',{}, | |
1659 | function(args) | |
1660 | local players = getPlayer(args[1]) | |
1661 | for i,v in pairs(players)do | |
1662 | local pchar = gPlayers[v].Character | |
1663 | for i,v in pairs(pchar.Torso:GetChildren()) do | |
1664 | if v:IsA("Decal") then | |
1665 | v:Destroy() | |
1666 | end | |
1667 | end | |
1668 | for i,v in pairs(pchar:GetChildren()) do | |
1669 | if v:IsA("Hat") then | |
1670 | v:Destroy() | |
1671 | end | |
1672 | end | |
1673 | local duck = Instance.new("SpecialMesh", pchar.Torso) | |
1674 | duck.MeshType = "FileMesh" | |
1675 | duck.MeshId = "http://www.roblox.com/asset/?id=9419831" | |
1676 | duck.TextureId = "http://www.roblox.com/asset/?id=9419827" | |
1677 | duck.Scale = Vector3.new(5, 5, 5) | |
1678 | pchar.Head.Transparency = 1 | |
1679 | pchar["Left Arm"].Transparency = 1 | |
1680 | pchar["Right Arm"].Transparency = 1 | |
1681 | pchar["Left Leg"].Transparency = 1 | |
1682 | pchar["Right Leg"].Transparency = 1 | |
1683 | pchar.Head.face.Transparency = 1 | |
1684 | end | |
1685 | end) | |
1686 | ||
1687 | addcmd('unduck','makes player back to normal',{}, | |
1688 | function(args) | |
1689 | local players = getPlayer(args[1]) | |
1690 | for i,v in pairs(players)do | |
1691 | execCmd("fix " .. gPlayers[v].Name, Player) | |
1692 | end | |
1693 | end) | |
1694 | ||
1695 | addcmd('disable','removes players humanoid',{}, | |
1696 | function(args) | |
1697 | local players = getPlayer(args[1]) | |
1698 | for i,v in pairs(players)do | |
1699 | local pchar = gPlayers[v].Character | |
1700 | if pchar:FindFirstChild("Humanoid") then | |
1701 | pchar.Humanoid.Name = "HUMANOID_" .. gPlayers[v].Name | |
1702 | local humanoid = pchar["HUMANOID_" .. gPlayers[v].Name] | |
1703 | humanoid.Parent = game.ContextActionService | |
1704 | end | |
1705 | end | |
1706 | end) | |
1707 | ||
1708 | addcmd('enable','gives player humanoid',{}, | |
1709 | function(args) | |
1710 | local players = getPlayer(args[1]) | |
1711 | for i,v in pairs(players)do | |
1712 | local pchar = gPlayers[v].Character | |
1713 | if pchar:FindFirstChild("Humanoid") then | |
1714 | return | |
1715 | else | |
1716 | local humanoid = game.ContextActionService["HUMANOID_" .. gPlayers[v].Name] | |
1717 | humanoid.Parent = pchar | |
1718 | humanoid.Name = "Humanoid" | |
1719 | end | |
1720 | end | |
1721 | end) | |
1722 | ||
1723 | addcmd('size','changes size of player',{}, | |
1724 | function(args) | |
1725 | local players = getPlayer(args[1]) | |
1726 | for i,v in pairs(players)do | |
1727 | local pchar = gPlayers[v].Character | |
1728 | local function scale(chr,scl) | |
1729 | ||
1730 | for _,v in pairs(pchar:GetChildren()) do | |
1731 | if v:IsA("Hat") then | |
1732 | v:Clone() | |
1733 | v.Parent = game.Lighting | |
1734 | end | |
1735 | end | |
1736 | ||
1737 | local Head = chr['Head'] | |
1738 | local Torso = chr['Torso'] | |
1739 | local LA = chr['Left Arm'] | |
1740 | local RA = chr['Right Arm'] | |
1741 | local LL = chr['Left Leg'] | |
1742 | local RL = chr['Right Leg'] | |
1743 | local HRP = chr['HumanoidRootPart'] | |
1744 | ||
1745 | wait(0.1) | |
1746 | ||
1747 | Head.formFactor = 3 | |
1748 | Torso.formFactor = 3 | |
1749 | LA.formFactor = 3 | |
1750 | RA.formFactor = 3 | |
1751 | LL.formFactor = 3 | |
1752 | RL.formFactor = 3 | |
1753 | HRP.formFactor = 3 | |
1754 | ||
1755 | Head.Size = Vector3.new(scl * 2, scl, scl) | |
1756 | Torso.Size = Vector3.new(scl * 2, scl * 2, scl) | |
1757 | LA.Size = Vector3.new(scl, scl * 2, scl) | |
1758 | RA.Size = Vector3.new(scl, scl * 2, scl) | |
1759 | LL.Size = Vector3.new(scl, scl * 2, scl) | |
1760 | RL.Size = Vector3.new(scl, scl * 2, scl) | |
1761 | HRP.Size = Vector3.new(scl * 2, scl * 2, scl) | |
1762 | ||
1763 | local Motor1 = Instance.new('Motor6D', Torso) | |
1764 | Motor1.Part0 = Torso | |
1765 | Motor1.Part1 = Head | |
1766 | Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1) | |
1767 | Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1) | |
1768 | Motor1.Name = "Neck" | |
1769 | ||
1770 | local Motor2 = Instance.new('Motor6D', Torso) | |
1771 | Motor2.Part0 = Torso | |
1772 | Motor2.Part1 = LA | |
1773 | Motor2.C0 = CFrame.new(-1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0) | |
1774 | Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0) | |
1775 | Motor2.Name = "Left Shoulder" | |
1776 | ||
1777 | local Motor3 = Instance.new('Motor6D', Torso) | |
1778 | Motor3.Part0 = Torso | |
1779 | Motor3.Part1 = RA | |
1780 | Motor3.C0 = CFrame.new(1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0) | |
1781 | Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0) | |
1782 | Motor3.Name = "Right Shoulder" | |
1783 | ||
1784 | local Motor4 = Instance.new('Motor6D', Torso) | |
1785 | Motor4.Part0 = Torso | |
1786 | Motor4.Part1 = LL | |
1787 | Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0) | |
1788 | Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0) | |
1789 | Motor4.Name = "Left Hip" | |
1790 | ||
1791 | local Motor5 = Instance.new('Motor6D', Torso) | |
1792 | Motor5.Part0 = Torso | |
1793 | Motor5.Part1 = RL | |
1794 | Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0) | |
1795 | Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0) | |
1796 | Motor5.Name = "Right Hip" | |
1797 | ||
1798 | local Motor6 = Instance.new('Motor6D', HRP) | |
1799 | Motor6.Part0 = HRP | |
1800 | Motor6.Part1 = Torso | |
1801 | Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1) | |
1802 | Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1) | |
1803 | ||
1804 | end | |
1805 | ||
1806 | scale(pchar, args[2]) | |
1807 | ||
1808 | for _,v in pairs(game.Lighting:GetChildren()) do | |
1809 | if v:IsA("Hat") then | |
1810 | v.Parent = pchar | |
1811 | end | |
1812 | end | |
1813 | end | |
1814 | end) | |
1815 | ||
1816 | addcmd('confuse','reverses players speed',{'reverse'}, | |
1817 | function(args) | |
1818 | local players = getPlayer(args[1]) | |
1819 | for i,v in pairs(players)do | |
1820 | local pchar = gPlayers[v].Character | |
1821 | pchar.Humanoid.WalkSpeed = tonumber(-16) | |
1822 | end | |
1823 | end) | |
1824 | ||
1825 | addcmd('unconfuse','reverses players speed',{'unreverse'}, | |
1826 | function(args) | |
1827 | local players = getPlayer(args[1]) | |
1828 | for i,v in pairs(players)do | |
1829 | local pchar = gPlayers[v].Character | |
1830 | pchar.Humanoid.WalkSpeed = tonumber(16) | |
1831 | end | |
1832 | end) | |
1833 | ||
1834 | addcmd('clone','clones player',{}, | |
1835 | function(args) | |
1836 | local players = getPlayer(args[1]) | |
1837 | for i,v in pairs(players)do | |
1838 | local pchar = gPlayers[v].Character | |
1839 | pchar.Archivable = true | |
1840 | local clone = pchar:Clone() | |
1841 | clone.Parent = game.Workspace | |
1842 | clone:MoveTo(pchar:GetModelCFrame().p) | |
1843 | clone:MakeJoints() | |
1844 | pchar.Archivable = false | |
1845 | end | |
1846 | end) | |
1847 | ||
1848 | addcmd('spin','spins player',{}, | |
1849 | function(args) | |
1850 | local players = getPlayer(args[1]) | |
1851 | for i,v in pairs(players)do | |
1852 | local pchar = gPlayers[v].Character | |
1853 | for i,v in pairs(pchar.Torso:GetChildren()) do | |
1854 | if v.Name == "Spinning" then | |
1855 | v:Destroy() | |
1856 | end | |
1857 | end | |
1858 | local Torso = pchar.Torso | |
1859 | local BG = Instance.new("BodyGyro", Torso) | |
1860 | BG.Name = "Spinning" | |
1861 | BG.maxTorque = Vector3.new(0, math.huge, 0) | |
1862 | BG.P = 11111 | |
1863 | BG.cframe = Torso.CFrame | |
1864 | repeat wait(1/44) | |
1865 | BG.CFrame = BG.CFrame * CFrame.Angles(0,math.rad(30),0) | |
1866 | until not BG or BG.Parent ~= Torso | |
1867 | end | |
1868 | end) | |
1869 | ||
1870 | addcmd('unspin','stops spinning player',{}, | |
1871 | function(args) | |
1872 | local players = getPlayer(args[1]) | |
1873 | for i,v in pairs(players)do | |
1874 | local pchar = gPlayers[v].Character | |
1875 | for i,v in pairs(pchar.Torso:GetChildren()) do | |
1876 | if v.Name == "Spinning" then | |
1877 | v:Destroy() | |
1878 | end | |
1879 | end | |
1880 | end | |
1881 | end) | |
1882 | ||
1883 | addcmd('dog','makes player a dog',{}, | |
1884 | function(args) | |
1885 | local players = getPlayer(args[1]) | |
1886 | for i,v in pairs(players)do | |
1887 | local pchar = gPlayers[v].Character | |
1888 | if pchar:FindFirstChild("Shirt") then | |
1889 | pchar.Shirt:Destroy() | |
1890 | end | |
1891 | if pchar:FindFirstChild("Pants") then | |
1892 | pchar.Pants:Destroy() | |
1893 | end | |
1894 | if pchar:FindFirstChild("Shirt Graphic") then | |
1895 | pchar["Shirt Graphic"].Graphic = "" | |
1896 | end | |
1897 | pchar.Torso.Transparency = 1 | |
1898 | pchar.Torso.Neck.C0 = CFrame.new(0,-.5,-2) * CFrame.Angles(math.rad(90),math.rad(180),0) | |
1899 | pchar.Torso["Right Shoulder"].C0 = CFrame.new(.5,-1.5,-1.5) * CFrame.Angles(0,math.rad(90),0) | |
1900 | pchar.Torso["Left Shoulder"].C0 = CFrame.new(-.5,-1.5,-1.5) * CFrame.Angles(0,math.rad(-90),0) | |
1901 | pchar.Torso["Right Hip"].C0 = CFrame.new(1.5,-1,1.5) * CFrame.Angles(0,math.rad(90),0) | |
1902 | pchar.Torso["Left Hip"].C0 = CFrame.new(-1.5,-1,1.5) * CFrame.Angles(0,math.rad(-90),0) | |
1903 | local FakeTorso = Instance.new("Seat", pchar) | |
1904 | FakeTorso.Name = "FakeTorso" | |
1905 | FakeTorso.FormFactor = "Symmetric" | |
1906 | FakeTorso.TopSurface = 0 | |
1907 | FakeTorso.BottomSurface = 0 | |
1908 | FakeTorso.Size = Vector3.new(3,1,4) | |
1909 | FakeTorso.BrickColor = BrickColor.new("Brown") | |
1910 | FakeTorso.CFrame = pchar.Torso.CFrame | |
1911 | local BF = Instance.new("BodyForce", FakeTorso) | |
1912 | BF.Force = Vector3.new(0, FakeTorso:GetMass() * 196.25, 0) | |
1913 | local W = Instance.new("Weld", pchar.Torso) | |
1914 | W.Part0 = pchar.Torso | |
1915 | W.Part1 = FakeTorso | |
1916 | W.C0 = CFrame.new(0,-.5,0) | |
1917 | local BC = pchar["Body Colors"] | |
1918 | BC.HeadColor = BrickColor.new("Brown") | |
1919 | BC.LeftArmColor = BrickColor.new("Brown") | |
1920 | BC.LeftLegColor = BrickColor.new("Brown") | |
1921 | BC.RightArmColor = BrickColor.new("Brown") | |
1922 | BC.RightLegColor = BrickColor.new("Brown") | |
1923 | BC.TorsoColor = BrickColor.new("Brown") | |
1924 | end | |
1925 | end) | |
1926 | ||
1927 | addcmd('undog','makes player back to normal',{}, | |
1928 | function(args) | |
1929 | local players = getPlayer(args[1]) | |
1930 | for i,v in pairs(players)do | |
1931 | execCmd("fix " .. gPlayers[v].Name, Player) | |
1932 | end | |
1933 | end) | |
1934 | ||
1935 | addcmd('tptool','gives player tptool',{''}, | |
1936 | function(args) | |
1937 | local tool = DATA.Teleport:Clone() | |
1938 | tool.Parent = Player.Backpack | |
1939 | end) | |
1940 | ||
1941 | addcmd('loopsit','loop sits player',{}, | |
1942 | function(args) | |
1943 | local players = getPlayer(args[1]) | |
1944 | for i,v in pairs(players)do | |
1945 | local pchar = gPlayers[v].Character | |
1946 | if pchar:FindFirstChild("LoopSit") then | |
1947 | pchar.LoopSit.Name = "NotLoopSit" | |
1948 | wait(0.1) | |
1949 | pchar.NotLoopSit:Destroy() | |
1950 | end | |
1951 | local LoopSit = Instance.new("StringValue", pchar) | |
1952 | LoopSit.Name = "LoopSit" | |
1953 | repeat wait(0.1) | |
1954 | pchar.Humanoid.Sit = true | |
1955 | until LoopSit.Name == "NotLoopSit" | |
1956 | end | |
1957 | end) | |
1958 | ||
1959 | addcmd('unloopsit','stops loop sit on player',{'noloopsit'}, | |
1960 | function(args) | |
1961 | local players = getPlayer(args[1]) | |
1962 | for i,v in pairs(players)do | |
1963 | local pchar = gPlayers[v].Character | |
1964 | if pchar:FindFirstChild("LoopSit") then | |
1965 | pchar.LoopSit.Name = "NotLoopSit" | |
1966 | wait(0.1) | |
1967 | pchar.NotLoopSit:Destroy() | |
1968 | end | |
1969 | end | |
1970 | end) | |
1971 | ||
1972 | addcmd('loopjump','loop jumps player',{}, | |
1973 | function(args) | |
1974 | local players = getPlayer(args[1]) | |
1975 | for i,v in pairs(players)do | |
1976 | local pchar = gPlayers[v].Character | |
1977 | if pchar:FindFirstChild("LoopJump") then | |
1978 | pchar.LoopJump.Name = "NotLoopJump" | |
1979 | wait(0.1) | |
1980 | pchar.NotLoopJump:Destroy() | |
1981 | end | |
1982 | local LoopJump = Instance.new("StringValue", pchar) | |
1983 | LoopJump.Name = "LoopJump" | |
1984 | repeat wait(0.1) | |
1985 | pchar.Humanoid.Jump = true | |
1986 | until LoopJump.Name == "NotLoopJump" | |
1987 | end | |
1988 | end) | |
1989 | ||
1990 | addcmd('unloopjump','stops loop jump on player',{'noloopjump'}, | |
1991 | function(args) | |
1992 | local players = getPlayer(args[1]) | |
1993 | for i,v in pairs(players)do | |
1994 | local pchar = gPlayers[v].Character | |
1995 | if pchar:FindFirstChild("LoopJump") then | |
1996 | pchar.LoopJump.Name = "NotLoopJump" | |
1997 | wait(0.1) | |
1998 | pchar.NotLoopJump:Destroy() | |
1999 | end | |
2000 | end | |
2001 | end) | |
2002 | ||
2003 | addcmd('loopheal','loop heals player',{}, | |
2004 | function(args) | |
2005 | local players = getPlayer(args[1]) | |
2006 | for i,v in pairs(players)do | |
2007 | local pchar = gPlayers[v].Character | |
2008 | if pchar:FindFirstChild("LoopHeal") then | |
2009 | pchar.LoopHeal.Name = "NotLoopHeal" | |
2010 | wait(0.1) | |
2011 | pchar.NotLoopHeal:Destroy() | |
2012 | end | |
2013 | local LoopHeal = Instance.new("StringValue", pchar) | |
2014 | LoopHeal.Name = "LoopHeal" | |
2015 | repeat wait(0.1) | |
2016 | pchar.Humanoid.Health = pchar.Humanoid.MaxHealth | |
2017 | until LoopHeal.Name == "NotLoopHeal" | |
2018 | end | |
2019 | end) | |
2020 | ||
2021 | addcmd('unloopheal','stops loop heal on player',{'noloopheal'}, | |
2022 | function(args) | |
2023 | local players = getPlayer(args[1]) | |
2024 | for i,v in pairs(players)do | |
2025 | local pchar = gPlayers[v].Character | |
2026 | if pchar:FindFirstChild("LoopHeal") then | |
2027 | pchar.LoopHeal.Name = "NotLoopHeal" | |
2028 | wait(0.1) | |
2029 | pchar.NotLoopHeal:Destroy() | |
2030 | end | |
2031 | end | |
2032 | end) | |
2033 | ||
2034 | addcmd('fling','flings player',{}, | |
2035 | function(args) | |
2036 | local players = getPlayer(args[1]) | |
2037 | for i,v in pairs(players)do | |
2038 | local pchar = gPlayers[v].Character | |
2039 | if pchar:FindFirstChild("Humanoid") then | |
2040 | local xran | |
2041 | local zran | |
2042 | repeat | |
2043 | xran = math.random(-9999,9999) | |
2044 | until math.abs(xran) >= 5555 | |
2045 | repeat | |
2046 | zran = math.random(-9999,9999) | |
2047 | until math.abs(zran) >= 5555 | |
2048 | pchar.Humanoid.Sit = true | |
2049 | pchar.Torso.Velocity = Vector3.new(0,0,0) | |
2050 | local BF = Instance.new("BodyForce", pchar.Torso) | |
2051 | BF.force = Vector3.new(xran * 4, 9999 * 5, zran * 4) | |
2052 | end | |
2053 | end | |
2054 | end) | |
2055 | ||
2056 | addcmd('nograv','makes player have moon gravity',{''}, | |
2057 | function(args) | |
2058 | local players = getPlayer(args[1]) | |
2059 | for i,v in pairs(players)do | |
2060 | local pchar = gPlayers[v].Character | |
2061 | for i,v in pairs(pchar.Torso:GetChildren()) do | |
2062 | if v.Name == "NoGrav" then | |
2063 | v:Destroy() | |
2064 | end | |
2065 | end | |
2066 | local BF = Instance.new("BodyForce", pchar.Torso) | |
2067 | BF.Name = "NoGrav" | |
2068 | BF.Force = Vector3.new(0,2700,0) | |
2069 | end | |
2070 | end) | |
2071 | ||
2072 | addcmd('grav','makes player have normal gravity',{''}, | |
2073 | function(args) | |
2074 | local players = getPlayer(args[1]) | |
2075 | for i,v in pairs(players)do | |
2076 | local pchar = gPlayers[v].Character | |
2077 | for i,v in pairs(pchar.Torso:GetChildren()) do | |
2078 | if v.Name == "NoGrav" then | |
2079 | v:Destroy() | |
2080 | end | |
2081 | end | |
2082 | end | |
2083 | end) | |
2084 | ||
2085 | addcmd('seizure','makes player have a seizure',{''}, | |
2086 | function(args) | |
2087 | local players = getPlayer(args[1]) | |
2088 | for i,v in pairs(players)do | |
2089 | local pchar = gPlayers[v].Character | |
2090 | if pchar:FindFirstChild("Seizure") then | |
2091 | ||
2092 | end | |
2093 | local Seizure = Instance.new("StringValue", pchar) | |
2094 | Seizure.Name = "Seizure" | |
2095 | pchar.Humanoid.PlatformStand = true | |
2096 | repeat wait() | |
2097 | pchar.Torso.Velocity = Vector3.new(math.random(-10,10),-5,math.random(-10,10)) | |
2098 | pchar.Torso.RotVelocity = Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5)) | |
2099 | until Seizure.Name == "NotSeizure" | |
2100 | end | |
2101 | end) | |
2102 | ||
2103 | addcmd('unseizure','makes player stop having a seizure',{''}, | |
2104 | function(args) | |
2105 | local players = getPlayer(args[1]) | |
2106 | for i,v in pairs(players)do | |
2107 | local pchar = gPlayers[v].Character | |
2108 | if pchar:FindFirstChild("Seizure") then | |
2109 | pchar.Humanoid.PlatformStand = false | |
2110 | pchar.Seizure.Name = "NotSeizure" | |
2111 | wait(0.1) | |
2112 | pchar.NotSeizure:Destroy() | |
2113 | end | |
2114 | end | |
2115 | end) | |
2116 | ||
2117 | addcmd('cape','gives you a cape',{''}, | |
2118 | function(args) | |
2119 | if not args[1] then | |
2120 | args[1] = 1012 | |
2121 | end | |
2122 | capeColor = args[1] | |
2123 | Cape(Player) | |
2124 | end) | |
2125 | ||
2126 | addcmd('uncape','takes cape away from you',{''}, | |
2127 | function(args) | |
2128 | if char:FindFirstChild("Cape") ~= nil then | |
2129 | char.Cape:Destroy() | |
2130 | end | |
2131 | end) | |
2132 | ||
2133 | addcmd('paper','makes player thin as paper',{''}, | |
2134 | function(args) | |
2135 | local players = getPlayer(args[1]) | |
2136 | for i,v in pairs(players)do | |
2137 | local pchar = gPlayers[v].Character | |
2138 | local LA = DATA.Paper:Clone() | |
2139 | LA.Parent = pchar["Left Arm"] | |
2140 | local RA = DATA.Paper:Clone() | |
2141 | RA.Parent = pchar["Right Arm"] | |
2142 | local LL = DATA.Paper:Clone() | |
2143 | LL.Parent = pchar["Left Leg"] | |
2144 | local RL = DATA.Paper:Clone() | |
2145 | RL.Parent = pchar["Right Leg"] | |
2146 | local T = DATA.Paper:Clone() | |
2147 | T.Parent = pchar.Torso | |
2148 | local H = DATA.Paper:Clone() | |
2149 | H.Parent = pchar.Head | |
2150 | pchar.Head.face:Destroy() | |
2151 | end | |
2152 | end) | |
2153 | ||
2154 | addcmd('punish','punishs player',{''}, | |
2155 | function(args) | |
2156 | local players = getPlayer(args[1]) | |
2157 | for i,v in pairs(players)do | |
2158 | local pchar = gPlayers[v].Character | |
2159 | pchar.Parent = game.Lighting | |
2160 | end | |
2161 | end) | |
2162 | ||
2163 | addcmd('unpunish','unpunishs player',{''}, | |
2164 | function(args) | |
2165 | local players = getPlayer(args[1]) | |
2166 | for i,v in pairs(players)do | |
2167 | if game.Lighting:FindFirstChild("" .. gPlayers[v].Name) then | |
2168 | game.Lighting:FindFirstChild("" .. gPlayers[v].Name).Parent = game.Workspace | |
2169 | end | |
2170 | end | |
2171 | end) | |
2172 | ||
2173 | addcmd('disco','disco party',{''}, | |
2174 | function(args) | |
2175 | Disco = true | |
2176 | if Disco == true then | |
2177 | repeat wait(0.3) | |
2178 | game.Lighting.Ambient = Color3.new(math.random(),math.random(),math.random()) | |
2179 | until Disco == false | |
2180 | end | |
2181 | end) | |
2182 | ||
2183 | addcmd('undisco','rip disco party',{''}, | |
2184 | function(args) | |
2185 | Disco = false | |
2186 | wait(0.1) | |
2187 | game.Lighting.Ambient = Color3.new(0.5,0.5,0.5) | |
2188 | end) | |
2189 | ||
2190 | -- Extras -- | |
2191 | ||
2192 | Floating = false | |
2193 | ||
2194 | addcmd('float', 'makes player float',{}, | |
2195 | function(args,speaker) | |
2196 | Floating = true | |
2197 | local players = getPlayer(args[1]) | |
2198 | for _,v in pairs(players) do | |
2199 | local pchar = gPlayers[v].Character | |
2200 | if gPlayers[v] and pchar and not pchar:FindFirstChild("Float") then | |
2201 | spawn(function() | |
2202 | local float = DATA.Float:Clone() | |
2203 | float.Parent = pchar | |
2204 | float.CFrame = pchar.Torso.CFrame * CFrame.new(0,-3.5,0) | |
2205 | spawn(function() | |
2206 | while wait(0.1) do | |
2207 | if pchar:FindFirstChild("Float") then | |
2208 | float.CFrame = pchar.Torso.CFrame * CFrame.new(0,-3.5,0) | |
2209 | else | |
2210 | break | |
2211 | end | |
2212 | end | |
2213 | end) | |
2214 | end) | |
2215 | end | |
2216 | end | |
2217 | end) | |
2218 | ||
2219 | addcmd('unfloat','disables floating',{}, | |
2220 | function(args) | |
2221 | Floating = false | |
2222 | local players = getPlayer(args[1]) | |
2223 | for i,v in pairs(players)do | |
2224 | local pchar = gPlayers[v].Character | |
2225 | if pchar:FindFirstChild("Float") then | |
2226 | pchar.Float:Destroy() | |
2227 | end | |
2228 | end | |
2229 | end) | |
2230 | ||
2231 | local Clip = true | |
2232 | ||
2233 | addcmd('noclip','enables noclip',{}, | |
2234 | function(args) | |
2235 | Notify('NoClip Enabled') | |
2236 | Clip = false | |
2237 | wait(1) | |
2238 | Name = game.Players.LocalPlayer.Name | |
2239 | game:GetService('Players').LocalPlayer.PlayerGui.ChildAdded:connect(function (NC) | |
2240 | delay(0, function() | |
2241 | if NC.Name ~= "OuputGUI" then | |
2242 | NC:Destroy() | |
2243 | end | |
2244 | end) | |
2245 | end) | |
2246 | game:GetService('RunService').Stepped:connect(function () | |
2247 | game.Workspace[Name].Torso.CanCollide = Clip | |
2248 | game.Workspace[Name].Head.CanCollide = Clip | |
2249 | end) | |
2250 | game.Workspace[Name].Torso.Changed:connect(function() | |
2251 | game.Workspace[Name].Torso.CanCollide = Clip | |
2252 | game.Workspace[Name].Head.CanCollide = Clip | |
2253 | end) | |
2254 | end) | |
2255 | ||
2256 | addcmd('clip','disables noclip',{}, | |
2257 | function(args) | |
2258 | Notify('NoClip Disabled') | |
2259 | Clip = true | |
2260 | end) | |
2261 | ||
2262 | wait(0.1) | |
2263 | ||
2264 | addcmd('prefix','changes prefix',{}, | |
2265 | function(args) | |
2266 | cmdprefix = args[1] | |
2267 | Notify('Changed prefix to "' .. args[1] .. '"') | |
2268 | end) | |
2269 | ||
2270 | addcmd('admins','prints admins',{}, | |
2271 | function(args) | |
2272 | for i,v in pairs(AdminFolder:GetChildren()) do | |
2273 | if v:IsA("StringValue") then | |
2274 | print("-" .. v.Value) | |
2275 | Notify('Printed Admins, Check Console') | |
2276 | end | |
2277 | end | |
2278 | end) | |
2279 | ||
2280 | addcmd('bans','prints bans',{}, | |
2281 | function(args) | |
2282 | for i,v in pairs(BanFolder:GetChildren()) do | |
2283 | if v:IsA("StringValue") then | |
2284 | print("-" .. v.Value) | |
2285 | Notify('Printed Bans, Check Console') | |
2286 | end | |
2287 | end | |
2288 | end) | |
2289 | ||
2290 | addcmd('version','shows version',{''}, | |
2291 | function(args) | |
2292 | Notify("Version is " .. Version) | |
2293 | end) | |
2294 | ||
2295 | --| Floating |-- | |
2296 | ||
2297 | Mouse.KeyDown:connect(function (Key) | |
2298 | if Key:byte() == 29 then | |
2299 | if Floating == false then | |
2300 | execCmd("float me", Player) | |
2301 | Floating = true | |
2302 | elseif Floating == true then | |
2303 | execCmd("unfloat me", Player) | |
2304 | Floating = false | |
2305 | end | |
2306 | end | |
2307 | end) | |
2308 | ||
2309 | --| Ban Data |-- | |
2310 | ||
2311 | for i,v in pairs(BannedPlayers) do | |
2312 | local ban = Instance.new("StringValue", BanFolder) | |
2313 | ban.Value = v | |
2314 | ban.RobloxLocked = true | |
2315 | end | |
2316 | ||
2317 | spawn(function () | |
2318 | while wait(0.1) do | |
2319 | for _,a in pairs(game.ContextActionService:GetChildren()) do | |
2320 | if a.Name == "BanList" then | |
2321 | for _,b in pairs(a:GetChildren()) do | |
2322 | if b:IsA("StringValue") then | |
2323 | for _,c in pairs(game.Players:GetChildren()) do | |
2324 | if c.Name == b.Value then | |
2325 | c.PersonalServerRank = 200 | |
2326 | wait(0.1) | |
2327 | c.PersonalServerRank = 0 | |
2328 | end | |
2329 | end | |
2330 | end | |
2331 | end | |
2332 | end | |
2333 | end | |
2334 | end | |
2335 | end) | |
2336 | ||
2337 | --| Admin |-- | |
2338 | ||
2339 | for i,v in pairs(admins) do | |
2340 | local admin = Instance.new("StringValue", AdminFolder) | |
2341 | admin.Value = v | |
2342 | admin.RobloxLocked = true | |
2343 | end | |
2344 | ||
2345 | spawn(function () | |
2346 | while wait(0.1) do | |
2347 | for _,a in pairs(game.ContextActionService:GetChildren()) do | |
2348 | if a.Name == "AdminList" then | |
2349 | for _,b in pairs(a:GetChildren()) do | |
2350 | if b:IsA("StringValue") then | |
2351 | for _,c in pairs(game.Players:GetChildren()) do | |
2352 | if c.Name == b.Value then | |
2353 | execCmd('admin ' .. c.Name) | |
2354 | end | |
2355 | end | |
2356 | end | |
2357 | end | |
2358 | end | |
2359 | end | |
2360 | end | |
2361 | end) | |
2362 | ||
2363 | ||
2364 | ||
2365 | ||
2366 | ||
2367 | ||
2368 | ||
2369 | ||
2370 | ||
2371 | ||
2372 | ||
2373 | ||
2374 | ||
2375 | ||
2376 | ||
2377 | ||
2378 | ||
2379 | ||
2380 | ||
2381 | ||
2382 | ||
2383 | --| Don't.. Touch.. |-- | |
2384 | ||
2385 | ||
2386 | ||
2387 | ||
2388 | ||
2389 | ||
2390 | --| CMD Bar |-- | |
2391 | ||
2392 | CMDbar = Instance.new('ScreenGui', game.CoreGui) | |
2393 | CMDbar.Name = 'GUI' | |
2394 | cmdBAR = Instance.new('TextBox', CMDbar) | |
2395 | cmdBAR.Name = 'CMDbar' | |
2396 | cmdBAR.Active = true | |
2397 | cmdBAR.BackgroundColor = BrickColor.new(0,0,0) | |
2398 | cmdBAR.BackgroundTransparency = 0.5 | |
2399 | cmdBAR.BorderColor = BrickColor.new(0,0,0) | |
2400 | cmdBAR.BorderSizePixel = 0 | |
2401 | cmdBAR.Position = UDim2.new(0,0,1,-25) | |
2402 | cmdBAR.Size = UDim2.new(0,200,0,20) | |
2403 | cmdBAR.Font = 'SourceSans' | |
2404 | cmdBAR.FontSize = 'Size18' | |
2405 | cmdBAR.Text = 'Press ; to Execute a Command' | |
2406 | cmdBAR.TextColor = BrickColor.new(255,255,255) | |
2407 | ||
2408 | --| Data |-- | |
2409 | ||
2410 | DATA = Instance.new('Folder', game.ContextActionService) | |
2411 | DATA.Name = 'Data' | |
2412 | ||
2413 | Paper = Instance.new('BlockMesh', DATA) | |
2414 | Paper.Name = 'Paper' | |
2415 | Paper.Scale = Vector3.new(1,1,0.1) | |
2416 | ||
2417 | ayylmao = Instance.new('Hat', DATA) | |
2418 | ayylmao.Name = 'ayylmao' | |
2419 | ayyHandle = Instance.new('Part', ayylmao) | |
2420 | ayyHandle.Name = 'Handle' | |
2421 | ayyHandle.Size = Vector3.new(2,2.4,2) | |
2422 | ayyHandle.FormFactor = 'Plate' | |
2423 | ayyMesh = Instance.new('SpecialMesh', ayyHandle) | |
2424 | ayyMesh.Scale = Vector3.new(1,1.02,1) | |
2425 | ayyMesh.MeshType = 'FileMesh' | |
2426 | ayyMesh.MeshId = 'http://www.roblox.com/asset/?id=13827689' | |
2427 | ayyMesh.TextureId = 'http://www.roblox.com/asset/?id=13827796' | |
2428 | ||
2429 | Float = Instance.new('Part', DATA) | |
2430 | Float.Name = 'Float' | |
2431 | Float.Transparency = 1 | |
2432 | Float.Size = Vector3.new(6,1,6) | |
2433 | Float.Anchored = true | |
2434 | ||
2435 | cmdGUI = Instance.new('ScreenGui', DATA) | |
2436 | cmdGUI.Name = 'CMDs' | |
2437 | cmdMAIN = Instance.new('Frame', cmdGUI) | |
2438 | cmdMAIN.Name = 'MAIN' | |
2439 | cmdMAIN.Active = true | |
2440 | cmdMAIN.BackgroundColor = BrickColor.new(0,0,0) | |
2441 | cmdMAIN.BackgroundTransparency = 0.5 | |
2442 | cmdMAIN.BorderColor = BrickColor.new(0,0,0) | |
2443 | cmdMAIN.BorderSizePixel = 0 | |
2444 | cmdMAIN.Position = UDim2.new(0,10,0,350) | |
2445 | cmdMAIN.Size = UDim2.new(0,170,0,15) | |
2446 | cmdMAIN.Draggable = true | |
2447 | cmdCMDs = Instance.new('ScrollingFrame', cmdMAIN) | |
2448 | cmdCMDs.Name = 'CMDs' | |
2449 | cmdCMDs.BackgroundColor = BrickColor.new(0,0,0) | |
2450 | cmdCMDs.BackgroundTransparency = 0.8 | |
2451 | cmdCMDs.BorderColor = BrickColor.new(0,0,0) | |
2452 | cmdCMDs.BorderSizePixel = 0 | |
2453 | cmdCMDs.Position = UDim2.new(0,0,0,15) | |
2454 | cmdCMDs.Size = UDim2.new(0,200,0,150) | |
2455 | cmdCMDs.CanvasSize = UDim2.new(0,0,0,0) | |
2456 | cmdCMDs.TopImage = 'rbxasset://textures/blackBkg_square.png' | |
2457 | cmdCMDs.MidImage = 'rbxasset://textures/blackBkg_square.png' | |
2458 | cmdCMDs.BottomImage = 'rbxasset://textures/blackBkg_square.png' | |
2459 | cmdCMDs.ScrollBarThickness = 2 | |
2460 | cmdExit = Instance.new('TextButton', cmdMAIN) | |
2461 | cmdExit.Name = 'Exit' | |
2462 | cmdExit.BackgroundColor = BrickColor.new(255,0,0) | |
2463 | cmdExit.BackgroundTransparency = 0.5 | |
2464 | cmdExit.BorderColor = BrickColor.new(255,0,0) | |
2465 | cmdExit.BorderSizePixel = 0 | |
2466 | cmdExit.Position = UDim2.new(0,185,0,0) | |
2467 | cmdExit.Size = UDim2.new(0,15,0,15) | |
2468 | cmdExit.Text = "" | |
2469 | ExitScript = Instance.new('LocalScript', cmdExit) | |
2470 | ExitScript.Source = | |
2471 | [[ | |
2472 | script.Parent.MouseButton1Down:connect(function() | |
2473 | script.Parent.Parent.Parent:Destroy() | |
2474 | end) | |
2475 | ]] | |
2476 | cmdMin = Instance.new('TextButton', cmdMAIN) | |
2477 | cmdMin.Name = 'MM' | |
2478 | cmdMin.BackgroundColor = BrickColor.new(140,140,140) | |
2479 | cmdMin.BackgroundTransparency = 0.5 | |
2480 | cmdMin.BorderColor = BrickColor.new(140,140,140) | |
2481 | cmdMin.BorderSizePixel = 0 | |
2482 | cmdMin.Position = UDim2.new(0,170,0,0) | |
2483 | cmdMin.Size = UDim2.new(0,15,0,15) | |
2484 | cmdMin.Text = "" | |
2485 | MinScript = Instance.new('LocalScript', cmdMin) | |
2486 | MinScript.Source = | |
2487 | [[ | |
2488 | local CMDs = script.Parent.Parent.CMDs | |
2489 | ||
2490 | script.Parent.MouseButton1Down:connect(function() | |
2491 | if CMDs.Visible == true then | |
2492 | CMDs.Visible = false | |
2493 | elseif CMDs.Visible == false then | |
2494 | CMDs.Visible = true | |
2495 | end | |
2496 | end) | |
2497 | ]] | |
2498 | cmdEx = Instance.new('TextLabel', cmdMAIN) | |
2499 | cmdEx.Name = 'Example' | |
2500 | cmdEx.BackgroundColor = BrickColor.new(0,0,0) | |
2501 | cmdEx.BackgroundTransparency = 0.8 | |
2502 | cmdEx.BorderColor = BrickColor.new(0,0,0) | |
2503 | cmdEx.BorderSizePixel = 0 | |
2504 | cmdEx.Position = UDim2.new(0,5,0,20) | |
2505 | cmdEx.Size = UDim2.new(0,190,0,20) | |
2506 | cmdEx.Visible = false | |
2507 | cmdEx.TextColor = BrickColor.new(255,255,255) | |
2508 | cmdEx.TextXAlignment = 'Left' | |
2509 | ||
2510 | duckGUI = Instance.new('ScreenGui', DATA) | |
2511 | duckGUI.Name = 'Duck' | |
2512 | duckImage = Instance.new('ImageLabel', duckGUI) | |
2513 | duckImage.BackgroundTransparency = 1 | |
2514 | duckImage.Position = UDim2.new(0,-300,1,-150) | |
2515 | duckImage.Size = UDim2.new(0,300,0,300) | |
2516 | duckImage.Rotation = -30 | |
2517 | duckImage.Image = 'rbxassetid://301388647' | |
2518 | duckScript = Instance.new('LocalScript', duckGUI) | |
2519 | duckScript.Source = | |
2520 | [[ | |
2521 | local duck = script.Parent.ImageLabel | |
2522 | ||
2523 | wait(2) | |
2524 | ||
2525 | duck:TweenPosition(UDim2.new(1, 0, 1, -150), "InOut", "Quad", 3, true, nil) | |
2526 | ]] | |
2527 | ||
2528 | espMAIN = Instance.new('BillboardGui', DATA) | |
2529 | espMAIN.Name = 'MAIN' | |
2530 | espMAIN.AlwaysOnTop = true | |
2531 | espMAIN.ExtentsOffset = Vector3.new(0,1,0) | |
2532 | espMAIN.Size = UDim2.new(0,5,0,5) | |
2533 | espMAIN.StudsOffset = Vector3.new(0,1,0) | |
2534 | espDot = Instance.new('Frame', espMAIN) | |
2535 | espDot.BackgroundColor = BrickColor.new(42,181,255) | |
2536 | espDot.BackgroundTransparency = 0.3 | |
2537 | espDot.BorderSizePixel = 0 | |
2538 | espDot.Position = UDim2.new(-0.5,0,-0.5,0) | |
2539 | espDot.Size = UDim2.new(2,0,2,0) | |
2540 | espDot.Visible = false | |
2541 | espDot.ZIndex = 10 | |
2542 | espName = Instance.new('TextLabel', espMAIN) | |
2543 | espName.Name = 'Name' | |
2544 | espName.BackgroundColor = BrickColor.new(0,0,0) | |
2545 | espName.BackgroundTransparency = 1 | |
2546 | espName.BorderColor = BrickColor.new(0,0,0) | |
2547 | espName.BorderSizePixel = 0 | |
2548 | espName.Position = UDim2.new(0,0,0,-35) | |
2549 | espName.Size = UDim2.new(1,0,10,0) | |
2550 | espName.Visible = false | |
2551 | espName.ZIndex = 10 | |
2552 | ||
2553 | notifyMAIN = Instance.new('ScreenGui', DATA) | |
2554 | notifyMAIN.Name = 'Notification' | |
2555 | notifyNOT = Instance.new('Frame', notifyMAIN) | |
2556 | notifyNOT.Name = 'NOTIFY' | |
2557 | notifyNOT.BackgroundColor = BrickColor.new(0,0,0) | |
2558 | notifyNOT.BackgroundTransparency = 0.5 | |
2559 | notifyNOT.BorderColor = BrickColor.new(255,255,255) | |
2560 | notifyNOT.BorderSizePixel = 2 | |
2561 | notifyNOT.Position = UDim2.new(0,-200,0.7,0) | |
2562 | notifyNOT.Size = UDim2.new(0,200,0,30) | |
2563 | notifyNOTE = Instance.new('TextLabel', notifyNOT) | |
2564 | notifyNOTE.Name = 'NOTE' | |
2565 | notifyNOTE.BackgroundColor = BrickColor.new(255,255,255) | |
2566 | notifyNOTE.BackgroundTransparency = 1 | |
2567 | notifyNOTE.BorderColor = BrickColor.new(255,255,255) | |
2568 | notifyNOTE.BorderSizePixel = 0 | |
2569 | notifyNOTE.Size = UDim2.new(1,0,1,0) | |
2570 | notifyNOTE.ZIndex = 10 | |
2571 | notifyNOTE.FontSize = 'Size18' | |
2572 | notifyNOTE.Font = 'SourceSans' | |
2573 | notifyNOTE.Text = 'NOTIFY' | |
2574 | notifyNOTE.TextColor = BrickColor.new(255,255,255) | |
2575 | notifyNOTE.TextStrokeColor3 = Color3.new(255,255,255) | |
2576 | notifyNOTE.TextStrokeTransparency = 0.8 | |
2577 | ||
2578 | tpTool = Instance.new('HopperBin', DATA) | |
2579 | tpTool.Name = 'Teleport' | |
2580 | tpScript = Instance.new('LocalScript', tpTool) | |
2581 | tpScript.Source = | |
2582 | [[ | |
2583 | local Player = game.Players.LocalPlayer | |
2584 | local Mouse = Player:GetMouse() | |
2585 | ||
2586 | local Tool = script.Parent | |
2587 | ||
2588 | Mouse.Button1Down:connect(function() | |
2589 | if Mouse.Target and Tool.Active then | |
2590 | Player.Character.HumanoidRootPart.CFrame = Mouse.Hit + Vector3.new(0,2,0) | |
2591 | end | |
2592 | end) | |
2593 | ]] | |
2594 | ||
2595 | modJAIL = Instance.new('Model', DATA) | |
2596 | modJAIL.Name = 'JAIL' | |
2597 | botJAIL = Instance.new('Part', modJAIL) | |
2598 | botJAIL.Name = 'BOTTOM' | |
2599 | botJAIL.BrickColor = BrickColor.new('Black') | |
2600 | botJAIL.Transparency = 0.5 | |
2601 | botJAIL.Position = Vector3.new(-6.2,0.5,-11.6) | |
2602 | botJAIL.Anchored = true | |
2603 | botJAIL.Locked = true | |
2604 | botJAIL.Size = Vector3.new(6,1,6) | |
2605 | botJAIL.TopSurface = 'Smooth' | |
2606 | botJAIL.BottomSurface = 'Smooth' | |
2607 | topJAIL = Instance.new('Part', modJAIL) | |
2608 | topJAIL.Name = 'BOTTOM' | |
2609 | topJAIL.BrickColor = BrickColor.new('Black') | |
2610 | topJAIL.Transparency = 0.5 | |
2611 | topJAIL.Position = Vector3.new(-6.2,7.5,-11.6) | |
2612 | topJAIL.Anchored = true | |
2613 | topJAIL.Locked = true | |
2614 | topJAIL.Size = Vector3.new(6,1,6) | |
2615 | topJAIL.TopSurface = 'Smooth' | |
2616 | topJAIL.BottomSurface = 'Smooth' | |
2617 | p1 = Instance.new('Part', modJAIL) | |
2618 | p1.Name = 'MAIN' | |
2619 | p1.BrickColor = BrickColor.new('Black') | |
2620 | p1.Transparency = 1 | |
2621 | p1.Position = Vector3.new(-8.7,4,-11.6) | |
2622 | p1.Rotation = Vector3.new(-180,0,-180) | |
2623 | p1.Anchored = true | |
2624 | p1.Locked = true | |
2625 | p1.Size = Vector3.new(1,6,4) | |
2626 | p1.TopSurface = 'Smooth' | |
2627 | p1.BottomSurface = 'Smooth' | |
2628 | p2 = Instance.new('Part', modJAIL) | |
2629 | p2.BrickColor = BrickColor.new('Black') | |
2630 | p2.Transparency = 0.5 | |
2631 | p2.Position = Vector3.new(-3.7,4,-14.1) | |
2632 | p2.Anchored = true | |
2633 | p2.Locked = true | |
2634 | p2.Size = Vector3.new(1,6,1) | |
2635 | p2.TopSurface = 'Smooth' | |
2636 | p2.BottomSurface = 'Smooth' | |
2637 | p3 = Instance.new('Part', modJAIL) | |
2638 | p3.BrickColor = BrickColor.new('Black') | |
2639 | p3.Transparency = 0.5 | |
2640 | p3.Position = Vector3.new(-8.7,4,-9.1) | |
2641 | p3.Anchored = true | |
2642 | p3.Locked = true | |
2643 | p3.Size = Vector3.new(1,6,1) | |
2644 | p3.TopSurface = 'Smooth' | |
2645 | p3.BottomSurface = 'Smooth' | |
2646 | p4 = Instance.new('Part', modJAIL) | |
2647 | p4.BrickColor = BrickColor.new('Black') | |
2648 | p4.Transparency = 0.5 | |
2649 | p4.Position = Vector3.new(-3.7,4,-9.1) | |
2650 | p4.Anchored = true | |
2651 | p4.Locked = true | |
2652 | p4.Size = Vector3.new(1,6,1) | |
2653 | p4.TopSurface = 'Smooth' | |
2654 | p4.BottomSurface = 'Smooth' | |
2655 | p5 = Instance.new('Part', modJAIL) | |
2656 | p5.BrickColor = BrickColor.new('Black') | |
2657 | p5.Transparency = 0.5 | |
2658 | p5.Position = Vector3.new(-8.7,4,-14.1) | |
2659 | p5.Anchored = true | |
2660 | p5.Locked = true | |
2661 | p5.Size = Vector3.new(1,6,1) | |
2662 | p5.TopSurface = 'Smooth' | |
2663 | p5.BottomSurface = 'Smooth' | |
2664 | p6 = Instance.new('Part', modJAIL) | |
2665 | p6.BrickColor = BrickColor.new('Black') | |
2666 | p6.Transparency = 1 | |
2667 | p6.Position = Vector3.new(-6.2,4,-14.1) | |
2668 | p6.Rotation = Vector3.new(0,90,0) | |
2669 | p6.Anchored = true | |
2670 | p6.Locked = true | |
2671 | p6.Size = Vector3.new(1,6,4) | |
2672 | p6.TopSurface = 'Smooth' | |
2673 | p6.BottomSurface = 'Smooth' | |
2674 | p7 = Instance.new('Part', modJAIL) | |
2675 | p7.BrickColor = BrickColor.new('Black') | |
2676 | p7.Transparency = 1 | |
2677 | p7.Position = Vector3.new(-3.7,4,-11.6) | |
2678 | p7.Anchored = true | |
2679 | p7.Locked = true | |
2680 | p7.Size = Vector3.new(1,6,4) | |
2681 | p7.TopSurface = 'Smooth' | |
2682 | p7.BottomSurface = 'Smooth' | |
2683 | p8 = Instance.new('Part', modJAIL) | |
2684 | p8.BrickColor = BrickColor.new('Black') | |
2685 | p8.Transparency = 1 | |
2686 | p8.Position = Vector3.new(-6.2,4,-9.1) | |
2687 | p8.Rotation = Vector3.new(0,90,0) | |
2688 | p8.Anchored = true | |
2689 | p8.Locked = true | |
2690 | p8.Size = Vector3.new(1,6,4) | |
2691 | p8.TopSurface = 'Smooth' | |
2692 | p8.BottomSurface = 'Smooth' | |
2693 | ||
2694 | --| Some Commands |-- | |
2695 | ||
2696 | addcmd('ayylmao','ayy lmao',{''}, | |
2697 | function(args) | |
2698 | local players = getPlayer(args[1]) | |
2699 | for i,v in pairs(players)do | |
2700 | local pchar = gPlayers[v].Character | |
2701 | if pchar:FindFirstChild("Shirt") then | |
2702 | pchar.Shirt:Destroy() | |
2703 | end | |
2704 | if pchar:FindFirstChild("Pants") then | |
2705 | pchar.Pants:Destroy() | |
2706 | end | |
2707 | if pchar:FindFirstChild("Shirt Graphic") then | |
2708 | pchar["Shirt Graphic"].Graphic = "" | |
2709 | end | |
2710 | for i,v in pairs(pchar:GetChildren()) do | |
2711 | if v:IsA("Hat") then | |
2712 | v:Destroy() | |
2713 | end | |
2714 | end | |
2715 | local ayylmao = DATA.ayylmao:Clone() | |
2716 | ayylmao.Parent = pchar | |
2717 | local BC = pchar["Body Colors"] | |
2718 | BC.HeadColor = BrickColor.new("Fossil") | |
2719 | BC.LeftArmColor = BrickColor.new("Fossil") | |
2720 | BC.LeftLegColor = BrickColor.new("Fossil") | |
2721 | BC.RightArmColor = BrickColor.new("Fossil") | |
2722 | BC.RightLegColor = BrickColor.new("Fossil") | |
2723 | BC.TorsoColor = BrickColor.new("Fossil") | |
2724 | end | |
2725 | end) | |
2726 | ||
2727 | -- CMDs GUI -- | |
2728 | ||
2729 | CMDsFolder = Instance.new("Folder", game.CoreGui) | |
2730 | ||
2731 | for i,v in pairs(CMDs) do | |
2732 | CMDsValue = Instance.new("StringValue", CMDsFolder) | |
2733 | CMDsValue.Value = v | |
2734 | CMDsValue.RobloxLocked = true | |
2735 | end | |
2736 | ||
2737 | local function commands() | |
2738 | local cmds = DATA.CMDs:Clone() | |
2739 | cmds.Parent = Player.PlayerGui | |
2740 | local CMDsV = CMDsFolder:GetChildren() | |
2741 | for i = 1, #CMDsV do | |
2742 | local YSize = 25 | |
2743 | local Position = ((i * YSize) - YSize) | |
2744 | local newcmd = cmds.MAIN.Example:Clone() | |
2745 | newcmd.Parent = cmds.MAIN.CMDs | |
2746 | newcmd.Visible = true | |
2747 | newcmd.Position = UDim2.new(0,5,0, Position + 5) | |
2748 | newcmd.Text = "" .. CMDsV[i].Value | |
2749 | cmds.MAIN.CMDs.CanvasSize = UDim2.new(0,0,0, Position + 30) | |
2750 | end | |
2751 | end | |
2752 | ||
2753 | addcmd('cmds','prints cmds',{}, | |
2754 | function(args) | |
2755 | commands() | |
2756 | end) | |
2757 | ||
2758 | --| Command Bar |-- | |
2759 | ||
2760 | CMDbar.CMDbar.FocusLost:connect(function(enterpressed) | |
2761 | if enterpressed and CMDbar.CMDbar.Text ~= "" then | |
2762 | spawn(function () | |
2763 | execCmd(CMDbar.CMDbar.Text, Player) | |
2764 | end) | |
2765 | end | |
2766 | CMDbar.CMDbar:TweenPosition(UDim2.new(0, -200, 1, -25), "InOut", "Quad", 0.5, true, nil) | |
2767 | end) | |
2768 | ||
2769 | Mouse.KeyDown:connect(function(Key) | |
2770 | if Key:byte() == 59 then | |
2771 | CMDbar.CMDbar:TweenPosition(UDim2.new(0, 0, 1, -25), "InOut", "Quad", 0.5, true, nil) | |
2772 | CMDbar.CMDbar:CaptureFocus() | |
2773 | end | |
2774 | end) | |
2775 | ||
2776 | --| ESP Function |-- | |
2777 | ||
2778 | local ESP = false | |
2779 | local track = false | |
2780 | ||
2781 | function Create(base, team) | |
2782 | local MAIN = DATA.MAIN:Clone() | |
2783 | local F = MAIN.DOT | |
2784 | local ESP = MAIN.NAME | |
2785 | ||
2786 | MAIN.Parent = Player.PlayerGui | |
2787 | MAIN.Adornee = base | |
2788 | ||
2789 | F.Visible = true | |
2790 | ||
2791 | ESP.Text = base.Parent.Name:upper() | |
2792 | ESP.Visible = true | |
2793 | end | |
2794 | ||
2795 | function Clear() | |
2796 | for _,v in pairs(Player.PlayerGui:children()) do | |
2797 | if v.Name == "MAIN" and v:IsA("BillboardGui") then | |
2798 | v:Destroy() | |
2799 | end | |
2800 | end | |
2801 | end | |
2802 | ||
2803 | function Find() | |
2804 | Clear() | |
2805 | track = true | |
2806 | spawn(function() | |
2807 | while wait() do | |
2808 | if track then | |
2809 | Clear() | |
2810 | for i,v in pairs(game.Players:players()) do | |
2811 | if v.Character and v.Character.Head then | |
2812 | Create(v.Character.Head, true) | |
2813 | end | |
2814 | end | |
2815 | end | |
2816 | wait(1) | |
2817 | end | |
2818 | end) | |
2819 | end | |
2820 | ||
2821 | --| ESP |-- | |
2822 | ||
2823 | Mouse.KeyDown:connect(function(Key) | |
2824 | if Key:byte() == 30 then | |
2825 | if ESP == false then | |
2826 | Find() | |
2827 | ESP = true | |
2828 | elseif ESP == true then | |
2829 | Clear() | |
2830 | track = false | |
2831 | ESP = false | |
2832 | end | |
2833 | end | |
2834 | end) | |
2835 | ||
2836 | --| More Functions |-- | |
2837 | ||
2838 | local NOTIFY = DATA.Notification | |
2839 | NOTIFY.Parent = game.CoreGui | |
2840 | ||
2841 | local duck = DATA.Duck:Clone() | |
2842 | duck.Parent = Player.PlayerGui | |
2843 | ||
2844 | local usingNOTE = false | |
2845 | ||
2846 | function Notify(msg) | |
2847 | if usingNOTE == false then | |
2848 | if NOTIFY.NOTIFY and NOTIFY.NOTIFY.NOTE then | |
2849 | spawn(function() | |
2850 | NOTIFY.NOTIFY:TweenPosition(UDim2.new(0, 0, 0.7, 0), "InOut", "Quad", 0.5, true, nil) | |
2851 | NOTIFY.NOTIFY.NOTE.Text = msg | |
2852 | usingNOTE = true | |
2853 | wait(2.5) | |
2854 | NOTIFY.NOTIFY:TweenPosition(UDim2.new(0, -200, 0.7, 0), "InOut", "Quad", 0.5, true, nil) | |
2855 | usingNOTE = false | |
2856 | end) | |
2857 | end | |
2858 | end | |
2859 | end | |
2860 | ||
2861 | --| Notifications |-- | |
2862 | ||
2863 | wait(1) | |
2864 | ||
2865 | if game.Workspace.FilteringEnabled == true then | |
2866 | NOTIFY.NOTIFY.BorderColor = BrickColor.new(255,0,0) | |
2867 | Notify('Filtering is ENABLED.') | |
2868 | elseif game.Workspace.FilteringEnabled == false then | |
2869 | NOTIFY.NOTIFY.BorderColor = BrickColor.new(0,255,0) | |
2870 | Notify('Filtering is Disabled.') | |
2871 | end | |
2872 | ||
2873 | wait(3.5) | |
2874 | ||
2875 | NOTIFY.NOTIFY.BorderColor = BrickColor.new(255,255,255) | |
2876 | ||
2877 | Notify('Loaded ' .. #cmds .. ' commands!') | |
2878 | ||
2879 | wait(3.5) | |
2880 | ||
2881 | Notify('Welcome ' .. Player.Name .. '!') | |
2882 | ||
2883 | Player.PlayerGui.Duck:Destroy() | |
2884 | ||
2885 | --[[ | |
2886 | addcmd('name','desc',{''}, | |
2887 | function(args) | |
2888 | local players = getPlayer(args[1]) | |
2889 | for i,v in pairs(players)do | |
2890 | local pchar = gPlayers[v].Character | |
2891 | end | |
2892 | end) | |
2893 | --]] |