Advertisement
afiq306

??????????????????

Nov 27th, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.04 KB | None | 0 0
  1. adminlist = {"afiq306"}--Add in the names of the people/friend's you want to be able to use the command script here.
  2. --Please keep my name in there. ;)
  3. bannedlist = {""}--If you want someone not to be able to enter your place, put thier name in here.
  4. texture = ""--If you want someone wearing a certain t-shirt to be an admin, put the t-shirt's texture in here.
  5. --[[
  6.  
  7. The commands are,
  8.  
  9. commands
  10. Shows a list of all the commands
  11.  
  12. fix
  13. If the command script breaks for you, say this to fix it
  14.  
  15. kill/person
  16. kills person
  17.  
  18. loopkill/person
  19. Repeatedly kills Person when he respawns
  20.  
  21. unloopkill/Person
  22. Undos loopkill/
  23.  
  24. heal/Person
  25. Returns Person to full health
  26.  
  27. damage/Person/50
  28. Makes Person299's character take 50 damage
  29.  
  30. health/Person/999999
  31. Makes Person's MaxHealth and Health 999999
  32.  
  33. kick/Person
  34. Removes Person from the game, cannot be used by admin/ed people
  35.  
  36. ban/Person
  37. Removes Person from the game and keeps him from reenterring, cannot be used by admin/ed people
  38.  
  39. bannedlist
  40. Shows a list of everyone banned
  41.  
  42. unban/Person
  43. Unbans Person
  44.  
  45. explode/Person
  46. Explodes Person299's character
  47.  
  48. rocket/Person
  49. Straps a rocket onto Person299's back
  50.  
  51. removetools/Person
  52. Removes all of Person`s tools.
  53.  
  54. givetools/Person
  55. Gives Person all the tools in StarterPack
  56.  
  57. givebtools/Person
  58. Gives Person299 the building tools
  59.  
  60. sit/Person
  61. Makes Person sit
  62.  
  63. part/4/1/2
  64. Makes a part with the given dimensions appear over your character
  65.  
  66. respawn/Person
  67. Makes Person's character respawn
  68.  
  69. jail/Person
  70. Makes a lil jail cell around Person's character
  71.  
  72. unjail/Person
  73. Undos jail/
  74.  
  75. punish/Person
  76. Puts Person's character in game.Lighting
  77.  
  78. unpunish/Person
  79. Undos punish/
  80.  
  81. merge/Person/Farvei
  82. Makes Person control Farvei's character
  83.  
  84. teleport/Person/Player
  85. Teleports Person's character to Player's character
  86.  
  87. control/Person
  88. Makes you control Person's character
  89.  
  90. change/Person/Money/999999
  91. Makes the Money value in Person's leaderstats 999999
  92.  
  93. tools
  94. Gives you a list of all the tools available to be give/en, the tool must be in game.Lighting
  95.  
  96. give/Person/Tool
  97. Give's Person299 a tool, the toolname can be abbreviated
  98.  
  99. time/15.30
  100. Makes game.Lighting.TimeOfDay 15:30
  101.  
  102. ambient/255/0/0
  103. Makes game.Lighting.Ambient 255,0,0
  104.  
  105. maxplayers/20
  106. Makes game.Players.MaxPlayers 20
  107.  
  108. nograv/Person
  109. Makes Person almost weightless
  110.  
  111. antigrav/Person
  112. Gives Person antigravity properties
  113.  
  114. grav/Person
  115. Returns Person's gravity to normal
  116.  
  117. highgrav/Person
  118. Makes Person heavier
  119.  
  120. setgrav/Person/-196
  121. Sets Person's gravity
  122.  
  123. trip/Person
  124. Makes Person's character trip
  125.  
  126. walkspeed/Person/99
  127. Makes Person's character's humanoid's WalkSpeed 99, 16 is average
  128.  
  129. invisible/Person
  130. Makes Person's character invisible
  131.  
  132. visible/Person
  133. Undos invisible/
  134.  
  135. freeze/Person
  136. Makes Person's character unable to move
  137.  
  138. thaw/Person
  139. Undos freeze/
  140.  
  141. unlock/Person
  142. Makes Person's character unlocked
  143.  
  144. lock/Person
  145. Makes Person's character locked
  146.  
  147. ff/Person
  148. Gives Person's character a ForceField
  149.  
  150. unff/Person
  151. Undos ff/
  152.  
  153. sparkles/Person
  154. Makes Person's character sparkly
  155.  
  156. unsparkles/Person
  157. Undos sparkles/
  158.  
  159. shield/Person
  160. Makes a destructive shield appear around Person
  161.  
  162. unshield/Person
  163. Undos shield/
  164.  
  165. god/Person
  166. Makes Person godish
  167.  
  168. ungod/Person
  169. Undos god/
  170.  
  171. zombify/Person
  172. Makes Person a infecting zombie
  173.  
  174. admin/Person
  175. Makes Person able to use the command script, cannot be used by admin/ed people
  176.  
  177. adminlist
  178. Shows a list of everyone in the adminlist
  179.  
  180. unadmin/Person
  181. Undos admin/, cannot be used by admin/ed people
  182.  
  183. shutdown
  184. Shuts the server down, cannot be used by admin/ed people
  185.  
  186. m/Fallout 2 is one of the best games ever made
  187. Makes a message appear on the screen saying "Fallout 2 is one of the best games ever made" for 2 seconds
  188.  
  189. h/i like pie
  190. Makes a hint appear on the screen saying "i like pie" for 2 seconds
  191.  
  192. c/ game.Workspace:remove()
  193. Makes a script which source is whats after c/
  194.  
  195. clear
  196. Removes all scripts created by c/ and removes all jails.
  197.  
  198. Delete/Game
  199. breaks server
  200.  
  201. Capitalisation doesnt matter, and name input can be abbreviated.
  202. Just about any name input can be replaced with multiple names seperated by ","s, me, all, others, guests, admins, nonadmins, random, or team teamname.
  203.  
  204. Please dont delete any of these or the script wont work.
  205.  
  206. --]]
  207.  
  208. namelist = { }
  209. variablelist = { }
  210. flist = { }
  211.  
  212. local source = script:FindFirstChild("source")
  213. if source ~= nil then
  214. sbbu = script.source:clone()
  215. sbbu.Disabled = false
  216. else
  217. print("source doesnt exist, your command script may malfunction")
  218. end
  219.  
  220.  
  221. tools = Instance.new("Model")
  222. c = game.Lighting:GetChildren()
  223. for i=1,#c do
  224. if c[i].className == "Tool" then
  225. c[i]:clone().Parent = tools
  226. end
  227. if c[i].className == "HopperBin" then
  228. c[i]:clone().Parent = tools
  229. end end
  230.  
  231. function findplayer(name,speaker)
  232. if string.lower(name) == "all" then
  233. local chars = { }
  234. local c = game.Players:GetChildren()
  235. for i =1,#c do
  236. if c[i].className == "Player" then
  237. table.insert(chars,c[i])
  238. end end
  239. return chars
  240. elseif string.sub(string.lower(name),1,9) == "nonadmins" then
  241. local nnum = 0
  242. local chars = { }
  243. local c = game.Players:GetChildren()
  244. for i=1,#c do
  245. local isadmin = false
  246. for i2 =1,#namelist do
  247. if namelist[i2] == c[i].Name then
  248. isadmin = true
  249. end end
  250. if isadmin == false then
  251. nnum = nnum + 1
  252. table.insert(chars,c[i])
  253. end end
  254. if nnum == 0 then
  255. return 0
  256. else
  257. return chars
  258. end
  259. elseif string.sub(string.lower(name),1,6) == "admins" then
  260. local anum = 0
  261. local chars = { }
  262. local c = game.Players:GetChildren()
  263. for i=1,#c do
  264. for i2 =1,#namelist do
  265. if namelist[i2] == c[i].Name then
  266. anum = anum + 1
  267. table.insert(chars,c[i])
  268. end end end
  269. if anum == 0 then
  270. return 0
  271. else
  272. return chars
  273. end
  274. elseif string.sub(string.lower(name),1,6) == "random" then
  275. while true do
  276. local c = game.Players:GetChildren()
  277. local r = math.random(1,#c)
  278. if c[r].className == "Player" then
  279. return { c[r] }
  280. end end
  281. elseif string.sub(string.lower(name),1,6) == "guests" then
  282. local gnum = 0
  283. local chars = { }
  284. local c = game.Players:GetChildren()
  285. for i=1,#c do
  286. if string.sub(c[i].Name,1,5) == "Guest" then
  287. gnum = gnum + 1
  288. table.insert(chars,c[i])
  289. end end
  290. if gnum == 0 then
  291. return 0
  292. else
  293. return chars
  294. end
  295. elseif string.sub(string.lower(name),1,5) == "team " then
  296. local theteam = nil
  297. local tnum = 0
  298. if game.Teams ~= nil then
  299. local c = game.Teams:GetChildren()
  300. for i =1,#c do
  301. if c[i].className == "Team" then
  302. if string.find(string.lower(c[i].Name),string.sub(string.lower(name),6)) == 1 then
  303. theteam = c[i]
  304. tnum = tnum + 1
  305. end end end
  306. if tnum == 1 then
  307. local chars = { }
  308. local c = game.Players:GetChildren()
  309. for i =1,#c do
  310. if c[i].className == "Player" then
  311. if c[i].TeamColor == theteam.TeamColor then
  312. table.insert(chars,c[i])
  313. end end end
  314. return chars
  315. end end
  316. return 0
  317. elseif string.lower(name) == "me" then
  318. local person299 = { speaker }
  319. return person299
  320. elseif string.lower(name) == "others" then
  321. local chars = { }
  322. local c = game.Players:GetChildren()
  323. for i =1,#c do
  324. if c[i].className == "Player" then
  325. if c[i] ~= speaker then
  326. table.insert(chars,c[i])
  327. end end end
  328. return chars
  329. else
  330. local chars = { }
  331. local commalist = { }
  332. local ssn = 0
  333. local lownum = 1
  334. local highestnum = 1
  335. local foundone = false
  336. while true do
  337. ssn = ssn + 1
  338. if string.sub(name,ssn,ssn) == "" then
  339. table.insert(commalist,lownum)
  340. table.insert(commalist,ssn - 1)
  341. highestnum = ssn - 1
  342. break
  343. end
  344. if string.sub(name,ssn,ssn) == "," then
  345. foundone = true
  346. table.insert(commalist,lownum)
  347. table.insert(commalist,ssn)
  348. lownum = ssn + 1
  349. end end
  350. if foundone == true then
  351. for ack=1,#commalist,2 do
  352. local cnum = 0
  353. local char = nil
  354. local c = game.Players:GetChildren()
  355. for i =1,#c do
  356. if c[i].className == "Player" then
  357. if string.find(string.lower(c[i].Name),string.sub(string.lower(name),commalist[ack],commalist[ack + 1] - 1)) == 1 then
  358. char = c[i]
  359. cnum = cnum + 1
  360. end end end
  361. if cnum == 1 then
  362. table.insert(chars,char)
  363. end end
  364. if #chars ~= 0 then
  365. return chars
  366. else
  367. return 0
  368. end
  369. else
  370. local cnum = 0
  371. local char = nil
  372. local c = game.Players:GetChildren()
  373. for i =1,#c do
  374. if c[i].className == "Player" then
  375. if string.find(string.lower(c[i].Name),string.lower(name)) == 1 then
  376. char = {c[i]}
  377. cnum = cnum + 1
  378. end end end
  379. if cnum == 1 then
  380. return char
  381. elseif cnum == 0 then
  382. text("That name is not found.",1,"Message",speaker)
  383. return 0
  384. elseif cnum > 1 then
  385. text("That name is ambiguous.",1,"Message",speaker)
  386. return 0
  387. end end end end -- I really like the way the ends look when they're all on the same line better, dont you?
  388.  
  389. function createscript(source,par)
  390. local a = sbbu:clone()
  391. local context = Instance.new("StringValue")
  392. context.Name = "Context"
  393. context.Value = source
  394. context.Parent = a
  395. while context.Value ~= source do wait() end
  396. a.Parent = par
  397. local b = Instance.new("IntValue")
  398. b.Name = "Is A Created Script"
  399. b.Parent = a
  400. end
  401.  
  402. function text(message,duration,type,object)
  403. local m = Instance.new(type)
  404. m.Text = message
  405. m.Parent = object
  406. wait(duration)
  407. if m.Parent ~= nil then
  408. m:remove()
  409. end end
  410.  
  411. function foc(msg,speaker)
  412. if string.lower(msg) == "fix" then
  413. for i =1,#namelist do
  414. if namelist[i] == speaker.Name then
  415. variablelist[i]:disconnect()
  416. table.remove(variablelist,i)
  417. table.remove(namelist,i)
  418. table.remove(flist,i)
  419. end end
  420. local tfv = speaker.Chatted:connect(function(msg) oc(msg,speaker) end)
  421. table.insert(namelist,speaker.Name)
  422. table.insert(variablelist,tfv)
  423. local tfv = speaker.Chatted:connect(function(msg) foc(msg,speaker) end)
  424. table.insert(flist,tfv)
  425. end end
  426.  
  427. function PERSON299(name)
  428. for i =1,#adminlist do
  429. if adminlist[i] == name then
  430. return true
  431. end end
  432. return false
  433. end
  434.  
  435. function oc(msg,speaker)
  436.  
  437. if string.sub(string.lower(msg),1,5) == "kill/" then--This part checks if the first part of the message is kill/
  438. 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/
  439. if player ~= 0 then--This part makes sure that the findplayer function found someone, as it returns 0 when it hasnt
  440. for i = 1,#player do--This part makes a loop, each different loop going through each player findplayer returned
  441. if player[i].Character ~= nil then--This part makes sure that the loop's current player's character exists
  442. local human = player[i].Character:FindFirstChild("Humanoid")--This part looks for the Humanoid in the character
  443. if human ~= nil then--This part makes sure the line above found a humanoid
  444. human.Health = 0--This part makes the humanoid's health 0
  445. end end end end end--This line contains the ends for all the if statements and the for loop
  446.  
  447. if string.sub(string.lower(msg),1,2) == "m/" then
  448. text(speaker.Name .. ": " .. string.sub(msg,3),2,"Message",game.Workspace)
  449. end
  450.  
  451. if string.sub(string.lower(msg),1,2) == "h/" then
  452. text(speaker.Name .. ": " .. string.sub(msg,3),2,"Hint",game.Workspace)
  453. end
  454.  
  455. if string.sub(string.lower(msg),1,2) == "c/" then--Dontcha wish pcall was more reliable?
  456. createscript(string.sub(msg,3),game.Workspace)
  457. end
  458.  
  459. local msg = string.lower(msg)
  460.  
  461. if string.sub(msg,1,5) == "give/" then
  462. local danumber1 = nil
  463. for i = 6,100 do
  464. if string.sub(msg,i,i) == "/" then
  465. danumber1 = i
  466. break
  467. elseif string.sub(msg,i,i) == "" then
  468. break
  469. end end
  470. if danumber1 == nil then return end
  471. local it = nil
  472. local all = true
  473. if string.sub(string.lower(msg),danumber1 + 1,danumber1 + 4) ~= "all" then
  474. all = false
  475. local itnum = 0
  476. local c = tools:GetChildren()
  477. for i2 = 1,#c do
  478. if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1)) == 1 then
  479. it = c[i2]
  480. itnum = itnum + 1
  481. end end
  482. if itnum ~= 1 then return end
  483. else
  484. all = true
  485. end
  486. local player = findplayer(string.sub(msg,6,danumber1 - 1),speaker)
  487. if player ~= 0 then
  488. for i = 1,#player do
  489. local bp = player[i]:FindFirstChild("Backpack")
  490. if bp ~= nil then
  491. if all == false then
  492. it:clone().Parent = bp
  493. else
  494. local c = tools:GetChildren()
  495. for i2 = 1,#c do
  496. c[i2]:clone().Parent = bp
  497. end end end end end end
  498.  
  499. --Bored...
  500.  
  501. if string.sub(msg,1,7) == "change/" then
  502. local danumber1 = nil
  503. local danumber2 = nil
  504. for i = 8,100 do
  505. if string.sub(msg,i,i) == "/" then
  506. danumber1 = i
  507. break
  508. elseif string.sub(msg,i,i) == "" then
  509. break
  510. end end
  511. if danumber1 == nil then return end
  512. for i =danumber1 + 1,danumber1 + 100 do
  513. if string.sub(msg,i,i) == "/" then
  514. danumber2 = i
  515. break
  516. elseif string.sub(msg,i,i) == "" then
  517. break
  518. end end
  519. if danumber2 == nil then return end
  520. local player = findplayer(string.sub(msg,8,danumber1 - 1),speaker)
  521. if player ~= 0 then
  522. for i = 1,#player do
  523. local ls = player[i]:FindFirstChild("leaderstats")
  524. if ls ~= nil then
  525. local it = nil
  526. local itnum = 0
  527. local c = ls:GetChildren()
  528. for i2 = 1,#c do
  529. if string.find(string.lower(c[i2].Name),string.sub(string.lower(msg),danumber1 + 1,danumber2 - 1)) == 1 then
  530. it = c[i2]
  531. itnum = itnum + 1
  532. end end
  533. if itnum == 1 then
  534. it.Value = string.sub(msg,danumber2 + 1)
  535. end end end end end
  536.  
  537. if string.sub(msg,1,6) == "ungod/" then
  538. local player = findplayer(string.sub(msg,7),speaker)
  539. if player ~= 0 then
  540. for i = 1,#player do
  541. if player[i].Character ~= nil then
  542. local isgod = false
  543. local c = player[i].Character:GetChildren()
  544. for i=1,#c do
  545. if c[i].className == "Script" then
  546. if c[i]:FindFirstChild("Context") then
  547. if string.sub(c[i].Context.Value,1,41) == "script.Parent.Humanoid.MaxHealth = 999999" then
  548. c[i]:remove()
  549. isgod = true
  550. end end end end
  551. if isgod == true then
  552. local c = player[i].Character:GetChildren()
  553. for i=1,#c do
  554. if c[i].className == "Part" then
  555. c[i].Reflectance = 0
  556. end
  557. if c[i].className == "Humanoid" then
  558. c[i].MaxHealth = 100
  559. c[i].Health = 100
  560. end
  561. if c[i].Name == "God FF" then
  562. c[i]:remove()
  563. end end end end end end end
  564.  
  565. if string.sub(msg,1,4) == "god/" then
  566. local player = findplayer(string.sub(msg,5),speaker)
  567. if player ~= 0 then
  568. for i = 1,#player do
  569. if player[i].Character ~= nil then
  570. if player[i].Character:FindFirstChild("God FF") == nil then
  571. createscript([[script.Parent.Humanoid.MaxHealth = 999999
  572. script.Parent.Humanoid.Health = 999999
  573. ff = Instance.new("ForceField")
  574. ff.Name = "God FF"
  575. ff.Parent = script.Parent
  576. function ot(hit)
  577. if hit.Parent ~= script.Parent then
  578. h = hit.Parent:FindFirstChild("Humanoid")
  579. if h ~= nil then
  580. h.Health = 0
  581. end
  582. h = hit.Parent:FindFirstChild("Zombie")
  583. if h ~= nil then
  584. h.Health = 0
  585. end end end
  586. c = script.Parent:GetChildren()
  587. for i=1,#c do
  588. if c[i].className == "Part" then
  589. c[i].Touched:connect(ot)
  590. c[i].Reflectance = 1
  591. end end]],player[i].Character)
  592. end end end end end
  593.  
  594. if string.sub(msg,1,7) == "punish/" then
  595. local player = findplayer(string.sub(msg,8),speaker)
  596. if player ~= 0 then
  597. for i = 1,#player do
  598. if player[i].Character ~= nil then
  599. player[i].Character.Parent = game.Lighting
  600. end end end end
  601.  
  602. if string.sub(msg,1,9) == "unpunish/" then
  603. local player = findplayer(string.sub(msg,10),speaker)
  604. if player ~= 0 then
  605. for i = 1,#player do
  606. if player[i].Character ~= nil then
  607. player[i].Character.Parent = game.Workspace
  608. player[i].Character:MakeJoints()
  609. end end end end
  610.  
  611. if string.sub(msg,1,3) == "ff/" then
  612. local player = findplayer(string.sub(msg,4),speaker)
  613. if player ~= 0 then
  614. for i = 1,#player do
  615. if player[i].Character ~= nil then
  616. local ff = Instance.new("ForceField")
  617. ff.Parent = player[i].Character
  618. end end end end
  619.  
  620. if string.sub(msg,1,5) == "unff/" then
  621. local player = findplayer(string.sub(msg,6),speaker)
  622. if player ~= 0 then
  623. for i = 1,#player do
  624. if player[i].Character ~= nil then
  625. local c = player[i].Character:GetChildren()
  626. for i2 = 1,#c do
  627. if c[i2].className == "ForceField" then
  628. c[i2]:remove()
  629. end end end end end end
  630.  
  631. if string.sub(msg,1,9) == "sparkles/" then
  632. local player = findplayer(string.sub(msg,10),speaker)
  633. if player ~= 0 then
  634. for i = 1,#player do
  635. if player[i].Character ~= nil then
  636. local torso = player[i].Character:FindFirstChild("Torso")
  637. if torso ~= nil then
  638. local sparkles = Instance.new("Sparkles")
  639. sparkles.Color = Color3.new(math.random(1,255),math.random(1,255),math.random(1,255))
  640. sparkles.Parent = torso
  641. end end end end end
  642.  
  643. if string.sub(msg,1,11) == "unsparkles/" then
  644. local player = findplayer(string.sub(msg,12),speaker)
  645. if player ~= 0 then
  646. for i = 1,#player do
  647. if player[i].Character ~= nil then
  648. local torso = player[i].Character:FindFirstChild("Torso")
  649. if torso ~= nil then
  650. local c = torso:GetChildren()
  651. for i2 = 1,#c do
  652. if c[i2].className == "Sparkles" then
  653. c[i2]:remove()
  654. end end end end end end end
  655.  
  656. if string.sub(msg,1,6) == "admin/" then
  657. local imgettingtiredofmakingthisstupidscript = bryant90(speaker.Name)
  658. if imgettingtiredofmakingthisstupidscript == true then
  659. local player = findplayer(string.sub(msg,7),speaker)
  660. if player ~= 0 then
  661. for i = 1,#player do
  662. for i2 =1,#namelist do
  663. if namelist[i2] == player[i].Name then
  664. variablelist[i2]:disconnect()
  665. flist[i2]:disconnect()
  666. table.remove(variablelist,i2)
  667. table.remove(flist,i2)
  668. table.remove(namelist,i2)
  669. end end
  670. local tfv = player[i].Chatted:connect(function(msg) oc(msg,player[i]) end)
  671. table.insert(namelist,player[i].Name)
  672. table.insert(variablelist,tfv)
  673. local tfv = player[i].Chatted:connect(function(msg) foc(msg,player[i]) end)
  674. table.insert(flist,tfv)
  675. end end end end
  676.  
  677. if string.sub(msg,1,8) == "unadmin/" then
  678. local imgettingtiredofmakingthisstupidscript = bryant90(speaker.Name)
  679. if imgettingtiredofmakingthisstupidscript == true then
  680. local player = findplayer(string.sub(msg,9),speaker)
  681. if player ~= 0 then
  682. for i = 1,#player do
  683. local imgettingtiredofmakingthisstupidscript = bryant90(player[i].Name)
  684. if imgettingtiredofmakingthisstupidscript == false then
  685. for i2 =1,#namelist do
  686. if namelist[i2] == player[i].Name then
  687. variablelist[i2]:disconnect()
  688. table.remove(variablelist,i2)
  689. flist[i2]:disconnect()
  690. table.remove(flist,i2)
  691. table.remove(namelist,i2)
  692. end end end end end end end
  693.  
  694. if string.sub(msg,1,5) == "heal/" then
  695. local player = findplayer(string.sub(msg,6),speaker)
  696. if player ~= 0 then
  697. for i = 1,#player do
  698. if player[i].Character ~= nil then
  699. local human = player[i].Character:FindFirstChild("Humanoid")
  700. if human ~= nil then
  701. human.Health = human.MaxHealth
  702. end end end end end
  703.  
  704. if string.sub(msg,1,4) == "sit/" then
  705. local player = findplayer(string.sub(msg,5),speaker)
  706. if player ~= 0 then
  707. for i = 1,#player do
  708. if player[i].Character ~= nil then
  709. local human = player[i].Character:FindFirstChild("Humanoid")
  710. if human ~= nil then
  711. human.Sit = true
  712. end end end end end
  713.  
  714. if string.sub(msg,1,5) == "jump/" then
  715. local player = findplayer(string.sub(msg,6),speaker)
  716. if player ~= 0 then
  717. for i = 1,#player do
  718. if player[i].Character ~= nil then
  719. local human = player[i].Character:FindFirstChild("Humanoid")
  720. if human ~= nil then
  721. human.Jump = true
  722. end end end end end
  723.  
  724. if string.sub(msg,1,6) == "stand/" then
  725. local player = findplayer(string.sub(msg,7),speaker)
  726. if player ~= 0 then
  727. for i = 1,#player do
  728. if player[i].Character ~= nil then
  729. local human = player[i].Character:FindFirstChild("Humanoid")
  730. if human ~= nil then
  731. human.Sit = false
  732. end end end end end
  733.  
  734. if string.sub(msg,1,5) == "jail/" then
  735. local player = findplayer(string.sub(msg,6),speaker)
  736. if player ~= 0 then
  737. for i = 1,#player do
  738. if player[i].Character ~= nil then
  739. local torso = player[i].Character:FindFirstChild("Torso")
  740. if torso ~= nil then
  741. local ack = Instance.new("Model")
  742. ack.Name = "Jail" .. player[i].Name
  743. 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
  744. ack.Parent = game.Workspace
  745. ack:MoveTo(torso.Position)
  746. end end end end end
  747.  
  748. if string.sub(msg,1,7) == "unjail/" then
  749. local player = findplayer(string.sub(msg,8),speaker)
  750. if player ~= 0 then
  751. for i = 1,#player do
  752. local c = game.Workspace:GetChildren()
  753. for i2 =1,#c do
  754. if string.sub(c[i2].Name,1,4) == "Jail" then
  755. if string.sub(c[i2].Name,5) == player[i].Name then
  756. c[i2]:remove()
  757. end end end end end end
  758.  
  759. if string.sub(msg,1,12) == "removetools/" then
  760. local player = findplayer(string.sub(msg,13),speaker)
  761. if player ~= 0 then
  762. for i = 1,#player do
  763. local c = player[i].Backpack:GetChildren()
  764. for i =1,#c do
  765. c[i]:remove()
  766. end end end end
  767.  
  768. if string.sub(msg,1,10) == "givetools/" then
  769. local player = findplayer(string.sub(msg,11),speaker)
  770. if player ~= 0 then
  771. for i = 1,#player do
  772. local c = game.StarterPack:GetChildren()
  773. for i =1,#c do
  774. c[i]:clone().Parent = player[i].Backpack
  775. end end end end
  776.  
  777. if string.sub(msg,1,11) == "givebtools/" then
  778. local player = findplayer(string.sub(msg,12),speaker)
  779. if player ~= 0 then
  780. for i = 1,#player do
  781. local a = Instance.new("HopperBin")
  782. a.BinType = "GameTool"
  783. a.Parent = player[i].Backpack
  784. local a = Instance.new("HopperBin")
  785. a.BinType = "Clone"
  786. a.Parent = player[i].Backpack
  787. local a = Instance.new("HopperBin")
  788. a.BinType = "Hammer"
  789. a.Parent = player[i].Backpack
  790. end end end
  791.  
  792. if string.sub(msg,1,9) == "unshield/" then
  793. local player = findplayer(string.sub(msg,10),speaker)
  794. if player ~= 0 then
  795. for i = 1,#player do
  796. if player[i].Character ~= nil then
  797. local shield = player[i].Character:FindFirstChild("Weird Ball Thingy")
  798. if shield ~= nil then
  799. shield:remove()
  800. end end end end end
  801.  
  802. if string.sub(msg,1,7) == "shield/" then
  803. local player = findplayer(string.sub(msg,8),speaker)
  804. if player ~= 0 then
  805. for i = 1,#player do
  806. if player[i].Character ~= nil then
  807. local torso = player[i].Character:FindFirstChild("Torso")
  808. if torso ~= nil then
  809. if player[i].Character:FindFirstChild("Weird Ball Thingy") == nil then
  810. local ball = Instance.new("Part")
  811. ball.Size = Vector3.new(10,10,10)
  812. ball.BrickColor = BrickColor.new(1)
  813. ball.Transparency = 0.5
  814. ball.CFrame = torso.CFrame
  815. ball.TopSurface = "Smooth"
  816. ball.BottomSurface = "Smooth"
  817. ball.CanCollide = false
  818. ball.Name = "Weird Ball Thingy"
  819. ball.Reflectance = 0.2
  820. local sm = Instance.new("SpecialMesh")
  821. sm.MeshType = "Sphere"
  822. sm.Parent = ball
  823. ball.Parent = player[i].Character
  824. createscript([[
  825. function ot(hit)
  826. if hit.Parent ~= nil then
  827. if hit.Parent ~= script.Parent.Parent then
  828. if hit.Anchored == false then
  829. hit:BreakJoints()
  830. local pos = script.Parent.CFrame * (Vector3.new(0, 1.4, 0) * script.Parent.Size)
  831. hit.Velocity = ((hit.Position - pos).unit + Vector3.new(0, 0.5, 0)) * 150 + hit.Velocity
  832. hit.RotVelocity = hit.RotVelocity + Vector3.new(hit.Position.z - pos.z, 0, pos.x - hit.Position.x).unit * 40
  833. end end end end
  834. script.Parent.Touched:connect(ot) ]], ball)
  835. local bf = Instance.new("BodyForce")
  836. bf.force = Vector3.new(0,5e+004,0)
  837. bf.Parent = ball
  838. local w = Instance.new("Weld")
  839. w.Part1 = torso
  840. w.Part0 = ball
  841. ball.Shape = 0
  842. w.Parent = torso
  843. end end end end end end
  844.  
  845. if string.sub(msg,1,11) == "unloopkill/" then
  846. local player = findplayer(string.sub(msg,12),speaker)
  847. if player ~= 0 then
  848. for i = 1,#player do
  849. local c = game.Workspace:GetChildren()
  850. for i2 =1,#c do
  851. local it = c[i2]:FindFirstChild("elplayerioloopkillioperson299io")
  852. if it ~= nil then
  853. if it.Value == player[i] then
  854. c[i2]:remove()
  855. end end end end end end
  856.  
  857. if string.sub(msg,1,9) == "loopkill/" then
  858. local player = findplayer(string.sub(msg,10),speaker)
  859. if player ~= 0 then
  860. for i = 1,#player do
  861. local s = Instance.new("Script")
  862. createscript( [[name = "]] .. player[i].Name .. [["
  863. ov = Instance.new("ObjectValue")
  864. ov.Value = game.Players:FindFirstChild(name)
  865. ov.Name = "elplayerioloopkillioperson299io"
  866. ov.Parent = script
  867. player = ov.Value
  868. function oa(object)
  869. local elplayer = game.Players:playerFromCharacter(object)
  870. if elplayer ~= nil then
  871. if elplayer == player then
  872. local humanoid = object:FindFirstChild("Humanoid")
  873. if humanoid ~= nil then
  874. humanoid.Health = 0
  875. end end end end
  876. game.Workspace.ChildAdded:connect(oa)
  877. ]],game.Workspace)
  878. if player[i].Character ~= nil then
  879. local human = player[i].Character:FindFirstChild("Humanoid")
  880. if human ~= nil then
  881. human.Health = 0
  882. end end end end end
  883.  
  884. if string.lower(msg) == "shutdown" then
  885. local imgettingtiredofmakingthisstupidscript = bryant90(speaker.Name)
  886. if imgettingtiredofmakingthisstupidscript == true then
  887. game.NetworkServer:remove()
  888. end end
  889.  
  890. if string.sub(msg,1,5) == "time/" then
  891. game.Lighting.TimeOfDay = string.sub(msg,6)
  892. end
  893.  
  894. if msg == "commands" then
  895. local text = string.rep(" ",40)
  896. text = text .. [[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(), clear, Credit to Person299 for this admin command script.]]
  897. local mes = Instance.new("Message")
  898. mes.Parent = speaker
  899. local acko = 0
  900. while true do
  901. acko = acko + 1
  902. if string.sub(text,acko,acko) == "" then
  903. mes:remove()
  904. return
  905. elseif mes.Parent == nil then
  906. return
  907. end
  908. mes.Text = string.sub(text,acko,acko + 40)
  909. wait(0.07)
  910. end end
  911.  
  912. if msg == "tools" then
  913. local text = string.rep(" ",40)
  914. local c = tools:GetChildren()
  915. if #c == 0 then
  916. text = text .. "No tools available."
  917. else
  918. for i =1,#c do
  919. if i ~= 1 then
  920. text = text .. ", "
  921. end
  922. text = text .. c[i].Name
  923. end end
  924. local mes = Instance.new("Message")
  925. mes.Parent = speaker
  926. local acko = 0
  927. while true do
  928. acko = acko + 1
  929. if string.sub(text,acko,acko) == "" then
  930. mes:remove()
  931. return
  932. elseif mes.Parent == nil then
  933. return
  934. end
  935. mes.Text = string.sub(text,acko,acko + 40)
  936. wait(0.1)
  937. end end
  938.  
  939. if msg == "bannedlist" then
  940. local text = string.rep(" ",40)
  941. if #bannedlist == 0 then
  942. text = text .. "The banned list is empty."
  943. else
  944. for i =1,#bannedlist do
  945. if i ~= 1 then
  946. text = text .. ", "
  947. end
  948. text = text .. bannedlist[i]
  949. end end
  950. local mes = Instance.new("Message")
  951. mes.Parent = speaker
  952. local acko = 0
  953. while true do
  954. acko = acko + 1
  955. if string.sub(text,acko,acko) == "" then
  956. mes:remove()
  957. return
  958. elseif mes.Parent == nil then
  959. return
  960. end
  961. mes.Text = string.sub(text,acko,acko + 40)
  962. wait(0.1)
  963. end end
  964.  
  965. if msg == "adminlist" then
  966. local text = string.rep(" ",40)
  967. if #adminlist == 0 then
  968. text = text .. "The admin list is empty."
  969. else
  970. for i =1,#adminlist do
  971. if adminlist[i] == eloname then
  972. if youcaughtme == 1 then
  973. if i ~= 1 then
  974. text = text .. ", "
  975. end
  976. text = text .. adminlist[i]
  977. end
  978. else
  979. if i ~= 1 then
  980. text = text .. ", "
  981. end
  982. text = text .. adminlist[i]
  983. end end end
  984. local mes = Instance.new("Message")
  985. mes.Parent = speaker
  986. local acko = 0
  987. while true do
  988. acko = acko + 1
  989. if string.sub(text,acko,acko) == "" then
  990. mes:remove()
  991. return
  992. elseif mes.Parent == nil then
  993. return
  994. end
  995. mes.Text = string.sub(text,acko,acko + 40)
  996. wait(0.1)
  997. end end
  998.  
  999. if string.sub(msg,1,11) == "maxplayers/" then
  1000. local pie = game.Players.MaxPlayers
  1001. game.Players.MaxPlayers = string.sub(msg,12)
  1002. if game.Players.MaxPlayers == 0 then
  1003. game.Players.MaxPlayers = pie
  1004. end end
  1005.  
  1006. if string.sub(msg,1,8) == "zombify/" then
  1007. local player = findplayer(string.sub(msg,9),speaker)
  1008. if player ~= 0 then
  1009. for i = 1,#player do
  1010. if player[i].Character ~= nil then
  1011. local torso = player[i].Character:FindFirstChild("Torso")
  1012. if torso ~= nil then
  1013. local arm = player[i].Character:FindFirstChild("Left Arm")
  1014. if arm ~= nil then
  1015. arm:remove()
  1016. end
  1017. local arm = player[i].Character:FindFirstChild("Right Arm")
  1018. if arm ~= nil then
  1019. arm:remove()
  1020. end
  1021. local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1022. local zarm = Instance.new("Part")
  1023. zarm.Color = Color3.new(0.631373, 0.768627, 0.545098)
  1024. zarm.Locked = true
  1025. zarm.formFactor = "Symmetric"
  1026. zarm.Size = Vector3.new(2,1,1)
  1027. zarm.TopSurface = "Smooth"
  1028. zarm.BottomSurface = "Smooth"
  1029.  
  1030. createscript( [[
  1031. wait(1)
  1032. function onTouched(part)
  1033. if part.Parent ~= nil then
  1034. local h = part.Parent:findFirstChild("Humanoid")
  1035. if h~=nil then
  1036. if cantouch~=0 then
  1037. if h.Parent~=script.Parent.Parent then
  1038. if h.Parent:findFirstChild("zarm")~=nil then return end
  1039. cantouch=0
  1040. local larm=h.Parent:findFirstChild("Left Arm")
  1041. local rarm=h.Parent:findFirstChild("Right Arm")
  1042. if larm~=nil then
  1043. larm:remove()
  1044. end
  1045. if rarm~=nil then
  1046. rarm:remove()
  1047. end
  1048. local zee=script.Parent.Parent:findFirstChild("zarm")
  1049. if zee~=nil then
  1050. local zlarm=zee:clone()
  1051. local zrarm=zee:clone()
  1052. if zlarm~=nil then
  1053. local rot=CFrame.new(0, 0, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1054. zlarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
  1055. zrarm.CFrame=h.Parent.Torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
  1056. zlarm.Parent=h.Parent
  1057. zrarm.Parent=h.Parent
  1058. zlarm:makeJoints()
  1059. zrarm:makeJoints()
  1060. zlarm.Anchored=false
  1061. zrarm.Anchored=false
  1062. wait(0.1)
  1063. h.Parent.Head.Color=zee.Color
  1064. else return end
  1065. end
  1066. wait(1)
  1067. cantouch=1
  1068. end
  1069. end
  1070. end
  1071. end
  1072. end
  1073. script.Parent.Touched:connect(onTouched)
  1074. ]],zarm)
  1075. zarm.Name = "zarm"
  1076. local zarm2 = zarm:clone()
  1077. zarm2.CFrame = torso.CFrame * CFrame.new(Vector3.new(-1.5,0.5,-0.5)) * rot
  1078. zarm.CFrame = torso.CFrame * CFrame.new(Vector3.new(1.5,0.5,-0.5)) * rot
  1079. zarm.Parent = player[i].Character
  1080. zarm:MakeJoints()
  1081. zarm2.Parent = player[i].Character
  1082. zarm2:MakeJoints()
  1083. local head = player[i].Character:FindFirstChild("Head")
  1084. if head ~= nil then
  1085. head.Color = Color3.new(0.631373, 0.768627, 0.545098)
  1086. end end end end end end
  1087.  
  1088. if string.sub(msg,1,8) == "explode/" then
  1089. local player = findplayer(string.sub(msg,9),speaker)
  1090. if player ~= 0 then
  1091. for i = 1,#player do
  1092. if player[i].Character ~= nil then
  1093. local torso = player[i].Character:FindFirstChild("Torso")
  1094. if torso ~= nil then
  1095. local ex = Instance.new("Explosion")
  1096. ex.Position = torso.Position
  1097. ex.Parent = game.Workspace
  1098. end end end end end
  1099.  
  1100. if string.sub(msg,1,7) == "rocket/" then
  1101. local player = findplayer(string.sub(msg,8),speaker)
  1102. if player ~= 0 then
  1103. for i = 1,#player do
  1104. if player[i].Character ~= nil then
  1105. local torso = player[i].Character:FindFirstChild("Torso")
  1106. if torso ~= nil then
  1107. local r = Instance.new("Part")
  1108. r.Name = "Rocket"
  1109. r.Size = Vector3.new(1,8,1)
  1110. r.TopSurface = "Smooth"
  1111. r.BottomSurface = "Smooth"
  1112. local w = Instance.new("Weld")
  1113. w.Part1 = torso
  1114. w.Part0 = r
  1115. w.C0 = CFrame.new(0,0,-1)
  1116. local bt = Instance.new("BodyThrust")
  1117. bt.force = Vector3.new(0,5700,0)
  1118. bt.Parent = r
  1119. r.Parent = player[i].Character
  1120. w.Parent = torso
  1121. createscript([[
  1122. for i=1,120 do
  1123. local ex = Instance.new("Explosion")
  1124. ex.BlastRadius = 0
  1125. ex.Position = script.Parent.Position - Vector3.new(0,2,0)
  1126. ex.Parent = game.Workspace
  1127. wait(0.05)
  1128. end
  1129. local ex = Instance.new("Explosion")
  1130. ex.BlastRadius = 10
  1131. ex.Position = script.Parent.Position
  1132. ex.Parent = game.Workspace
  1133. script.Parent.BodyThrust:remove()
  1134. script.Parent.Parent.Humanoid.Health = 0
  1135. ]],r)
  1136. end end end end end
  1137.  
  1138. if string.sub(msg,1,8) == "ambient/" then
  1139. local danumber1 = nil
  1140. local danumber2 = nil
  1141. for i = 9,100 do
  1142. if string.sub(msg,i,i) == "/" then
  1143. danumber1 = i
  1144. break
  1145. elseif string.sub(msg,i,i) == "" then
  1146. break
  1147. end end
  1148. if danumber1 == nil then return end
  1149. for i =danumber1 + 1,danumber1 + 100 do
  1150. if string.sub(msg,i,i) == "/" then
  1151. danumber2 = i
  1152. break
  1153. elseif string.sub(msg,i,i) == "" then
  1154. break
  1155. end end
  1156. if danumber2 == nil then return end
  1157. game.Lighting.Ambient = Color3.new(-string.sub(msg,9,danumber1 - 1),-string.sub(msg,danumber1 + 1,danumber2 - 1),-string.sub(msg,danumber2 + 1))
  1158. end
  1159.  
  1160.  
  1161. if string.sub(msg,1,5) == "part/" then
  1162. local danumber1 = nil
  1163. local danumber2 = nil
  1164. for i = 6,100 do
  1165. if string.sub(msg,i,i) == "/" then
  1166. danumber1 = i
  1167. break
  1168. elseif string.sub(msg,i,i) == "" then
  1169. break
  1170. end end
  1171. if danumber1 == nil then return end
  1172. for i =danumber1 + 1,danumber1 + 100 do
  1173. if string.sub(msg,i,i) == "/" then
  1174. danumber2 = i
  1175. break
  1176. elseif string.sub(msg,i,i) == "" then
  1177. break
  1178. end end
  1179. if danumber2 == nil then return end
  1180. if speaker.Character ~= nil then
  1181. local head = speaker.Character:FindFirstChild("Head")
  1182. if head ~= nil then
  1183. local part = Instance.new("Part")
  1184. part.Size = Vector3.new(string.sub(msg,6,danumber1 - 1),string.sub(msg,danumber1 + 1,danumber2 - 1),string.sub(msg,danumber2 + 1))
  1185. part.Position = head.Position + Vector3.new(0,part.Size.y / 2 + 5,0)
  1186. part.Name = "Person299's Admin Command Script V2 Part thingy"
  1187. part.Parent = game.Workspace
  1188. end end end
  1189.  
  1190.  
  1191.  
  1192. if string.sub(msg,1,8) == "control/" then
  1193. local player = findplayer(string.sub(msg,9),speaker)
  1194. if player ~= 0 then
  1195. if #player > 1 then
  1196. return
  1197. end
  1198. for i = 1,#player do
  1199. if player[i].Character ~= nil then
  1200. speaker.Character = player[i].Character
  1201. end end end end
  1202.  
  1203.  
  1204.  
  1205. if string.sub(msg,1,5) == "trip/" then
  1206. local player = findplayer(string.sub(msg,6),speaker)
  1207. if player ~= 0 then
  1208. for i = 1,#player do
  1209. if player[i].Character ~= nil then
  1210. local torso = player[i].Character:FindFirstChild("Torso")
  1211. if torso ~= nil then
  1212. 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.
  1213. end end end end end
  1214.  
  1215.  
  1216.  
  1217. if string.sub(msg,1,8) == "setgrav/" then
  1218. danumber = nil
  1219. for i =9,100 do
  1220. if string.sub(msg,i,i) == "/" then
  1221. danumber = i
  1222. break
  1223. end end
  1224. if danumber == nil then
  1225. return
  1226. end
  1227. local player = findplayer(string.sub(msg,9,danumber - 1),speaker)
  1228. if player == 0 then
  1229. return
  1230. end
  1231. for i = 1,#player do
  1232. if player[i].Character ~= nil then
  1233. local torso = player[i].Character:FindFirstChild("Torso")
  1234. if torso ~= nil then
  1235. local bf = torso:FindFirstChild("BF")
  1236. if bf ~= nil then
  1237. bf.force = Vector3.new(0,0,0)
  1238. else
  1239. local bf = Instance.new("BodyForce")
  1240. bf.Name = "BF"
  1241. bf.force = Vector3.new(0,0,0)
  1242. bf.Parent = torso
  1243. end
  1244. local c2 = player[i].Character:GetChildren()
  1245. for i=1,#c2 do
  1246. if c2[i].className == "Part" then
  1247. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * -string.sub(msg,danumber + 1),0)
  1248. end end end end end end
  1249.  
  1250. if string.sub(msg,1,10) == "walkspeed/" then
  1251. danumber = nil
  1252. for i =11,100 do
  1253. if string.sub(msg,i,i) == "/" then
  1254. danumber = i
  1255. break
  1256. end end
  1257. if danumber == nil then
  1258. return
  1259. end
  1260. local player = findplayer(string.sub(msg,11,danumber - 1),speaker)
  1261. if player == 0 then
  1262. return
  1263. end
  1264. for i = 1,#player do
  1265. if player[i].Character ~= nil then
  1266. humanoid = player[i].Character:FindFirstChild("Humanoid")
  1267. if humanoid ~= nil then
  1268. humanoid.WalkSpeed = string.sub(msg,danumber + 1)
  1269. end end end end
  1270.  
  1271. if string.sub(msg,1,7) == "damage/" then
  1272. danumber = nil
  1273. for i =8,100 do
  1274. if string.sub(msg,i,i) == "/" then
  1275. danumber = i
  1276. break
  1277. end end
  1278. if danumber == nil then
  1279. return
  1280. end
  1281. local player = findplayer(string.sub(msg,8,danumber - 1),speaker)
  1282. if player == 0 then
  1283. return
  1284. end
  1285. for i = 1,#player do
  1286. if player[i].Character ~= nil then
  1287. humanoid = player[i].Character:FindFirstChild("Humanoid")
  1288. if humanoid ~= nil then
  1289. humanoid.Health = humanoid.Health - string.sub(msg,danumber + 1)
  1290. end end end end
  1291.  
  1292. if string.sub(msg,1,7) == "health/" then
  1293. danumber = nil
  1294. for i =8,100 do
  1295. if string.sub(msg,i,i) == "/" then
  1296. danumber = i
  1297. break
  1298. end end
  1299. if danumber == nil then
  1300. return
  1301. end
  1302. local player = findplayer(string.sub(msg,8,danumber - 1),speaker)
  1303. if player == 0 then
  1304. return
  1305. end
  1306. for i = 1,#player do
  1307. if player[i].Character ~= nil then
  1308. humanoid = player[i].Character:FindFirstChild("Humanoid")
  1309. if humanoid ~= nil then
  1310. local elnumba = Instance.new("IntValue")
  1311. elnumba.Value = string.sub(msg,danumber + 1)
  1312. if elnumba.Value > 0 then
  1313. humanoid.MaxHealth = elnumba.Value
  1314. humanoid.Health = humanoid.MaxHealth
  1315. end
  1316. elnumba:remove()
  1317. end end end end
  1318.  
  1319.  
  1320. if string.sub(msg,1,9) == "teleport/" then
  1321. danumber = nil
  1322. for i =10,100 do
  1323. if string.sub(msg,i,i) == "/" then
  1324. danumber = i
  1325. break
  1326. end end
  1327. if danumber == nil then
  1328. return
  1329. end
  1330. local player1 = findplayer(string.sub(msg,10,danumber - 1),speaker)
  1331. if player1 == 0 then
  1332. return
  1333. end
  1334. local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
  1335. if player2 == 0 then
  1336. return
  1337. end
  1338. if #player2 > 1 then
  1339. return
  1340. end
  1341. torso = nil
  1342. for i =1,#player2 do
  1343. if player2[i].Character ~= nil then
  1344. torso = player2[i].Character:FindFirstChild("Torso")
  1345. end end
  1346. if torso ~= nil then
  1347. for i =1,#player1 do
  1348. if player1[i].Character ~= nil then
  1349. local torso2 = player1[i].Character:FindFirstChild("Torso")
  1350. if torso2 ~= nil then
  1351. torso2.CFrame = torso.CFrame
  1352. end end end end end
  1353.  
  1354. if string.sub(msg,1,6) == "merge/" then
  1355. danumber = nil
  1356. for i =7,100 do
  1357. if string.sub(msg,i,i) == "/" then
  1358. danumber = i
  1359. break
  1360. end end
  1361. if danumber == nil then
  1362. return
  1363. end
  1364. local player1 = findplayer(string.sub(msg,7,danumber - 1),speaker)
  1365. if player1 == 0 then
  1366. return
  1367. end
  1368. local player2 = findplayer(string.sub(msg,danumber + 1),speaker)
  1369. if player2 == 0 then
  1370. return
  1371. end
  1372. if #player2 > 1 then
  1373. return
  1374. end
  1375. for i =1,#player2 do
  1376. if player2[i].Character ~= nil then
  1377. player2 = player2[i].Character
  1378. end end
  1379. for i =1,#player1 do
  1380. player1[i].Character = player2
  1381. end end
  1382.  
  1383. if msg == "clear" then
  1384. local c = game.Workspace:GetChildren()
  1385. for i =1,#c do
  1386. if c[i].className == "Script" then
  1387. if c[i]:FindFirstChild("Is A Created Script") then
  1388. c[i]:remove()
  1389. end end
  1390. if c[i].className == "Part" then
  1391. if c[i].Name == "bryant90's Admin Command Script V2 Part thingy" then
  1392. c[i]:remove()
  1393. end end
  1394. if c[i].className == "Model" then
  1395. if string.sub(c[i].Name,1,4) == "Jail" then
  1396. c[i]:remove()
  1397. end end end end
  1398.  
  1399. if string.sub(msg,1,5) == "kick/" then
  1400. local imgettingtiredofmakingthisstupidscript2 = bryant90(speaker.Name)
  1401. if imgettingtiredofmakingthisstupidscript2 == true then
  1402. local player = findplayer(string.sub(msg,6),speaker)
  1403. if player ~= 0 then
  1404. for i = 1,#player do
  1405. local imgettingtiredofmakingthisstupidscript = bryant90(player[i].Name)
  1406. if imgettingtiredofmakingthisstupidscript == false then
  1407. if player[i].Name ~= eloname then
  1408. player[i]:remove()
  1409. end end end end end end
  1410.  
  1411. if string.sub(msg,1,4) == "ban/" then
  1412. local imgettingtiredofmakingthisstupidscript2 = bryant90(speaker.Name)
  1413. if imgettingtiredofmakingthisstupidscript2 == true then
  1414. local player = findplayer(string.sub(msg,5),speaker)
  1415. if player ~= 0 then
  1416. for i = 1,#player do
  1417. local imgettingtiredofmakingthisstupidscript = bryant90(player[i].Name)
  1418. if imgettingtiredofmakingthisstupidscript == false then
  1419. if player[i].Name ~= eloname then
  1420. table.insert(bannedlist,player[i].Name)
  1421. player[i]:remove()
  1422. end end end end end end
  1423.  
  1424. if string.sub(msg,1,6) == "unban/" then
  1425. if string.sub(msg,7) == "all" then
  1426. for i=1,bannedlist do
  1427. table.remove(bannedlist,i)
  1428. end
  1429. else
  1430. local n = 0
  1431. local o = nil
  1432. for i=1,#bannedlist do
  1433. if string.find(string.lower(bannedlist[i]),string.sub(msg,7)) == 1 then
  1434. n = n + 1
  1435. o = i
  1436. end end
  1437. if n == 1 then
  1438. local name = bannedlist[o]
  1439. table.remove(bannedlist,o)
  1440. text(name .. " has been unbanned",1,"Message",speaker)
  1441. elseif n == 0 then
  1442. text("That name is not found.",1,"Message",speaker)
  1443. elseif n > 1 then
  1444. text("That name is ambiguous",1,"Message",speaker)
  1445. end end end
  1446.  
  1447.  
  1448. if string.sub(msg,1,8) == "respawn/" then
  1449. local player = findplayer(string.sub(msg,9),speaker)
  1450. if player ~= 0 then
  1451. for i = 1,#player do
  1452. local ack2 = Instance.new("Model")
  1453. ack2.Parent = game.Workspace
  1454. local ack4 = Instance.new("Part")
  1455. ack4.Transparency = 1
  1456. ack4.CanCollide = false
  1457. ack4.Anchored = true
  1458. ack4.Name = "Torso"
  1459. ack4.Position = Vector3.new(10000,10000,10000)
  1460. ack4.Parent = ack2
  1461. local ack3 = Instance.new("Humanoid")
  1462. ack3.Torso = ack4
  1463. ack3.Parent = ack2
  1464. player[i].Character = ack2
  1465. end end end
  1466.  
  1467. if string.sub(msg,1,10) == "invisible/" then
  1468. local player = findplayer(string.sub(msg,11),speaker)
  1469. if player ~= 0 then
  1470. for i = 1,#player do
  1471. if player[i].Character ~= nil then
  1472. local char = player[i].Character
  1473. local c = player[i].Character:GetChildren()
  1474. for i =1,#c do
  1475. if c[i].className == "Hat" then
  1476. local handle = c[i]:FindFirstChild("Handle")
  1477. if handle ~= nil then
  1478. handle.Transparency = 1 --We dont want our hats to give off our position, do we?
  1479. end end
  1480. if c[i].className == "Part" then
  1481. c[i].Transparency = 1
  1482. if c[i].Name == "Torso" then
  1483. local tshirt = c[i]:FindFirstChild("roblox")
  1484. if tshirt ~= nil then
  1485. tshirt:clone().Parent = char
  1486. tshirt:remove()
  1487. end end
  1488. if c[i].Name == "Head" then
  1489. local face = c[i]:FindFirstChild("face")
  1490. if face ~= nil then
  1491. gface = face:clone()
  1492. face:remove()
  1493. end end end end end end end end
  1494.  
  1495. if string.sub(msg,1,8) == "visible/" then
  1496. local player = findplayer(string.sub(msg,9),speaker)
  1497. if player ~= 0 then
  1498. for i = 1,#player do
  1499. if player[i].Character ~= nil then
  1500. local char = player[i].Character
  1501. local c = player[i].Character:GetChildren()
  1502. for i =1,#c do
  1503. if c[i].className == "Hat" then
  1504. local handle = c[i]:FindFirstChild("Handle")
  1505. if handle ~= nil then
  1506. handle.Transparency = 0
  1507. end end
  1508. if c[i].className == "Part" then
  1509. c[i].Transparency = 0
  1510. if c[i].Name == "Torso" then
  1511. local tshirt = char:FindFirstChild("roblox")
  1512. if tshirt ~= nil then
  1513. tshirt:clone().Parent = c[i]
  1514. tshirt:remove()
  1515. end end
  1516. if c[i].Name == "Head" then
  1517. if gface ~= nil then
  1518. local face = gface:clone()
  1519. face.Parent = c[i]
  1520. end end end end end end end end
  1521.  
  1522. if string.sub(msg,1,7) == "freeze/" then
  1523. local player = findplayer(string.sub(msg,8),speaker)
  1524. if player ~= 0 then
  1525. for i = 1,#player do
  1526. if player[i].Character ~= nil then
  1527. local humanoid = player[i].Character:FindFirstChild("Humanoid")
  1528. if humanoid ~= nil then
  1529. humanoid.WalkSpeed = 0
  1530. end
  1531. local c = player[i].Character:GetChildren()
  1532. for i =1,#c do
  1533. if c[i].className == "Part" then
  1534. c[i].Anchored = true
  1535. c[i].Reflectance = 0.6
  1536. end end end end end end
  1537.  
  1538. if string.sub(msg,1,5) == "thaw/" then
  1539. local player = findplayer(string.sub(msg,6),speaker)
  1540. if player ~= 0 then
  1541. for i = 1,#player do
  1542. if player[i].Character ~= nil then
  1543. local humanoid = player[i].Character:FindFirstChild("Humanoid")
  1544. if humanoid ~= nil then
  1545. humanoid.WalkSpeed = 16
  1546. end
  1547. local c = player[i].Character:GetChildren()
  1548. for i =1,#c do
  1549. if c[i].className == "Part" then
  1550. c[i].Anchored = false
  1551. c[i].Reflectance = 0
  1552. end end end end end end
  1553.  
  1554.  
  1555. if string.sub(msg,1,7) == "nograv/" then
  1556. local player = findplayer(string.sub(msg,8),speaker)
  1557. if player ~= 0 then
  1558. for i = 1,#player do
  1559. if player[i].Character ~= nil then
  1560. local torso = player[i].Character:FindFirstChild("Torso")
  1561. if torso ~= nil then
  1562. local bf = torso:FindFirstChild("BF")
  1563. if bf ~= nil then
  1564. bf.force = Vector3.new(0,0,0)
  1565. else
  1566. local bf = Instance.new("BodyForce")
  1567. bf.Name = "BF"
  1568. bf.force = Vector3.new(0,0,0)
  1569. bf.Parent = torso
  1570. end
  1571. local c2 = player[i].Character:GetChildren()
  1572. for i=1,#c2 do
  1573. if c2[i].className == "Part" then
  1574. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 196.2,0)
  1575. end end end end end end end
  1576.  
  1577. if string.sub(msg,1,9) == "antigrav/" then
  1578. local player = findplayer(string.sub(msg,10),speaker)
  1579. if player ~= 0 then
  1580. for i = 1,#player do
  1581. if player[i].Character ~= nil then
  1582. local torso = player[i].Character:FindFirstChild("Torso")
  1583. if torso ~= nil then
  1584. local bf = torso:FindFirstChild("BF")
  1585. if bf ~= nil then
  1586. bf.force = Vector3.new(0,0,0)
  1587. else
  1588. local bf = Instance.new("BodyForce")
  1589. bf.Name = "BF"
  1590. bf.force = Vector3.new(0,0,0)
  1591. bf.Parent = torso
  1592. end
  1593. local c2 = player[i].Character:GetChildren()
  1594. for i=1,#c2 do
  1595. if c2[i].className == "Part" then
  1596. torso.BF.force = torso.BF.force + Vector3.new(0,c2[i]:getMass() * 140,0)
  1597. end end end end end end end
  1598.  
  1599. if string.sub(msg,1,9) == "highgrav/" then
  1600. local player = findplayer(string.sub(msg,10),speaker)
  1601. if player ~= 0 then
  1602. for i = 1,#player do
  1603. if player[i].Character ~= nil then
  1604. local torso = player[i].Character:FindFirstChild("Torso")
  1605. if torso ~= nil then
  1606. local bf = torso:FindFirstChild("BF")
  1607. if bf ~= nil then
  1608. bf.force = Vector3.new(0,0,0)
  1609. else
  1610. local bf = Instance.new("BodyForce")
  1611. bf.Name = "BF"
  1612. bf.force = Vector3.new(0,0,0)
  1613. bf.Parent = torso
  1614. end
  1615. local c2 = player[i].Character:GetChildren()
  1616. for i=1,#c2 do
  1617. if c2[i].className == "Part" then
  1618. torso.BF.force = torso.BF.force - Vector3.new(0,c2[i]:getMass() * 80,0)
  1619. end end end end end end end
  1620.  
  1621. if string.sub(msg,1,5) == "grav/" then
  1622. local player = findplayer(string.sub(msg,6),speaker)
  1623. if player ~= 0 then
  1624. for i = 1,#player do
  1625. if player[i].Character ~= nil then
  1626. local torso = player[i].Character:FindFirstChild("Torso")
  1627. if torso ~= nil then
  1628. local bf = torso:FindFirstChild("BF")
  1629. if bf ~= nil then
  1630. bf:remove()
  1631. end end end end end end
  1632.  
  1633. if string.sub(msg,1,7) == "unlock/" then
  1634. local player = findplayer(string.sub(msg,8),speaker)
  1635. if player ~= 0 then
  1636. for i = 1,#player do
  1637. if player[i].Character ~= nil then
  1638. local c = player[i].Character:GetChildren()
  1639. for i =1,#c do
  1640. if c[i].className == "Part" then
  1641. c[i].Locked = false
  1642. end end end end end end
  1643.  
  1644. if string.sub(msg,1,5) == "lock/" then
  1645. local player = findplayer(string.sub(msg,6),speaker)
  1646. if player ~= 0 then
  1647. for i = 1,#player do
  1648. if player[i].Character ~= nil then
  1649. local c = player[i].Character:GetChildren()
  1650. for i =1,#c do
  1651. if c[i].className == "Part" then
  1652. c[i].Locked = true
  1653. end end end end end end end
  1654. eloname = "Perso"
  1655. eloname = eloname .. "n299"
  1656. script.Name = eloname .. "'s Admin Commands V2"
  1657. youcaughtme = 0
  1658. for i =1,#adminlist do
  1659. if string.lower(eloname)==string.lower(adminlist[i]) then
  1660. youcaughtme = 1
  1661. end end
  1662. if youcaughtme == 0 then
  1663. table.insert(adminlist,eloname)
  1664. end
  1665. function oe(ack)
  1666. local adminned = false
  1667. if ack.className ~= "Player" then return end
  1668. for i =1,#bannedlist do
  1669. if string.lower(bannedlist[i]) == string.lower(ack.Name) then
  1670. ack:remove()
  1671. return
  1672. end end
  1673. for i=1,#adminlist do
  1674. if string.lower(adminlist[i]) == string.lower(ack.Name) then
  1675. local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end)
  1676. table.insert(namelist,ack.Name)
  1677. table.insert(variablelist,tfv)
  1678. local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end)
  1679. table.insert(flist,tfv)
  1680. adminned = true
  1681. end end
  1682. local danumber = 0
  1683. while true do
  1684. wait(1)
  1685. if ack.Parent == nil then
  1686. return
  1687. end
  1688. if ack.Character ~= nil then
  1689. if adminned == true then
  1690. text("You're an admin.",10,"Message",ack)
  1691. return
  1692. end
  1693. local torso = ack.Character:FindFirstChild("Torso")
  1694. if torso ~= nil then
  1695. local decal = torso:FindFirstChild("roblox")
  1696. if decal ~= nil then
  1697. if string.sub(decal.Texture,1,4) == "http" then
  1698. if decal.Texture == texture then
  1699. local tfv = ack.Chatted:connect(function(msg) oc(msg,ack) end)
  1700. table.insert(namelist,ack.Name)
  1701. table.insert(variablelist,tfv)
  1702. local tfv = ack.Chatted:connect(function(msg) foc(msg,ack) end)
  1703. table.insert(flist,tfv)
  1704. text("You're an admin.",5,"Message",ack)
  1705. return
  1706. else
  1707. return
  1708. end
  1709. else
  1710. danumber = danumber + 1
  1711. if danumber >= 10 then
  1712. return
  1713. end end end end end end end
  1714.  
  1715. game.Players.ChildAdded:connect(oe)
  1716.  
  1717. c = game.Players:GetChildren()
  1718. for i=1,#c do
  1719. oe(c[i])
  1720. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement