Advertisement
yamanohera155233

tabs

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