Advertisement
LRDZ

person299's admin commands

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