Advertisement
zEE1222

admingucci

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