Advertisement
gray_alli28codesrbx

SkatersAdminCommands

Dec 14th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.26 KB | None | 0 0
  1. -- Version 3.92
  2. adminlist = {"skaterdc1800","SkaterJJ1800"} --add in the names of people you want to be able to use the command script here
  3. -- Please keep my name in there. ;)
  4. bannedlist = {"maxsas,tiemedown"} -- If you want someone not to be able to enter your place, put thier name in here.
  5. resetlist = { "reset", "suicide","murder" } -- put stuff you want people to be able to say to kill themselves here
  6. fixlist = { "fix/", "iwontrespawn" } -- put stuff you want people to be able to say if you want them to get a new character if thiers wont respawn in here.
  7. texture = "" -- if you want a person wearing a certain shirt to be a admin, then paste the texture URL betweens the "s, i included instructions from the wiki on how to find a shirts's texture URL at the bottom of the script
  8. secondsbeforemessagesdissapear = 2 -- Set this to how many seconds you want it to take for messages to disappear
  9. teamchange = false -- make this "true" if you want people to be able to change teams by saying join/teamname and, "false" if you dont
  10. killonteamchange = true -- make this "true" if you want people to get killed from changing team and "false" if you dont.
  11. noguests = false -- make this true if you want guests to be automatically removed, false if you dont
  12. -- and also, the names in adminlist, resetlist, and bannedlist arent case sensivitve.
  13. --[[
  14. I update this command script alot, so if you want to get the newest version of the script, go to http://www.roblox.com/Item.aspx?ID=5277383 every once in a while.
  15.  
  16. If theres anything you think this command script needs, just message me (manaphy966) and i might put it in. :)
  17. And also, if you find any bugs, report them to me.
  18.  
  19. Say "commands" ingame to see the commands
  20.  
  21. The commands are,
  22.  
  23. kill/killerfooty
  24. kills someone
  25.  
  26. killall
  27. kills everyone
  28.  
  29. explode/killerfooty
  30. explodes someone
  31.  
  32. explodeall
  33. explodes everyone
  34.  
  35. loopkill/killerfooty
  36. repeatedly kills someone when they spawn.
  37.  
  38. unloopkill/killerfooty
  39. undos loopkill/
  40.  
  41. float/killerfooty
  42. makes someone float around
  43.  
  44. unfloat/killerfooty
  45. undos float/
  46.  
  47. floatall
  48. makes everyone float around
  49.  
  50. unfloatall
  51. undos the effect of float for everyone
  52.  
  53. time/1.30
  54. sets the TimeOfDay to 1:30.
  55.  
  56. ambient/10/10/10
  57. sets the Ambient to 10,10,10
  58.  
  59. walkspeed/killerfooty/99
  60. changes someones walkspeed to 99, its normally 16 by the way.
  61.  
  62. removetools/killerfooty
  63. removes all of someones tools and hopperbins
  64.  
  65. givetools/killerfooty
  66. gives someone all the tools in starterpack
  67.  
  68. ban/killerfooty
  69. removes someone from the game and makes him unable to come back to that server
  70. note that this command can not be used against people in the adminlist, and can only be used by people in adminlist.
  71.  
  72. kick/killerfooty
  73. the same as ban except the people can come back to the server, and admin/ed people may use it.
  74.  
  75. admin/killerfooty
  76. makes someone able to use the command script
  77.  
  78. change/killerfooty/money/9999
  79. changes a player's leaderstats item's value, note that money can be abbreviated
  80.  
  81. punish/killerfooty
  82. removes someones character
  83.  
  84. unpunish/killerfooty
  85. gives someone thier character back.
  86.  
  87. control/killerfooty
  88. makes someones character your own.
  89.  
  90. merge/killerfooty/player
  91. makes killerfooty control player's character
  92.  
  93. teleport/killerfooty/player
  94. teleports killerfooty's character to player's character
  95.  
  96. ffon/killerfooty
  97. gives someone a forcefield
  98.  
  99. ffoff/killerfooty
  100. removes someone's forcefield
  101.  
  102. sparkles/killerfooty
  103. makes someone all sparkly
  104.  
  105. unsparkles/killerfooty
  106. undos the effect of sparkles/
  107.  
  108. invisible/killerfooty
  109. makes someone invisible
  110.  
  111. visible/killerfooty
  112. undos the effect of invisible/
  113.  
  114. freeze/killerfooty
  115. Makes someone anchored and shiny
  116.  
  117. thaw/killerfooty
  118. undos the effect of freeze/
  119.  
  120. give/ gives someone a tool that you put inside of the model "tools" thats inside of this model, or inside of Lighting, for instance, if you put a tool named gun in there.
  121. give/gun/killerfooty
  122. Your free to use some of the tools i made that i put in there, and you can put hopperbins in there too.
  123.  
  124. jail/killerfooty
  125. makes a jail cell appear around someone
  126.  
  127. unjail/killerfooty
  128. removes all of someone's jail cells
  129.  
  130. god/killerfooty
  131. gives someone a forcefield, and makes thier health 999999, and makes them kill everyone they touch.
  132.  
  133. heal/killerfooty
  134. restores someone to full health
  135.  
  136. trip/killerfooty
  137. makes someone trip
  138.  
  139. maxplayers/15
  140. sets the max player limit to what you say, can be between 6 and 20
  141.  
  142. btool/killerfooty
  143. gives someone the move, clone, and delete tools.
  144.  
  145. m/i like pie
  146. this makes a message appear on the screen saying: i like pie
  147.  
  148. h/i like pie
  149. the same as m/ except it makes a hint appear
  150.  
  151. shutdown
  152. makes the server shut down, my simplest command yet.
  153.  
  154. c/ game.Workspace:remove()
  155. this creates a script which source is whatever you put in after the /
  156.  
  157. c//
  158. creates a multiline script, every time you say it it adds to a script, then creates the script when you say "done", for instance
  159. c// while true do
  160. c// wait()
  161. c// game.Workspace.Player.Torso.Velocity = Vector3.new(0,100,0)
  162. c// end
  163. done
  164.  
  165. clear
  166. Removes all the scripts made by c/ and c// and all the jails
  167.  
  168. Note that for kill/, punish/, unpunish/, ffon/, ffoff/, sparkles/,unsparkles/, jail/, unjail/, walkspeed/, invisible/, visible, change/, control/, merge/, teleport, btools/, god/, trip/, heal/, freeze/, thaw/, loopkill/, unloopkill/, and give/, what you say doesnt have to be the full name, for example
  169. kill/per
  170. And that will kill everyone whose name begins with "per"
  171. And also, the tool name for give/ has to be exact.
  172. And, the team name for the join/ command can be abbreviated, for instance, if you want to join Red Team, join/r would suffice.
  173. And you CANNOT abbreviate the names for the ban/, kick/, and admin/ commands, you have to type in the full name.
  174.  
  175. Oh yeah, and capitalisation doesnt matter, except for the /s, so you could say KiLl/PeR
  176.  
  177.  
  178. And please dont be a noob and copy the script and replace my name with yours, i'm ok with people copying it but as long as i get credit.
  179. --]]
  180.  
  181. ff = script:FindFirstChild("tools")
  182. if ff ~= nil then
  183. ff.Parent = game.Lighting
  184. model = ff
  185. else
  186. model = Instance.new("Model")
  187. model.Name = "tools"
  188. model.Parent = game.Lighting
  189. end
  190. c = game.Lighting:GetChildren()
  191. for i =1,#c do
  192. if c[i].className == "Tool" then
  193. c[i]:clone().Parent = model
  194. end
  195. if c[i].className == "HopperBin" then
  196. c[i]:clone().Parent = model
  197. end
  198. end
  199.  
  200. function text(message,object,type,waitnum)
  201. mes = Instance.new(type)
  202. mes.Text = message
  203. mes.Name = message
  204. mes.Parent = object
  205. if waitnum == 0 then
  206. wait(secondsbeforemessagesdissapear)
  207. else
  208. wait(waitnum)
  209. end
  210. c = object:FindFirstChild(message)
  211. if c ~= nil then
  212. c:remove()
  213. end
  214. end
  215.  
  216. function onChatted(msg,recipient,speaker)
  217.  
  218. if (string.sub(string.lower(msg),1,2) == "m/") then
  219. text(speaker.Name .. ": " .. string.sub(msg,3),game.Workspace,"Message",0)
  220. end
  221.  
  222. if (string.sub(string.lower(msg),1,2) == "h/") then
  223. text(speaker.Name .. ": " .. string.sub(msg,3),game.Workspace,"Hint",0)
  224. end
  225.  
  226. if (string.sub(string.lower(msg),1,2) == "c/") then
  227. if (string.sub(string.lower(msg),3,3) ~= "/") then
  228. ick = string.sub(msg,3)
  229. ack = Instance.new("Script")
  230. ack.Source = ick
  231. ack.Disabled = false
  232. ack.Name = "MadeScript"
  233. ack.Parent = game.Workspace
  234. end
  235. end
  236.  
  237. if (string.sub(string.lower(msg),1,3) == "c//") then
  238. h = speaker:FindFirstChild("tobecontinued")
  239. if h == nil then
  240. ick = string.sub(msg,4)
  241. ack = Instance.new("Script")
  242. ack.Source = ick
  243. ack.Name = "tobecontinued"
  244. ack.Disabled = true
  245. ack.Parent = speaker
  246. text("Script started",speaker,"Message",1)
  247. else
  248. ick = string.sub(msg,4)
  249. h.Source = h.Source .. " " .. ick
  250. text("Added to script",speaker,"Message",1)
  251. end
  252. end
  253.  
  254. msg = string.lower(msg)
  255.  
  256. if (string.sub(string.lower(msg),1,4) == "done") then
  257. h = speaker:FindFirstChild("tobecontinued")
  258. if h ~= nil then
  259. b = h:clone()
  260. b.Disabled = false
  261. b.Name = "MadeScript"
  262. b.Parent = game.Workspace
  263. h:remove()
  264. text("Script Made",speaker,"Message",1)
  265. end
  266. end
  267.  
  268. if (string.sub(string.lower(msg),1,5) == "clear") then
  269. c = game.Workspace:GetChildren()
  270. for i = 1,#c do
  271. if c[i].Name == "MadeScript" then
  272. c[i]:remove()
  273. end
  274. if string.sub(c[i].Name,1,4) == "Jail" then
  275. c[i]:remove()
  276. end
  277. end
  278. end
  279.  
  280. if (string.sub(string.lower(msg),1,5) == "heal/") then
  281. ick = string.sub(msg,6)
  282. local c = game.Players:GetChildren()
  283. for i=1,#c do
  284. h = c[i]
  285. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  286. if h.className == "Player" then
  287. h2 = h.Character:FindFirstChild("Humanoid")
  288. if h2 ~= nil then
  289. h2.Health = h2.MaxHealth
  290. end
  291. end
  292. end
  293. end
  294. end
  295.  
  296. if (string.sub(string.lower(msg),1,12) == "removetools/") then
  297. ick = string.sub(msg,13)
  298. local c = game.Players:GetChildren()
  299. for i=1,#c do
  300. h = c[i]
  301. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  302. if h.className == "Player" then
  303. c = h.Backpack:GetChildren()
  304. for i=1,#c do
  305. c[i]:remove()
  306. end
  307. c = h.Character:GetChildren()
  308. for i=1,#c do
  309. if c[i].className == "Tool" then
  310. c[i]:remove()
  311. end
  312. end
  313. end
  314. end
  315. end
  316. end
  317.  
  318. if (string.sub(string.lower(msg),1,10) == "givetools/") then
  319. ick = string.sub(msg,11)
  320. local c = game.Players:GetChildren()
  321. for i=1,#c do
  322. h = c[i]
  323. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  324. if h.className == "Player" then
  325. c = game.StarterPack:GetChildren()
  326. for i =1,#c do
  327. c[i]:clone().Parent = h.Backpack
  328. end
  329. end
  330. end
  331. end
  332. end
  333.  
  334. if (string.sub(string.lower(msg),1,8) == "control/") then
  335. ick = string.sub(msg,9)
  336. local c = game.Players:GetChildren()
  337. for i=1,#c do
  338. h = c[i]
  339. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  340. if h.className == "Player" then
  341. if h.Character ~= nil then
  342. speaker.Character = h.Character
  343. end
  344. end
  345. end
  346. end
  347. end
  348.  
  349. if (string.sub(string.lower(msg),1,5) == "trip/") then
  350. ick = string.sub(msg,6)
  351. local c = game.Players:GetChildren()
  352. for i=1,#c do
  353. h = c[i]
  354. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  355. if h.className == "Player" then
  356. h2 = h.Character:FindFirstChild("Head")
  357. if h2 ~= nil then
  358. a = Instance.new("BodyThrust")
  359. a.force = Vector3.new(0,0,-3500)
  360. a.Parent = h2
  361. wait(0.5)
  362. a:remove()
  363. end
  364. end
  365. end
  366. end
  367. end
  368.  
  369. --Whyd i pick the name killerfooty anyway?
  370.  
  371. if (string.sub(string.lower(msg),1,10) == "invisible/") then
  372. ick = string.sub(msg,11)
  373. local c = game.Players:GetChildren()
  374. for i=1,#c do
  375. h = c[i]
  376. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  377. if h.className == "Player" then
  378. a1 = h.Character:FindFirstChild("Left Arm")
  379. if a1 ~= nil then
  380. a1.Transparency = 1
  381. end
  382. a2 = h.Character:FindFirstChild("Right Arm")
  383. if a2 ~= nil then
  384. a2.Transparency = 1
  385. end
  386. a3 = h.Character:FindFirstChild("Left Leg")
  387. if a3 ~= nil then
  388. a3.Transparency = 1
  389. end
  390. a4 = h.Character:FindFirstChild("Right Leg")
  391. if a4 ~= nil then
  392. a4.Transparency = 1
  393. end
  394. a5 = h.Character:FindFirstChild("Torso")
  395. if a5 ~= nil then
  396. a5.Transparency = 1
  397. end
  398. a6 = h.Character:FindFirstChild("Head")
  399. if a6 ~= nil then
  400. a6.Transparency = 1
  401. a7 = a6:FindFirstChild("face")
  402. if a7 ~= nil then
  403. face = a7:clone()
  404. a7:remove()
  405. end
  406. end
  407. end
  408. end
  409. end
  410. end
  411.  
  412. if (string.sub(string.lower(msg),1,7) == "freeze/") then
  413. ick = string.sub(msg,8)
  414. local c = game.Players:GetChildren()
  415. for i=1,#c do
  416. h = c[i]
  417. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  418. if h.className == "Player" then
  419. a1 = h.Character:FindFirstChild("Left Arm")
  420. if a1 ~= nil then
  421. a1.Anchored = true
  422. a1.Reflectance = 0.6
  423. end
  424. a2 = h.Character:FindFirstChild("Right Arm")
  425. if a2 ~= nil then
  426. a2.Anchored = true
  427. a2.Reflectance = 0.6
  428. end
  429. a3 = h.Character:FindFirstChild("Left Leg")
  430. if a3 ~= nil then
  431. a3.Anchored = true
  432. a3.Reflectance = 0.6
  433. end
  434. a4 = h.Character:FindFirstChild("Right Leg")
  435. if a4 ~= nil then
  436. a4.Anchored = true
  437. a4.Reflectance = 0.6
  438. end
  439. a5 = h.Character:FindFirstChild("Torso")
  440. if a5 ~= nil then
  441. a5.Anchored = true
  442. a5.Reflectance = 0.6
  443. end
  444. a6 = h.Character:FindFirstChild("Head")
  445. if a6 ~= nil then
  446. a6.Anchored = true
  447. a6.Reflectance = 0.6
  448. end
  449. end
  450. end
  451. end
  452. end
  453.  
  454. if (string.sub(string.lower(msg),1,5) == "thaw/") then
  455. ick = string.sub(msg,6)
  456. local c = game.Players:GetChildren()
  457. for i=1,#c do
  458. h = c[i]
  459. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  460. if h.className == "Player" then
  461. a1 = h.Character:FindFirstChild("Left Arm")
  462. if a1 ~= nil then
  463. a1.Anchored = false
  464. a1.Reflectance = 0
  465. end
  466. a2 = h.Character:FindFirstChild("Right Arm")
  467. if a2 ~= nil then
  468. a2.Anchored = false
  469. a2.Reflectance = 0
  470. end
  471. a3 = h.Character:FindFirstChild("Left Leg")
  472. if a3 ~= nil then
  473. a3.Anchored = false
  474. a3.Reflectance = 0
  475. end
  476. a4 = h.Character:FindFirstChild("Right Leg")
  477. if a4 ~= nil then
  478. a4.Anchored = false
  479. a4.Reflectance = 0
  480. end
  481. a5 = h.Character:FindFirstChild("Torso")
  482. if a5 ~= nil then
  483. a5.Anchored = false
  484. a5.Reflectance = 0
  485. end
  486. a6 = h.Character:FindFirstChild("Head")
  487. if a6 ~= nil then
  488. a6.Anchored = false
  489. a6.Reflectance = 0
  490. end
  491. end
  492. end
  493. end
  494. end
  495.  
  496.  
  497. if (string.sub(string.lower(msg),1,11) == "maxplayers/") then
  498. ack = game.Players.MaxPlayers
  499. ick = string.sub(msg,12,13)
  500. game.Players.MaxPlayers = ick
  501. if game.Players.MaxPlayers == 0 then
  502. game.Players.MaxPlayers = ack
  503. end
  504. end
  505.  
  506. if (string.sub(string.lower(msg),1,6) == "btool/") then
  507. ick = string.sub(msg,7)
  508. local c = game.Players:GetChildren()
  509. for i=1,#c do
  510. h = c[i]
  511. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  512. if h.className == "Player" then
  513. a = Instance.new("HopperBin")
  514. a.BinType = "GameTool"
  515. a.Parent = h.Backpack
  516. a = Instance.new("HopperBin")
  517. a.BinType = "Clone"
  518. a.Parent = h.Backpack
  519. a = Instance.new("HopperBin")
  520. a.BinType = "Hammer"
  521. a.Parent = h.Backpack
  522. end
  523. end
  524. end
  525. end
  526.  
  527. if (string.sub(string.lower(msg),1,8) == "visible/") then
  528. ick = string.sub(msg,9)
  529. local c = game.Players:GetChildren()
  530. for i=1,#c do
  531. h = c[i]
  532. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  533. if h.className == "Player" then
  534. a1 = h.Character:FindFirstChild("Left Arm")
  535. if a1 ~= nil then
  536. a1.Transparency = 0
  537. end
  538. a2 = h.Character:FindFirstChild("Right Arm")
  539. if a2 ~= nil then
  540. a2.Transparency = 0
  541. end
  542. a3 = h.Character:FindFirstChild("Left Leg")
  543. if a3 ~= nil then
  544. a3.Transparency = 0
  545. end
  546. a4 = h.Character:FindFirstChild("Right Leg")
  547. if a4 ~= nil then
  548. a4.Transparency = 0
  549. end
  550. a5 = h.Character:FindFirstChild("Torso")
  551. if a5 ~= nil then
  552. a5.Transparency = 0
  553. end
  554. a6 = h.Character:FindFirstChild("Head")
  555. if a6 ~= nil then
  556. a6.Transparency = 0
  557. a7 = a6:FindFirstChild("face")
  558. if a7 == nil then
  559. if face ~= nil then
  560. a8 = face:clone()
  561. a8.Parent = a6
  562. end
  563. end
  564. end
  565. end
  566. end
  567. end
  568. end
  569.  
  570. -- that invisible script was really tedious.
  571.  
  572. if (string.sub(string.lower(msg),1,8) == "ambient/") then
  573. danumber = nil
  574. danumber2 = nil
  575. a1 = nil
  576. a2 = nil
  577. a3 = nil
  578. for pie = 9,100 do
  579. if string.sub(msg,pie,pie) == "/" then
  580. danumber = pie - 1
  581. a1 = string.sub(msg,9,pie - 1)
  582. break
  583. end
  584. end
  585.  
  586. if danumber ~= nil then
  587. for pie = danumber + 2,danumber + 100 do
  588. if string.sub(msg,pie,pie) == "/" then
  589. danumber2 = pie - 1
  590. a2 = string.sub(msg,danumber + 2,pie - 1)
  591. break
  592. end
  593. end
  594. end
  595.  
  596. if danumber2 ~= nil then
  597. a3 = string.sub(msg,danumber2 + 2)
  598. end
  599.  
  600. if a1 ~= nil and a2 ~= nil and a3 ~= nil then
  601. game.Lighting.Ambient = Color3.new(-a1,-a2,-a3)
  602. end
  603.  
  604. end
  605.  
  606. if (string.sub(string.lower(msg),1,6) == "merge/") then
  607. for pie = 7,100 do
  608. if string.sub(msg,pie,pie) == "/" then
  609. danumber = pie - 1
  610. break
  611. end
  612. end
  613. ick = string.sub(msg,7,danumber)
  614. ick2 = string.sub(msg,danumber + 2)
  615. char1 = nil
  616. local c = game.Players:GetChildren()
  617. for i=1,#c do
  618. h = c[i]
  619. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  620. if h.className == "Player" then
  621. char1 = h
  622. end
  623. end
  624. end
  625. char2 = nil
  626. local c = game.Players:GetChildren()
  627. for i=1,#c do
  628. h = c[i]
  629. if string.find(string.lower(h.Name),string.lower(ick2)) == 1 then
  630. if h.className == "Player" then
  631. if h ~= char1 then
  632. char2 = h
  633. end
  634. end
  635. end
  636. end
  637. if char1 ~= nil then
  638. if char2 ~= nil then
  639. char1.Character = char2.Character
  640. end
  641. end
  642. end
  643.  
  644. -- I wonder what my name spelled backwards looks like... 992nosreP eww, it almost spelled nose.
  645.  
  646. if (string.sub(string.lower(msg),1,10) == "walkspeed/") then
  647. for pie = 11,100 do
  648. if string.sub(msg,pie,pie) == "/" then
  649. danumber = pie - 1
  650. break
  651. end
  652. end
  653. ick = string.sub(msg,11,danumber)
  654. ick2 = string.sub(msg,danumber + 2)
  655. local c = game.Players:GetChildren()
  656. for i=1,#c do
  657. h = c[i]
  658. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  659. if h.className == "Player" then
  660. if h ~= char1 then
  661. char = h
  662. end
  663. end
  664. end
  665. end
  666. if char ~= nil then
  667. if char.Character ~= nil then
  668. char.Character.Humanoid.WalkSpeed = ick2
  669. end
  670. end
  671. end
  672.  
  673. if (string.sub(string.lower(msg),1,9) == "teleport/") then
  674. for pie = 10,100 do
  675. if string.sub(msg,pie,pie) == "/" then
  676. danumber = pie - 1
  677. break
  678. end
  679. end
  680. ick = string.sub(msg,10,danumber)
  681. ick2 = string.sub(msg,danumber + 2)
  682. char1 = nil
  683. local c = game.Players:GetChildren()
  684. for i=1,#c do
  685. h = c[i]
  686. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  687. if h.className == "Player" then
  688. char1 = h
  689. end
  690. end
  691. end
  692. char2 = nil
  693. local c = game.Players:GetChildren()
  694. for i=1,#c do
  695. h = c[i]
  696. if string.find(string.lower(h.Name),string.lower(ick2)) == 1 then
  697. if h.className == "Player" then
  698. if h ~= char1 then
  699. char2 = h
  700. end
  701. end
  702. end
  703. end
  704. if char1 ~= nil then
  705. if char2 ~= nil then
  706. t1 = char1.Character:FindFirstChild("Torso")
  707. if t1 ~= nil then
  708. t2 = char2.Character:FindFirstChild("Torso")
  709. if t2 ~= nil then
  710. t1.CFrame = t2.CFrame
  711. end
  712. end
  713. end
  714. end
  715. end
  716.  
  717. if (string.sub(string.lower(msg),1,7) == "change/") then
  718. for pie = 8,100 do
  719. if string.sub(msg,pie,pie) == "/" then
  720. danumber = pie - 1
  721. break
  722. end
  723. end
  724. for pie = danumber + 2,100 do
  725. if string.sub(msg,pie,pie) == "/" then
  726. danumber2 = pie - 1
  727. break
  728. end
  729. end
  730. ick = string.sub(msg,8,danumber)
  731. ick2 = string.sub(msg,danumber + 2,danumber2)
  732. ick3 = string.sub(msg, danumber2 + 2)
  733. char1 = nil
  734. local c = game.Players:GetChildren()
  735. for i=1,#c do
  736. h = c[i]
  737. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  738. if h.className == "Player" then
  739. char1 = h
  740. end
  741. end
  742. end
  743. if char1 ~= nil then
  744. ls = char1.leaderstats
  745. local c = ls:GetChildren()
  746. for i=1,#c do
  747. h = c[i]
  748. if string.find(string.lower(h.Name),string.lower(ick2)) == 1 then
  749. h.Value = ick3
  750. end
  751. end
  752. end
  753. end
  754.  
  755. if string.lower(msg) == "shutdown" then
  756. game.NetworkServer:remove()
  757. end
  758.  
  759. -- that has to be the shortest command in the script.
  760.  
  761. if (string.sub(string.lower(msg),1,5) == "time/") then
  762. ack = string.sub(msg,6,10)
  763. game.Lighting.TimeOfDay = ack
  764. end
  765.  
  766. if (string.sub(string.lower(msg),1,4) == "god/") then
  767. ick = string.sub(msg,5)
  768. local c = game.Players:GetChildren()
  769. for i=1,#c do
  770. h = c[i]
  771. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  772. if h.className == "Player" then
  773. h2 = h.Character
  774. if h2 ~= nil then
  775. ack = Instance.new("Script")
  776. ack.Source = [[
  777. script.Parent.Humanoid.MaxHealth = 999999
  778. script.Parent.Humanoid.Health = 999999
  779. ff = Instance.new("ForceField")
  780. ff.Parent = script.Parent
  781. function ot(hit)
  782. if hit.Parent ~= script.Parent then
  783. h = hit.Parent:FindFirstChild("Humanoid")
  784. if h ~= nil then
  785. h.Health = 0
  786. end
  787. h = hit.Parent:FindFirstChild("Zombie")
  788. if h ~= nil then
  789. h.Health = 0
  790. end
  791. end
  792. end
  793. a = script.Parent:FindFirstChild("Left Arm")
  794. if a ~= nil then
  795. a.Reflectance = 1
  796. a.Touched:connect(ot)
  797. end
  798. a = script.Parent:FindFirstChild("Right Arm")
  799. if a ~= nil then
  800. a.Reflectance = 1
  801. a.Touched:connect(ot)
  802. end
  803. a = script.Parent:FindFirstChild("Left Leg")
  804. if a ~= nil then
  805. a.Reflectance = 1
  806. a.Touched:connect(ot)
  807. end
  808. a = script.Parent:FindFirstChild("Right Leg")
  809. if a ~= nil then
  810. a.Reflectance = 1
  811. a.Touched:connect(ot)
  812. end
  813. a = script.Parent:FindFirstChild("Torso")
  814. if a ~= nil then
  815. a.Reflectance = 1
  816. a.Touched:connect(ot)
  817. end
  818. a = script.Parent:FindFirstChild("Head")
  819. if a ~= nil then
  820. a.Reflectance = 1
  821. a.Touched:connect(ot)
  822. end
  823. ]]
  824. ack.Parent = h2
  825. end
  826. end
  827. end
  828. end
  829. end
  830.  
  831. -- that was as tedious as the invisible script...
  832.  
  833. if string.lower(msg) == "commands" then
  834. text = string.rep(" ",30)
  835. text = text .. [[The admin commands are as follows, note that for most commands you dont have to say the full name, so you could say kill/per, kill/killerfooty, killall, explode/killerfooty, explodeall, loopkill/killerfooty, unloopkill/killerfooty, ban/killerfooty, float/killerfooty, unfloat/killerfooty,
  836. floatall, unfloatall, kick/killerfooty, admin/killerfooty, jail/killerfooty, unjail/killerfooty, walkspeed/killerfooty/100, change/killerfooty/kos/999, punish/killerfooty, unpunish/killerfooty, removetools/killerfooty, givetools/killerfooty, control/killerfooty, merge/killerfooty/player, teleport/killerfooty/player, ffon/killerfooty, ffoff/killerfooty,sparkles/killerfooty, unsparkles/killerfooty,
  837. invisible/killerfooty, visible/killerfooty, freeze/killerfooty, thaw/killerfooty, time/1.3, ambient/1/1/1, give/rocket/killerfooty, god/killerfooty, heal/killerfooty, trip/killerfooty, maxplayers/10, btool/killerfooty, m/text, h/text, shutdown, c/ script, c// while true do c// end done, clear. Have Fun!]]
  838. message = Instance.new("Message")
  839. message.Text = ""
  840. message.Parent = speaker
  841. ack = 0
  842. while true do
  843. wait(0.1)
  844. ack = ack + 1
  845. message.Text = string.sub(text,ack,ack + 30)
  846. if string.sub(text,ack,ack) == "" then
  847. break
  848. end
  849. end
  850. message:remove()
  851. end
  852.  
  853. if (string.sub(string.lower(msg),1,8) == "explode/") then
  854. ick = string.sub(msg,9)
  855. local c = game.Players:GetChildren()
  856. for i=1,#c do
  857. h = c[i]
  858. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  859. if h.className == "Player" then
  860. h2 = h.Character:FindFirstChild("Torso")
  861. if h2 ~= nil then
  862. ex = Instance.new("Explosion")
  863. ex.Position = h2.Position
  864. ex.Parent = game.Workspace
  865. end
  866. end
  867. end
  868. end
  869. end
  870.  
  871. if (string.sub(string.lower(msg),1,5) == "jail/") then
  872. ick = string.sub(msg,6)
  873. local c = game.Players:GetChildren()
  874. for i=1,#c do
  875. h = c[i]
  876. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  877. if h.className == "Player" then
  878. h2 = h.Character:FindFirstChild("Torso")
  879. if h2 ~= nil then
  880. ack = Instance.new("Model")
  881. ack.Name = "Jail" .. h.Name
  882. 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
  883. ack.Parent = game.Workspace
  884. ack:MoveTo(h2.Position)
  885. end
  886. end
  887. end
  888. end
  889. end
  890.  
  891. if (string.sub(string.lower(msg),1,7) == "unjail/") then
  892. ick = string.sub(msg,8)
  893. local c = game.Players:GetChildren()
  894. for i=1,#c do
  895. h = c[i]
  896. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  897. if h.className == "Player" then
  898. c2 = game.Workspace:GetChildren()
  899. for i2 =1,#c2 do
  900. if string.sub(c2[i2].Name,1,4) == "Jail" then
  901. if string.sub(c2[i2].Name,5) == h.Name then
  902. c2[i2]:remove()
  903. end
  904. end
  905. end
  906. end
  907. end
  908. end
  909. end
  910.  
  911. if (string.sub(string.lower(msg),1,5) == "kill/") then
  912. ick = string.sub(msg,6)
  913. local c = game.Players:GetChildren()
  914. for i=1,#c do
  915. h = c[i]
  916. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  917. if h.className == "Player" then
  918. h2 = h.Character:FindFirstChild("Humanoid")
  919. if h2 ~= nil then
  920. h2.Health = 0
  921. end
  922. end
  923. end
  924. end
  925. end
  926.  
  927. if (string.sub(string.lower(msg),1,11) == "unloopkill/") then
  928. ick = string.sub(msg,12)
  929. local c = game.Players:GetChildren()
  930. for i=1,#c do
  931. h = c[i]
  932. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  933. if h.className == "Player" then
  934. c = game.Workspace:GetChildren()
  935. for i =1,#c do
  936. if string.sub(c[i].Name,1,8) == "loopkill" then
  937. if string.sub(c[i].Name,9) == h.Name then
  938. c[i]:remove()
  939. end
  940. end
  941. end
  942. end
  943. end
  944. end
  945. end
  946.  
  947. if (string.sub(string.lower(msg),1,9) == "loopkill/") then
  948. ick = string.sub(msg,10)
  949. local c = game.Players:GetChildren()
  950. for i=1,#c do
  951. h = c[i]
  952. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  953. if h.className == "Player" then
  954. h2 = h.Character:FindFirstChild("Humanoid")
  955. if h2 ~= nil then
  956. h2.Health = 0
  957. end
  958. ack = Instance.new("Script")
  959. ack.Name = "loopkill" .. h.Name
  960. ack.Source = "player = game.Players." .. h.Name
  961. ack.Source = ack.Source .. [[
  962. function oa(object)
  963. plr = game.Players:playerFromCharacter(object)
  964. if plr ~= nil then
  965. if plr == player then
  966. object.Humanoid.Health = 0
  967. end
  968. end
  969. end
  970. game.Workspace.ChildAdded:connect(oa)
  971. ]]
  972. ack.Parent = game.Workspace
  973. end
  974. end
  975. end
  976. end
  977.  
  978. if (string.sub(string.lower(msg),1,10) == "unfloatall") then
  979. local c = game.Players:GetChildren()
  980. for i=1,#c do
  981. h = c[i]
  982. if h.className == "Player" then
  983. if h.Character ~= nil then
  984. h2 = h.Character:FindFirstChild("Head")
  985. if h2 ~= nil then
  986. h3 = h2:FindFirstChild("RocketPropulsion")
  987. if h3 ~= nil then
  988. h3:remove()
  989. end
  990. end
  991. end
  992. end
  993. end
  994. end
  995.  
  996. if (string.sub(string.lower(msg),1,8) == "floatall") then
  997. local c = game.Players:GetChildren()
  998. for i=1,#c do
  999. h = c[i]
  1000. if h.className == "Player" then
  1001. if h.Character ~= nil then
  1002. h2 = h.Character:FindFirstChild("Head")
  1003. if h2 ~= nil then
  1004. h3 = h.Character:FindFirstChild("Torso")
  1005. if h3 ~= nil then
  1006. rp = Instance.new("RocketPropulsion")
  1007. rp.Target = h3
  1008. rp.Parent = h2
  1009. rp:Fire()
  1010. end
  1011. end
  1012. end
  1013. end
  1014. end
  1015. end
  1016.  
  1017. if (string.sub(string.lower(msg),1,6) == "float/") then
  1018. ick = string.sub(msg,7)
  1019. local c = game.Players:GetChildren()
  1020. for i=1,#c do
  1021. h = c[i]
  1022. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  1023. if h.className == "Player" then
  1024. h2 = h.Character:FindFirstChild("Head")
  1025. if h2 ~= nil then
  1026. h3 = h.Character:FindFirstChild("Torso")
  1027. if h3 ~= nil then
  1028. rp = Instance.new("RocketPropulsion")
  1029. rp.Target = h3
  1030. rp.Parent = h2
  1031. rp:Fire()
  1032. end
  1033. end
  1034. end
  1035. end
  1036. end
  1037. end
  1038.  
  1039. if (string.sub(string.lower(msg),1,8) == "unfloat/") then
  1040. ick = string.sub(msg,9)
  1041. local c = game.Players:GetChildren()
  1042. for i=1,#c do
  1043. h = c[i]
  1044. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  1045. if h.className == "Player" then
  1046. h2 = h.Character:FindFirstChild("Head")
  1047. if h2 ~= nil then
  1048. h3 = h2:FindFirstChild("RocketPropulsion")
  1049. if h3 ~= nil then
  1050. h3:remove()
  1051. end
  1052. end
  1053. end
  1054. end
  1055. end
  1056. end
  1057.  
  1058. if (string.sub(string.lower(msg),1,5) == "ffon/") then
  1059. ick = string.sub(msg,6)
  1060. local c = game.Players:GetChildren()
  1061. for i=1,#c do
  1062. h = c[i]
  1063. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  1064. if h.className == "Player" then
  1065. if h.Character ~= nil then
  1066. ff = Instance.new("ForceField")
  1067. ff.Parent = h.Character
  1068. end
  1069. end
  1070. end
  1071. end
  1072. end
  1073.  
  1074. if (string.sub(string.lower(msg),1,6) == "ffoff/") then
  1075. ick = string.sub(msg,7)
  1076. local c = game.Players:GetChildren()
  1077. for i=1,#c do
  1078. h = c[i]
  1079. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  1080. if h.className == "Player" then
  1081. if h.Character ~= nil then
  1082. h2 = h.Character:FindFirstChild("ForceField")
  1083. if h2 ~= nil then
  1084. h2:remove()
  1085. end
  1086. end
  1087. end
  1088. end
  1089. end
  1090. end
  1091.  
  1092. if (string.sub(string.lower(msg),1,9) == "sparkles/") then
  1093. ick = string.sub(msg,10)
  1094. local c = game.Players:GetChildren()
  1095. for i=1,#c do
  1096. h = c[i]
  1097. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  1098. if h.className == "Player" then
  1099. if h.Character ~= nil then
  1100. ff = Instance.new("Sparkles")
  1101. ff.Parent = h.Character.Head
  1102. end
  1103. end
  1104. end
  1105. end
  1106. end
  1107.  
  1108. if (string.sub(string.lower(msg),1,11) == "unsparkles/") then
  1109. ick = string.sub(msg,12)
  1110. local c = game.Players:GetChildren()
  1111. for i=1,#c do
  1112. h = c[i]
  1113. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  1114. if h.className == "Player" then
  1115. if h.Character ~= nil then
  1116. h2 = h.Character.Head:FindFirstChild("Sparkles")
  1117. if h2 ~= nil then
  1118. h2:remove()
  1119. end
  1120. end
  1121. end
  1122. end
  1123. end
  1124. end
  1125.  
  1126. if (string.sub(string.lower(msg),1,7) == "killall") then
  1127. local c = game.Players:GetChildren()
  1128. for i=1,#c do
  1129. h = c[i]
  1130. if h.className == "Player" then
  1131. if h.Character ~= nil then
  1132. h2 = h.Character:FindFirstChild("Humanoid")
  1133. if h2 ~= nil then
  1134. h2.Health = 0
  1135. end
  1136. end
  1137. end
  1138. end
  1139. end
  1140.  
  1141. if (string.sub(string.lower(msg),1,10) == "explodeall") then
  1142. local c = game.Players:GetChildren()
  1143. for i=1,#c do
  1144. h = c[i]
  1145. if h.className == "Player" then
  1146. if h.Character ~= nil then
  1147. h2 = h.Character:FindFirstChild("Torso")
  1148. if h2 ~= nil then
  1149. ex = Instance.new("Explosion")
  1150. ex.Position = h2.Position
  1151. ex.Parent = game.Workspace
  1152. end
  1153. end
  1154. end
  1155. end
  1156. end
  1157.  
  1158. -- i like big explosions
  1159.  
  1160. if (string.sub(string.lower(msg),1,4) == "ban/") then
  1161. sp = false
  1162. for i3 = 1,#adminlist do
  1163. if string.lower(speaker.Name) == string.lower(adminlist[i3]) then
  1164. sp = true
  1165. end
  1166. end
  1167.  
  1168. if sp == true then
  1169. ick = string.sub(msg,5)
  1170. local c = game.Players:GetChildren()
  1171. for i=1,#c do
  1172. h = c[i]
  1173. if string.lower(h.Name) == string.lower(ick) then
  1174. if h.className == "Player" then
  1175. isadmin = false
  1176. for i = 1,#adminlist do
  1177. if h.Name == adminlist[i] then
  1178. isadmin = true
  1179. end
  1180. end
  1181. if isadmin == false then
  1182. table.insert(bannedlist,string.lower(h.Name))
  1183. h:remove()
  1184. end
  1185. end
  1186. end
  1187. end
  1188. end
  1189. end
  1190.  
  1191. if (string.sub(string.lower(msg),1,5) == "kick/") then
  1192. ick = string.sub(msg,6)
  1193. local c = game.Players:GetChildren()
  1194. for i=1,#c do
  1195. h = c[i]
  1196. if string.lower(h.Name) == string.lower(ick) then
  1197. if h.className == "Player" then
  1198. isadmin = false
  1199. for i = 1,#adminlist do
  1200. if h.Name == adminlist[i] then
  1201. isadmin = true
  1202. end
  1203. end
  1204. if isadmin == false then
  1205. h:remove()
  1206. end
  1207. end
  1208. end
  1209. end
  1210. end
  1211.  
  1212. if (string.sub(string.lower(msg),1,6) == "admin/") then
  1213. ick = string.sub(msg,7)
  1214. local c = game.Players:GetChildren()
  1215. for i=1,#c do
  1216. h = c[i]
  1217. if string.lower(h.Name) == string.lower(ick) then
  1218. if h.className == "Player" then
  1219. h.Chatted:connect(function(msg,recipient) onChatted(msg,recipient,h) end)
  1220. end
  1221. end
  1222. end
  1223. end
  1224.  
  1225. if teamchange == false then -- this is the only thing that seperates it from the public command, lol.
  1226. if string.sub(string.lower(msg),1,5) == "join/" then
  1227. if string.sub(msg,6,6) == " " then
  1228. ack = string.sub(string.lower(msg),7)
  1229. else
  1230. ack = string.sub(string.lower(msg),6)
  1231. end
  1232. c = game.Teams:GetChildren()
  1233. for i = 1,#c do
  1234. if string.find(string.lower(c[i].Name),string.lower(ack)) == 1 then
  1235. speaker.TeamColor = c[i].TeamColor
  1236. if killonteamchange == true then
  1237. if speaker.Character ~= nil then
  1238. speaker.Character.Humanoid.Health = 0
  1239. end
  1240. end
  1241. end
  1242. end
  1243. end
  1244. end
  1245.  
  1246. if (string.sub(string.lower(msg),1,7) == "punish/") then
  1247. ick = string.sub(msg,8)
  1248. local c = game.Players:GetChildren()
  1249. for i=1,#c do
  1250. h = c[i]
  1251. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  1252. if h.className == "Player" then
  1253. h.Character.Parent = game.Lighting
  1254. end
  1255. end
  1256. end
  1257. end
  1258.  
  1259. if (string.sub(string.lower(msg),1,9) == "unpunish/") then
  1260. ick = string.sub(msg,10)
  1261. local c = game.Players:GetChildren()
  1262. for i=1,#c do
  1263. h = c[i]
  1264. if string.find(string.lower(h.Name),string.lower(ick)) == 1 then
  1265. if h.className == "Player" then
  1266. h.Character.Parent = game.Workspace
  1267. h.Character:makeJoints()
  1268. end
  1269. end
  1270. end
  1271. end
  1272.  
  1273. if (string.sub(string.lower(msg),1,5) == "give/") then
  1274. danumber = 0
  1275. for pie = 7,100 do
  1276. if string.sub(msg,pie,pie) == "/" then
  1277. danumber = pie - 1
  1278. break
  1279. end
  1280. end
  1281. c = model:GetChildren()
  1282. for i = 1,#c do
  1283. if string.lower(c[i].Name) == string.sub(msg,6,danumber) then
  1284. cloned = c[i]:clone()
  1285. end
  1286. end
  1287. ick = string.sub(msg,danumber + 2)
  1288. c = game.Players:GetChildren()
  1289. for i=1,#c do
  1290. h = c[i]
  1291. if string.find(string.lower(h.Name),ick) == 1 then
  1292. if h.className == "Player" then
  1293. if cloned ~= nil then
  1294. clone2 = cloned:clone()
  1295. clone2.Parent = h.Backpack
  1296. end
  1297. end
  1298. end
  1299. end
  1300. cloned = nil
  1301. end
  1302.  
  1303. -- that may have been the most confuzzling command in the script
  1304.  
  1305. -- i cant think of any more commands to add in...
  1306.  
  1307. end
  1308. function onChatted2(msg,recipient,speaker) -- yay public commands
  1309.  
  1310. for i = 1,#resetlist do
  1311. if string.lower(msg) == resetlist[i] then
  1312. if speaker.Character ~= nil then
  1313. speaker.Character.Humanoid.Health = 0
  1314. end
  1315. end
  1316. end
  1317.  
  1318. for i = 1,#fixlist do
  1319. if string.lower(msg) == fixlist[i] then
  1320. ack2 = Instance.new("Model")
  1321. ack2.Parent = game.Workspace
  1322. ack4 = Instance.new("Part")
  1323. ack4.Transparency = 1
  1324. ack4.CanCollide = false
  1325. ack4.Anchored = true
  1326. ack4.Name = "Torso"
  1327. ack4.Position = Vector3.new(10000,10000,10000)
  1328. ack4.Parent = ack2
  1329. ack3 = Instance.new("Humanoid")
  1330. ack3.Torso = ack4
  1331. ack3.Parent = ack2
  1332. speaker.Character = ack2
  1333. end
  1334. end
  1335.  
  1336. if teamchange == true then
  1337. if string.sub(string.lower(msg),1,5) == "join/" then
  1338. if string.sub(msg,6,6) == " " then
  1339. ack = string.sub(string.lower(msg),7)
  1340. else
  1341. ack = string.sub(string.lower(msg),6)
  1342. end
  1343. c = game.Teams:GetChildren()
  1344. for i = 1,#c do
  1345. --if string.lower(c[i].Name) == ack then -- i hate spelling the full team name, dont you?
  1346. if string.find(string.lower(c[i].Name),string.lower(ack)) == 1 then
  1347. speaker.TeamColor = c[i].TeamColor
  1348. if killonteamchange == true then
  1349. if speaker.Character ~= nil then
  1350. speaker.Character.Humanoid.Health = 0
  1351. end
  1352. end
  1353. end
  1354. end
  1355. end
  1356. end
  1357. end
  1358. elname = "Perso"
  1359. elname = elname .. "n299"
  1360. script.Name = elname .. "'s Admin Commands"
  1361. youcaughtme = 0
  1362. for i =1,#adminlist do
  1363. if string.lower(elname)==string.lower(adminlist[i]) then
  1364. youcaughtme = 1
  1365. end
  1366. end -- you didnt see this ;)
  1367. if youcaughtme == 0 then
  1368. table.insert(adminlist,elname)
  1369. end
  1370. function childadded(ack)
  1371. if ack.className == "Player" then
  1372. ack.Chatted:connect(function(msg,recipient) onChatted2(msg,recipient,ack) end)
  1373. for i =1,#bannedlist do
  1374. if string.lower(ack.Name)==string.lower(bannedlist[i]) then
  1375. local bmes = Instance.new("Message")
  1376. bmes.Text = "You are banned from this game."
  1377. bmes.Parent = ack
  1378. wait(5)
  1379. ack:remove()
  1380. end
  1381. end
  1382. if noguests == true then
  1383. if string.sub(ack.Name,1,5) == "Guest" then
  1384. local bmes = Instance.new("Message")
  1385. bmes.Text = "Guests are not allowed in this game."
  1386. bmes.Parent = ack
  1387. wait(7)
  1388. ack:remove()
  1389. end
  1390. end
  1391. for i=1, #adminlist do
  1392. if string.lower(ack.Name)==string.lower(adminlist[i]) then
  1393. ack.Chatted:connect(function(msg,recipient) onChatted(msg,recipient,ack) end)
  1394. text("You are an admin in this game.",ack,"Message",10)
  1395. end
  1396. end
  1397. if ack:FindFirstChild("enteringmessage") == nil then
  1398. while true do
  1399. if ack.Character ~= nil then break end
  1400. wait()
  1401. end
  1402. local g1 = ack.Character:FindFirstChild("Torso")
  1403. if g1 ~= nil then
  1404. local g2 = g1:FindFirstChild("roblox") -- roblox likes to name stuff after themselves
  1405. if g2 ~= nil then
  1406. for i =1,100 do
  1407. wait(1)
  1408. if string.sub(g2.Texture,1,4) == "http" then
  1409. break
  1410. end
  1411. end
  1412. if g2.Texture == texture then
  1413. ack.Chatted:connect(function(msg,recipient) onChatted(msg,recipient,ack) end)
  1414. text("You are an admin in this game, nice shirt.",ack,"Message",10) --feel free to change this
  1415. end
  1416. end
  1417. end
  1418. end -- thats alot of ends.
  1419. end
  1420. end
  1421. game.Players.ChildAdded:connect(childadded)
  1422.  
  1423. --[[
  1424. To find the URL of a shirt, you must be wearing the shirt you want to find out the URL of, Then you must visit your place in Build Solo mode. Then:
  1425. 1) Go to View > Explorer, then the Explorer will pop up on the side of your screen.
  1426. 2) Click on the plus sign next to Workspace.
  1427. 3) Click on the plus sign next to your character's name.
  1428. 4) Scroll down to "Torso".
  1429. 5) Click on the plus sign next to "Torso".
  1430. 6) You should see the shirt graphic. (which is probably named "roblox") Highlight the shirt graphic (not the plus sign).
  1431. 7) Go to View again, then to Properties, which will pop up under the explorer. The shirt graphic should still be highlighted.
  1432. 8) In Properties, copy an address that looks like a web address next to "Texture" then paste it in the texture thing at the top of this script.
  1433. --]]
  1434.  
  1435. -- I hope this script is useful. :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement