SHOW:
|
|
- or go back to the newest paste.
| 1 | --Version 2 1.02 I fixed some problems caused by the updates. | |
| 2 | - | adminlist = {"1xDeoVolentex1"}--Add in the names of the people you want to be able to use the command script here.
|
| 2 | + | adminlist = {"zXzGamePROzXz"}--Add in the names of the people you want to be able to use the command script here.
|
| 3 | --Please keep 'nominate10' in there. ;) | |
| 4 | bannedlist = {""}--If you want someone not to be able to enter your place, put thier name in here.
| |
| 5 | texture = ""--If you want someone wearing a certain t-shirt to be an admin, put the t-shirt's texture in here. | |
| 6 | ||
| 7 | disableBan = false --Set to 'true' if you don't want the "ban/" command to be able to be used by anyone. (Also disables 'kick/') | |
| 8 | disableAdmin = false --Set to 'true' if you don't want the "admin/" command to be able to be used by anyone. | |
| 9 | ||
| 10 | - | owner = "1xDeoVolentex1" --Change this to your name |
| 10 | + | owner = "zXzGamePROzXz" --Change this to your name |
| 11 | ||
| 12 | --[[Hey guys! Its nominate10 here. I've decided to update these commands myself, as I see Person299 probably gave up on it. | |
| 13 | You will be able to find the commands made by me, down below. Send me feedback & ideas. Thanks! | |
| 14 | For the most recent script (I update frequently), go to http://www.roblox.com/Nominate10s-Admin-Commands-V2-5-item?id=34853394 | |
| 15 | --]] | |
| 16 | ||
| 17 | ||
| 18 | --[[ | |
| 19 | I update this command script alot, so if you want to get the newest version of the script, go to http://www.roblox.com/Item.aspx?ID=5277383 every once in a while. | |
| 20 | ||
| 21 | If theres anything you think this command script needs, just message me (Person299) and i might put it in. :) | |
| 22 | And also, if you find any bugs, report them to me. | |
| 23 | ||
| 24 | The commands are, | |
| 25 | ||
| 26 | commands | |
| 27 | Shows a list of all the commands | |
| 28 | ||
| 29 | BY NOMINATE10: | |
| 30 | fire/nominate10 | |
| 31 | Gives nominate10 fire | |
| 32 | ||
| 33 | unfire/nominate10 | |
| 34 | Removes any fire in nominate10's Torso | |
| 35 | ||
| 36 | smoke/nominate10 | |
| 37 | Gives nominate10 smoke | |
| 38 | ||
| 39 | unsmoke/nominate10 | |
| 40 | Removes any smoke in nominate10's Torso | |
| 41 | ||
| 42 | color/nominate10/blue | |
| 43 | Colors nominate10's body blue and removes its clothes. | |
| 44 | ||
| 45 | advancedbtools/nominate10 | |
| 46 | Gives nominate10 advanced building tools. | |
| 47 | ||
| 48 | insert/nominate10 | |
| 49 | Gives nominate10 an insert tool. | |
| 50 | ||
| 51 | noinsert/nominate10 | |
| 52 | Removes nominate10's insert tool. | |
| 53 | ||
| 54 | resetambient/ | |
| 55 | Resets the ambient to 255; 255; 255 | |
| 56 | ||
| 57 | randomambient/ | |
| 58 | Sets the Ambient to a random color. | |
| 59 | ||
| 60 | getambient/ | |
| 61 | Displays the current ambient to the speaker. | |
| 62 | ||
| 63 | platformstand/nominate10 | |
| 64 | Sets the PlatformStand property of nominate10's Humanoid to true | |
| 65 | ||
| 66 | unplatformstand/nominate10 | |
| 67 | Sets the PlatformStand property of nominate10's Humanoid to false | |
| 68 | ||
| 69 | cframe1/nominate10 | |
| 70 | Gives nominate10 a CFrame Tool | |
| 71 | ||
| 72 | cframe2/nominate10 | |
| 73 | Gives nominate10 a GUI CFrame Tool | |
| 74 | ||
| 75 | skateboard/nominate10 | |
| 76 | Gives nominate10 a skateboard | |
| 77 | ||
| 78 | appearance/nominate10/416314 | |
| 79 | Changes nominate10's character look to the ID of 416314 and kills him. | |
| 80 | ||
| 81 | wedge/4/1/2 | |
| 82 | creates a wedge with the given dimensions. | |
| 83 | ||
| 84 | cylinder/4/1/2 | |
| 85 | Creates a cylinder with the given dimensions. | |
| 86 | ||
| 87 | block/4/1/2 | |
| 88 | Creates a brick with a BlockMesh with the given dimensions. | |
| 89 | ||
| 90 | sphere/4/4/4 | |
| 91 | Creates a sphere with the given dimensions | |
| 92 | ||
| 93 | plate/4/1/2 | |
| 94 | Creates a plate with the given dimensions | |
| 95 | ||
| 96 | burn/nominate10 | |
| 97 | Sets nominate10 on fire and slowly depleats his health. | |
| 98 | ||
| 99 | watch/nominate10 | |
| 100 | Sets YOUR camera to view nominate10. | |
| 101 | ||
| 102 | removegear/nominate10 | |
| 103 | Removes all tools in nominate10's StarterGear | |
| 104 | ||
| 105 | savetools/nominate10 | |
| 106 | Copies all of nominate10's tools in Backpack and clones them to his StarterGear. | |
| 107 | ||
| 108 | localscript/nominate10/[source] | |
| 109 | Makes a LocalScript inside nominate10 with the defined source | |
| 110 | ||
| 111 | setupteams/ | |
| 112 | MUST BE DONE BEFORE USING TEAM-RELATED COMMANDS! (unless teams already exist) | |
| 113 | ||
| 114 | team/Bloxxers/Bright blue | |
| 115 | Makes a new team with the name "Bloxxers" and the TeamColor "Bright Blue" (CASE SENSITIVE!) | |
| 116 | ||
| 117 | changeteam/nominate10/Bloxxers | |
| 118 | Changes nominate10's team to Bloxxers | |
| 119 | ||
| 120 | removeteam/Bloxxers | |
| 121 | Removes the Bloxxers team and moves its members to an "Unassigned" team | |
| 122 | ||
| 123 | ==================================== | |
| 124 | ==================================== | |
| 125 | ||
| 126 | ||
| 127 | fix | |
| 128 | If the command script breaks for you, say this to fix it | |
| 129 | ||
| 130 | kill/Person299 | |
| 131 | kills Person299 | |
| 132 | ||
| 133 | loopkill/Person299 | |
| 134 | Repeatedly kills Person299 when he respawns | |
| 135 | ||
| 136 | unloopkill/Person299 | |
| 137 | Undos loopkill/ | |
| 138 | ||
| 139 | heal/Person299 | |
| 140 | Returns Person299 to full health | |
| 141 | ||
| 142 | damage/Person299/50 | |
| 143 | Makes Person299's character take 50 damage | |
| 144 | ||
| 145 | health/Person299/999999 | |
| 146 | Makes Person299's MaxHealth and Health 999999 | |
| 147 | ||
| 148 | kick/Person299 | |
| 149 | Removes Person299 from the game, cannot be used by admin/ed people | |
| 150 | ||
| 151 | ban/Person299 | |
| 152 | Removes Person299 from the game and keeps him from reenterring, cannot be used by admin/ed people | |
| 153 | ||
| 154 | bannedlist | |
| 155 | Shows a list of everyone banned | |
| 156 | ||
| 157 | unban/Person299 | |
| 158 | Unbans Person299 | |
| 159 | ||
| 160 | explode/Person299 | |
| 161 | Explodes Person299's character | |
| 162 | ||
| 163 | rocket/Person299 | |
| 164 | Straps a rocket onto Person299's back | |
| 165 | ||
| 166 | removetools/Person299 | |
| 167 | Removes all of Person299's tools. | |
| 168 | ||
| 169 | givetools/Person299 | |
| 170 | Gives Person299 all the tools in StarterPack | |
| 171 | ||
| 172 | givebtools/Person299 | |
| 173 | Gives Person299 the building tools | |
| 174 | ||
| 175 | sit/Person299 | |
| 176 | Makes Person299 sit | |
| 177 | ||
| 178 | part/4/1/2 | |
| 179 | Makes a part with the given dimensions appear over your character | |
| 180 | ||
| 181 | respawn/Person299 | |
| 182 | Makes Person299's character respawn | |
| 183 | ||
| 184 | jail/Person299 | |
| 185 | Makes a lil jail cell around Person299's character | |
| 186 | ||
| 187 | unjail/Person299 | |
| 188 | Undos jail/ | |
| 189 | ||
| 190 | punish/Person299 | |
| 191 | Puts Person299's character in game.Lighting | |
| 192 | ||
| 193 | unpunish/Person299 | |
| 194 | Undos punish/ | |
| 195 | ||
| 196 | merge/Person299/Farvei | |
| 197 | Makes Person299 control Farvei's character | |
| 198 | ||
| 199 | teleport/Person299/nccvoyager | |
| 200 | Teleports Person299's character to nccvoyager's character | |
| 201 | ||
| 202 | control/Person299 | |
| 203 | Makes you control Person299's character | |
| 204 | ||
| 205 | change/Person299/Money/999999 | |
| 206 | Makes the Money value in Person299's leaderstats 999999 | |
| 207 | ||
| 208 | tools | |
| 209 | Gives you a list of all the tools available to be give/en, the tool must be in game.Lighting | |
| 210 | ||
| 211 | give/Person299/Tool | |
| 212 | Give's Person299 a tool, the toolname can be abbreviated | |
| 213 | ||
| 214 | time/15.30 | |
| 215 | Makes game.Lighting.TimeOfDay 15:30 | |
| 216 | ||
| 217 | ambient/255/0/0 | |
| 218 | Makes game.Lighting.Ambient 255,0,0 | |
| 219 | ||
| 220 | maxplayers/20 | |
| 221 | Makes game.Players.MaxPlayers 20 | |
| 222 | ||
| 223 | nograv/Person299 | |
| 224 | Makes Person299 almost weightless | |
| 225 | ||
| 226 | antigrav/Person299 | |
| 227 | Gives Person299 antigravity properties | |
| 228 | ||
| 229 | grav/Person299 | |
| 230 | Returns Person299's gravity to normal | |
| 231 | ||
| 232 | highgrav/Person299 | |
| 233 | Makes Person299 heavier | |
| 234 | ||
| 235 | setgrav/Person299/-196 | |
| 236 | Sets Person299's gravity | |
| 237 | ||
| 238 | trip/Person299 | |
| 239 | Makes Person299's character trip | |
| 240 | ||
| 241 | walkspeed/Person299/99 | |
| 242 | Makes Person299's character's humanoid's WalkSpeed 99, 16 is average | |
| 243 | ||
| 244 | invisible/Person299 | |
| 245 | Makes Person299's character invisible | |
| 246 | ||
| 247 | visible/Person299 | |
| 248 | Undos invisible/ | |
| 249 | ||
| 250 | freeze/Person299 | |
| 251 | Makes Person299's character unable to move | |
| 252 | ||
| 253 | thaw/Person299 | |
| 254 | Undos freeze/ | |
| 255 | ||
| 256 | unlock/Person299 | |
| 257 | Makes Person299's character unlocked | |
| 258 | ||
| 259 | lock/Person299 | |
| 260 | Makes Person299's character locked | |
| 261 | ||
| 262 | ff/Person299 | |
| 263 | Gives Person299's character a ForceField | |
| 264 | ||
| 265 | unff/Person299 | |
| 266 | Undos ff/ | |
| 267 | ||
| 268 | sparkles/Person299 | |
| 269 | Makes Person299's character sparkly | |
| 270 | ||
| 271 | unsparkles/Person299 | |
| 272 | Undos sparkles/ | |
| 273 | ||
| 274 | shield/Person299 | |
| 275 | Makes a destructive shield thingy appear around Person299 | |
| 276 | ||
| 277 | unshield/Person299 | |
| 278 | Undos shield/ | |
| 279 | ||
| 280 | god/Person299 | |
| 281 | Makes Person299 godish | |
| 282 | ||
| 283 | ungod/Person299 | |
| 284 | Undos god/ | |
| 285 | ||
| 286 | zombify/Person299 | |
| 287 | Makes Person299 a infecting zombie | |
| 288 | ||
| 289 | admin/Person299 | |
| 290 | Makes Person299 able to use the command script, cannot be used by admin/ed people | |
| 291 | ||
| 292 | adminlist | |
| 293 | Shows a list of everyone in the adminlist | |
| 294 | ||
| 295 | unadmin/Person299 | |
| 296 | Undos admin/, cannot be used by admin/ed people | |
| 297 | ||
| 298 | shutdown | |
| 299 | Shuts the server down, cannot be used by admin/ed people | |
| 300 | ||
| 301 | m/Fallout 2 is one of the best games ever made | |
| 302 | Makes a message appear on the screen saying "Fallout 2 is one of the best games ever made" for 2 seconds | |
| 303 | ||
| 304 | h/i like pie | |
| 305 | Makes a hint appear on the screen saying "i like pie" for 2 seconds | |
| 306 | ||
| 307 | c/ game.Workspace:remove() | |
| 308 | Makes a script which source is whats after c/ | |
| 309 | ||
| 310 | clearscripts | |
| 311 | Removes all scripts created by c/ or localscript/ | |
| 312 | ||
| 313 | clearbricks | |
| 314 | Removes any created bricks and jails | |
| 315 | ||
| 316 | Capitalisation doesnt matter, and name input can be abbreviated. | |
| 317 | Just about any name input can be replaced with multiple names seperated by ","s, me, all, others, guests, admins, nonadmins, random, or team teamname. | |
| 318 | ||
| 319 | --]] | |
| 320 | ||
| 321 | namelist = { }
| |
| 322 | variablelist = { }
| |
| 323 | flist = { }
| |
| 324 | ||
| 325 | local source = script:FindFirstChild("source")
| |
| 326 | if source ~= nil then | |
| 327 | sbbu = script.source:clone() | |
| 328 | sbbu.Disabled = false | |
| 329 | else | |
| 330 | print("source doesnt exist, your command script may malfunction")
| |
| 331 | end | |
| 332 | ||
| 333 | ||
| 334 | tools = Instance.new("Model")
| |
| 335 | c = game.Lighting:GetChildren() | |
| 336 | for i=1,#c do | |
| 337 | if c[i].className == "Tool" then | |
| 338 | c[i]:clone().Parent = tools | |
| 339 | end | |
| 340 | if c[i].className == "HopperBin" then | |
| 341 | c[i]:clone().Parent = tools | |
| 342 | end end | |
| 343 | ||
| 344 | function NOMINATE10(person) | |
| 345 | if person.Name == owner then return true end | |
| 346 | return false | |
| 347 | end | |
| 348 | ||
| 349 | function findintable(name,tab) | |
| 350 | for i,v in pairs(tab) do | |
| 351 | if v == name then return i end | |
| 352 | end | |
| 353 | return false | |
| 354 | end | |
| 355 | ||
| 356 | function findplayer(name,speaker) | |
| 357 | if string.lower(name) == "all" then | |
| 358 | local chars = { }
| |
| 359 | local c = game.Players:GetChildren() | |
| 360 | for i =1,#c do | |
| 361 | if c[i].className == "Player" then | |
| 362 | table.insert(chars,c[i]) | |
| 363 | end end | |
| 364 | return chars | |
| 365 | elseif string.sub(string.lower(name),1,9) == "nonadmins" then | |
| 366 | local nnum = 0 | |
| 367 | local chars = { }
| |
| 368 | local c = game.Players:GetChildren() | |
| 369 | for i=1,#c do | |
| 370 | local isadmin = false | |
| 371 | for i2 =1,#namelist do | |
| 372 | if namelist[i2] == c[i].Name then | |
| 373 | isadmin = true | |
| 374 | end end | |
| 375 | if isadmin == false then | |
| 376 | nnum = nnum + 1 | |
| 377 | table.insert(chars,c[i]) | |
| 378 | end end | |
| 379 | if nnum == 0 then | |
| 380 | return 0 | |
| 381 | else | |
| 382 | return chars | |
| 383 | end | |
| 384 | elseif string.sub(string.lower(name),1,6) == "admins" then | |
| 385 | local anum = 0 | |
| 386 | local chars = { }
| |
| 387 | local c = game.Players:GetChildren() | |
| 388 | for i=1,#c do | |
| 389 | for i2 =1,#namelist do | |
| 390 | if namelist[i2] == c[i].Name then | |
| 391 | anum = anum + 1 | |
| 392 | table.insert(chars,c[i]) | |
| 393 | end end end | |
| 394 | if anum == 0 then | |
| 395 | return 0 | |
| 396 | else | |
| 397 | return chars | |
| 398 | end | |
| 399 | elseif string.sub(string.lower(name),1,6) == "random" then | |
| 400 | while true do | |
| 401 | local c = game.Players:GetChildren() | |
| 402 | local r = math.random(1,#c) | |
| 403 | if c[r].className == "Player" then | |
| 404 | return { c[r] }
| |
| 405 | end end | |
| 406 | elseif string.sub(string.lower(name),1,6) == "guests" then | |
| 407 | local gnum = 0 | |
| 408 | local chars = { }
| |
| 409 | local c = game.Players:GetChildren() | |
| 410 | for i=1,#c do | |
| 411 | if string.sub(c[i].Name,1,5) == "Guest" then | |
| 412 | gnum = gnum + 1 | |
| 413 | table.insert(chars,c[i]) | |
| 414 | end end | |
| 415 | if gnum == 0 then | |
| 416 | return 0 | |
| 417 | else | |
| 418 | return chars | |
| 419 | end | |
| 420 | elseif string.sub(string.lower(name),1,5) == "team " then | |
| 421 | local theteam = nil | |
| 422 | local tnum = 0 | |
| 423 | if game.Teams ~= nil then | |
| 424 | local c = game.Teams:GetChildren() | |
| 425 | for i =1,#c do | |
| 426 | if c[i].className == "Team" then | |
| 427 | if string.find(string.lower(c[i].Name),string.sub(string.lower(name),6)) == 1 then | |
| 428 | theteam = c[i] | |
| 429 | tnum = tnum + 1 | |
| 430 | end end end | |
| 431 | if tnum == 1 then | |
| 432 | local chars = { }
| |
| 433 | local c = game.Players:GetChildren() | |
| 434 | for i =1,#c do | |
| 435 | if c[i].className == "Player" then | |
| 436 | if c[i].TeamColor == theteam.TeamColor then | |
| 437 | table.insert(chars,c[i]) | |
| 438 | end end end | |
| 439 | return chars | |
| 440 | end end | |
| 441 | return 0 | |
| 442 | elseif string.lower(name) == "me" then | |
| 443 | local person299 = { speaker }
| |
| 444 | return person299 | |
| 445 | elseif string.lower(name) == "others" then | |
| 446 | local chars = { }
| |
| 447 | local c = game.Players:GetChildren() | |
| 448 | for i =1,#c do | |
| 449 | if c[i].className == "Player" then | |
| 450 | if c[i] ~= speaker then | |
| 451 | table.insert(chars,c[i]) | |
| 452 | end end end | |
| 453 | return chars | |
| 454 | else | |
| 455 | local chars = { }
| |
| 456 | local commalist = { }
| |
| 457 | local ssn = 0 | |
| 458 | local lownum = 1 | |
| 459 | local highestnum = 1 | |
| 460 | local foundone = false | |
| 461 | while true do | |
| 462 | ssn = ssn + 1 | |
| 463 | if string.sub(name,ssn,ssn) == "" then | |
| 464 | table.insert(commalist,lownum) | |
| 465 | table.insert(commalist,ssn - 1) | |
| 466 | highestnum = ssn - 1 | |
| 467 | break | |
| 468 | end | |
| 469 | if string.sub(name,ssn,ssn) == "," then | |
| 470 | foundone = true | |
| 471 | table.insert(commalist,lownum) | |
| 472 | table.insert(commalist,ssn) | |
| 473 | lownum = ssn + 1 | |
| 474 | end end | |
| 475 | if foundone == true then | |
| 476 | for ack=1,#commalist,2 do | |
| 477 | local cnum = 0 | |
| 478 | local char = nil | |
| 479 | local c = game.Players:GetChildren() | |
| 480 | for i =1,#c do | |
| 481 | if c[i].className == "Player" then | |
| 482 | if string.find(string.lower(c[i].Name),string.sub(string.lower(name),commalist[ack],commalist[ack + 1] - 1)) == 1 then | |
| 483 | char = c[i] | |
| 484 | cnum = cnum + 1 | |
| 485 | end end end | |
| 486 | if cnum == 1 then | |
| 487 | table.insert(chars,char) | |
| 488 | end end | |
| 489 | if #chars ~= 0 then | |
| 490 | return chars | |
| 491 | else | |
| 492 | return 0 | |
| 493 | end | |
| 494 | else | |
| 495 | local cnum = 0 | |
| 496 | local char = nil | |
| 497 | local c = game.Players:GetChildren() | |
| 498 | for i =1,#c do | |
| 499 | if c[i].className == "Player" then | |
| 500 | if string.find(string.lower(c[i].Name),string.lower(name)) == 1 then | |
| 501 | char = {c[i]}
| |
| 502 | cnum = cnum + 1 | |
| 503 | end end end | |
| 504 | if cnum == 1 then | |
| 505 | return char | |
| 506 | elseif cnum == 0 then | |
| 507 | text("That name is not found.",1,"Message",speaker)
| |
| 508 | return 0 | |
| 509 | elseif cnum > 1 then | |
| 510 | text("That name is ambiguous.",1,"Message",speaker)
| |
| 511 | return 0 | |
| 512 | end end end end -- I really like the way the ends look when they're all on the same line better, dont you? | |
| 513 | ||
| 514 | function findteam(name,speak) | |
| 515 | teams = {}
| |
| 516 | if name then | |
| 517 | for i,v in pairs(game:GetService("Teams"):GetChildren()) do
| |
| 518 | if v.Name:sub(1,name:len()):lower() == name:lower() then | |
| 519 | table.insert(teams,v) | |
| 520 | end | |
| 521 | end | |
| 522 | if #teams == 0 then | |
| 523 | text("that team is not found.",1,"Message",speak)
| |
| 524 | return false | |
| 525 | end | |
| 526 | if teams > 1 then | |
| 527 | text("That team is ambiguous.",1,"Message",speaker)
| |
| 528 | return false | |
| 529 | end | |
| 530 | return teams[1] | |
| 531 | end end | |
| 532 | ||
| 533 | function createscript(source,par) | |
| 534 | local a = sbbu:clone() | |
| 535 | local context = Instance.new("StringValue")
| |
| 536 | context.Name = "Context" | |
| 537 | context.Value = source | |
| 538 | context.Parent = a | |
| 539 | while context.Value ~= source do wait() end | |
| 540 | a.Parent = par | |
| 541 | local b = Instance.new("IntValue")
| |
| 542 | b.Name = "Is A Created Script" | |
| 543 | b.Parent = a | |
| 544 | end | |
| 545 | ||
| 546 | function localscript(source,par) | |
| 547 | local a = script.localsource:clone() | |
| 548 | local context = Instance.new("StringValue")
| |
| 549 | context.Name = "Context" | |
| 550 | context.Value = source | |
| 551 | context.Parent = a | |
| 552 | while context.Value ~= source do wait() end | |
| 553 | a.Parent = par | |
| 554 | local b = Instance.new("IntValue")
| |
| 555 | b.Name = "Is A Created Script" | |
| 556 | b.Parent = a | |
| 557 | end | |
| 558 | ||
| 559 | ||
| 560 | function text(message,duration,type,object) | |
| 561 | local m = Instance.new(type) | |
| 562 | m.Text = message | |
| 563 | m.Parent = object | |
| 564 | wait(duration) | |
| 565 | if m.Parent ~= nil then | |
| 566 | m:remove() | |
| 567 | end end | |
| 568 | ||
| 569 | function foc(msg,speaker) | |
| 570 | if string.lower(msg) == "fix" then | |
| 571 | for i =1,#namelist do | |
| 572 | if namelist[i] == speaker.Name then | |
| 573 | variablelist[i]:disconnect() | |
| 574 | table.remove(variablelist,i) | |
| 575 | table.remove(namelist,i) | |
| 576 | table.remove(flist,i) | |
| 577 | end end | |
| 578 | local tfv = speaker.Chatted:connect(function(msg) oc(msg,speaker) end) | |
| 579 | table.insert(namelist,speaker.Name) | |
| 580 | table.insert(variablelist,tfv) | |
| 581 | local tfv = speaker.Chatted:connect(function(msg) foc(msg,speaker) end) | |
| 582 | table.insert(flist,tfv) | |
| 583 | end end | |
| 584 | ||
| 585 | function PERSON299(name) | |
| 586 | for i =1,#adminlist do | |
| 587 | if adminlist[i] == name then | |
| 588 | return true | |
| 589 | end end | |
| 590 | return false | |
| 591 | end | |
| 592 | ||
| 593 | function oc(msg,speaker) | |
| 594 | ||
| 595 | if string.sub(string.lower(msg),1,5) == "kill/" then--This part checks if the first part of the message is kill/ | |
| 596 | local player = findplayer(string.sub(msg,6),speaker)--This part refers to the findplayer function for a list of people associated with the input after kill/ | |
| 597 | if player ~= 0 then--This part makes sure that the findplayer function found someone, as it returns 0 when it hasnt | |
| 598 | for i = 1,#player do--This part makes a loop, each different loop going through each player findplayer returned | |
| 599 | if player[i].Character ~= nil then--This part makes sure that the loop's current player's character exists | |
| 600 | local human = player[i].Character:FindFirstChild("Humanoid")--This part looks for the Humanoid in the character
| |
| 601 | if human ~= nil then--This part makes sure the line above found a humanoid | |
| 602 | human.Health = 0--This part makes the humanoid's health 0 | |
| 603 | end end end end end--This line contains the ends for all the if statements and the for loop | |
| 604 | ||
| 605 | if string.sub(string.lower(msg),1,2) == "m/" then | |
| 606 | text(speaker.Name .. ": " .. string.sub(msg,3),2,"Message",game.Workspace) | |
| 607 | end | |
| 608 | ||
| 609 | if string.sub(string.lower(msg),1,2) == "h/" then | |
| 610 | text(speaker.Name .. ": " .. string.sub(msg,3),2,"Hint",game.Workspace) | |
| 611 | end | |
| 612 | ||
| 613 | if string.sub(string.lower(msg),1,2) == "c/" then--Dontcha wish pcall was more reliable? | |
| 614 | createscript(string.sub(msg,3),game.Workspace) | |
| 615 | end | |
| 616 | ||
| 617 | local upmsg = msg | |
| 618 | local msg = string.lower(msg) | |
| 619 | --NOW SHOWING COMMANDS MADE BY: Nominate10 | |
| 620 | --THE FOLLOWING COMMANDS WERE MADE PURELY BY NOMINATE10! | |
| 621 | if msg:sub(1,5) == "fire/" then | |
| 622 | local player = findplayer(msg:sub(6),speaker) | |
| 623 | if player ~= 0 then | |
| 624 | for i = 1,#player do | |
| 625 | if player[i].Character then | |
| 626 | if player[i].Character.Torso:FindFirstChild("Fire") == nil then
| |
| 627 | fire = Instance.new("Fire")
| |
| 628 | fire.Parent = player[i].Character.Torso | |
| 629 | fire.Color = Color3.new(math.random(),math.random(),math.random()) | |
| 630 | end end end end end | |
| 631 | ||
| 632 | if msg:sub(1,7) == "unfire/" then | |
| 633 | local player = findplayer(msg:sub(8),speaker) | |
| 634 | if player ~= 0 then | |
| 635 | for i = 1,#player do | |
| 636 | if player[i].Character and player[i].Character.Torso then | |
| 637 | local c = player[i].Character.Torso:GetChildren() | |
| 638 | for i2 = 1, #c do | |
| 639 | if c[i2]:isA("Fire") then
| |
| 640 | c[i2]:remove() | |
| 641 | end end end end end end | |
| 642 | ||
| 643 | if msg:sub(1,6) == "smoke/" then | |
| 644 | local player = findplayer(msg:sub(7),speaker) | |
| 645 | if player ~= 0 then | |
| 646 | for i = 1,#player do | |
| 647 | if player[i].Character and player[i].Character.Torso then | |
| 648 | if player[i].Character.Torso:FindFirstChild("Smoke") == nil then
| |
| 649 | smoke = Instance.new("Smoke")
| |
| 650 | smoke.Parent = player[i].Character.Torso | |
| 651 | smoke.Color = Color3.new(math.random(),math.random(),math.random()) --I wonder if I could've done something like 'Color3.Random()' | |
| 652 | end end end end end | |
| 653 | ||
| 654 | if msg:sub(1,8) == "unsmoke/" then | |
| 655 | local player = findplayer(msg:sub(9),speaker) | |
| 656 | if player ~= 0 then | |
| 657 | for i = 1,#player do | |
| 658 | if player[i].Character and player[i].Character.Torso then | |
| 659 | local c = player[i].Character.Torso:GetChildren() | |
| 660 | for i2 = 1, #c do | |
| 661 | if c[i2]:isA("Smoke") then
| |
| 662 | c[i2]:remove() | |
| 663 | end end end end end end | |
| 664 | ||
| 665 | if msg:sub(1,6) == "color/" then | |
| 666 | local slash = msg:sub(7):find("/")+6
| |
| 667 | if slash then | |
| 668 | local player = findplayer(msg:sub(7, slash-1),speaker) | |
| 669 | color = msg:sub(slash+1) | |
| 670 | color = color:upper(color:sub(1,1)) .. color:sub(2) | |
| 671 | if player ~= 0 and color then | |
| 672 | for i = 1,#player do | |
| 673 | if player[i].Character then | |
| 674 | thecolor = BrickColor.new(color) | |
| 675 | if thecolor ~= nil then | |
| 676 | if player[i].Character.Shirt ~= nil then | |
| 677 | player[i].Character.Shirt:remove() | |
| 678 | end | |
| 679 | if player[i].Character.Pants then | |
| 680 | player[i].Character.Pants:remove() | |
| 681 | end | |
| 682 | c = player[i].Character:GetChildren() | |
| 683 | for i2 = 1,#c do | |
| 684 | if c[i2]:isA("Part") then
| |
| 685 | c[i2].BrickColor = thecolor | |
| 686 | end end end end end end end end | |
| 687 | ||
| 688 | if msg:sub(1,15) == "advancedbtools/" then | |
| 689 | local player = findplayer(msg:sub(16),speaker) | |
| 690 | if player ~= 0 then | |
| 691 | local insert = game:GetService("InsertService")
| |
| 692 | for i = 1,#player do | |
| 693 | local paintbrush = insert:LoadAsset(34842883) | |
| 694 | paintbrush:MakeJoints() | |
| 695 | paintbrush.Paintbrush.Parent = player[i].Backpack --Give the tool to the player. | |
| 696 | paintbrush:remove() --Remove the model that held the tool. | |
| 697 | ||
| 698 | local material = insert:LoadAsset(34842844) | |
| 699 | material:MakeJoints() | |
| 700 | material.Material.Parent = player[i].Backpack | |
| 701 | material:remove() | |
| 702 | ||
| 703 | local resize = insert:LoadAsset(34842919) | |
| 704 | resize:MakeJoints() | |
| 705 | resize["Resize Tool"].Parent = player[i].Backpack | |
| 706 | resize:remove() | |
| 707 | ||
| 708 | local delete = Instance.new("HopperBin")
| |
| 709 | delete.BinType = "Hammer" | |
| 710 | delete.Parent = player[i].Backpack | |
| 711 | ||
| 712 | local grab = Instance.new("HopperBin")
| |
| 713 | grab.BinType = "GameTool" | |
| 714 | grab.Parent = player[i].Backpack | |
| 715 | ||
| 716 | local copy = Instance.new("HopperBin")
| |
| 717 | copy.BinType = "Clone" | |
| 718 | copy.Parent = player[i].Backpack | |
| 719 | ||
| 720 | local extra = insert:LoadAsset(35012404) | |
| 721 | extra:MakeJoints() | |
| 722 | extra["Build Tools"].Parent = player[i].Backpack | |
| 723 | end end | |
| 724 | elseif msg:sub(1,4) == "abt/" then | |
| 725 | local player = findplayer(msg:sub(5),speaker) | |
| 726 | if player ~= 0 then | |
| 727 | local insert = game:GetService("InsertService")
| |
| 728 | for i = 1,#player do | |
| 729 | local paintbrush = insert:LoadAsset(34842883) | |
| 730 | paintbrush:MakeJoints() | |
| 731 | paintbrush.Paintbrush.Parent = player[i].Backpack --Give the tool to the player. | |
| 732 | paintbrush:remove() --Remove the model that held the tool. | |
| 733 | ||
| 734 | local material = insert:LoadAsset(34842844) | |
| 735 | material:MakeJoints() | |
| 736 | material.Material.Parent = player[i].Backpack | |
| 737 | material:remove() | |
| 738 | ||
| 739 | local resize = insert:LoadAsset(34842919) | |
| 740 | resize:MakeJoints() | |
| 741 | resize["Resize Tool"].Parent = player[i].Backpack | |
| 742 | resize:remove() | |
| 743 | ||
| 744 | local delete = Instance.new("HopperBin")
| |
| 745 | delete.BinType = "Hammer" | |
| 746 | delete.Parent = player[i].Backpack | |
| 747 | ||
| 748 | local grab = Instance.new("HopperBin")
| |
| 749 | grab.BinType = "GameTool" | |
| 750 | grab.Parent = player[i].Backpack | |
| 751 | ||
| 752 | local copy = Instance.new("HopperBin")
| |
| 753 | copy.BinType = "Clone" | |
| 754 | copy.Parent = player[i].Backpack | |
| 755 | ||
| 756 | local extra = insert:LoadAsset(35012404) | |
| 757 | extra:MakeJoints() | |
| 758 | extra["Build Tools"].Parent = player[i].Backpack | |
| 759 | end end end | |
| 760 | ||
| 761 | if msg:sub(1,7) == "insert/" then | |
| 762 | local player = findplayer(msg:sub(8),speaker) | |
| 763 | if player ~= 0 then | |
| 764 | for i = 1,#player do | |
| 765 | local insert = game:GetService("InsertService"):LoadAsset(34842829)
| |
| 766 | insert:MakeJoints() | |
| 767 | insert["Insert"].Parent = player[i].Backpack | |
| 768 | insert:remove() | |
| 769 | end end end | |
| 770 | ||
| 771 | if msg:sub(1,9) == "noinsert/" then | |
| 772 | local player = findplayer(msg:sub(10),speaker) | |
| 773 | if player ~= 0 then | |
| 774 | for i = 1,#player do | |
| 775 | local insert = player[i].Backpack:FindFirstChild("Insert")
| |
| 776 | if insert then | |
| 777 | insert:remove() | |
| 778 | end | |
| 779 | local bpinsert = player[i].Character:FindFirstChild("Insert")
| |
| 780 | if bpinsert ~= nil and bpinsert:isA("Tool") then
| |
| 781 | bpinsert:remove() | |
| 782 | end | |
| 783 | end end end | |
| 784 | ||
| 785 | if msg:sub(1,13) == "resetambient/" then | |
| 786 | game.Lighting.Ambient = Color3.new(1,1,1) | |
| 787 | end | |
| 788 | ||
| 789 | if msg:sub(1,14) == "randomambient/" then | |
| 790 | game.Lighting.Ambient = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255)) | |
| 791 | end | |
| 792 | ||
| 793 | if msg:sub(1,11) == "getambient/" then | |
| 794 | m = Instance.new("Message",speaker)
| |
| 795 | m.Text = tostring(game.Lighting.Ambient) | |
| 796 | wait(3) | |
| 797 | m:remove() | |
| 798 | end | |
| 799 | ||
| 800 | if msg:sub(1,14) == "platformstand/" then | |
| 801 | local player = findplayer(msg:sub(15),speaker) | |
| 802 | if player ~= 0 then | |
| 803 | for i = 1,#player do | |
| 804 | if player[i].Character then | |
| 805 | player[i].Character.Humanoid.PlatformStand = true | |
| 806 | end end end end | |
| 807 | ||
| 808 | if msg:sub(1,16) == "unplatformstand/" then | |
| 809 | local player = findplayer(msg:sub(17),speaker) | |
| 810 | if player ~= 0 then | |
| 811 | for i = 1,#player do | |
| 812 | if player[i].Character then | |
| 813 | player[i].Character.Humanoid.PlatformStand = false | |
| 814 | end end end end | |
| 815 | ||
| 816 | if msg:sub(1,8) == "cframe1/" then | |
| 817 | local player = findplayer(msg:sub(9),speaker) | |
| 818 | if player ~= 0 then | |
| 819 | for i = 1,#player do | |
| 820 | local cframe = game:GetService("InsertService"):LoadAsset(34879005)
| |
| 821 | cframe:MakeJoints() | |
| 822 | cframe["All New Edit Cframe"].Parent = player[i].Backpack | |
| 823 | cframe:remove() | |
| 824 | end end end | |
| 825 | ||
| 826 | if msg:sub(1,8) == "cframe2/" then | |
| 827 | local player = findplayer(msg:sub(9),speaker) | |
| 828 | if player ~= 0 then | |
| 829 | for i = 1,#player do | |
| 830 | local cframe = game:GetService("InsertService"):LoadAsset(35145017)
| |
| 831 | cframe:MakeJoints() | |
| 832 | cframe["CFrame"].Parent = player[i].Backpack | |
| 833 | cframe:remove() | |
| 834 | end end end | |
| 835 | ||
| 836 | if msg:sub(1,11) == "skateboard/" then | |
| 837 | local player = findplayer(msg:sub(12),speaker) | |
| 838 | if player ~= 0 then | |
| 839 | for i = 1,#player do | |
| 840 | local board = game:GetService("InsertService"):LoadAsset(34879053)
| |
| 841 | board:MakeJoints() | |
| 842 | board["SkateTool"].Parent = player[i].Backpack | |
| 843 | board:remove() | |
| 844 | end end end | |
| 845 | ||
| 846 | if msg:sub(1,11) == "appearance/" then | |
| 847 | local slash = msg:sub(12):find("/")+11
| |
| 848 | if slash then | |
| 849 | local player = findplayer(msg:sub(12,slash-1),speaker) | |
| 850 | if player ~= 0 then | |
| 851 | local id = msg:sub(slash+1) | |
| 852 | if id then | |
| 853 | for i = 1,#player do | |
| 854 | player[i].CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=".. id .."&placeId=0" | |
| 855 | player[i].Character.Humanoid.Health = 0 | |
| 856 | end end end end end | |
| 857 | ||
| 858 | if string.sub(msg,1,6) == "wedge/" then --Credit to Person299 for the base of this command... | |
| 859 | local danumber1 = nil | |
| 860 | local danumber2 = nil | |
| 861 | for i = 7,100 do | |
| 862 | if string.sub(msg,i,i) == "/" then | |
| 863 | danumber1 = i | |
| 864 | break | |
| 865 | elseif string.sub(msg,i,i) == "" then | |
| 866 | break | |
| 867 | end end | |
| 868 | if danumber1 == nil then return end | |
| 869 | for i =danumber1 + 1,danumber1 + 100 do | |
| 870 | if string.sub(msg,i,i) == "/" then | |
| 871 | danumber2 = i | |
| 872 | break | |
| 873 | elseif string.sub(msg,i,i) == "" then | |
| 874 | break | |
| 875 | end end | |
| 876 | if danumber2 == nil then return end | |
| 877 | if speaker.Character ~= nil then | |
| 878 | local head = speaker.Character:FindFirstChild("Head")
| |
| 879 | if head ~= nil then | |
| 880 | local part = Instance.new("WedgePart")
| |
| 881 | part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
| 882 | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) | |
| 883 | part.Name = "Person299's Admin Command Script V2 Part thingy" | |
| 884 | part.Parent = game.Workspace | |
| 885 | end end end | |
| 886 | ||
| 887 | if string.sub(msg,1,9) == "cylinder/" then --Credit to Person299 for the base of this command... | |
| 888 | local danumber1 = nil | |
| 889 | local danumber2 = nil | |
| 890 | for i = 10,100 do | |
| 891 | if string.sub(msg,i,i) == "/" then | |
| 892 | danumber1 = i | |
| 893 | break | |
| 894 | elseif string.sub(msg,i,i) == "" then | |
| 895 | break | |
| 896 | end end | |
| 897 | if danumber1 == nil then return end | |
| 898 | for i =danumber1 + 1,danumber1 + 100 do | |
| 899 | if string.sub(msg,i,i) == "/" then | |
| 900 | danumber2 = i | |
| 901 | break | |
| 902 | elseif string.sub(msg,i,i) == "" then | |
| 903 | break | |
| 904 | end end | |
| 905 | if danumber2 == nil then return end | |
| 906 | if speaker.Character ~= nil then | |
| 907 | local head = speaker.Character:FindFirstChild("Head")
| |
| 908 | if head ~= nil then | |
| 909 | local part = Instance.new("Part")
| |
| 910 | part.Size = Vector3.new(string.sub(msg,10,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
| 911 | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) | |
| 912 | part.Name = "Person299's Admin Command Script V2 Part thingy" | |
| 913 | local cyl = Instance.new("CylinderMesh",part)
| |
| 914 | part.Parent = game.Workspace | |
| 915 | end end end | |
| 916 | ||
| 917 | if string.sub(msg,1,6) == "block/" then --Credit to Person299 for the base of this command... | |
| 918 | local danumber1 = nil | |
| 919 | local danumber2 = nil | |
| 920 | for i = 7,100 do | |
| 921 | if string.sub(msg,i,i) == "/" then | |
| 922 | danumber1 = i | |
| 923 | break | |
| 924 | elseif string.sub(msg,i,i) == "" then | |
| 925 | break | |
| 926 | end end | |
| 927 | if danumber1 == nil then return end | |
| 928 | for i =danumber1 + 1,danumber1 + 100 do | |
| 929 | if string.sub(msg,i,i) == "/" then | |
| 930 | danumber2 = i | |
| 931 | break | |
| 932 | elseif string.sub(msg,i,i) == "" then | |
| 933 | break | |
| 934 | end end | |
| 935 | if danumber2 == nil then return end | |
| 936 | if speaker.Character ~= nil then | |
| 937 | local head = speaker.Character:FindFirstChild("Head")
| |
| 938 | if head ~= nil then | |
| 939 | local part = Instance.new("Part")
| |
| 940 | part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
| 941 | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) | |
| 942 | part.Name = "Person299's Admin Command Script V2 Part thingy" | |
| 943 | local block = Instance.new("BlockMesh",part)
| |
| 944 | part.Parent = game.Workspace | |
| 945 | end end end | |
| 946 | ||
| 947 | if string.sub(msg,1,6) == "plate/" then --Credit to Person299 for the base of this command... | |
| 948 | local danumber1 = nil | |
| 949 | local danumber2 = nil | |
| 950 | for i = 7,100 do | |
| 951 | if string.sub(msg,i,i) == "/" then | |
| 952 | danumber1 = i | |
| 953 | break | |
| 954 | elseif string.sub(msg,i,i) == "" then | |
| 955 | break | |
| 956 | end end | |
| 957 | if danumber1 == nil then return end | |
| 958 | for i =danumber1 + 1,danumber1 + 100 do | |
| 959 | if string.sub(msg,i,i) == "/" then | |
| 960 | danumber2 = i | |
| 961 | break | |
| 962 | elseif string.sub(msg,i,i) == "" then | |
| 963 | break | |
| 964 | end end | |
| 965 | if danumber2 == nil then return end | |
| 966 | if speaker.Character ~= nil then | |
| 967 | local head = speaker.Character:FindFirstChild("Head")
| |
| 968 | if head ~= nil then | |
| 969 | local part = Instance.new("Part")
| |
| 970 | part.Size = Vector3.new(string.sub(msg,7,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
| 971 | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) | |
| 972 | part.Name = "Person299's Admin Command Script V2 Part thingy" | |
| 973 | part.formFactor = "Plate" | |
| 974 | part.Parent = game.Workspace | |
| 975 | end end end | |
| 976 | ||
| 977 | if string.sub(msg,1,7) == "sphere/" then --Credit to Person299 for the base of this command... | |
| 978 | local danumber1 = nil | |
| 979 | local danumber2 = nil | |
| 980 | for i = 8,100 do | |
| 981 | if string.sub(msg,i,i) == "/" then | |
| 982 | danumber1 = i | |
| 983 | break | |
| 984 | elseif string.sub(msg,i,i) == "" then | |
| 985 | break | |
| 986 | end end | |
| 987 | if danumber1 == nil then return end | |
| 988 | for i =danumber1 + 1,danumber1 + 100 do | |
| 989 | if string.sub(msg,i,i) == "/" then | |
| 990 | danumber2 = i | |
| 991 | break | |
| 992 | elseif string.sub(msg,i,i) == "" then | |
| 993 | break | |
| 994 | end end | |
| 995 | if danumber2 == nil then return end | |
| 996 | if speaker.Character ~= nil then | |
| 997 | local head = speaker.Character:FindFirstChild("Head")
| |
| 998 | if head ~= nil then | |
| 999 | local part = Instance.new("Part")
| |
| 1000 | part.Size = Vector3.new(string.sub(msg,8,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
| 1001 | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) | |
| 1002 | part.Name = "Person299's Admin Command Script V2 Part thingy" | |
| 1003 | part.Shape = "Ball" | |
| 1004 | part.formFactor = 1 | |
| 1005 | part.Parent = game.Workspace | |
| 1006 | end end end | |
| 1007 | ||
| 1008 | if msg:sub(1,5) == "burn/" then | |
| 1009 | local player = findplayer(msg:sub(6),speaker) | |
| 1010 | if player ~= 0 then | |
| 1011 | for i = 1,#player do | |
| 1012 | createscript([[ | |
| 1013 | if script.Parent.Parent then | |
| 1014 | fire = Instance.new("Fire")
| |
| 1015 | fire.Parent = script.Parent | |
| 1016 | fire.Name = "Burn" | |
| 1017 | fire.Color = BrickColor.Random().Color | |
| 1018 | while fire do | |
| 1019 | script.Parent.Parent.Humanoid:TakeDamage(1) | |
| 1020 | wait(.1) | |
| 1021 | end | |
| 1022 | end]], player[i].Character.Torso) | |
| 1023 | end end end | |
| 1024 | ||
| 1025 | if msg:sub(1,9) == "de-admin/" then | |
| 1026 | local player = findplayer(msg:sub(10),speaker) | |
| 1027 | if player ~= 0 and NOMINATE10(speaker) then | |
| 1028 | for i = 1,#player do | |
| 1029 | if player[i].Name ~= speaker.Name then | |
| 1030 | if PERSON299(player[i].Name) then | |
| 1031 | ishethere = findintable(player[i].Name,adminlist) | |
| 1032 | if ishethere then | |
| 1033 | table.remove(adminlist,ishethere) | |
| 1034 | end | |
| 1035 | local ishe = findintable(player[i].Name,namelist) | |
| 1036 | if ishe then | |
| 1037 | table.remove(namelist,ishe) | |
| 1038 | end | |
| 1039 | local isf = findintable(player[i].Name,flist) | |
| 1040 | if isf then | |
| 1041 | table.remove(flist,isf) | |
| 1042 | end end end end | |
| 1043 | foc("fix",speaker)
| |
| 1044 | end end | |
| 1045 | ||
| 1046 | if msg:sub(1,6) == "watch/" then | |
| 1047 | local player = findplayer(msg:sub(7),speaker) | |
| 1048 | if player ~= 0 then | |
| 1049 | if #player == 1 then | |
| 1050 | for i = 1,#player do | |
| 1051 | sc = script.CamScript:clone() | |
| 1052 | sc.Parent = speaker | |
| 1053 | sc["New Subject"].Value = player[i].Character.Head | |
| 1054 | sc.Disabled = false | |
| 1055 | end end end end | |
| 1056 | ||
| 1057 | if msg:sub(1,11) == "removegear/" then | |
| 1058 | local player = findplayer(msg:sub(12),speaker) | |
| 1059 | if player ~= 0 then | |
| 1060 | for i = 1,#player do | |
| 1061 | if player[i].StarterGear then | |
| 1062 | local gear = player[i].StarterGear:GetChildren() | |
| 1063 | if #gear > 0 then | |
| 1064 | for Num,Gear in pairs(gear) do | |
| 1065 | Gear:remove() | |
| 1066 | end end end end end end | |
| 1067 | ||
| 1068 | if msg:sub(1,10) == "savetools/" then | |
| 1069 | local player = findplayer(msg:sub(11),speaker) | |
| 1070 | if player ~= 0 then | |
| 1071 | for i = 1,#player do | |
| 1072 | if player[i].StarterGear and player[i].Backpack then | |
| 1073 | if #player[i].Backpack:GetChildren() > 0 then | |
| 1074 | for num,tool in pairs(player[i].Backpack:GetChildren()) do | |
| 1075 | tool:clone().Parent = player[i].StarterGear | |
| 1076 | end end end end end end | |
| 1077 | ||
| 1078 | if msg:sub(1,12) == "localscript/" then | |
| 1079 | if msg:sub(13) then | |
| 1080 | local slash = msg:sub(13):find("/")+12
| |
| 1081 | if slash then | |
| 1082 | local sourcE = msg:sub(slash+1) | |
| 1083 | if sourcE then | |
| 1084 | local player = findplayer(msg:sub(13,slash-1),speaker) | |
| 1085 | if player ~= 0 then | |
| 1086 | for i = 1,#player do | |
| 1087 | localscript(sourcE,player[i]) | |
| 1088 | end end end end end end | |
| 1089 | ||
| 1090 | if msg:sub(1,8) == "getgear/" then | |
| 1091 | local player = findplayer(msg:sub(9),speaker) | |
| 1092 | if player ~= 0 then | |
| 1093 | for i = 1,#player do | |
| 1094 | if player[i].StarterGear and speaker.Backpack then | |
| 1095 | for i,v in pairs(player[i].StarterGear:GetChildren()) do | |
| 1096 | v:clone().Parent = speaker.Backpack | |
| 1097 | end end end end end | |
| 1098 | ||
| 1099 | if msg:sub(1,5) == "team/" then | |
| 1100 | local slash = msg:sub(6):find("/")+5
| |
| 1101 | if slash then | |
| 1102 | local team = upmsg:sub(6,slash-1) | |
| 1103 | if team then | |
| 1104 | local color = upmsg:sub(slash+1) | |
| 1105 | local bcolor = BrickColor.new(color) | |
| 1106 | if bcolor == BrickColor.new("Medium stone grey") and color:lower() ~= "medium stone grey" then return end
| |
| 1107 | Team = Instance.new("Team",game:GetService("Teams"))
| |
| 1108 | Team.Name = team | |
| 1109 | Team.TeamColor = bcolor | |
| 1110 | end end end | |
| 1111 | ||
| 1112 | if msg:sub(1,11) == "changeteam/" then | |
| 1113 | local slash = msg:sub(12):find("/")+11
| |
| 1114 | if slash then | |
| 1115 | local player = findplayer(msg:sub(12,slash-1),speaker) | |
| 1116 | if player ~= 0 then | |
| 1117 | local team = findteam(msg:sub(slash+1),speaker) | |
| 1118 | if team then | |
| 1119 | for i = 1,#player do | |
| 1120 | player[i].Neutral = false | |
| 1121 | player[i].TeamColor = team.TeamColor | |
| 1122 | end end end end end | |
| 1123 | ||
| 1124 | if msg == "setupteams/" then | |
| 1125 | local Teams = game:GetService("Teams")
| |
| 1126 | TeamChild = Teams:GetChildren() | |
| 1127 | if #TeamChild > 0 then | |
| 1128 | for i,v in pairs(TeamChild) do | |
| 1129 | v:remove() | |
| 1130 | end | |
| 1131 | end | |
| 1132 | local Unassinged = Instance.new("Team",Teams)
| |
| 1133 | Unassigned.TeamColor = BrickColor.new("Really black")
| |
| 1134 | Unassigned.Name = "Unassigned" | |
| 1135 | for i,v in pairs(game.Players:GetPlayers()) do | |
| 1136 | v.Neutral = false | |
| 1137 | v.TeamColor = BrickColor.new("Really black")
| |
| 1138 | end | |
| 1139 | end | |
| 1140 | ||
| 1141 | if msg:sub(1,11) == "removeteam/" then | |
| 1142 | local Teams = game:GetService("Teams")
| |
| 1143 | assignTeam = {}
| |
| 1144 | local team = findteam(msg:sub(12),speaker) | |
| 1145 | if team then | |
| 1146 | for i,v in pairs(game.Players:GetPlayers()) do | |
| 1147 | if v.TeamColor == team.TeamColor then | |
| 1148 | table.insert(assignTeam,v) | |
| 1149 | end | |
| 1150 | end | |
| 1151 | team:remove() | |
| 1152 | if #assignTeam > 0 then | |
| 1153 | if not Teams:FindFirstChild("Unassigned") then
| |
| 1154 | Unassinged = Instance.new("Team",Teams)
| |
| 1155 | Unassigned.TeamColor = BrickColor.new("Really black")
| |
| 1156 | Unassigned.Name = "Unassigned" | |
| 1157 | else Unassigned = Teams.Unassigned end | |
| 1158 | for i,v in pairs(assignTeam) do | |
| 1159 | v.TeamColor = Unassigned.TeamColor | |
| 1160 | end end end end | |
| 1161 | ||
| 1162 | --AND NOW HERE ARE THE NORMAL COMMANDS MADE BY PERSON299 | |
| 1163 | if string.sub(msg,1,5) == "give/" then | |
| 1164 | local danumber1 = nil | |
| 1165 | for i = 6,100 do | |
| 1166 | if string.sub(msg,i,i) == "/" then | |
| 1167 | danumber1 = i | |
| 1168 | break | |
| 1169 | elseif string.sub(msg,i,i) == "" then | |
| 1170 | break | |
| 1171 | end end | |
| 1172 | if danumber1 == nil then return end | |
| 1173 | local it = nil | |
| 1174 | local all = true | |
| 1175 | if string.sub(string.lower(msg),danumber1 + 1,danumber1 + 4) ~= "all" then | |
| 1176 | all = false | |
| 1177 | local itnum = 0 | |
| 1178 | local c = tools:GetChildren() | |
| 1179 | for i2 = 1,#c do | |
| 1180 | if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1)) == 1 then | |
| 1181 | it = c[i2] | |
| 1182 | itnum = itnum + 1 | |
| 1183 | end end | |
| 1184 | if itnum ~= 1 then return end | |
| 1185 | else | |
| 1186 | all = true | |
| 1187 | end | |
| 1188 | local player = findplayer(string.sub(msg,6,danumber1 - 1),speaker) | |
| 1189 | if player ~= 0 then | |
| 1190 | for i = 1,#player do | |
| 1191 | local bp = player[i]:FindFirstChild("Backpack")
| |
| 1192 | if bp ~= nil then | |
| 1193 | if all == false then | |
| 1194 | it:clone().Parent = bp | |
| 1195 | else | |
| 1196 | local c = tools:GetChildren() | |
| 1197 | for i2 = 1,#c do | |
| 1198 | c[i2]:clone().Parent = bp | |
| 1199 | end end end end end end | |
| 1200 | ||
| 1201 | --Bored... | |
| 1202 | ||
| 1203 | if string.sub(msg,1,7) == "change/" then | |
| 1204 | local danumber1 = nil | |
| 1205 | local danumber2 = nil | |
| 1206 | for i = 8,100 do | |
| 1207 | if string.sub(msg,i,i) == "/" then | |
| 1208 | danumber1 = i | |
| 1209 | break | |
| 1210 | elseif string.sub(msg,i,i) == "" then | |
| 1211 | break | |
| 1212 | end end | |
| 1213 | if danumber1 == nil then return end | |
| 1214 | for i =danumber1 + 1,danumber1 + 100 do | |
| 1215 | if string.sub(msg,i,i) == "/" then | |
| 1216 | danumber2 = i | |
| 1217 | break | |
| 1218 | elseif string.sub(msg,i,i) == "" then | |
| 1219 | break | |
| 1220 | end end | |
| 1221 | if danumber2 == nil then return end | |
| 1222 | local player = findplayer(string.sub(msg,8,danumber1 - 1),speaker) | |
| 1223 | if player ~= 0 then | |
| 1224 | for i = 1,#player do | |
| 1225 | local ls = player[i]:FindFirstChild("leaderstats")
| |
| 1226 | if ls ~= nil then | |
| 1227 | local it = nil | |
| 1228 | local itnum = 0 | |
| 1229 | local c = ls:GetChildren() | |
| 1230 | for i2 = 1,#c do | |
| 1231 | if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1,danumber2 - 1)) == 1 then | |
| 1232 | it = c[i2] | |
| 1233 | itnum = itnum + 1 | |
| 1234 | end end | |
| 1235 | if itnum == 1 then | |
| 1236 | it.Value = string.sub(msg,danumber2 + 1) | |
| 1237 | end end end end end | |
| 1238 | ||
| 1239 | if string.sub(msg,1,6) == "ungod/" then | |
| 1240 | local player = findplayer(string.sub(msg,7),speaker) | |
| 1241 | if player ~= 0 then | |
| 1242 | for i = 1,#player do | |
| 1243 | if player[i].Character ~= nil then | |
| 1244 | local isgod = false | |
| 1245 | local c = player[i].Character:GetChildren() | |
| 1246 | for i=1,#c do | |
| 1247 | if c[i].className == "Script" then | |
| 1248 | if c[i]:FindFirstChild("Context") then
| |
| 1249 | if string.sub(c[i].Context.Value,1,41) == "script.Parent.Humanoid.MaxHealth = 999999" then | |
| 1250 | c[i]:remove() | |
| 1251 | isgod = true | |
| 1252 | end end end end | |
| 1253 | if isgod == true then | |
| 1254 | local c = player[i].Character:GetChildren() | |
| 1255 | for i=1,#c do | |
| 1256 | if c[i].className == "Part" then | |
| 1257 | c[i].Reflectance = 0 | |
| 1258 | end | |
| 1259 | if c[i].className == "Humanoid" then | |
| 1260 | c[i].MaxHealth = 100 | |
| 1261 | c[i].Health = 100 | |
| 1262 | end | |
| 1263 | if c[i].Name == "God FF" then | |
| 1264 | c[i]:remove() | |
| 1265 | end end end end end end end | |
| 1266 | ||
| 1267 | if string.sub(msg,1,4) == "god/" then | |
| 1268 | local player = findplayer(string.sub(msg,5),speaker) | |
| 1269 | if player ~= 0 then | |
| 1270 | for i = 1,#player do | |
| 1271 | if player[i].Character ~= nil then | |
| 1272 | if player[i].Character:FindFirstChild("God FF") == nil then
| |
| 1273 | createscript([[script.Parent.Humanoid.MaxHealth = 999999 | |
| 1274 | script.Parent.Humanoid.Health = 999999 | |
| 1275 | ff = Instance.new("ForceField")
| |
| 1276 | ff.Name = "God FF" | |
| 1277 | ff.Parent = script.Parent | |
| 1278 | function ot(hit) | |
| 1279 | if hit.Parent ~= script.Parent then | |
| 1280 | h = hit.Parent:FindFirstChild("Humanoid")
| |
| 1281 | if h ~= nil then | |
| 1282 | h.Health = 0 | |
| 1283 | end | |
| 1284 | h = hit.Parent:FindFirstChild("Zombie")
| |
| 1285 | if h ~= nil then | |
| 1286 | h.Health = 0 | |
| 1287 | end end end | |
| 1288 | c = script.Parent:GetChildren() | |
| 1289 | for i=1,#c do | |
| 1290 | if c[i].className == "Part" then | |
| 1291 | c[i].Touched:connect(ot) | |
| 1292 | c[i].Reflectance = 1 | |
| 1293 | end end]],player[i].Character) | |
| 1294 | end end end end end | |
| 1295 | ||
| 1296 | if string.sub(msg,1,7) == "punish/" then | |
| 1297 | local player = findplayer(string.sub(msg,8),speaker) | |
| 1298 | if player ~= 0 then | |
| 1299 | for i = 1,#player do | |
| 1300 | if player[i].Character ~= nil then | |
| 1301 | player[i].Character.Parent = game.Lighting | |
| 1302 | end end end end | |
| 1303 | ||
| 1304 | if string.sub(msg,1,9) == "unpunish/" then | |
| 1305 | local player = findplayer(string.sub(msg,10),speaker) | |
| 1306 | if player ~= 0 then | |
| 1307 | for i = 1,#player do | |
| 1308 | if player[i].Character ~= nil then | |
| 1309 | player[i].Character.Parent = game.Workspace | |
| 1310 | player[i].Character:MakeJoints() | |
| 1311 | end end end end | |
| 1312 | ||
| 1313 | if string.sub(msg,1,3) == "ff/" then | |
| 1314 | local player = findplayer(string.sub(msg,4),speaker) | |
| 1315 | if player ~= 0 then | |
| 1316 | for i = 1,#player do | |
| 1317 | if player[i].Character ~= nil then | |
| 1318 | local ff = Instance.new("ForceField")
| |
| 1319 | ff.Parent = player[i].Character | |
| 1320 | end end end end | |
| 1321 | ||
| 1322 | if string.sub(msg,1,5) == "unff/" then | |
| 1323 | local player = findplayer(string.sub(msg,6),speaker) | |
| 1324 | if player ~= 0 then | |
| 1325 | for i = 1,#player do | |
| 1326 | if player[i].Character ~= nil then | |
| 1327 | local c = player[i].Character:GetChildren() | |
| 1328 | for i2 = 1,#c do | |
| 1329 | if c[i2].className == "ForceField" then | |
| 1330 | c[i2]:remove() | |
| 1331 | end end end end end end | |
| 1332 | ||
| 1333 | if string.sub(msg,1,9) == "sparkles/" then | |
| 1334 | local player = findplayer(string.sub(msg,10),speaker) | |
| 1335 | if player ~= 0 then | |
| 1336 | for i = 1,#player do | |
| 1337 | if player[i].Character ~= nil then | |
| 1338 | local torso = player[i].Character:FindFirstChild("Torso")
| |
| 1339 | if torso ~= nil then | |
| 1340 | local sparkles = Instance.new("Sparkles")
| |
| 1341 | sparkles.Color = Color3.new(math.random(),math.random(),math.random()) | |
| 1342 | sparkles.Parent = torso | |
| 1343 | end end end end end | |
| 1344 | ||
| 1345 | if string.sub(msg,1,11) == "unsparkles/" then | |
| 1346 | local player = findplayer(string.sub(msg,12),speaker) | |
| 1347 | if player ~= 0 then | |
| 1348 | for i = 1,#player do | |
| 1349 | if player[i].Character ~= nil then | |
| 1350 | local torso = player[i].Character:FindFirstChild("Torso")
| |
| 1351 | if torso ~= nil then | |
| 1352 | local c = torso:GetChildren() | |
| 1353 | for i2 = 1,#c do | |
| 1354 | if c[i2].className == "Sparkles" then | |
| 1355 | c[i2]:remove() | |
| 1356 | end end end end end end end | |
| 1357 | ||
| 1358 | if string.sub(msg,1,6) == "admin/" then | |
| 1359 | if not disableAdmin then | |
| 1360 | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) | |
| 1361 | if imgettingtiredofmakingthisstupidscript == true then | |
| 1362 | local player = findplayer(string.sub(msg,7),speaker) | |
| 1363 | if player ~= 0 then | |
| 1364 | for i = 1,#player do | |
| 1365 | for i2 =1,#namelist do | |
| 1366 | if namelist[i2] == player[i].Name then | |
| 1367 | variablelist[i2]:disconnect() | |
| 1368 | flist[i2]:disconnect() | |
| 1369 | table.remove(variablelist,i2) | |
| 1370 | table.remove(flist,i2) | |
| 1371 | table.remove(namelist,i2) | |
| 1372 | end end | |
| 1373 | local tfv = player[i].Chatted:connect(function(msg) oc(msg,player[i]) end) | |
| 1374 | table.insert(namelist,player[i].Name) | |
| 1375 | table.insert(variablelist,tfv) | |
| 1376 | local tfv = player[i].Chatted:connect(function(msg) foc(msg,player[i]) end) | |
| 1377 | table.insert(flist,tfv) | |
| 1378 | end end end end end | |
| 1379 | ||
| 1380 | if string.sub(msg,1,8) == "unadmin/" then | |
| 1381 | if not disableAdmin then | |
| 1382 | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) | |
| 1383 | if imgettingtiredofmakingthisstupidscript == true then | |
| 1384 | local player = findplayer(string.sub(msg,9),speaker) | |
| 1385 | if player ~= 0 then | |
| 1386 | for i = 1,#player do | |
| 1387 | local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name) | |
| 1388 | if imgettingtiredofmakingthisstupidscript == false then | |
| 1389 | for i2 =1,#namelist do | |
| 1390 | if namelist[i2] == player[i].Name then | |
| 1391 | variablelist[i2]:disconnect() | |
| 1392 | table.remove(variablelist,i2) | |
| 1393 | flist[i2]:disconnect() | |
| 1394 | table.remove(flist,i2) | |
| 1395 | table.remove(namelist,i2) | |
| 1396 | end end end end end end end end | |
| 1397 | ||
| 1398 | if string.sub(msg,1,5) == "heal/" then | |
| 1399 | local player = findplayer(string.sub(msg,6),speaker) | |
| 1400 | if player ~= 0 then | |
| 1401 | for i = 1,#player do | |
| 1402 | if player[i].Character ~= nil then | |
| 1403 | local human = player[i].Character:FindFirstChild("Humanoid")
| |
| 1404 | if human ~= nil then | |
| 1405 | human.Health = human.MaxHealth | |
| 1406 | end end end end end | |
| 1407 | ||
| 1408 | if string.sub(msg,1,4) == "sit/" then | |
| 1409 | local player = findplayer(string.sub(msg,5),speaker) | |
| 1410 | if player ~= 0 then | |
| 1411 | for i = 1,#player do | |
| 1412 | if player[i].Character ~= nil then | |
| 1413 | local human = player[i].Character:FindFirstChild("Humanoid")
| |
| 1414 | if human ~= nil then | |
| 1415 | human.Sit = true | |
| 1416 | end end end end end | |
| 1417 | ||
| 1418 | if string.sub(msg,1,5) == "jump/" then | |
| 1419 | local player = findplayer(string.sub(msg,6),speaker) | |
| 1420 | if player ~= 0 then | |
| 1421 | for i = 1,#player do | |
| 1422 | if player[i].Character ~= nil then | |
| 1423 | local human = player[i].Character:FindFirstChild("Humanoid")
| |
| 1424 | if human ~= nil then | |
| 1425 | human.Jump = true | |
| 1426 | end end end end end | |
| 1427 | ||
| 1428 | if string.sub(msg,1,6) == "stand/" then | |
| 1429 | local player = findplayer(string.sub(msg,7),speaker) | |
| 1430 | if player ~= 0 then | |
| 1431 | for i = 1,#player do | |
| 1432 | if player[i].Character ~= nil then | |
| 1433 | local human = player[i].Character:FindFirstChild("Humanoid")
| |
| 1434 | if human ~= nil then | |
| 1435 | human.Sit = false | |
| 1436 | end end end end end | |
| 1437 | ||
| 1438 | if string.sub(msg,1,5) == "jail/" then | |
| 1439 | local player = findplayer(string.sub(msg,6),speaker) | |
| 1440 | if player ~= 0 then | |
| 1441 | for i = 1,#player do | |
| 1442 | if player[i].Character ~= nil then | |
| 1443 | local torso = player[i].Character:FindFirstChild("Torso")
| |
| 1444 | if torso ~= nil then | |
| 1445 | local ack = Instance.new("Model")
| |
| 1446 | ack.Name = "Jail" .. player[i].Name | |
| 1447 | icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -3.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -3.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -5.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-24.5, 108.400002, -1.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -7.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(7,1.2000000476837,7) icky.CFrame = CFrame.new(-27.5, 112.599998, -4.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-26.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -5.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-30.5, 108.400002, -1.5, -1, 0, -0, -0, 1, -0, -0, 0, -1) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack icky = Instance.new("Part") icky.Size = Vector3.new(1,7.2000002861023,1) icky.CFrame = CFrame.new(-28.5, 108.400002, -7.5, 0, 0, -1, 0, 1, -0, 1, 0, -0) icky.Color = Color3.new(0.105882, 0.164706, 0.203922) icky.Anchored = true icky.Locked = true icky.CanCollide = true icky.Parent = ack
| |
| 1448 | ack.Parent = game.Workspace | |
| 1449 | ack:MoveTo(torso.Position) | |
| 1450 | end end end end end | |
| 1451 | ||
| 1452 | if string.sub(msg,1,7) == "unjail/" then | |
| 1453 | local player = findplayer(string.sub(msg,8),speaker) | |
| 1454 | if player ~= 0 then | |
| 1455 | for i = 1,#player do | |
| 1456 | local c = game.Workspace:GetChildren() | |
| 1457 | for i2 =1,#c do | |
| 1458 | if string.sub(c[i2].Name,1,4) == "Jail" then | |
| 1459 | if string.sub(c[i2].Name,5) == player[i].Name then | |
| 1460 | c[i2]:remove() | |
| 1461 | end end end end end end | |
| 1462 | ||
| 1463 | if string.sub(msg,1,12) == "removetools/" then | |
| 1464 | local player = findplayer(string.sub(msg,13),speaker) | |
| 1465 | if player ~= 0 then | |
| 1466 | for i = 1,#player do | |
| 1467 | local c = player[i].Backpack:GetChildren() | |
| 1468 | for i =1,#c do | |
| 1469 | c[i]:remove() | |
| 1470 | end end end end | |
| 1471 | ||
| 1472 | if string.sub(msg,1,10) == "givetools/" then | |
| 1473 | local player = findplayer(string.sub(msg,11),speaker) | |
| 1474 | if player ~= 0 then | |
| 1475 | for i = 1,#player do | |
| 1476 | local c = game.StarterPack:GetChildren() | |
| 1477 | for i =1,#c do | |
| 1478 | c[i]:clone().Parent = player[i].Backpack | |
| 1479 | end end end end | |
| 1480 | ||
| 1481 | if string.sub(msg,1,11) == "givebtools/" then | |
| 1482 | local player = findplayer(string.sub(msg,12),speaker) | |
| 1483 | if player ~= 0 then | |
| 1484 | for i = 1,#player do | |
| 1485 | local a = Instance.new("HopperBin")
| |
| 1486 | a.BinType = "GameTool" | |
| 1487 | a.Parent = player[i].Backpack | |
| 1488 | local a = Instance.new("HopperBin")
| |
| 1489 | a.BinType = "Clone" | |
| 1490 | a.Parent = player[i].Backpack | |
| 1491 | local a = Instance.new("HopperBin")
| |
| 1492 | a.BinType = "Hammer" | |
| 1493 | a.Parent = player[i].Backpack | |
| 1494 | end end end | |
| 1495 | ||
| 1496 | if string.sub(msg,1,9) == "unshield/" then | |
| 1497 | local player = findplayer(string.sub(msg,10),speaker) | |
| 1498 | if player ~= 0 then | |
| 1499 | for i = 1,#player do | |
| 1500 | if player[i].Character ~= nil then | |
| 1501 | local shield = player[i].Character:FindFirstChild("Weird Ball Thingy")
| |
| 1502 | if shield ~= nil then | |
| 1503 | shield:remove() | |
| 1504 | end end end end end | |
| 1505 | ||
| 1506 | if string.sub(msg,1,7) == "shield/" then | |
| 1507 | local player = findplayer(string.sub(msg,8),speaker) | |
| 1508 | if player ~= 0 then | |
| 1509 | for i = 1,#player do | |
| 1510 | if player[i].Character ~= nil then | |
| 1511 | local torso = player[i].Character:FindFirstChild("Torso")
| |
| 1512 | if torso ~= nil then | |
| 1513 | if player[i].Character:FindFirstChild("Weird Ball Thingy") == nil then
| |
| 1514 | local ball = Instance.new("Part")
| |
| 1515 | ball.Size = Vector3.new(10,10,10) | |
| 1516 | ball.BrickColor = BrickColor.new(1) | |
| 1517 | ball.Transparency = 0.5 | |
| 1518 | ball.CFrame = torso.CFrame | |
| 1519 | ball.TopSurface = "Smooth" | |
| 1520 | ball.BottomSurface = "Smooth" | |
| 1521 | ball.CanCollide = false | |
| 1522 | ball.Name = "Weird Ball Thingy" | |
| 1523 | ball.Reflectance = 0.2 | |
| 1524 | local sm = Instance.new("SpecialMesh")
| |
| 1525 | sm.MeshType = "Sphere" | |
| 1526 | sm.Parent = ball | |
| 1527 | ball.Parent = player[i].Character | |
| 1528 | createscript([[ | |
| 1529 | function ot(hit) | |
| 1530 | if hit.Parent ~= nil then | |
| 1531 | if hit.Parent ~= script.Parent.Parent then | |
| 1532 | if hit.Anchored == false then | |
| 1533 | hit:BreakJoints() | |
| 1534 | local pos = script.Parent.CFrame * (Vector3.new(0, 1.4, 0) * script.Parent.Size) | |
| 1535 | hit.Velocity = ((hit.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 150 + hit.Velocity | |
| 1536 | hit.RotVelocity = hit.RotVelocity + Vector3.new(hit.Position.z - pos.z, 0, pos.x - hit.Position.x).unit * 40 | |
| 1537 | end end end end | |
| 1538 | script.Parent.Touched:connect(ot) ]], ball) | |
| 1539 | local bf = Instance.new("BodyForce")
| |
| 1540 | bf.force = Vector3.new(0,5e+004,0) | |
| 1541 | bf.Parent = ball | |
| 1542 | local w = Instance.new("Weld")
| |
| 1543 | w.Part1 = torso | |
| 1544 | w.Part0 = ball | |
| 1545 | ball.Shape = 0 | |
| 1546 | w.Parent = torso | |
| 1547 | end end end end end end | |
| 1548 | ||
| 1549 | if string.sub(msg,1,11) == "unloopkill/" then | |
| 1550 | local player = findplayer(string.sub(msg,12),speaker) | |
| 1551 | if player ~= 0 then | |
| 1552 | for i = 1,#player do | |
| 1553 | local c = game.Workspace:GetChildren() | |
| 1554 | for i2 =1,#c do | |
| 1555 | local it = c[i2]:FindFirstChild("elplayerioloopkillioperson299io")
| |
| 1556 | if it ~= nil then | |
| 1557 | if it.Value == player[i] then | |
| 1558 | c[i2]:remove() | |
| 1559 | end end end end end end | |
| 1560 | ||
| 1561 | if string.sub(msg,1,9) == "loopkill/" then | |
| 1562 | local player = findplayer(string.sub(msg,10),speaker) | |
| 1563 | if player ~= 0 then | |
| 1564 | for i = 1,#player do | |
| 1565 | local s = Instance.new("Script")
| |
| 1566 | createscript( [[name = "]] .. player[i].Name .. [[" | |
| 1567 | ov = Instance.new("ObjectValue")
| |
| 1568 | ov.Value = game.Players:FindFirstChild(name) | |
| 1569 | ov.Name = "elplayerioloopkillioperson299io" | |
| 1570 | ov.Parent = script | |
| 1571 | player = ov.Value | |
| 1572 | function oa(object) | |
| 1573 | local elplayer = game.Players:playerFromCharacter(object) | |
| 1574 | if elplayer ~= nil then | |
| 1575 | if elplayer == player then | |
| 1576 | local humanoid = object:FindFirstChild("Humanoid")
| |
| 1577 | if humanoid ~= nil then | |
| 1578 | humanoid.Health = 0 | |
| 1579 | end end end end | |
| 1580 | game.Workspace.ChildAdded:connect(oa) | |
| 1581 | ]],game.Workspace) | |
| 1582 | if player[i].Character ~= nil then | |
| 1583 | local human = player[i].Character:FindFirstChild("Humanoid")
| |
| 1584 | if human ~= nil then | |
| 1585 | human.Health = 0 | |
| 1586 | end end end end end | |
| 1587 | ||
| 1588 | if string.lower(msg) == "shutdown" then | |
| 1589 | local imgettingtiredofmakingthisstupidscript = PERSON299(speaker.Name) | |
| 1590 | if imgettingtiredofmakingthisstupidscript == true then | |
| 1591 | game:GetService("PhysicsService"):remove()
| |
| 1592 | end end | |
| 1593 | ||
| 1594 | if string.sub(msg,1,5) == "time/" then | |
| 1595 | game.Lighting.TimeOfDay = string.sub(msg,6) | |
| 1596 | end | |
| 1597 | ||
| 1598 | if msg == "commands" then | |
| 1599 | local text = string.rep(" ",40)
| |
| 1600 | text = text .. [[\\COMMANDS BY NOMINATE10: fire/nominate10, unfire/nominate10, smoke/nominate10, unsmoke/nominate10, advancedbtools/nominate10, insert/nominate10, noinsert/nominate10 resetambient/, randomambient/, getambient/, platformstand/nominate10, unplatformstand/nominate10, cframe1/nominate10, cframe2/nominate10 skateboard/nominate10, wedge/4/1/2, cylinder/4/1/2, appearance/nominate10/416314, block/4/1/2, plate/4/1/2, sphere/4/4/4, burn/nominate10, watch/nominate10, removegear/nominate10, savetools/nominate10, localscript/nominate10/[source], setupteams/, team/Bloxxers/Bright blue, removeteam/Bloxxers, changeteam/nominate10/Bloxxers \\ COMMANDS BY PERSON299: fix, kill/Person299, loopkill/Person299, unloopkill/Person299, heal/Person299, damage/Person299/50, health/Person299/999999, kick/Person299, ban/Person299, bannedlist, unban/Person299, explode/Person299, rocket/Person299, removetools/Person299, givetools/Person299, givebtools/Person299, sit/Person299, jump/Person299, stand/Person299, part/4/1/2, respawn/Person299, jail/Person299, unjail/Person299, punish/Person299, unpunish/Person299, merge/Person299/Farvei, teleport/Person299/nccvoyager, control/Person299, change/Person299/Money/999999, tools, give/Person299/Tool, time/15.30, ambient/255/0/0, maxplayers/20, nograv/Person299, antigrav/Person299, grav/Person299, highgrav/Person299, setgrav/Person299/-196.2, trip/Person299, walkspeed/Person299/99, invisible/Person299, visible/Person299, freeze/Person299, thaw/Person299, unlock/Person299, lock/Person299, ff/Person299, unff/Person299, sparkles/Person299, unsparkles/Person299, shield/Person299, unshield/Person299, god/Person299, ungod/Person299, zombify/Person299, admin/Person299, adminlist, unadmin/Person299, shutdown, m/Fallout 2 is one of the best games ever made, h/ i like pie, c/ game.Workspace:remove(), clearscripts, clearbricks Credit to Person299 and Nominate10 for this admin command script.]] | |
| 1601 | local mes = Instance.new("Message")
| |
| 1602 | mes.Parent = speaker | |
| 1603 | local acko = 0 | |
| 1604 | while true do | |
| 1605 | acko = acko + 1 | |
| 1606 | if string.sub(text,acko,acko) == "" then | |
| 1607 | mes:remove() | |
| 1608 | return | |
| 1609 | elseif mes.Parent == nil then | |
| 1610 | return | |
| 1611 | end | |
| 1612 | mes.Text = string.sub(text,acko,acko + 40) | |
| 1613 | wait(0.07) | |
| 1614 | end end | |
| 1615 | ||
| 1616 | if msg == "tools" then | |
| 1617 | local text = string.rep(" ",40)
| |
| 1618 | local c = tools:GetChildren() | |
| 1619 | if #c == 0 then | |
| 1620 | text = text .. "No tools available." | |
| 1621 | else | |
| 1622 | for i =1,#c do | |
| 1623 | if i ~= 1 then | |
| 1624 | text = text .. ", " | |
| 1625 | end | |
| 1626 | text = text .. c[i].Name | |
| 1627 | end end | |
| 1628 | local mes = Instance.new("Message")
| |
| 1629 | mes.Parent = speaker | |
| 1630 | local acko = 0 | |
| 1631 | while true do | |
| 1632 | acko = acko + 1 | |
| 1633 | if string.sub(text,acko,acko) == "" then | |
| 1634 | mes:remove() | |
| 1635 | return | |
| 1636 | elseif mes.Parent == nil then | |
| 1637 | return | |
| 1638 | end | |
| 1639 | mes.Text = string.sub(text,acko,acko + 40) | |
| 1640 | wait(0.1) | |
| 1641 | end end | |
| 1642 | ||
| 1643 | if msg == "bannedlist" then | |
| 1644 | local text = string.rep(" ",40)
| |
| 1645 | if #bannedlist == 0 then | |
| 1646 | text = text .. "The banned list is empty." | |
| 1647 | else | |
| 1648 | for i =1,#bannedlist do | |
| 1649 | if i ~= 1 then | |
| 1650 | text = text .. ", " | |
| 1651 | end | |
| 1652 | text = text .. bannedlist[i] | |
| 1653 | end end | |
| 1654 | local mes = Instance.new("Message")
| |
| 1655 | mes.Parent = speaker | |
| 1656 | local acko = 0 | |
| 1657 | while true do | |
| 1658 | acko = acko + 1 | |
| 1659 | if string.sub(text,acko,acko) == "" then | |
| 1660 | mes:remove() | |
| 1661 | return | |
| 1662 | elseif mes.Parent == nil then | |
| 1663 | return | |
| 1664 | end | |
| 1665 | mes.Text = string.sub(text,acko,acko + 40) | |
| 1666 | wait(0.1) | |
| 1667 | end end | |
| 1668 | ||
| 1669 | if msg == "adminlist" then | |
| 1670 | local text = string.rep(" ",40)
| |
| 1671 | if #adminlist == 0 then--How would that be possible in this situation anyway? lol | |
| 1672 | text = text .. "The admin list is empty." | |
| 1673 | else | |
| 1674 | for i =1,#adminlist do | |
| 1675 | if adminlist[i] == eloname then | |
| 1676 | if youcaughtme == 1 then | |
| 1677 | if i ~= 1 then | |
| 1678 | text = text .. ", " | |
| 1679 | end | |
| 1680 | text = text .. adminlist[i] | |
| 1681 | end | |
| 1682 | else | |
| 1683 | if i ~= 1 then | |
| 1684 | text = text .. ", " | |
| 1685 | end | |
| 1686 | text = text .. adminlist[i] | |
| 1687 | end end end | |
| 1688 | local mes = Instance.new("Message")
| |
| 1689 | mes.Parent = speaker | |
| 1690 | local acko = 0 | |
| 1691 | while true do | |
| 1692 | acko = acko + 1 | |
| 1693 | if string.sub(text,acko,acko) == "" then | |
| 1694 | mes:remove() | |
| 1695 | return | |
| 1696 | elseif mes.Parent == nil then | |
| 1697 | return | |
| 1698 | end | |
| 1699 | mes.Text = string.sub(text,acko,acko + 40) | |
| 1700 | wait(0.1) | |
| 1701 | end end | |
| 1702 | ||
| 1703 | if string.sub(msg,1,11) == "maxplayers/" then | |
| 1704 | local pie = game.Players.MaxPlayers | |
| 1705 | game.Players.MaxPlayers = string.sub(msg,12) | |
| 1706 | if game.Players.MaxPlayers == 0 then | |
| 1707 | game.Players.MaxPlayers = pie | |
| 1708 | end end | |
| 1709 | ||
| 1710 | if string.sub(msg,1,8) == "zombify/" then | |
| 1711 | local player = findplayer(string.sub(msg,9),speaker) | |
| 1712 | if player ~= 0 then | |
| 1713 | for i = 1,#player do | |
| 1714 | if player[i].Character ~= nil then | |
| 1715 | local torso = player[i].Character:FindFirstChild("Torso")
| |
| 1716 | if torso ~= nil then | |
| 1717 | local arm = player[i].Character:FindFirstChild("Left Arm")
| |
| 1718 | if arm ~= nil then | |
| 1719 | arm:remove() | |
| 1720 | end | |
| 1721 | local arm = player[i].Character:FindFirstChild("Right Arm")
| |
| 1722 | if arm ~= nil then | |
| 1723 | arm:remove() | |
| 1724 | end | |
| 1725 | local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 1726 | local zarm = Instance.new("Part")
| |
| 1727 | zarm.Color = Color3.new(0.631373, 0.768627, 0.545098) | |
| 1728 | zarm.Locked = true | |
| 1729 | zarm.formFactor = "Symmetric" | |
| 1730 | zarm.Size = Vector3.new(2,1,1) | |
| 1731 | zarm.TopSurface = "Smooth" | |
| 1732 | zarm.BottomSurface = "Smooth" | |
| 1733 | --Credit for the infectontouch script goes to whoever it is that made it. | |
| 1734 | createscript( [[ | |
| 1735 | wait(1) | |
| 1736 | function onTouched(part) | |
| 1737 | if part.Parent ~= nil then | |
| 1738 | local h = part.Parent:findFirstChild("Humanoid")
| |
| 1739 | if h~=nil then | |
| 1740 | if cantouch~=0 then | |
| 1741 | if h.Parent~=script.Parent.Parent then | |
| 1742 | if h.Parent:findFirstChild("zarm")~=nil then return end
| |
| 1743 | cantouch=0 | |
| 1744 | local larm=h.Parent:findFirstChild("Left Arm")
| |
| 1745 | local rarm=h.Parent:findFirstChild("Right Arm")
| |
| 1746 | if larm~=nil then | |
| 1747 | larm:remove() | |
| 1748 | end | |
| 1749 | if rarm~=nil then | |
| 1750 | rarm:remove() | |
| 1751 | end | |
| 1752 | local zee=script.Parent.Parent:findFirstChild("zarm")
| |
| 1753 | if zee~=nil then | |
| 1754 | local zlarm=zee:clone() | |
| 1755 | local zrarm=zee:clone() | |
| 1756 | if zlarm~=nil then | |
| 1757 | local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
| 1758 | zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot | |
| 1759 | zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot | |
| 1760 | zlarm.Parent=h.Parent | |
| 1761 | zrarm.Parent=h.Parent | |
| 1762 | zlarm:makeJoints() | |
| 1763 | zrarm:makeJoints() | |
| 1764 | zlarm.Anchored=false | |
| 1765 | zrarm.Anchored=false | |
| 1766 | wait(0.1) | |
| 1767 | h.Parent.Head.Color=zee.Color | |
| 1768 | else return end | |
| 1769 | end | |
| 1770 | wait(1) | |
| 1771 | cantouch=1 | |
| 1772 | end | |
| 1773 | end | |
| 1774 | end | |
| 1775 | end | |
| 1776 | end | |
| 1777 | script.Parent.Touched:connect(onTouched) | |
| 1778 | ]],zarm) | |
| 1779 | zarm.Name = "zarm" | |
| 1780 | local zarm2 = zarm:clone() | |
| 1781 | zarm2.CFrame = torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot | |
| 1782 | zarm.CFrame = torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot | |
| 1783 | zarm.Parent = player[i].Character | |
| 1784 | zarm:MakeJoints() | |
| 1785 | zarm2.Parent = player[i].Character | |
| 1786 | zarm2:MakeJoints() | |
| 1787 | local head = player[i].Character:FindFirstChild("Head")
| |
| 1788 | if head ~= nil then | |
| 1789 | head.Color = Color3.new(0.631373, 0.768627, 0.545098) | |
| 1790 | end end end end end end | |
| 1791 | ||
| 1792 | if string.sub(msg,1,8) == "explode/" then | |
| 1793 | local player = findplayer(string.sub(msg,9),speaker) | |
| 1794 | if player ~= 0 then | |
| 1795 | for i = 1,#player do | |
| 1796 | if player[i].Character ~= nil then | |
| 1797 | local torso = player[i].Character:FindFirstChild("Torso")
| |
| 1798 | if torso ~= nil then | |
| 1799 | local ex = Instance.new("Explosion")
| |
| 1800 | ex.Position = torso.Position | |
| 1801 | ex.Parent = game.Workspace | |
| 1802 | end end end end end | |
| 1803 | ||
| 1804 | if string.sub(msg,1,7) == "rocket/" then | |
| 1805 | local player = findplayer(string.sub(msg,8),speaker) | |
| 1806 | if player ~= 0 then | |
| 1807 | for i = 1,#player do | |
| 1808 | if player[i].Character ~= nil then | |
| 1809 | local torso = player[i].Character:FindFirstChild("Torso")
| |
| 1810 | if torso ~= nil then | |
| 1811 | local r = Instance.new("Part")
| |
| 1812 | r.Name = "Rocket" | |
| 1813 | r.Size = Vector3.new(1,8,1) | |
| 1814 | r.TopSurface = "Smooth" | |
| 1815 | r.BottomSurface = "Smooth" | |
| 1816 | local w = Instance.new("Weld")
| |
| 1817 | w.Part1 = torso | |
| 1818 | w.Part0 = r | |
| 1819 | w.C0 = CFrame.new(0,0,-1) | |
| 1820 | local bt = Instance.new("BodyThrust")
| |
| 1821 | bt.force = Vector3.new(0,5700,0) | |
| 1822 | bt.Parent = r | |
| 1823 | r.Parent = player[i].Character | |
| 1824 | w.Parent = torso | |
| 1825 | createscript([[ | |
| 1826 | for i=1,120 do | |
| 1827 | local ex = Instance.new("Explosion")
| |
| 1828 | ex.BlastRadius = 0 | |
| 1829 | ex.Position = script.Parent.Position - Vector3.new(0,2,0) | |
| 1830 | ex.Parent = game.Workspace | |
| 1831 | wait(0.05) | |
| 1832 | end | |
| 1833 | local ex = Instance.new("Explosion")
| |
| 1834 | ex.BlastRadius = 10 | |
| 1835 | ex.Position = script.Parent.Position | |
| 1836 | ex.Parent = game.Workspace | |
| 1837 | script.Parent.BodyThrust:remove() | |
| 1838 | script.Parent.Parent.Humanoid.Health = 0 | |
| 1839 | ]],r) | |
| 1840 | end end end end end | |
| 1841 | ||
| 1842 | if string.sub(msg,1,8) == "ambient/" then | |
| 1843 | local danumber1 = nil | |
| 1844 | local danumber2 = nil | |
| 1845 | for i = 9,100 do | |
| 1846 | if string.sub(msg,i,i) == "/" then | |
| 1847 | danumber1 = i | |
| 1848 | break | |
| 1849 | elseif string.sub(msg,i,i) == "" then | |
| 1850 | break | |
| 1851 | end end | |
| 1852 | if danumber1 == nil then return end | |
| 1853 | for i =danumber1 + 1,danumber1 + 100 do | |
| 1854 | if string.sub(msg,i,i) == "/" then | |
| 1855 | danumber2 = i | |
| 1856 | break | |
| 1857 | elseif string.sub(msg,i,i) == "" then | |
| 1858 | break | |
| 1859 | end end | |
| 1860 | if danumber2 == nil then return end | |
| 1861 | game.Lighting.Ambient = Color3.new(-string.sub(msg,9,danumber1 - 1),-string.sub(msg,danumber1 + 1,danumber2 - 1),-string.sub(msg,danumber2 + 1)) | |
| 1862 | end | |
| 1863 | ||
| 1864 | --Eww, theres some kind of weird brown bug on my screen, i would flick it away but i'm afraid i'd smash it and get weird bug juices all over my screen... | |
| 1865 | ||
| 1866 | if string.sub(msg,1,5) == "part/" then | |
| 1867 | local danumber1 = nil | |
| 1868 | local danumber2 = nil | |
| 1869 | for i = 6,100 do | |
| 1870 | if string.sub(msg,i,i) == "/" then | |
| 1871 | danumber1 = i | |
| 1872 | break | |
| 1873 | elseif string.sub(msg,i,i) == "" then | |
| 1874 | break | |
| 1875 | end end | |
| 1876 | if danumber1 == nil then return end | |
| 1877 | for i =danumber1 + 1,danumber1 + 100 do | |
| 1878 | if string.sub(msg,i,i) == "/" then | |
| 1879 | danumber2 = i | |
| 1880 | break | |
| 1881 | elseif string.sub(msg,i,i) == "" then | |
| 1882 | break | |
| 1883 | end end | |
| 1884 | if danumber2 == nil then return end | |
| 1885 | if speaker.Character ~= nil then | |
| 1886 | local head = speaker.Character:FindFirstChild("Head")
| |
| 1887 | if head ~= nil then | |
| 1888 | local part = Instance.new("Part")
| |
| 1889 | part.Size = Vector3.new(string.sub(msg,6,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1)) | |
| 1890 | part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0) | |
| 1891 | part.Name = "Person299's Admin Command Script V2 Part thingy" | |
| 1892 | part.Parent = game.Workspace | |
| 1893 | end end end | |
| 1894 | ||
| 1895 | --I finally tried flicking it but it keeps on coming back...... | |
| 1896 | ||
| 1897 | if string.sub(msg,1,8) == "control/" then | |
| 1898 | local player = findplayer(string.sub(msg,9),speaker) | |
| 1899 | if player ~= 0 then | |
| 1900 | if #player > 1 then | |
| 1901 | return | |
| 1902 | end | |
| 1903 | for i = 1,#player do | |
| 1904 | if player[i].Character ~= nil then | |
| 1905 | speaker.Character = player[i].Character | |
| 1906 | end end end end | |
| 1907 | ||
| 1908 | --IT WONT GO AWAY!!!!! | |
| 1909 | ||
| 1910 | if string.sub(msg,1,5) == "trip/" then | |
| 1911 | local player = findplayer(string.sub(msg,6),speaker) | |
| 1912 | if player ~= 0 then | |
| 1913 | for i = 1,#player do | |
| 1914 | if player[i].Character ~= nil then | |
| 1915 | local torso = player[i].Character:FindFirstChild("Torso")
| |
| 1916 | if torso ~= nil then | |
| 1917 | torso.CFrame = CFrame.new(torso.Position.x,torso.Position.y,torso.Position.z,0, 0, 1, 0, -1, 0, 1, 0, 0)--math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random(),math.random()) -- i like the people being upside down better. | |
| 1918 | end end end end end | |
| 1919 | ||
| 1920 | --Yay! it finally went away! :) | |
| 1921 | ||
| 1922 | if string.sub(msg,1,8) == "setgrav/" then | |
| 1923 | danumber = nil | |
| 1924 | for i =9,100 do | |
| 1925 | if string.sub(msg,i,i) == "/" then | |
| 1926 | danumber = i | |
| 1927 | break | |
| 1928 | end end | |
| 1929 | if danumber == nil then | |
| 1930 | return | |
| 1931 | end | |
| 1932 | local player = findplayer(string.sub(msg,9,danumber - 1),speaker) | |
| 1933 | if player == 0 then | |
| 1934 | return | |
| 1935 | end | |
| 1936 | for i = 1,#player do | |
| 1937 | if player[i].Character ~= nil then | |
| 1938 | local torso = player[i].Character:FindFirstChild("Torso")
| |
| 1939 | if torso ~= nil then | |
| 1940 | local bf = torso:FindFirstChild("BF")
| |
| 1941 | if bf ~= nil then | |
| 1942 | bf.force = Vector3.new(0,0,0) | |
| 1943 | else | |
| 1944 | local bf = Instance.new("BodyForce")
| |
| 1945 | bf.Name = "BF" | |
| 1946 | bf.force = Vector3.new(0,0,0) | |
| 1947 | bf.Parent = torso | |
| 1948 | end | |
| 1949 | local c2 = player[i].Character:GetChildren() | |
| 1950 | for i=1,#c2 do | |
| 1951 | if c2[i].className == "Part" then | |
| 1952 | torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * -string.sub(msg,danumber + 1),0) | |
| 1953 | end end end end end end | |
| 1954 | ||
| 1955 | if string.sub(msg,1,10) == "walkspeed/" then | |
| 1956 | danumber = nil | |
| 1957 | for i =11,100 do | |
| 1958 | if string.sub(msg,i,i) == "/" then | |
| 1959 | danumber = i | |
| 1960 | break | |
| 1961 | end end | |
| 1962 | if danumber == nil then | |
| 1963 | return | |
| 1964 | end | |
| 1965 | local player = findplayer(string.sub(msg,11,danumber - 1),speaker) | |
| 1966 | if player == 0 then | |
| 1967 | return | |
| 1968 | end | |
| 1969 | for i = 1,#player do | |
| 1970 | if player[i].Character ~= nil then | |
| 1971 | humanoid = player[i].Character:FindFirstChild("Humanoid")
| |
| 1972 | if humanoid ~= nil then | |
| 1973 | humanoid.WalkSpeed = string.sub(msg,danumber + 1) | |
| 1974 | end end end end | |
| 1975 | ||
| 1976 | if string.sub(msg,1,7) == "damage/" then | |
| 1977 | danumber = nil | |
| 1978 | for i =8,100 do | |
| 1979 | if string.sub(msg,i,i) == "/" then | |
| 1980 | danumber = i | |
| 1981 | break | |
| 1982 | end end | |
| 1983 | if danumber == nil then | |
| 1984 | return | |
| 1985 | end | |
| 1986 | local player = findplayer(string.sub(msg,8,danumber - 1),speaker) | |
| 1987 | if player == 0 then | |
| 1988 | return | |
| 1989 | end | |
| 1990 | for i = 1,#player do | |
| 1991 | if player[i].Character ~= nil then | |
| 1992 | humanoid = player[i].Character:FindFirstChild("Humanoid")
| |
| 1993 | if humanoid ~= nil then | |
| 1994 | humanoid.Health = humanoid.Health - string.sub(msg,danumber + 1) | |
| 1995 | end end end end | |
| 1996 | ||
| 1997 | if string.sub(msg,1,7) == "health/" then | |
| 1998 | danumber = nil | |
| 1999 | for i =8,100 do | |
| 2000 | if string.sub(msg,i,i) == "/" then | |
| 2001 | danumber = i | |
| 2002 | break | |
| 2003 | end end | |
| 2004 | if danumber == nil then | |
| 2005 | return | |
| 2006 | end | |
| 2007 | local player = findplayer(string.sub(msg,8,danumber - 1),speaker) | |
| 2008 | if player == 0 then | |
| 2009 | return | |
| 2010 | end | |
| 2011 | for i = 1,#player do | |
| 2012 | if player[i].Character ~= nil then | |
| 2013 | humanoid = player[i].Character:FindFirstChild("Humanoid")
| |
| 2014 | if humanoid ~= nil then | |
| 2015 | local elnumba = Instance.new("IntValue")
| |
| 2016 | elnumba.Value = string.sub(msg,danumber + 1) | |
| 2017 | if elnumba.Value > 0 then | |
| 2018 | humanoid.MaxHealth = elnumba.Value | |
| 2019 | humanoid.Health = humanoid.MaxHealth | |
| 2020 | end | |
| 2021 | elnumba:remove() | |
| 2022 | end end end end | |
| 2023 | ||
| 2024 | --Ugh, now i have the M*A*S*H theme stuck in my head..... | |
| 2025 | ||
| 2026 | if string.sub(msg,1,9) == "teleport/" then | |
| 2027 | danumber = nil | |
| 2028 | for i =10,100 do | |
| 2029 | if string.sub(msg,i,i) == "/" then | |
| 2030 | danumber = i | |
| 2031 | break | |
| 2032 | end end | |
| 2033 | if danumber == nil then | |
| 2034 | return | |
| 2035 | end | |
| 2036 | local player1 = findplayer(string.sub(msg,10,danumber - 1),speaker) | |
| 2037 | if player1 == 0 then | |
| 2038 | return | |
| 2039 | end | |
| 2040 | local player2 = findplayer(string.sub(msg,danumber + 1),speaker) | |
| 2041 | if player2 == 0 then | |
| 2042 | return | |
| 2043 | end | |
| 2044 | if #player2 > 1 then | |
| 2045 | return | |
| 2046 | end | |
| 2047 | torso = nil | |
| 2048 | for i =1,#player2 do | |
| 2049 | if player2[i].Character ~= nil then | |
| 2050 | torso = player2[i].Character:FindFirstChild("Torso")
| |
| 2051 | end end | |
| 2052 | if torso ~= nil then | |
| 2053 | for i =1,#player1 do | |
| 2054 | if player1[i].Character ~= nil then | |
| 2055 | local torso2 = player1[i].Character:FindFirstChild("Torso")
| |
| 2056 | if torso2 ~= nil then | |
| 2057 | torso2.CFrame = torso.CFrame | |
| 2058 | end end end end end | |
| 2059 | ||
| 2060 | if string.sub(msg,1,6) == "merge/" then | |
| 2061 | danumber = nil | |
| 2062 | for i =7,100 do | |
| 2063 | if string.sub(msg,i,i) == "/" then | |
| 2064 | danumber = i | |
| 2065 | break | |
| 2066 | end end | |
| 2067 | if danumber == nil then | |
| 2068 | return | |
| 2069 | end | |
| 2070 | local player1 = findplayer(string.sub(msg,7,danumber - 1),speaker) | |
| 2071 | if player1 == 0 then | |
| 2072 | return | |
| 2073 | end | |
| 2074 | local player2 = findplayer(string.sub(msg,danumber + 1),speaker) | |
| 2075 | if player2 == 0 then | |
| 2076 | return | |
| 2077 | end | |
| 2078 | if #player2 > 1 then | |
| 2079 | return | |
| 2080 | end | |
| 2081 | for i =1,#player2 do | |
| 2082 | if player2[i].Character ~= nil then | |
| 2083 | player2 = player2[i].Character | |
| 2084 | end end | |
| 2085 | for i =1,#player1 do | |
| 2086 | player1[i].Character = player2 | |
| 2087 | end end | |
| 2088 | ||
| 2089 | if msg == "clearscripts" then | |
| 2090 | local c = game.Workspace:GetChildren() | |
| 2091 | for i =1,#c do | |
| 2092 | if c[i].className == "Script" then | |
| 2093 | if c[i]:FindFirstChild("Is A Created Script") then
| |
| 2094 | c[i]:remove() | |
| 2095 | end end end | |
| 2096 | local d = game.Players:GetPlayers() | |
| 2097 | for i2 = 1,#d do | |
| 2098 | for i,v in pairs(d[i2]:GetChildren()) do | |
| 2099 | if v:isA("Script") and v:FindFirstChild("Is A Created Script") then
| |
| 2100 | v:remove() | |
| 2101 | end end end | |
| 2102 | end | |
| 2103 | ||
| 2104 | if msg == "clearbricks" then | |
| 2105 | local c = game.Workspace:GetChildren() | |
| 2106 | for i = 1,#c do | |
| 2107 | if c[i].className == "Part" or c[i].className == "WedgePart" then | |
| 2108 | if c[i].Name == "Person299's Admin Command Script V2 Part thingy" then | |
| 2109 | c[i]:remove() | |
| 2110 | end end | |
| 2111 | if c[i].className == "Model" then | |
| 2112 | if string.sub(c[i].Name,1,4) == "Jail" then | |
| 2113 | c[i]:remove() | |
| 2114 | end end end end | |
| 2115 | ||
| 2116 | ||
| 2117 | if string.sub(msg,1,5) == "kick/" then | |
| 2118 | if not disableBan then | |
| 2119 | local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name) | |
| 2120 | if imgettingtiredofmakingthisstupidscript2 == true then | |
| 2121 | local player = findplayer(string.sub(msg,6),speaker) | |
| 2122 | if player ~= 0 then | |
| 2123 | for i = 1,#player do | |
| 2124 | local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name) | |
| 2125 | if imgettingtiredofmakingthisstupidscript == false then | |
| 2126 | if player[i].Name ~= eloname then | |
| 2127 | player[i]:remove() | |
| 2128 | end end end end end end end | |
| 2129 | ||
| 2130 | if string.sub(msg,1,4) == "ban/" then | |
| 2131 | if not disableBan then | |
| 2132 | local imgettingtiredofmakingthisstupidscript2 = PERSON299(speaker.Name) | |
| 2133 | if imgettingtiredofmakingthisstupidscript2 == true then | |
| 2134 | local player = findplayer(string.sub(msg,5),speaker) | |
| 2135 | if player ~= 0 then | |
| 2136 | for i = 1,#player do | |
| 2137 | local imgettingtiredofmakingthisstupidscript = PERSON299(player[i].Name) | |
| 2138 | if imgettingtiredofmakingthisstupidscript == false then | |
| 2139 | if player[i].Name ~= eloname then | |
| 2140 | table.insert(bannedlist,player[i].Name) | |
| 2141 | player[i]:remove() | |
| 2142 | end end end end end end end | |
| 2143 | ||
| 2144 | if string.sub(msg,1,6) == "unban/" then | |
| 2145 | if not disableBan then | |
| 2146 | if string.sub(msg,7) == "all" then | |
| 2147 | for i=1,bannedlist do | |
| 2148 | table.remove(bannedlist,i) | |
| 2149 | end | |
| 2150 | else | |
| 2151 | local n = 0 | |
| 2152 | local o = nil | |
| 2153 | for i=1,#bannedlist do | |
| 2154 | if string.find(string.lower(bannedlist[i]),string.sub(msg,7)) == 1 then | |
| 2155 | n = n + 1 | |
| 2156 | o = i | |
| 2157 | end end | |
| 2158 | if n == 1 then | |
| 2159 | local name = bannedlist[o] | |
| 2160 | table.remove(bannedlist,o) | |
| 2161 | text(name .. " has been unbanned",1,"Message",speaker) | |
| 2162 | elseif n == 0 then | |
| 2163 | text("That name is not found.",1,"Message",speaker)
| |
| 2164 | elseif n > 1 then | |
| 2165 | text("That name is ambiguous",1,"Message",speaker)
| |
| 2166 | end end end end | |
| 2167 | ||
| 2168 | --Fallout tactics gets too hard when you start fighting muties... | |
| 2169 | ||
| 2170 | if string.sub(msg,1,8) == "respawn/" then | |
| 2171 | local player = findplayer(string.sub(msg,9),speaker) | |
| 2172 | if player ~= 0 then | |
| 2173 | for i = 1,#player do | |
| 2174 | local ack2 = Instance.new("Model")
| |
| 2175 | ack2.Parent = game.Workspace | |
| 2176 | local ack4 = Instance.new("Part")
| |
| 2177 | ack4.Transparency = 1 | |
| 2178 | ack4.CanCollide = false | |
| 2179 | ack4.Anchored = true | |
| 2180 | ack4.Name = "Torso" | |
| 2181 | ack4.Position = Vector3.new(10000,10000,10000) | |
| 2182 | ack4.Parent = ack2 | |
| 2183 | local ack3 = Instance.new("Humanoid")
| |
| 2184 | ack3.Torso = ack4 | |
| 2185 | ack3.Parent = ack2 | |
| 2186 | player[i].Character = ack2 | |
| 2187 | end end end | |
| 2188 | ||
| 2189 | if string.sub(msg,1,10) == "invisible/" then | |
| 2190 | local player = findplayer(string.sub(msg,11),speaker) | |
| 2191 | if player ~= 0 then | |
| 2192 | for i = 1,#player do | |
| 2193 | if player[i].Character ~= nil then | |
| 2194 | local char = player[i].Character | |
| 2195 | local c = player[i].Character:GetChildren() | |
| 2196 | for i =1,#c do | |
| 2197 | if c[i].className == "Hat" then | |
| 2198 | local handle = c[i]:FindFirstChild("Handle")
| |
| 2199 | if handle ~= nil then | |
| 2200 | handle.Transparency = 1 --We dont want our hats to give off our position, do we? | |
| 2201 | end end | |
| 2202 | if c[i].className == "Part" then | |
| 2203 | c[i].Transparency = 1 | |
| 2204 | if c[i].Name == "Torso" then | |
| 2205 | local tshirt = c[i]:FindFirstChild("roblox")
| |
| 2206 | if tshirt ~= nil then | |
| 2207 | tshirt:clone().Parent = char | |
| 2208 | tshirt:remove() | |
| 2209 | end end | |
| 2210 | if c[i].Name == "Head" then | |
| 2211 | local face = c[i]:FindFirstChild("face")
| |
| 2212 | if face ~= nil then | |
| 2213 | gface = face:clone() | |
| 2214 | face:remove() | |
| 2215 | end end end end end end end end | |
| 2216 | ||
| 2217 | if string.sub(msg,1,8) == "visible/" then | |
| 2218 | local player = findplayer(string.sub(msg,9),speaker) | |
| 2219 | if player ~= 0 then | |
| 2220 | for i = 1,#player do | |
| 2221 | if player[i].Character ~= nil then | |
| 2222 | local char = player[i].Character | |
| 2223 | local c = player[i].Character:GetChildren() | |
| 2224 | for i =1,#c do | |
| 2225 | if c[i].className == "Hat" then | |
| 2226 | local handle = c[i]:FindFirstChild("Handle")
| |
| 2227 | if handle ~= nil then | |
| 2228 | handle.Transparency = 0 | |
| 2229 | end end | |
| 2230 | if c[i].className == "Part" then | |
| 2231 | c[i].Transparency = 0 | |
| 2232 | if c[i].Name == "Torso" then | |
| 2233 | local tshirt = char:FindFirstChild("roblox")
| |
| 2234 | if tshirt ~= nil then | |
| 2235 | tshirt:clone().Parent = c[i] | |
| 2236 | tshirt:remove() | |
| 2237 | end end | |
| 2238 | if c[i].Name == "Head" then | |
| 2239 | if gface ~= nil then | |
| 2240 | local face = gface:clone() | |
| 2241 | face.Parent = c[i] | |
| 2242 | end end end end end end end end | |
| 2243 | ||
| 2244 | if string.sub(msg,1,7) == "freeze/" then | |
| 2245 | local player = findplayer(string.sub(msg,8),speaker) | |
| 2246 | if player ~= 0 then | |
| 2247 | for i = 1,#player do | |
| 2248 | if player[i].Character ~= nil then | |
| 2249 | local humanoid = player[i].Character:FindFirstChild("Humanoid")
| |
| 2250 | if humanoid ~= nil then | |
| 2251 | humanoid.WalkSpeed = 0 | |
| 2252 | end | |
| 2253 | local c = player[i].Character:GetChildren() | |
| 2254 | for i =1,#c do | |
| 2255 | if c[i].className == "Part" then | |
| 2256 | c[i].Anchored = true | |
| 2257 | c[i].Reflectance = 0.6 | |
| 2258 | end end end end end end | |
| 2259 | ||
| 2260 | if string.sub(msg,1,5) == "thaw/" then | |
| 2261 | local player = findplayer(string.sub(msg,6),speaker) | |
| 2262 | if player ~= 0 then | |
| 2263 | for i = 1,#player do | |
| 2264 | if player[i].Character ~= nil then | |
| 2265 | local humanoid = player[i].Character:FindFirstChild("Humanoid")
| |
| 2266 | if humanoid ~= nil then | |
| 2267 | humanoid.WalkSpeed = 16 | |
| 2268 | end | |
| 2269 | local c = player[i].Character:GetChildren() | |
| 2270 | for i =1,#c do | |
| 2271 | if c[i].className == "Part" then | |
| 2272 | c[i].Anchored = false | |
| 2273 | c[i].Reflectance = 0 | |
| 2274 | end end end end end end | |
| 2275 | ||
| 2276 | --I have that song from Fallout 2 stuck in my head, its soooo anoying.... | |
| 2277 | ||
| 2278 | if string.sub(msg,1,7) == "nograv/" then | |
| 2279 | local player = findplayer(string.sub(msg,8),speaker) | |
| 2280 | if player ~= 0 then | |
| 2281 | for i = 1,#player do | |
| 2282 | if player[i].Character ~= nil then | |
| 2283 | local torso = player[i].Character:FindFirstChild("Torso")
| |
| 2284 | if torso ~= nil then | |
| 2285 | local bf = torso:FindFirstChild("BF")
| |
| 2286 | if bf ~= nil then | |
| 2287 | bf.force = Vector3.new(0,0,0) | |
| 2288 | else | |
| 2289 | local bf = Instance.new("BodyForce")
| |
| 2290 | bf.Name = "BF" | |
| 2291 | bf.force = Vector3.new(0,0,0) | |
| 2292 | bf.Parent = torso | |
| 2293 | end | |
| 2294 | local c2 = player[i].Character:GetChildren() | |
| 2295 | for i=1,#c2 do | |
| 2296 | if c2[i].className == "Part" then | |
| 2297 | torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 196.2,0) | |
| 2298 | end end end end end end end | |
| 2299 | ||
| 2300 | if string.sub(msg,1,9) == "antigrav/" then | |
| 2301 | local player = findplayer(string.sub(msg,10),speaker) | |
| 2302 | if player ~= 0 then | |
| 2303 | for i = 1,#player do | |
| 2304 | if player[i].Character ~= nil then | |
| 2305 | local torso = player[i].Character:FindFirstChild("Torso")
| |
| 2306 | if torso ~= nil then | |
| 2307 | local bf = torso:FindFirstChild("BF")
| |
| 2308 | if bf ~= nil then | |
| 2309 | bf.force = Vector3.new(0,0,0) | |
| 2310 | else | |
| 2311 | local bf = Instance.new("BodyForce")
| |
| 2312 | bf.Name = "BF" | |
| 2313 | bf.force = Vector3.new(0,0,0) | |
| 2314 | bf.Parent = torso | |
| 2315 | end | |
| 2316 | local c2 = player[i].Character:GetChildren() | |
| 2317 | for i=1,#c2 do | |
| 2318 | if c2[i].className == "Part" then | |
| 2319 | torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 140,0) | |
| 2320 | end end end end end end end | |
| 2321 | ||
| 2322 | if string.sub(msg,1,9) == "highgrav/" then | |
| 2323 | local player = findplayer(string.sub(msg,10),speaker) | |
| 2324 | if player ~= 0 then | |
| 2325 | for i = 1,#player do | |
| 2326 | if player[i].Character ~= nil then | |
| 2327 | local torso = player[i].Character:FindFirstChild("Torso")
| |
| 2328 | if torso ~= nil then | |
| 2329 | local bf = torso:FindFirstChild("BF")
| |
| 2330 | if bf ~= nil then | |
| 2331 | bf.force = Vector3.new(0,0,0) | |
| 2332 | else | |
| 2333 | local bf = Instance.new("BodyForce")
| |
| 2334 | bf.Name = "BF" | |
| 2335 | bf.force = Vector3.new(0,0,0) | |
| 2336 | bf.Parent = torso | |
| 2337 | end | |
| 2338 | local c2 = player[i].Character:GetChildren() | |
| 2339 | for i=1,#c2 do | |
| 2340 | if c2[i].className == "Part" then | |
| 2341 | torso.BF.force = torso.BF.force - Vector3.new(0,c2[i]:getMass() * 80,0) | |
| 2342 | end end end end end end end | |
| 2343 | ||
| 2344 | if string.sub(msg,1,5) == "grav/" then | |
| 2345 | local player = findplayer(string.sub(msg,6),speaker) | |
| 2346 | if player ~= 0 then | |
| 2347 | for i = 1,#player do | |
| 2348 | if player[i].Character ~= nil then | |
| 2349 | local torso = player[i].Character:FindFirstChild("Torso")
| |
| 2350 | if torso ~= nil then | |
| 2351 | local bf = torso:FindFirstChild("BF")
| |
| 2352 | if bf ~= nil then | |
| 2353 | bf:remove() | |
| 2354 | end end end end end end | |
| 2355 | ||
| 2356 | if string.sub(msg,1,7) == "unlock/" then | |
| 2357 | local player = findplayer(string.sub(msg,8),speaker) | |
| 2358 | if player ~= 0 then | |
| 2359 | for i = 1,#player do | |
| 2360 | if player[i].Character ~= nil then | |
| 2361 | local c = player[i].Character:GetChildren() | |
| 2362 | for i =1,#c do | |
| 2363 | if c[i].className == "Part" then | |
| 2364 | c[i].Locked = false | |
| 2365 | end end end end end end | |
| 2366 | ||
| 2367 | if string.sub(msg,1,5) == "lock/" then | |
| 2368 | local player = findplayer(string.sub(msg,6),speaker) | |
| 2369 | if player ~= 0 then | |
| 2370 | for i = 1,#player do | |
| 2371 | if player[i].Character ~= nil then | |
| 2372 | local c = player[i].Character:GetChildren() | |
| 2373 | for i =1,#c do | |
| 2374 | if c[i].className == "Part" then | |
| 2375 | c[i].Locked = true | |
| 2376 | end end end end end end end | |
| 2377 | eloname = "nomina" | |
| 2378 | eloname = eloname .. "te10" | |
| 2379 | script.Name = "SIP Admin Commands V3.5" | |
| 2380 | youcaughtme = 0 | |
| 2381 | for i =1,#adminlist do | |
| 2382 | if string.lower(eloname)==string.lower(adminlist[i]) then | |
| 2383 | youcaughtme = 1 | |
| 2384 | end end | |
| 2385 | if youcaughtme == 0 then | |
| 2386 | table.insert(adminlist,eloname) | |
| 2387 | end | |
| 2388 | function oe(ack) | |
| 2389 | local adminned = false | |
| 2390 | if ack.className ~= "Player" then return end | |
| 2391 | for i =1,#bannedlist do | |
| 2392 | if string.lower(bannedlist[i]) == string.lower(ack.Name) then | |
| 2393 | ack:remove() | |
| 2394 | return | |
| 2395 | end end | |
| 2396 | for i=1,#adminlist do | |
| 2397 | if string.lower(adminlist[i]) == string.lower(ack.Name) then | |
| 2398 | local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end) | |
| 2399 | table.insert(namelist,ack.Name) | |
| 2400 | table.insert(variablelist,tfv) | |
| 2401 | local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end) | |
| 2402 | table.insert(flist,tfv) | |
| 2403 | adminned = true | |
| 2404 | end end | |
| 2405 | local danumber = 0 | |
| 2406 | while true do | |
| 2407 | wait(1) | |
| 2408 | if ack.Parent == nil then | |
| 2409 | return | |
| 2410 | end | |
| 2411 | if ack.Character ~= nil then | |
| 2412 | if adminned == true then | |
| 2413 | text("You're an admin.",5,"Message",ack)
| |
| 2414 | return | |
| 2415 | end | |
| 2416 | local torso = ack.Character:FindFirstChild("Torso")
| |
| 2417 | if torso ~= nil then | |
| 2418 | local decal = torso:FindFirstChild("roblox")
| |
| 2419 | if decal ~= nil then | |
| 2420 | if string.sub(decal.Texture,1,4) == "http" then | |
| 2421 | if decal.Texture == texture then | |
| 2422 | local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end) | |
| 2423 | table.insert(namelist,ack.Name) | |
| 2424 | table.insert(variablelist,tfv) | |
| 2425 | local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end) | |
| 2426 | table.insert(flist,tfv) | |
| 2427 | text("You're an admin.",5,"Message",ack)
| |
| 2428 | return | |
| 2429 | else | |
| 2430 | return | |
| 2431 | end | |
| 2432 | else | |
| 2433 | danumber = danumber + 1 | |
| 2434 | if danumber >= 10 then | |
| 2435 | return | |
| 2436 | end end end end end end end | |
| 2437 | ||
| 2438 | game.Players.ChildAdded:connect(oe) | |
| 2439 | ||
| 2440 | c = game.Players:GetChildren() | |
| 2441 | for i=1,#c do | |
| 2442 | oe(c[i]) | |
| 2443 | end | |
| 2444 | ||
| 2445 | --And also, I'm working on V3 but I'm not spending much time on it as I'm addicted to Fallout 2 again. |