Advertisement
CreeperReaper48

Secret command bar script

Nov 18th, 2018
1,988
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 29.13 KB | None | 0 0
  1. Debuggers = {"ChicagoOutfitBot"} -- Add some friends
  2. Banned = {""} -- Add some noobs
  3. TorsoItis = {} -- Leave this free
  4. --[[ Started as debugger system by ss1122, now one of the strongest admin scripts.
  5. Commands:
  6. =============
  7. c:t
  8. - Toggles fake bubble chat. use this to change the bubble chat bar into a command bar.
  9. - c:t
  10.  
  11. db
  12. - Removes any stuck messages from your screen.
  13. - db
  14.  
  15. l:o
  16. - Names the Lighting service "Lighting". See l:u.
  17. - l:o
  18.  
  19. l:u
  20. - Names the Lighting service "Lighting:Unavailable". Use this to stop scripts that try to acces game.Lighting. See l:o
  21. - l:u
  22.  
  23. n:s
  24. - Shuts the NetworkServer down. Might not work due to the updates locking the parent
  25. property of NetworkServer
  26. - n:s
  27.  
  28. p:k:playername
  29. - Kills the player with that playername. If player is nil it will affect the last affected.
  30. - p:k:ss
  31.  
  32. p:m:playername
  33. - Bans the player with that playername. If player is nil it will affect the last affected.
  34. - p:m:ss
  35.  
  36. p:o
  37. - Names the Players service "Players". See p:u.
  38. - p:o
  39.  
  40. p:t:number of 3 digts:playername
  41. - Gives the player with the given playername no-torso itis the given amount of times.
  42. The amount must always be 3 digts, else it doesn't work. If player is nil it will affect the last affected.
  43. *Warning* 999 times will loopkill the player for 82 minutes. Only use it when you think someone
  44. is not even worthy enouch to be banned.
  45. - p:t:005:ss
  46. Gives the player wich the name starts with ss No-Torso Itis 5 times.
  47.  
  48. pt.shape(.a)(.ac)(.p100,016,010)(.s005, 005, 005)(.BrickColor)
  49. - Creates a part with the given shape on the position p (default is 000, 005, 000) and
  50. size s (default is 003, 003, 003) and the given BrickColor. Everything between brackets isn't
  51. needed to let it work. The things given with 3 digts must be written with 3 digts. BrickColor can
  52. be a string or a number. put a in it to make the brick anchored and put ac in it to make it move up
  53. till it isn't stuck in any bricks. Use sl. instead of pt. to make a spawnlocation. *Glitch*
  54. when you say some thing that starts with sl or pt it makes the default object of it.
  55. - pt.block.p000,999,000.s400,400,400.Black
  56. Above creates a gaint black meteor block.
  57.  
  58. p:u
  59. - Names the Players service "Players:Unavailable". Use this to stop scripts that try to acces game.Players. See p:o
  60. - p:u
  61.  
  62. sl.shape(.a)(.ac)(.p100,016,010)(.s005, 005, 005)(.BrickColor)
  63. - See pt. This one creates a spawn instead of a part.
  64. - sl.block.a.ac.p000,000,000.s005,002,005.21
  65. Above creates a normal sized red spawn that will be placed right on the base.
  66.  
  67. s:s
  68. - Removes script. This will unban everyone, stop every No-Torso Itis stop the possibility to
  69. use commands etc. Use this when you want to update or accidently banned a friend.
  70. -s:s
  71.  
  72. w:b
  73. - Breaks joints of workspace
  74. - w:b
  75.  
  76. w:c
  77. - Cleans the workspace. Progress bar and estimated time
  78. - w:c
  79.  
  80. w:e
  81. - Shows all members of workspace.
  82. - w:e
  83.  
  84. w:o
  85. - Names the Workspace service "Workspace". See w:u.
  86. - w:o
  87.  
  88. w:u
  89. - Names the Workspace service "Workspace:Unavailable". Use this to stop scripts that try to acces game.Workspace. See w:o
  90. - w:u
  91. ]]
  92. script.Name = "script"
  93. Debris = game:service("Debris")
  94. script.Parent = Debris
  95. marmar = {}
  96. billmar = {}
  97. charsize = 6
  98. flashtime = 0.3
  99. updaterate = 0.02
  100. maxchilds = 15
  101. antilagtime = 0.2
  102. showtime = 10
  103. ado = "Head"
  104. show = true
  105. FlashColors = {Color3.new(0, 0, 0), Color3.new(1, 1, 1)}
  106. MSG = Instance.new("ScreenGui")
  107. MSG.Name = "MSG"
  108. MG = Instance.new("TextLabel")
  109. MG.Name = "MG"
  110. MG.Position = UDim2.new(0, 70, 0 , 110)
  111. MG.BorderSizePixel = 1
  112. MG.Text = ""
  113. MG.BackgroundColor3 = Color3.new(0.9, 0.9, 0.9)
  114. MG.BorderColor3 = FlashColors[1]
  115. MG.TextColor3 = Color3.new(0, 0, 0)
  116. MG.Transparency = 0.2
  117. MG.Parent = MSG
  118. PB = Instance.new("Frame")
  119. PB.ZIndex = 2
  120. PB.Visible = false
  121. PB.Name = "PB"
  122. PB.Position = UDim2.new(0, 5, 1.1, 0)
  123. PB.Size = UDim2.new(0, 0, 0, 8)
  124. PB.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
  125. PB.BorderColor3 = Color3.new(0.2, 0.2, 0.2)
  126. PB.Parent = MG
  127. PBFramet = Instance.new("TextLabel")
  128. PBFramet.BackgroundTransparency = 1
  129. PBFramet.ZIndex = 2
  130. PBFramet.Name = "PBFrame"
  131. PBFramet.Position = UDim2.new(0, -2, 0, -2)
  132. PBFramet.Size = UDim2.new(0, 139, 0, 12)
  133. PBFramet.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  134. PBFramet.Text = "0%"
  135. PBFramet.TextColor3 = Color3.new(0, 0, 0)
  136. PBFramet.BorderColor3 = Color3.new(0, 0, 0)
  137. PBFramet.Parent = PB
  138. PBFrame = Instance.new("Frame")
  139. PBFrame.Name = "PBFrame"
  140. PBFrame.Position = UDim2.new(0, 0, 0, 0)
  141. PBFrame.Size = UDim2.new(1, 0, 1, 0)
  142. PBFrame.BackgroundColor3 = Color3.new(0.5, 0.5, 0.5)
  143. PBFrame.BorderColor3 = Color3.new(0, 0, 0)
  144. PBFrame.Parent = PBFramet
  145. BillGui = Instance.new("BillboardGui")
  146. BillGui.Name = "BillGui"
  147. BillGui.Size = UDim2.new(0, 1, 0, 1)
  148. BillGui.StudsOffset = Vector3.new(0, 0.1, 0)
  149.  
  150. function addframeo(s, p, z)
  151. local tf = Instance.new("Frame")
  152. if z == nil then
  153. tf.ZIndex = 2
  154. else
  155. tf.ZIndex = z
  156. end
  157. tf.Parent = BillGui
  158. tf.BackgroundColor3 = Color3.new(0.04,0.04,0.04)
  159. tf.Position = p
  160. tf.Size = s
  161. return tf
  162. end
  163. function addframe(s, p, z)
  164. local tf = Instance.new("Frame")
  165. if z == nil then
  166. tf.ZIndex = 2
  167. else
  168. tf.ZIndex = z
  169. end
  170. tf.Parent = n
  171. tf.BackgroundColor3 = Color3.new(0.04,0.04,0.04)
  172. tf.Position = p
  173. tf.Size = s
  174. return tf
  175. end
  176. function addframe2(s, p, z)
  177. local tf = Instance.new("Frame")
  178. if z == nil then
  179. tf.ZIndex = 2
  180. else
  181. tf.ZIndex = z
  182. end
  183. tf.Parent = n
  184. tf.BackgroundColor3 = Color3.new(0.9,0.9,0.9)
  185. tf.Position = p
  186. tf.Size = s
  187. return tf
  188. end
  189.  
  190. n = addframeo(UDim2.new(0, 6, 0, 6), UDim2.new(0, -3, 0, -3))
  191. thickness = 6
  192. addframe(UDim2.new(0, thickness, 1, 0),UDim2.new(0, -1, 0, 0))
  193. addframe(UDim2.new(1, 0, 0, thickness),UDim2.new(0, 0, 0, -1))
  194. addframe(UDim2.new(0, thickness, 1, 0),UDim2.new(1, -2, 0, 0))
  195. addframe(UDim2.new(0.6, 0, 0, thickness),UDim2.new(0, 0, 1, -1))
  196.  
  197. thickness = 6
  198. amm = 0.4 / (0.004 * thickness)
  199. for j = 1, amm do
  200. ydis = -40
  201. startpos = UDim2.new(0, 0, 0, 0)
  202. xdis = -(0.5 + j * (0.004 * thickness) * 250 - 104) + 25
  203. num = math.ceil(math.sqrt(math.abs(xdis^2) + math.abs(ydis^2))/thickness)
  204. clux = xdis / num
  205. cluy = ydis / num
  206. for i = 1, num do
  207. addframe2(UDim2.new(0, thickness, 0, thickness), startpos + UDim2.new(0, clux * i - 3, 0, cluy * i + 3))
  208. end
  209. end
  210.  
  211. thickness = 6
  212. xdis = 25
  213. ydis = -40
  214. num = math.ceil(math.sqrt(math.abs(xdis^2) + math.abs(ydis^2))/thickness)
  215. startpos = UDim2.new(0, 0, 0, 0)
  216. clux = xdis / num
  217. cluy = ydis / num
  218. for i = 1, num do
  219. addframe(UDim2.new(0, thickness, 0, thickness), startpos + UDim2.new(0, clux * i - 3, 0, cluy * i + 3), 3)
  220. end
  221.  
  222. thickness = 6
  223. xdis = 125
  224. ydis = -40
  225. num = math.ceil(math.sqrt(math.abs(xdis^2) + math.abs(ydis^2))/thickness)
  226. startpos = UDim2.new(0, 0, 0, 0)
  227. clux = xdis / num
  228. cluy = ydis / num
  229. for i = 1, num do
  230. addframe(UDim2.new(0, thickness, 0, thickness), startpos + UDim2.new(0, clux * i - 3, 0, cluy * i + 3), 3)
  231. end
  232. BillLabel = Instance.new("TextLabel")
  233. BillLabel.Name = "BillLabel"
  234. BillLabel.Text = ""
  235. BillLabel.Position = UDim2.new(0, -125, 0, -77)
  236. BillLabel.Size = UDim2.new(0, 250, 0, 40)
  237. BillLabel.BackgroundColor3 = Color3.new(0.9,0.9,0.9)
  238. BillLabel.TextColor3 = Color3.new(0.04,0.04,0.04)
  239. BillLabel.Parent = n
  240. n = BillLabel
  241. addframe(UDim2.new(0, thickness, 1, 0),UDim2.new(0, -1, 0, 0))
  242. addframe(UDim2.new(1, 0, 0, thickness),UDim2.new(0, 0, 0, -1))
  243. addframe(UDim2.new(0, thickness, 1, 0),UDim2.new(1, -2, 0, 0))
  244. addframe(UDim2.new(0.6, 0, 0, thickness),UDim2.new(0, 0, 1, -1))
  245. --There were 4855 frames; I made it less due to lag. now 277 frames
  246.  
  247. Command = Instance.new("ScreenGui")
  248. Command.Name = "Command"
  249. BV = Instance.new("BoolValue")
  250. BV.Name = "BV"
  251. BV.Value = false
  252. BV.Parent = Command
  253. CommandBox = Instance.new("TextBox")
  254. CommandBox.Name = "CommandBox"
  255. CommandBox.Text = ""
  256. CommandBox.BackgroundColor3 = Color3.new(0.84,0.84,0.84)
  257. CommandBox.BorderColor3 = Color3.new(0.04,0.04,0.04)
  258. CommandBox.TextColor3 = Color3.new(0.04,0.04,0.04)
  259. CommandBox.Position = UDim2.new(0, 0, 1, -21)
  260. CommandBox.Size = UDim2.new(1, -1, 0, 20)
  261. CommandBox.Parent = Command
  262. Tn = "SetupProxy"
  263. function fcm(box, player)
  264. box = player.PlayerGui.Command.CommandBox -- Small fix
  265. if box.Parent.BV.Value == false and script.Parent ~= nil then
  266. box.Parent.BV.Value = true
  267. delay(0.1, function() box.Parent.BV.Value = false end)
  268. box.Text = textrecovery(box.Text)
  269. local txt = box.Text
  270. if show == true then
  271. local c = player.Character
  272. if c == nil then return end
  273. local h = c:findFirstChild(ado)
  274. if h == nil then return end
  275. billmar = checktable(billmar, true)
  276. local i
  277. for i = 1, #billmar do
  278. if billmar[i].Adornee == h then
  279. billmar[i].Frame.Position = billmar[i].Frame.Position + UDim2.new(0, 70, 0, -60)
  280. end
  281. end
  282. local b = BillGui:Clone()
  283. billmar[#billmar+1] = b
  284. b.Parent = w
  285. b.Frame.BillLabel.Text = txt
  286. b.Adornee = h
  287. Debris:AddItem(b, showtime)
  288. end
  289. cmd(txt)
  290. end
  291. end
  292. function checkUnit(num, prevnum)
  293. local yup = {}
  294. yup[1] = false
  295. while num > flashtime do
  296. num = num - flashtime
  297. end
  298. yup[2] = num
  299. if num < prevnum then yup[1] = true end
  300. return yup
  301. end
  302. function checktable(table, parentneeded)
  303. local i
  304. local t = {}
  305. for i = 1, #table do
  306. if table[i] ~= nil then
  307. if string.lower(type(table[i])) == "userdata" then
  308. if parentneeded == true then
  309. if table[i].Parent ~= nil then
  310. if table[i].Parent.Parent ~= nil then
  311. t[#t + 1] = table[i]
  312. end
  313. end
  314. else
  315. t[#t + 1] = table[i]
  316. end
  317. end
  318. end
  319. end
  320. return t
  321. end
  322. function textrecovery(msg)
  323. local len = string.len(msg)
  324. local i
  325. local r = ""
  326. local ps = ""
  327. local pps = ""
  328. local ns = ""
  329. for i = 1, len do
  330. local s = string.sub(msg, i, i)
  331. if i == 1 then
  332. s = string.upper(s)
  333. local ps = ""
  334. elseif i == 2 then
  335. local pps = ""
  336. else
  337. ps = string.sub(msg, i-1, i-1)
  338. end
  339. if i == len then
  340. ns = ""
  341. else
  342. ns = string.sub(msg, i+1, i+1)
  343. end
  344. if s == ";" then
  345. if ps ~= "/" then
  346. s = ":"
  347. end
  348. end
  349. if s == "/" then
  350. if ps ~= "/" and ns ~= "1" then
  351. s = "?"
  352. end
  353. if ns == "/" or ns == "1" then
  354. s = ""
  355. end
  356. end
  357. if s == "1" then
  358. if ps ~= "/" then
  359. s = "!"
  360. end
  361. end
  362. if (ps == "" or ps == " ") and s == "i" and (ns == "" or ns == " " or ns == "'" or ns == "," or ns == "." or ns
  363.  
  364. == "?" or ns == "!") then
  365. s = "I"
  366. end
  367. if string.lower(ps) == "x" and string.lower(s) == "d" then
  368. s = "D"
  369. end
  370. if string.lower(pps) == "." or string.lower(pps) == "!" or string.lower(pps) == "?" then
  371. s = string.upper(s)
  372. end
  373. r = r .. s
  374. end
  375. return r
  376. end
  377. function msg(mg, time, error)
  378. local txt = ""
  379. if error == true then
  380. txt = txt.."Error: "
  381. end
  382. txt = txt .. mg
  383. mar = {}
  384. for i=1,#Debuggers do
  385. local cer = ply:getChildren()
  386. p = nil
  387. for h = 1,#cer do
  388. if string.lower(cer[h].Name) == Debuggers[i] then p = cer[h] end
  389. end
  390. if p~=nil then
  391. pp = p:findFirstChild("PlayerGui")
  392. if pp ~= nil then
  393. mar[#mar+1] = MSG:clone()
  394. mar[#mar].MG.Text = txt
  395. mar[#mar].MG.Size = UDim2.new(0, string.len(txt)*charsize, 0, 40)
  396. mar[#mar].Parent = p.PlayerGui
  397. end
  398. end
  399. end
  400. local waited = 0
  401. local prevnum = 0
  402. while waited < time do
  403. waited = waited + wait()
  404. local u = checkUnit(waited, prevnum)
  405. prevnum = u[2]
  406. if u[1] == true then
  407. for i = 1,#mar do
  408. if mar[i].MG.BorderColor3 == FlashColors[2] then
  409. mar[i].MG.BorderColor3 = FlashColors[1]
  410. else
  411. mar[i].MG.BorderColor3 = FlashColors[2]
  412. end
  413. end
  414. end
  415. end
  416. if time == 0 or time == nil then wait() end
  417. for i = 1,#mar do
  418. mar[i]:remove()
  419. end
  420. end
  421. function progremdel(time, error)
  422. if error == true then
  423. txt = txt.."Error: "
  424. end
  425. mar = {}
  426. for i=1,#Debuggers do
  427. local cer = ply:getChildren()
  428. p = nil
  429. for h = 1,#cer do
  430. if string.lower(cer[h].Name) == Debuggers[i] then p = cer[h] end
  431. end
  432. if p~=nil then
  433. pp = p:findFirstChild("PlayerGui")
  434. if pp ~= nil then
  435. mar[#mar+1] = MSG:clone()
  436. mar[#mar].MG.PB.Visible = true
  437. mar[#mar].Parent = p.PlayerGui
  438. end
  439. end
  440. end
  441. local p=Instance.new("Part")
  442. p.TopSurface = ("Universal")
  443. p.BrickColor = BrickColor.new(141)
  444. p.Name="Base"
  445. p.Size=Vector3.new(512,1.2,512)
  446. p.Locked=true
  447. p.Anchored=true
  448. p.Parent=w
  449. local c = w:getChildren()
  450. local i
  451. local numc = 0
  452. for i = 1 , #c do
  453. if (c[i].className == "Part" and c[i] ~= p) or c[i].className == "SpawnLocation" or c[i].className ==
  454.  
  455. "Hat" or c[i].className == "Tool" or (c[i].className == "Model" and c[i].archivable == true and c[i].Name ~= "Noob Demolisher"
  456.  
  457. and c[i].Name ~= "Chompy" and c[i].Name ~= "Version 2" and c[i].Name ~= "Desu_Only_For_Toadjesse" and c[i].Name ~= "Tehsu") or c
  458.  
  459. [i].className == "Sound" or c[i].className == "Message" or c[i].className == "Seat" or c[i].className == "Hint" then
  460. numc = numc + 1
  461. end
  462. end
  463. local clu = 135 / numc
  464. local did = 0
  465. local i = 1
  466. local waited = time
  467. for i = 1, #c do
  468. local j
  469. for j=1,#Debuggers do
  470. local cer = ply:getChildren()
  471. local p = nil
  472. local h
  473. for h = 1,#cer do
  474. if string.lower(cer[h].Name) == Debuggers[j] then p = cer[h] end
  475. end
  476. if p~=nil then
  477. local pp = p:findFirstChild("PlayerGui")
  478. if pp ~= nil then
  479. local mart = pp:findFirstChild("MSG")
  480. if mart == nil then
  481. mar[#mar+1] = MSG:clone()
  482. mar[#mar].MG.PB.Visible = true
  483. mar[#mar].Parent = p.PlayerGui
  484. end
  485. end
  486. end
  487. end
  488. local text = ""
  489. if (c[i].className == "Part" and c[i] ~= p) or c[i].className == "SpawnLocation" or c[i].className ==
  490.  
  491. "Hat" or c[i].className == "Tool" or (c[i].className == "Model" and c[i].archivable == true and c[i].Name ~= "Noob Demolisher"
  492.  
  493. and c[i].Name ~= "Chompy" and c[i].Name ~= "Version 2" and c[i].Name ~= "Desu_Only_For_Toadjesse") or c[i].className == "Sound"
  494.  
  495. or c[i].className == "Message" or c[i].className == "Seat" or c[i].className == "Hint" then
  496. if c[i].className == "Sound" then
  497. c[i]:Stop()
  498. end
  499. did = did + 1
  500. local prog1 = did / numc * 100
  501. local prog = math.ceil(waited / (prog1 / 100) - waited)
  502. text = "Estimated time: "..prog.." seconds. Removing " .. c[i].Name .. ", " .. #c[i]:getChildren() .. " childs"
  503. for k = 1,#mar do
  504. mar[k].MG.Size = UDim2.new(0, string.len(text)*charsize, 0, 40)
  505. mar[k].MG.Text = text
  506. mar[k].MG.PB.Size = UDim2.new(0, clu * did, 0, 8)
  507. mar[k].MG.PB.PBFrame.Text = tostring(math.floor(prog1)).."%"
  508. end
  509. if #c[i]:getChildren() > maxchilds then waited = waited + wait(antilagtime) end
  510. waited = waited + wait(time)
  511. c[i]:remove()
  512. end
  513. end
  514. for i = 1,#mar do
  515. mar[i]:remove()
  516. end
  517. end
  518. if game:findFirstChild("Players") == nil then
  519. local c = game:getChildren()
  520. for i=1,#c do
  521. if c[i].className == "Players" then
  522. c[i].Name = "Players"
  523. ply = game.Players
  524. msg("Fixed players", 2, false)
  525. end
  526. end
  527. if game:findFirstChild("Players") == nil then
  528. game:service("Players").Parent = game
  529. ply = game.Players
  530. msg("Created players", 2, false)
  531. end
  532. end
  533. ply = game.Players
  534. if game:findFirstChild("Workspace") == nil then
  535. msg("No workspace", 2, true)
  536. local c = game:getChildren()
  537. for i=1,#c do
  538. if c[i].className == "Workspace" then
  539. c[i].Name = "Workspace"
  540. msg("Fixed workspace", 2, false)
  541. end
  542. end
  543. if game:findFirstChild("Workspace") == nil then
  544. game:service("Workspace").Parent = game
  545. msg("Created workspace", 2, false)
  546. end
  547. end
  548. w = game.Workspace
  549. t = w:findFirstChild(Tn)
  550. if t ~= nil then t = t:clone() end
  551. if game:findFirstChild("Lighting") == nil then
  552. msg("No lighting", 2, true)
  553. local c = game:getChildren()
  554. for i=1,#c do
  555. if c[i].className == "Lighting" then
  556. c[i].Name = "Lighting"
  557. msg("Fixed lighting", 2, false)
  558. end
  559. end
  560. if game:findFirstChild("Lighting") == nil then
  561. game:service("Lighting").Parent = game
  562. msg("Created lighting", 2, false)
  563. end
  564. end
  565. ligt = game.Lighting
  566. function cmd(mb)
  567. if script.Parent~=nil then
  568. m = string.lower(mb)
  569. if string.sub(m,1,4)=="w:e" then
  570. if m=="w:e" then
  571. msg("Exploring "..w.Parent.Name.."."..w.Name, 1, false)
  572. local c = w:getChildren()
  573. local i = 1
  574. local ss = 0
  575. local ps = 0
  576. local cs = 0
  577. local sts = 0
  578. for i = 1, #c do
  579. if c[i].Name~="Script" and c[i].className~="Part" and c[i].className~="Camera" and c
  580.  
  581. [i].className~="Seat" then
  582. msg(c[i].Name, 1, false)
  583. else
  584. if c[i].Name=="Script" then
  585. ss=ss+1
  586. elseif c[i].className=="Part" then
  587. ps=ps+1
  588. elseif c[i].className=="Camera" then
  589. cs=cs+1
  590. elseif c[i].className=="Seat" then
  591. sts=sts+1
  592. end
  593. end
  594. end
  595. msg(tostring(ss).." Script(s)", 1, false)
  596. msg(tostring(ps).." Part(s)", 1, false)
  597. msg(tostring(cs).." Camera(s)", 1, false)
  598. msg(tostring(sts).." Seat(s)", 1, false)
  599. else
  600. local ex = nil
  601. local i = 0
  602. local c = w:getChildren()
  603. for i = 1,#c do
  604. if string.lower(c[i].Name) == string.lower(string.sub(m, 6)) then ex = c[i] end
  605. end
  606. if ex~=nil then
  607. msg("Exploring "..ex.Parent.Name.."."..ex.Name, 1, false)
  608. local c = ex:getChildren()
  609. local i = 1
  610. local ss = 0
  611. local ps = 0
  612. local cs = 0
  613. local sts = 0
  614. for i = 1, #c do
  615. if c[i].Name~="Script" and c[i].className~="Part" and c[i].className~="Camera"
  616.  
  617. and c[i].className~="Seat" then
  618. msg(c[i].Name, 1, false)
  619. else
  620. if c[i].Name=="Script" then
  621. ss=ss+1
  622. elseif c[i].className=="Part" then
  623. ps=ps+1
  624. elseif c[i].className=="Camera" then
  625.  
  626.  
  627. cs=cs+1
  628. elseif c[i].className=="Seat" then
  629. sts=sts+1
  630. end
  631. end
  632. end
  633. msg(tostring(ss).." Script(s)", 1, false)
  634. msg(tostring(ps).." Part(s)", 1, false)
  635. msg(tostring(cs).." Camera(s)", 1, false)
  636. msg(tostring(sts).." Seat(s)", 1, false)
  637. end
  638. end
  639. end
  640. if m=="c:t" then
  641. show = not show
  642. end
  643. if m=="f:sb" then
  644. msg("Fixing sb", 1)
  645. t:clone().Parent = w
  646. end
  647. if m=="w:c" then
  648. msg("Cleaning up "..w.Parent.Name.."."..w.Name, 1)
  649. progremdel(0.015)
  650. end
  651. if m=="w:b" then
  652. msg("Breaking joints of "..w.Parent.Name.."."..w.Name, 1, false)
  653. w:BreakJoints()
  654. end
  655. if m=="w:o" then
  656. msg("Opening "..w.Parent.Name.."."..w.Name, 1, false)
  657. w.Name = "Workspace"
  658. end
  659. if m=="w:u" then
  660. msg("Making "..w.Parent.Name.."."..w.Name.." unavailable", 1, false)
  661. w.Name = "Workspace:Unavailable"
  662. end
  663. if m=="p:o" then
  664. msg("Opening "..ply.Parent.Name.."."..ply.Name, 1, false)
  665. ply.Name = "Players"
  666. end
  667. if m=="p:u" then
  668. msg("Making "..ply.Parent.Name.."."..ply.Name.." unavailable", 1, false)
  669. ply.Name = "Players:Unavailable"
  670. end
  671. if m=="l:o" then
  672. msg("Opening "..ligt.Parent.Name.."."..ligt.Name, 1, false)
  673. ligt.Name = "Lighting"
  674. end
  675. if m=="l:u" then
  676. msg("Making "..ligt.Parent.Name.."."..ligt.Name.." unavailable", 1, false)
  677. ligt.Name = "Lighting:Unavailable"
  678. end
  679. if m=="l:c" then
  680. msg("Resetting "..ligt.Parent.Name.."."..ligt.Name, 1, false)
  681. ligt.Ambient=Color3.new(0.8,0.8,0.8)
  682. ligt.ColorShift_Top=Color3.new(0,0,0)
  683. ligt.ColorShift_Bottom=Color3.new(0,0,0)
  684. end
  685. if m=="db" then
  686. msg("Removing messages", 1, false)
  687. for i=1,#Debuggers do
  688. p=ply:findFirstChild(Debuggers[i])
  689. if p~=nil then
  690. local pp = p:findFirstChild("PlayerGui")
  691. if pp == nil then return end
  692. local c = pp:getChildren()
  693. local i = 1
  694. for i=1,#c do
  695. if c[i].Name == "MSG" then c[i]:remove() end
  696. end
  697. end
  698. end
  699. end
  700. if m=="s:s" then
  701. msg("Removing script", 1, false)
  702. script.Parent = nil
  703. end
  704. if string.sub(m,1,4)=="p:k:" then
  705. l=string.len(string.sub(m,5))
  706. p=ply:getChildren()
  707. for i=1,#p do
  708. if string.lower(string.sub(p[i].Name,1,l))==string.lower(string.sub(m,5)) then
  709. player=p[i]
  710. end
  711. end
  712. msg("Killing player "..player.Name, 1, false)
  713. if player~=nil then
  714. player.Character:BreakJoints()
  715. end
  716. end
  717. if string.sub(m,1,4)=="p:m:" then
  718. l=string.len(string.sub(m,5))
  719. p=ply:getChildren()
  720. for i=1,#p do
  721. if string.lower(string.sub(p[i].Name,1,l))==string.lower(string.sub(m,5)) then
  722. player=p[i]
  723. end
  724. end
  725. if player~=nil then
  726. msg("Banning player "..player.Name, 1, false)
  727. Banned[#Banned+1] = string.lower(player.Name)
  728. player:remove()
  729. end
  730. end
  731. if string.sub(m,1,4)=="p:t:" then
  732. num = tonumber(string.sub(m, 5, 7))
  733. if num == nil then return end
  734. l=string.len(string.sub(m,9))
  735. p=ply:getChildren()
  736. for i=1,#p do
  737. if string.lower(string.sub(p[i].Name,1,l))==string.lower(string.sub(m,9)) then
  738. player=p[i]
  739. end
  740. end
  741. if player~=nil then
  742. msg("Giving player "..player.Name.." NoTorsoItis "..num.." Times", 1, false)
  743. TorsoItis[#TorsoItis+1] = {}
  744. TorsoItis[#TorsoItis].Name = string.lower(player.Name)
  745. TorsoItis[#TorsoItis].Number = num
  746. end
  747. end
  748. if string.sub(m,1,3)=="mt:" then
  749. m = mb
  750. local e = false
  751. local t = 0
  752. m = string.sub(m,4)
  753. if string.lower(string.sub(m,1,2))=="e:" then
  754. e = true
  755. m = string.sub(m,3)
  756. end
  757. t = tonumber(string.sub(m,1,1))
  758. m = string.sub(m,3)
  759. msg(m ,t ,e)
  760. end
  761. if m == "al:rj" then
  762. welds = {}
  763. for _,v in pairs(game.JointsService:GetChildren()) do
  764. if v:IsA("JointInstance") then
  765. table.insert(welds,v)
  766. end
  767. end
  768.  
  769. welds2 = {}
  770. while true do
  771. local p = workspace:FindFirstChild("Weld",true)
  772. if p == nil then break end
  773. if p:IsA("JointInstance") then table.insert(p,welds) end
  774. table.insert(p,welds2)
  775. p.Name = "Weld!"
  776. end
  777. for _,v in pairs(welds2) do
  778. v.Name = "Weld"
  779. end
  780.  
  781. welds2 = {}
  782. while true do
  783. local p = workspace:FindFirstChild("Snap",true)
  784. if p == nil then break end
  785. if p:IsA("JointInstance") then table.insert(p,welds) end
  786. table.insert(p,welds2)
  787. p.Name = "Snap!"
  788. end
  789. for _,v in pairs(welds2) do
  790. v.Name = "Snap"
  791. end
  792.  
  793. welds2 = {}
  794. while true do
  795. local p = workspace:FindFirstChild("Glue",true)
  796. if p == nil then break end
  797. if p:IsA("JointInstance") then table.insert(p,welds) end
  798. table.insert(p,welds2)
  799. p.Name = "Glue!"
  800. end
  801. for _,v in pairs(welds2) do
  802. v.Name = "Glue"
  803. end
  804.  
  805. welds2 = nil
  806.  
  807. n = 0
  808. for _,v in pairs(welds) do
  809. if v.Part0 == nil or v.Part1 == nil then v:Remove() n = n+1
  810. elseif v.Part0.Parent == nil or v.Part1.Parent == nil then v:Remove() n = n+1 end
  811. end
  812.  
  813. msg("Removed "..n.." useless joints.",2)
  814. end
  815. if m=="p:ka" then
  816. msg("Killing all players", 1, false)
  817. p=ply:getChildren()
  818. for i=1,#p do
  819. if p[i].className == "Player" then
  820. if p[i].Character ~= nil then
  821. p[i].Character:BreakJoints()
  822. end
  823. end
  824. end
  825. end
  826. if string.sub(m,1,2)=="sl" then
  827. msag = ""
  828. local s = 1
  829. local a = false
  830. local sx = 3
  831. local sy = 3
  832. local sz = 3
  833. local px = 0
  834. local py = 5
  835. local pz = 0
  836. local ac = false
  837. m = mb
  838. m = string.sub(m,4)
  839. if string.sub(string.lower(m),1,4)=="ball" then
  840. msag = msag .. "Ball"
  841. s = 0
  842. m = string.sub(m,6)
  843. end
  844. if string.sub(string.lower(m),1,5)=="block" then
  845. msag = msag .. "Block"
  846. s = 1
  847. m = string.sub(m,7)
  848. end
  849. if string.sub(string.lower(m),1,8)=="cylinder" then
  850. msag = msag .. "Cylinder"
  851. s = 2
  852. m = string.sub(m,10)
  853. end
  854. if string.sub(string.lower(m),1,1)=="a" and string.sub(string.lower(m),1,2)~="ac" then
  855. a = true
  856. m = string.sub(m,3)
  857. end
  858. if string.sub(string.lower(m),1,2)=="ac" then
  859. ac = true
  860. m = string.sub(m,4)
  861. end
  862. if string.lower(string.sub(m,1,1)) == "p" then
  863. m = string.sub(m,2)
  864. if tonumber(string.sub(m,1,3)) ~= nil then px = tonumber(tonumber(string.sub(m,1,3))) m =
  865.  
  866. string.sub(m,5) end
  867. if tonumber(string.sub(m,1,3)) ~= nil then py = tonumber(tonumber(string.sub(m,1,3))) m =
  868.  
  869. string.sub(m,5) end
  870. if tonumber(string.sub(m,1,3)) ~= nil then pz = tonumber(tonumber(string.sub(m,1,3))) m =
  871.  
  872. string.sub(m,5) end
  873. end
  874. if string.lower(string.sub(m,1,1)) == "s" then
  875. m = string.sub(m,2)
  876. if tonumber(string.sub(m,1,3)) ~= nil then sx = tonumber(tonumber(string.sub(m,1,3))) m =
  877.  
  878. string.sub(m,5) end
  879. if tonumber(string.sub(m,1,3)) ~= nil then sy = tonumber(tonumber(string.sub(m,1,3))) m =
  880.  
  881. string.sub(m,5) end
  882. if tonumber(string.sub(m,1,3)) ~= nil then sz = tonumber(tonumber(string.sub(m,1,3))) m =
  883.  
  884. string.sub(m,5) end
  885. end
  886. b = m
  887. local part = Instance.new("SpawnLocation")
  888. if ac == true then part.Parent = w end
  889. part.BrickColor = BrickColor.new(b)
  890. part.Position = Vector3.new(px, py, pz)
  891. part.formFactor = 0
  892. part.Size = Vector3.new(sx, sy, sz)
  893. part.Anchored = a
  894. part.Shape = s
  895. if ac == false then part.Parent = w end
  896. msg(msag .. " Spawn created", 1)
  897. end
  898. if string.sub(m,1,2)=="pt" then
  899. msag = ""
  900. local s = 1
  901. local a = false
  902. local sx = 3
  903. local sy = 3
  904. local sz = 3
  905. local px = 0
  906. local py = 5
  907. local pz = 0
  908. local ac = false
  909. m = mb
  910. m = string.sub(m,4)
  911. if string.sub(string.lower(m),1,4)=="ball" then
  912. msag = msag .. "Ball"
  913. s = 0
  914. m = string.sub(m,6)
  915. end
  916. if string.sub(string.lower(m),1,5)=="block" then
  917. msag = msag .. "Block"
  918. s = 1
  919. m = string.sub(m,7)
  920. end
  921. if string.sub(string.lower(m),1,8)=="cylinder" then
  922. msag = msag .. "Cylinder"
  923. s = 2
  924. m = string.sub(m,10)
  925. end
  926. if string.sub(string.lower(m),1,1)=="a" and string.sub(string.lower(m),1,2)~="ac" then
  927. a = true
  928. m = string.sub(m,3)
  929. end
  930. if string.sub(string.lower(m),1,2)=="ac" then
  931. ac = true
  932. m = string.sub(m,4)
  933. end
  934. if string.lower(string.sub(m,1,1)) == "p" then
  935. m = string.sub(m,2)
  936. if tonumber(string.sub(m,1,3)) ~= nil then px = tonumber(tonumber(string.sub(m,1,3))) m =
  937.  
  938. string.sub(m,5) end
  939. if tonumber(string.sub(m,1,3)) ~= nil then py = tonumber(tonumber(string.sub(m,1,3))) m =
  940.  
  941. string.sub(m,5) end
  942. if tonumber(string.sub(m,1,3)) ~= nil then pz = tonumber(tonumber(string.sub(m,1,3))) m =
  943.  
  944. string.sub(m,5) end
  945. end
  946. if string.lower(string.sub(m,1,1)) == "s" then
  947. m = string.sub(m,2)
  948. if tonumber(string.sub(m,1,3)) ~= nil then sx = tonumber(tonumber(string.sub(m,1,3))) m =
  949.  
  950. string.sub(m,5) end
  951. if tonumber(string.sub(m,1,3)) ~= nil then sy = tonumber(tonumber(string.sub(m,1,3))) m =
  952.  
  953. string.sub(m,5) end
  954. if tonumber(string.sub(m,1,3)) ~= nil then sz = tonumber(tonumber(string.sub(m,1,3))) m =
  955.  
  956. string.sub(m,5) end
  957. end
  958. b = m
  959. local part = Instance.new("Part")
  960. if ac == true then part.Parent = w end
  961. part.BrickColor = BrickColor.new(b)
  962. part.Position = Vector3.new(px, py, pz)
  963. part.formFactor = 0
  964. part.Size = Vector3.new(sx, sy, sz)
  965. part.Anchored = a
  966. part.Shape = s
  967. if ac == false then part.Parent = w end
  968. msg(msag .. " Part created", 1)
  969. end
  970. if m=="n:s" then
  971. msg("Shutting down networkserver", 1, false)
  972. game.NetworkServer:remove()
  973. ply:remove()
  974. end
  975. end
  976. end
  977. wait()
  978. for i=1,#Debuggers do
  979. local c = ply:getChildren()
  980. p = nil
  981. for j = 1,#c do
  982. if string.lower(c[j].Name) == string.lower(Debuggers[i]) then p = c[j] end
  983. end
  984. if p~=nil then
  985. p.Chatted:connect(cmd)
  986. end
  987. end
  988. for i=1,#Banned do
  989. local c = ply:getChildren()
  990. p = nil
  991. for j = 1,#c do
  992. if string.lower(c[j].Name) == Banned[i] then p = c[j] end
  993. end
  994. if p~=nil then
  995. p:remove()
  996. end
  997. end
  998. ply.PlayerAdded:connect(function(plynew)
  999. if script.Parent~=nil then
  1000. for i=1,#Debuggers do
  1001. if string.lower(plynew.Name) == string.lower(Debuggers[i]) then
  1002. msg("Initiating "..plynew.Name..".",0.3,false)
  1003. msg("Initiating "..plynew.Name.."..",0.3,false)
  1004. msg("Initiating "..plynew.Name.."...",0.3,false)
  1005. msg("Initiating "..plynew.Name..".",0.3,false)
  1006. msg("Initiating "..plynew.Name.."..",0.3,false)
  1007. msg("Initiating "..plynew.Name.."...",0.3,false)
  1008. plynew.Chatted:connect(cmd)
  1009. msg("Commands "..plynew.Name.." Enabled",1.5,false)
  1010. end
  1011. end
  1012. for i=1,#Banned do
  1013. if string.lower(plynew.Name) == string.lower(Banned[i]) then
  1014. local plyn = plynew.Name
  1015. plynew:remove()
  1016. msg("Removed " .. plyn, 0.5)
  1017. end
  1018. end
  1019. end
  1020. end)
  1021. msg("Loaded.", 0.7, false)
  1022. while true do
  1023. if script.Parent ~= nil then
  1024. local j
  1025. for j = 1, #TorsoItis do
  1026. local cer = ply:getChildren()
  1027. local p = nil
  1028. local h
  1029. for h = 1,#cer do
  1030. if string.lower(cer[h].Name) == TorsoItis[j].Name then p = cer[h] end
  1031. end
  1032. if p ~= nil and TorsoItis[j].Number > -1 then
  1033. local m = p:findFirstChild("TorsoItisMessage")
  1034. if m == nil then
  1035. local m = Instance.new("Message")
  1036. m.Name = "TorsoItisMessage"
  1037. m.Text = "You caught No-Torso Itis!"
  1038. m.Parent = p
  1039. end
  1040. local c = p.Character
  1041. if c ~= nil then
  1042. if c.Parent ~= nil then
  1043. local t = c:findFirstChild("Torso")
  1044. if t ~= nil then
  1045. if TorsoItis[j].Number == 0 then
  1046. local m = p:findFirstChild("TorsoItisMessage")
  1047. if m ~= nil then
  1048. p.TorsoItisMessage:remove()
  1049. local m = Instance.new("Message")
  1050. end
  1051. m.Name = "TorsoCureMessage"
  1052. m.Text = "You're cured from No-Torso Itis!"
  1053. m.Parent = p
  1054. Debris:AddItem(m, 2)
  1055. TorsoItis[j].Number = -1 -- Not in use anymore
  1056. end
  1057. if TorsoItis[j].Number ~= -1 then
  1058. t:remove()
  1059. TorsoItis[j].Number = TorsoItis[j].Number - 1
  1060. end
  1061. end
  1062. end
  1063. end
  1064. end
  1065. end
  1066. local j
  1067. checktable(marmar, true)
  1068. print()
  1069. for j=1,#Debuggers do
  1070. local cer = ply:getChildren()
  1071. local p = nil
  1072. local h
  1073. for h = 1,#cer do
  1074. if string.lower(cer[h].Name) == Debuggers[j] then p = cer[h] end
  1075. end
  1076. if p~=nil then
  1077. local pp = p:findFirstChild("PlayerGui")
  1078. if pp ~= nil then
  1079. local mart = pp:findFirstChild("Command")
  1080. if mart == nil then
  1081. marmar[#marmar+1] = Command:clone()
  1082. marmar[#marmar].Parent = p.PlayerGui
  1083. marmar[#marmar].CommandBox.Changed:connect(function(prop)
  1084. if prop == "Text" then
  1085. fcm(marmar[#marmar].CommandBox, p)
  1086. end
  1087. end)
  1088. end
  1089. end
  1090. end
  1091. end
  1092. local i
  1093. for i = 1, #marmar do
  1094. local mmi = marmar[i]
  1095. local mc = mmi:findFirstChild("CommandBox")
  1096. if mc == nil then
  1097. local ps = "N/A"
  1098. local a = mmi
  1099. while a ~= nil do
  1100. a = a.Parent
  1101. if a ~= nil then if a.className == "Player" then ps = a.Name a = nil end end
  1102. end
  1103. if ps == "N/A" then return end
  1104. msg(ps .. " has no command bar.", 1, true)
  1105. if mmi ~= nil then mmi:remove() end
  1106. msg("Fixed "..ps.."'s command bar.", 1)
  1107. end
  1108. end
  1109. else
  1110. break
  1111. end
  1112. wait()
  1113. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement