Advertisement
memberhero

Untitled

Jul 19th, 2016
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.64 KB | None | 0 0
  1.  
  2. script.Parent = nil
  3. bet = "/"
  4. abtime = 50
  5. orbvic = "memberhero"
  6. speakert = nil
  7. scriptsdisabled = true
  8. overide = false
  9. block = Instance.new("Part", workspace)
  10. block.TopSurface = "Smooth"
  11. block.BottomSurface = "Smooth"
  12. block.Anchored = true
  13. block.Size = Vector3.new(5, 5, 5)
  14. block.CFrame = CFrame.new(0, 40, 0)
  15. block.Locked = true
  16. block.Name = "AdminBlock"
  17. Instance.new("Sparkles", block)
  18. fire = Instance.new("Fire", block)
  19. fire.Color = Color3.new(0.25,0.5 ,1)
  20. fire.SecondaryColor = Color3.new(1,1,0)
  21. fire.Size = 100
  22. fire.Heat = 25
  23. orb = Instance.new("Part", workspace)
  24. orb.Name = "cw12323's cba orb"
  25. orb.Anchored = true
  26. orb.Size = Vector3.new(1, 1, 1)
  27. orb.Shape = "Ball"
  28. orb.BrickColor = BrickColor.new("Black")
  29. orb.Reflectance = 0.7
  30. orb.TopSurface = "Smooth"
  31. orb.BottomSurface = "Smooth"
  32. orb.Locked = true
  33. xp = 5
  34. yp = 5
  35. zp = 5
  36. grow = true
  37. bubblechat = true
  38. disabled = {}
  39. BS = 1
  40. statid = 60610675
  41. texts = {"Cannon ball admin made by dsi1 with help from friends", "My name is CBA Talker", "I am programmed to chat certian things", "Be warned certain people have an anti ban", "Your in a server with a CBA admin", "CBA is private only ppl that dsi1 and friends trusts knows where to find CBA", "Good day.", "Color change", "ZOMG! I CAN'T BELIEVE I CAN TALK!", "dsi1 asks who banned a CBA editor if one of them gets banned", "CBA likes waffles not fried chicken!", "Waffles, my favourite food, might hack the server.", "If waffles hack the server I shutdown.", "This is one mega admin", "Remeber this is a private project so if you ask for it BAD Things will happen to you!", "Color change"}
  42. tab = Instance.new("Part")
  43. tab.Name = "CBA Talker"
  44. tab.Parent = game:GetService("Workspace")
  45. tab.TopSurface = "Smooth"
  46. tab.BottomSurface = "Smooth"
  47. tab.Anchored = true
  48. tab.formFactor = "Symmetric"
  49. tab.Size = Vector3.new(2,2,2)
  50. tab.CFrame = CFrame.new(20,5,20)
  51. tab.Locked = true
  52. talkon = true
  53. talktime = 80
  54. laser = Instance.new("SelectionPartLasso")
  55. laser.Part = block
  56. laser.Parent = block
  57. --[[lasers that the script creates goes in the workspace]]
  58. laser.Color = BrickColor.new("Really red")
  59. InsertId = 57570011
  60. priServ = off
  61. scriptid = 60587570
  62. priServList = {"magma16", "cw12323","Freelands1", "BuildBuilder", "rockclan", "ghostbusters1", "tome" "1231234w", "Wil2", "Mar2", "Alexrocks211","super10099", "zacy5000", "Guest 1337",pokeaxel}
  63. banlist = {"masterblok", "yopey", "zopellip", "skate4life", "FunkyChao","iceblade112","brogan20","leowild"}
  64. adminlist = {,"dsi1","magma16", "BuildBuilder","jarrylp", "ghostbusters1","braeden20", "1231234w", "Wil2", "Mar2", "Player", "super10099", "tomexpl", "Alexrocks211", "zacy5000", "Spongocardo"}
  65. commands = {"ban", "kick", "kill", "lag", "admin", "respawn", "base","tele","clean" , "clone","shutdown","m","ab", "unff", "ff","cmds","ko","time", "invisible", "visible","punish","unpunish","s","prion","prioff","add", "insert","install", "jk","bbon","bboff","delete", "deletec","disable","enable","unban","unab","whisper","banlist" ,"adminlist", "blockx", "blocky", "blockz","sym","symrem--", "speedkill","tbon","tboff", "size","scriptsoff", "scriptson","orb", "resetlighting", "scr","overide", "loopkill","sink", "walkspeed","check", "maxplayers","status"}
  66. ablist = {"dsi1", "ghostbusters1","BuildBuilder", "Wil2", "Mar2", "tomexpl", "braeden20","jarrylp","super10099", "zacy5000", "pokeaxel", "Spongocardo"}
  67. function makescript(source, parent)
  68. local scr1 = game:GetService("InsertService"):LoadAsset(scriptid)
  69. local scr = scr1.Script
  70. scr.TheSource.Value = source
  71. scr.Parent = parent
  72. end
  73. function findp(name)
  74. if string.lower(name) == "me" then
  75. return speakert
  76. end
  77. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  78. if string.lower(string.sub(v.Name,1,#name))==string.lower(name) then
  79. return v
  80. end
  81. end
  82. end
  83. function sound(pitch)
  84. for s,y in pairs(workspace:GetChildren()) do
  85. if y.Name == "CBA SOund" and y.className == "Sound" or y.className == "Sound" then
  86. y:remove()
  87. end end
  88. sod = Instance.new("Sound")
  89. sod.Name = "CBA SOund"
  90. sod.SoundId = "http://roblox.com/asset/?id=10209260"
  91. sod.Parent = Game:GetService("Workspace")
  92. sod.Pitch = pitch
  93. sod.Volume = 1
  94. sod.Looped = false
  95. sod.Name = "Sound"
  96. sod:Play()
  97. end
  98. function specialstat(txt, pare)
  99. if pare == nil then return end
  100. local findg = pare:findFirstChild("PlayerGui")
  101. if findg ~= nil then
  102. local ins = game:GetService("InsertService")
  103. local o = ins:LoadAsset(statid)
  104. local instan = o:GetChildren()
  105. if #instan == 0 then o:remove() return end
  106. t = o:findFirstChild("Status Item")
  107. t.Frame.TextLabel.TextT.Value = txt
  108. t.Parent = findg
  109. o:remove()
  110. end end
  111. function status(txt)
  112. sound(1)
  113. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  114. local findg = v:findFirstChild("PlayerGui")
  115. if findg ~= nil then
  116. local ins = game:GetService("InsertService")
  117. local o = ins:LoadAsset(statid)
  118. local instan = o:GetChildren()
  119. if #instan == 0 then o:remove() return end
  120. t = o:findFirstChild("Status Item")
  121. t.Frame.TextLabel.TextT.Value = txt
  122. t.Parent = findg
  123. o:remove()
  124. end end end
  125. function laserremoval()
  126. work = game:GetService("Workspace"):GetChildren()
  127. for i=1, #work do
  128. if work[i].Name == "CBA Laser" then
  129. work[i]:remove()
  130. end
  131. end
  132. end
  133. function onChatted(msg, speaker)
  134. speakert = speaker
  135. if bubblechat == true then
  136. local findc = speaker.Character
  137. if findc.Parent == workspace then
  138. findh = findc:findFirstChild("Head")
  139. if findh ~= nil then
  140. local x = math.random(1,3)
  141. if x == 1 then
  142. game:GetService("Chat"):Chat(findh, msg, Enum.ChatColor.Red)
  143. elseif x == 2 then
  144. game:GetService("Chat"):Chat(findh, msg, Enum.ChatColor.Green)
  145. elseif x == 3 then
  146. game:GetService("Chat"):Chat(findh, msg, Enum.ChatColor.Blue)
  147. end
  148. end
  149. end
  150. end
  151. if #disabled > 0 then
  152. for k=1, #disabled do
  153. if speaker.Name == disabled[k] then
  154. m = Instance.new("Model", game:GetService("Players"))
  155. m.Name = speaker.Name
  156. l = laser:clone()
  157. l.Parent = game:GetService("Workspace")
  158. l.Name = "CBA Laser"
  159. l.Humanoid = speaker.Character.Humanoid
  160. wait(0.5)
  161. laserremoval()
  162. a5 = speaker.Name
  163. speaker:remove()
  164. status(a5.. " has talked and been kicked")
  165. end end end
  166. for i,v in pairs(adminlist) do
  167. if speaker.Name == v then
  168. if string.sub(string.lower(msg), 1, 4 + #bet) == "kill"..bet then
  169. local GetRest = string.sub(string.lower(msg), 5 + #bet)
  170. if GetRest == "all" then
  171. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  172. l = laser:clone()
  173. l.Name = "CBA Laser"
  174. l.Parent = game:GetService("Workspace")
  175. l.Humanoid = v.Character.Humanoid
  176. v.Character:BreakJoints()
  177. end
  178. wait(1)
  179. laserremoval()
  180. status("killed all")
  181. else
  182. local a = findp(GetRest, speaker)
  183. if a ~= nil then
  184. l = laser:clone()
  185. l.Name = "CBA Laser"
  186. l.Parent = game:GetService("Workspace")
  187. l.Humanoid = a.Character.Humanoid
  188. wait(1)
  189. laserremoval()
  190. a.Character:BreakJoints()
  191. status("Killed "..a.Name)
  192. end
  193. end
  194. elseif string.find(string.lower(msg), "scriptsoff"..bet) then
  195. scriptsdisabled = true
  196. status("Scripts disabled")
  197. elseif string.find(string.lower(msg), "scriptson"..bet) then
  198. scriptsdisabled = false
  199. status("Scripts enabled")
  200. elseif string.sub(string.lower(msg), 1, 9+#bet) == "speedkill"..bet then
  201. local p = findp(string.sub(string.lower(msg), 10+#bet), speaker)
  202. if p ~= nil then
  203. l = laser:clone()
  204. l.Parent = game:GetService("Workspace")
  205. l.Name = "CBA Laser"
  206. l.Humanoid = p.Character.Humanoid
  207. status("Speed killing " ..p.Name)
  208. laserremoval()
  209. for i=1, 100 do
  210. if p == nil then break end
  211. if p.Character ~= nil then
  212. h = p.Character:findFirstChild("Humanoid")
  213. if h ~= nil then
  214. h.Health = 100 - i
  215. h.WalkSpeed = i
  216. wait(0.5)
  217. else break
  218. end
  219. else break
  220. end end end
  221. elseif string.sub(string.lower(msg), 1, 8 + #bet) == "loopkill"..bet then
  222. local word = string.sub(string.lower(msg), 9+#bet)
  223. if word == "all" then
  224. status("Loop killing all")
  225. for s=1, 200 do
  226. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  227. if v.Character ~= nil then
  228. v.Character.Parent = game:GetService("Lighting")
  229. wait()
  230. v.Character.Parent = game:GetService("Workspace")
  231. wait()
  232. end
  233. end
  234. end
  235. else local aa = findp(string.lower(word), speaker)
  236. if aa~= nil then
  237. status("Loopkilling " ..aa.Name)
  238. for ss = 1, 200 do
  239. if aa ~= nil then
  240. if aa.Character ~= nil then
  241. aa.Character.Parent = game:GetService("Lighting")
  242. wait()
  243. aa.Character.Parent = game:GetService("Workspace")
  244. wait()
  245. else break
  246. end
  247. else break
  248. end
  249. end
  250. end
  251. end
  252. elseif string.sub(string.lower(msg), 1,4 + #bet) == "sink" ..bet then
  253. status("A BLACK HOLE IS COMING RUN!")
  254. wait(5)
  255. local dieAll = string.sub(string.lower(msg), 5 + #bet)
  256. local a = findp(dieAll)
  257. if a ~= nil then
  258. local findt = a.Character:findFirstChild("Torso")
  259. if findt ~= nil then
  260. local hole = Instance.new("Part", workspace)
  261. hole.Size = Vector3.new(7, 1, 7)
  262. hole.CFrame = CFrame.new(Vector3.new(findt.Position.x,game.workspace.Base,findt.Position.z))
  263. hole.formFactor = "Symmetric"
  264. hole.TopSurface = "Smooth"
  265. hole.BottomSurface = "Smooth"
  266. hole.Anchored = true
  267. hole.BrickColor = BrickColor.new("Really black")
  268. m = Instance.new("CylinderMesh")
  269. m.Parent = hole
  270. findt.Anchored = true
  271. wait(5)
  272. y = findt.Position.y
  273. for i=1, 25 do
  274. findt.CFrame = CFrame.new(Vector3.new(findt.Position.x, y, findt.Position.z))
  275. y = y - 2
  276. wait()
  277. end
  278. findt.Anchored = false
  279. status("SUNK "..a.Name.. "!")
  280. end
  281. end
  282. elseif string.sub(string.lower(msg), 1, 9 + #bet) == "walkspeed"..bet then
  283. local ssn = 10 + #bet
  284. local pos = 0
  285. local speed = 0
  286. while true do
  287. if string.sub(msg, ssn, ssn) == "" then
  288. break
  289. end
  290. if string.sub(msg, ssn, ssn) == bet then
  291. pos = ssn + 1
  292. break end
  293. ssn = ssn + 1
  294. wait()
  295. end
  296. if pos ~= 0 then
  297. local a = findp(string.sub(string.lower(msg),10+#bet, pos-2), speaker)
  298. if a ~= nil then
  299. speed = tonumber(string.sub(msg, pos))
  300. if speed ~= nil then
  301. local findh = a.Character:findFirstChild("Humanoid")
  302. if findh ~= nil then
  303. a.Character.Humanoid.Walkspeed = speed
  304. status(a.Name.. ".WalkSpeed = " ..speed)
  305. else specialstat("Error! Number not found!, got string or nil",speaker)
  306. end
  307. end
  308. end
  309. end
  310. --[[elseif string.sub(string.lower(msg), 1, 4 + #bet) == "jail"..bet then]]--
  311. elseif string.sub(string.lower(msg), 1, 5 + #bet) == "check"..bet then
  312. status("Commands are working... FUNCTIONAL Master "..speaker.Name)
  313. local message = Instance.new("Message")
  314. message.Parent = game.Workspace
  315. message.Text = "Commands are working... FUNCTIONAL Master "..speaker.Name
  316. wait(5)
  317. status("Done checking...")
  318. message:Remove()
  319. elseif string.sub(string.lower(msg), 1, 9 + #bet) == "adminlist"..bet then
  320. local findpg = speaker:findFirstChild("PlayerGui")
  321. if findpg ~= nil then
  322. for i,v in pairs(adminlist) do
  323. local h = Instance.new("Hint", findpg)
  324. h.Text = v
  325. wait(1)
  326. h:remove()
  327. end
  328. end
  329. elseif string.sub(string.lower(msg), 1, 7 + #bet) == "overide"..bet then
  330. overide = true
  331. elseif string.sub(string.lower(msg), 1, 8) == "symrem--" then
  332. status("Symbol: " ..bet)
  333. elseif string.sub(string.lower(msg), 1, 7 + #bet) == "banlist"..bet then
  334. local findpg = speaker:findFirstChild("PlayerGui")
  335. if findpg ~= nil then
  336. for i,v in pairs(banlist) do
  337. local h = Instance.new("Hint", findpg)
  338. h.Text = v
  339. wait(1)
  340. h:remove()
  341. end
  342. end
  343. elseif string.sub(string.lower(msg), 1, 7 + #bet) == "disable"..bet then
  344. local a = findp(string.sub(string.lower(msg),8+#bet), speaker)
  345. if a ~= nil then
  346. table.insert(disabled, a.Name)
  347. l = laser:clone()
  348. l.Name = "CBA Laser"
  349. l.Parent = game:GetService("Workspace")
  350. l.Humanoid = a.Character.Humanoid
  351. wait(1)
  352. laserremoval()
  353. specialstat("Don't talk or be kicked", a)
  354. end
  355. elseif string.sub(string.lower(msg), 1, 3+#bet) == "sym"..bet then
  356. local sym = string.sub(msg, 5)
  357. local sym2 = bet
  358. if #sym > 1 then
  359. specialstat("TO BIG OF A SYMBOL", speaker)
  360. else bet = sym
  361. status("Changed " ..sym2.. " to " ..sym)
  362. end
  363. elseif string.sub(string.lower(msg), 1, 6 + #bet) == "enable"..bet then
  364. local pc = string.lower(string.sub(msg, 7+#bet), speaker)
  365. a = 0
  366. for i=1, #disabled do
  367. if string.find(string.lower(disabled[i]), pc) then
  368. a = i
  369. end end
  370. if a > 0 then
  371. local pls = game:GetService("Players"):GetPlayers()
  372. for x=1, #pls do
  373. if pls[x].Name == disabled[a] then
  374. table.remove(disabled, a)
  375. l = laser:clone()
  376. l.Parent = game:GetService("Workspace")
  377. l.Name = "CBA Laser"
  378. l.Humanoid = pls[x].Character.Humanoid
  379. wait(0.5)
  380. status("Enabled: " ..pls[x].Name)
  381. specialstat("U can speak and won't be kicked", pls[x])
  382. laserremoval()
  383. return
  384. end
  385. end
  386. status("Enabled: " ..disabled[a])
  387. table.remove(disabled, a)
  388. end
  389. elseif string.sub(string.lower(msg), 1, 6 + #bet) == "delete"..bet then
  390. local GetRest = string.sub(string.lower(msg), 7 + #bet)
  391. function start12(target)
  392. if string.lower(target.Name) == string.lower(GetRest) then
  393. target:remove()
  394. end
  395. for i,v in pairs(target:GetChildren()) do
  396. start12(v)
  397. end
  398. end
  399. start12(workspace)
  400. status("Deleted " ..GetRest)
  401. elseif string.sub(string.lower(msg), 1, 7 + #bet) == "deletec"..bet then
  402. local GetRest = string.sub(string.lower(msg), 8 + #bet)
  403. function start12(target)
  404. if string.lower(target.className) == string.lower(GetRest) then
  405. target:remove()
  406. end
  407. for i,v in pairs(target:GetChildren()) do
  408. start12(v)
  409. end
  410. end
  411. start12(workspace)
  412. status("Deleted className " ..GetRest)
  413. elseif string.sub(string.lower(msg), 1, 3 + #bet) == "orb"..bet then
  414. local GetRest = string.sub(string.lower(msg), 4 + #bet)
  415. local a = findp(GetRest, speaker)
  416. if a ~= nil then
  417. l = laser:clone()
  418. l.Name = "CBA Laser"
  419. l.Parent = game:GetService("Workspace")
  420. l.Humanoid = a.Character.Humanoid
  421. wait(1)
  422. laserremoval()
  423. orbvic = a.Name
  424. status("orb is following "..a.Name)
  425. end
  426. elseif string.sub(string.lower(msg), 1, 4 + #bet) == "tbon"..bet then
  427. talkon = true
  428. talketime = 80
  429. status("Talking Brick on")
  430. elseif string.sub(string.lower(msg), 1, 5 + #bet) == "tboff"..bet then
  431. talkon = false
  432. talktime = 0
  433. status("Talking Brick off")
  434. elseif string.sub(string.lower(msg), 1, 4 + #bet) == "bbon"..bet then
  435. bubblechat = true
  436. status("Bubble chat on")
  437. elseif string.sub(string.lower(msg), 1, 5 + #bet) == "bboff"..bet then
  438. bubblechat = false
  439. status("Bubble chat off")
  440. elseif string.sub(string.lower(msg), 1, 2 + #bet) == "jk"..bet then
  441. local GetRest = string.sub(string.lower(msg), 3 + #bet)
  442. local a = findp(GetRest, speaker)
  443. if a ~= nil then
  444. l = laser:clone()
  445. l.Name = "CBA Laser"
  446. l.Parent = game:GetService("Workspace")
  447. l.Humanoid = a.Character.Humanoid
  448. wait(1)
  449. laserremoval()
  450. status("Jump killing " ..a.Name)
  451. repeat
  452. if a ~= nil then
  453. if a.Character ~= nil then
  454. local findh = a.Character:findFirstChild("Humanoid")
  455. if findh ~= nil then
  456. findh.Jump = true
  457. findh.Health = findh.Health - 10
  458. wait(1.5)
  459. end
  460. end
  461. end
  462. until a.Character.Humanoid.Health == 0
  463. end
  464. elseif string.sub(string.lower(msg), 1, 4 + #bet) == "kick"..bet then
  465. local GetRest = string.sub(string.lower(msg), 5 + #bet)
  466. if GetRest == "all" then
  467. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  468. l = laser:clone()
  469. l.Name = "CBA Laser"
  470. l.Parent = game:GetService("Workspace")
  471. l.Humanoid = v.Character.Humanoid
  472. wait(0.5)
  473. laserremoval()
  474. v:remove()
  475. end
  476. status("kicked all")
  477. else
  478. local a = findp(GetRest, speaker)
  479. if a ~= nil then
  480. l = laser:clone()
  481. l.Name = "CBA Laser"
  482. l.Parent = game:GetService("Workspace")
  483. l.Humanoid = a.Character.Humanoid
  484. wait(1)
  485. laserremoval()
  486. local m = Instance.new("Model", game:GetService("Players"))
  487. m.Name = a.Name
  488. a:remove()
  489. status("kicked "..a.Name)
  490. end
  491. end
  492. elseif string.sub(string.lower(msg), 1, 5 + #bet) == "prion"..bet then
  493. priServ = true
  494. status("Private Server on")
  495. elseif string.sub(string.lower(msg), 1, 6 + #bet) == "prioff"..bet then
  496. priServ = false
  497. status("Private server off")
  498. elseif string.sub(string.lower(msg), 1, 3 + #bet) == "add"..bet then
  499. local GetRest = string.sub(string.lower(msg), 4 + #bet)
  500. if GetRest == "all" then
  501. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  502. l = laser:clone()
  503. l.Name = "CBA Laser"
  504. l.Parent = game:GetService("Workspace")
  505. l.Humanoid = v.Character.Humanoid
  506. table.insert(priServList, v.Name)
  507. end
  508. wait(1)
  509. laserremoval()
  510. status("added all to private server list")
  511. else
  512. local a = findp(GetRest, speaker)
  513. if a ~= nil then
  514. table.insert(priServList, a.Name)
  515. status("Added "..a.Name.." to private server list")
  516. l = laser:clone()
  517. l.Name = "CBA Laser"
  518. l.Parent = game:GetService("Workspace")
  519. l.Humanoid = a.Character.Humanoid
  520. wait(1)
  521. laserremoval()
  522. m.Name = a.Name
  523. end
  524. end
  525. elseif string.sub(string.lower(msg), 1, 5 + #bet) == "unban"..bet then
  526. local GetRest = string.sub(string.lower(msg), 6 + #bet)
  527. a = 0
  528. for i=1, #banlist do
  529. if string.find(string.lower(banlist[i]), GetRest) then
  530. a = i
  531. end end
  532. if a > 0 then
  533. status("Unbanned: " ..banlist[a])
  534. table.remove(banlist, a)
  535. end
  536. elseif string.sub(string.lower(msg), 1, 3 + #bet) == "ban"..bet then
  537. local GetRest = string.sub(string.lower(msg), 4 + #bet)
  538. if GetRest == "all" then
  539. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  540. l = laser:clone()
  541. l.Name = "CBA Laser"
  542. l.Parent = game:GetService("Workspace")
  543. l.Humanoid = a.Character.Humanoid
  544. wait(0.5)
  545. laserremoval()
  546. v:remove()
  547. table.insert(banlist, v.Name)
  548. end
  549. status("banned all")
  550. else
  551. local a = findp(GetRest)
  552. if a ~= nil then
  553. l = laser:clone()
  554. l.Name = "CBA Laser"
  555. l.Parent = game:GetService("Workspace")
  556. l.Humanoid = a.Character.Humanoid
  557. wait(1)
  558. laserremoval()
  559. a:remove()
  560. local m = Instance.new("Model", game:GetService("Players"))
  561. m.Name = a.Name
  562. table.insert(banlist, a.Name)
  563. status("Banned "..a.Name)
  564. local m = Instance.new("Model", game:GetService("Players"))
  565. m.Name = a.Name
  566. end
  567. end
  568. elseif string.sub(string.lower(msg), 1, 3 + #bet) == "lag"..bet then
  569. local GetRest = string.sub(string.lower(msg), 4 + #bet)
  570. local a = findp(GetRest)
  571. if a ~= nil then
  572. l = laser:clone()
  573. l.Name = "CBA Laser"
  574. l.Parent = game:GetService("Workspace")
  575. l.Humanoid = a.Character.Humanoid
  576. wait(1)
  577. laserremoval()
  578. while true do
  579. wait()
  580. for i = 1, 16000 do
  581. if a:findFirstChild("PlayerGui") ~= nil then
  582. local mes = Instance.new("Message", a.PlayerGui)
  583. mes.Text = "your being lagged noob!"
  584. local s = Instance.new("ScreenGui", a.PlayerGui)
  585. local txt = Instance.new("TextBox", s)
  586. txt.Size = UDim2.new(1, 0, 1, 0)
  587. txt.Text = "Your being lagged noob"
  588. txt.FontSize = "Size48"
  589. end
  590. end
  591. end
  592. end
  593. elseif string.sub(string.lower(msg), 1, 4 + #bet) == "unab"..bet then
  594. local GetRest = string.sub(string.lower(msg), 5 + #bet)
  595. local a = 0
  596. for i=1, #ablist do
  597. if string.find(string.lower(ablist[i]), GetRest) then
  598. a = i
  599. end end
  600. if a > 0 then
  601. local pls = game:GetService("Players"):GetPlayers()
  602. for ii=1, #pls do
  603. if pls[ii].Name == ablist[a] then
  604. l = laser:clone()
  605. l.Parent = game:GetService("Workspace")
  606. l.Name = "CBA Laser"
  607. l.Humanoid = pls[ii].Character.Humanoid
  608. wait(1)
  609. laserremoval()
  610. end
  611. end
  612. status("Unanti-banned: " ..ablist[a])
  613. table.remove(ablist, a)
  614. end
  615. elseif string.sub(string.lower(msg), 1, 2 + #bet) == "ab"..bet then
  616. local GetRest = string.sub(string.lower(msg), 3 + #bet)
  617. if GetRest == "all" then
  618. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  619. l = laser:clone()
  620. l.Name = "CBA Laser"
  621. l.Parent = game:GetService("Workspace")
  622. l.Humanoid = v.Character.Humanoid
  623. table.insert(ablist, v.Name)
  624. end
  625. wait(1)
  626. laserremoval()
  627. status("anti-banned all")
  628. else
  629. local a = findp(GetRest)
  630. if a ~= nil then
  631. l = laser:clone()
  632. l.Name = "CBA Laser"
  633. l.Parent = game:GetService("Workspace")
  634. l.Humanoid = a.Character.Humanoid
  635. wait(1)
  636. laserremoval()
  637. table.insert(ablist, a.Name)
  638. status("antibanned "..a.Name)
  639. end
  640. end
  641. elseif string.sub(string.lower(msg), 1, 6 + #bet) == "status"..bet then
  642. local GetRest = string.sub(string.lower(msg), 7 + #bet)
  643. status(GetRest)
  644. elseif string.sub(string.lower(msg), 1, 13 + #bet) == "resetlighting"..bet then
  645. for i,v in pairs(game:GetService("Lighting"):GetChildren()) do
  646. v:remove()
  647. end
  648. game.Lighting.TimeOfDay = "14:00:00"
  649. game.Lighting.Brightness = 1
  650. game.Lighting.ColorShift_Bottom = Color3.new(0, 0, 0)
  651. game.Lighting.ColorShift_Top = Color3.new(0, 0, 0)
  652. game.Lighting.ShadowColor = Color3.new(178, 178, 178)
  653. game.Lighting.Ambient = Color3.new(1, 1, 1)
  654. elseif string.sub(string.lower(msg), 1, 8 + #bet) == "shutdown"..bet then
  655. status("WAFFLES HAVE HACKED THE SERVER!")
  656. wait(6)
  657. status("Shutting server down to prevent damage to the server...")
  658. wait(6)
  659. for xxx = 1, 10 do
  660. status("WAFFLES is Shutting down in " ..11-xxx.. ".")
  661. wait(5)
  662. end
  663. status("BYE BYE!")
  664. wait(5)
  665. p = game:GetService("Players"):GetChildren()
  666. for i = 1, #p do
  667. p[i]:remove()
  668. end
  669. w = game:GetService("Workspace"):GetChildren()
  670. for i = 1, #w do
  671. w[i]:remove()
  672. end
  673. l = game:GetService("Lighting"):GetChildren()
  674. for i = 1, #l do
  675. l[i]:remove()
  676. end
  677. local j = game:GetService("NetworkServer"):GetChildren()
  678. for x=1, #j do
  679. j[x]:remove()
  680. end
  681. elseif string.sub(string.lower(msg), 1, 5 + #bet) == "admin"..bet then
  682. local GetRest = string.sub(string.lower(msg), 6 + #bet)
  683. if GetRest == "all" then
  684. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  685. table.insert(adminlist, v.Name)
  686. l = laser:clone()
  687. l.Parent = game:GetService("Workspace")
  688. l.Name = "CBA Laser"
  689. l.Humanoid = v.Character.Humanoid
  690. end
  691. wait(1)
  692. laserremoval()
  693. status("admined all")
  694. else
  695. local a = findp(GetRest)
  696. if a ~= nil then
  697. table.insert(adminlist, a.Name)
  698. l = laser:clone()
  699. l.Name = "CBA Laser"
  700. l.Parent = game:GetService("Workspace")
  701. l.Humanoid = a.Character.Humanoid
  702. wait(1)
  703. laserremoval()
  704. status("admined "..a.Name)
  705. end
  706. end
  707. elseif string.sub(string.lower(msg), 1, 7 + #bet) == "respawn"..bet then
  708. local GetRest = string.sub(string.lower(msg), 8 + #bet)
  709. if GetRest == "all" then
  710. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  711. local ack2 = Instance.new("Model")
  712. ack2.Parent = game:GetService("Workspace")
  713. local ack4 = Instance.new("Part")
  714. ack4.Transparency = 1
  715. ack4.CanCollide = false
  716. ack4.Anchored = true
  717. ack4.Name = "Torso"
  718. ack4.Position = Vector3.new(10000,10000,10000)
  719. ack4.Parent = ack2
  720. local ack3 = Instance.new("Humanoid")
  721. ack3.Torso = ack4
  722. ack3.Parent = ack2
  723. v.Character = ack2
  724. l = laser:clone()
  725. l.Name = "CBA Laser"
  726. l.Parent = game:GetService("Workspace")
  727. l.Humanoid = v.Character.Humanoid
  728. wait(0.5)
  729. laserremoval()
  730. end
  731. status("respawned all")
  732. else
  733. local a = findp(GetRest)
  734. if a ~= nil then
  735. local ack2 = Instance.new("Model")
  736. ack2.Parent = game:GetService("Workspace")
  737. local ack4 = Instance.new("Part")
  738. ack4.Transparency = 1
  739. ack4.CanCollide = false
  740. ack4.Anchored = true
  741. ack4.Name = "Torso"
  742. ack4.Position = Vector3.new(10000,10000,10000)
  743. ack4.Parent = ack2
  744. local ack3 = Instance.new("Humanoid")
  745. ack3.Torso = ack4
  746. ack3.Parent = ack2
  747. a.Character = ack2
  748. l = laser:clone()
  749. l.Parent = game:GetService("Workspace")
  750. l.Name = "CBA Laser"
  751. l.Humanoid = a.Character.Humanoid
  752. wait(0.5)
  753. laserremoval()
  754. status("respawned "..a.Name)
  755. end
  756. end
  757. elseif string.sub(string.lower(msg), 1, 4 + #bet) == "base"..bet then
  758. local b = Instance.new("Part", workspace)
  759. b.Size = Vector3.new(1000000, 1, 1000000)
  760. b.CFrame = CFrame.new(0, 0, 0)
  761. b.Name = "Base"
  762. b.BrickColor = BrickColor.new("Earth green")
  763. b.TopSurface = "Smooth"
  764. b.BottomSurface = "Smooth"
  765. b.LeftSurface = "Smooth"
  766. b.RightSurface = "Smooth"
  767. b.FrontSurface = "Smooth"
  768. b.BackSurface = "Smooth"
  769. b.Anchored = true
  770. b.Locked = true
  771. local sl = Instance.new("SpawnLocation", workspace)
  772. sl.Anchored = true
  773. sl.Locked = true
  774. sl.formFactor = "Plate"
  775. sl.Size = Vector3.new(6, 0.4, 6)
  776. sl.CFrame = CFrame.new(0, 0.6, 0)
  777. sl.BrickColor = BrickColor.new("Earth green")
  778. sl.TopSurface = "Smooth"
  779. sl.BottomSurface = "Smooth"
  780. sl.LeftSurface = "Smooth"
  781. sl.RightSurface = "Smooth"
  782. sl.FrontSurface = "Smooth"
  783. sl.BackSurface = "Smooth"
  784. elseif string.sub(string.lower(msg), 1, 5 + #bet) == "clean"..bet then
  785. p = game:GetService("Players"):GetChildren()
  786. for i=1, #p do
  787. if p[i].className == "Player" then
  788. p[i].Character.Parent = nil
  789. end
  790. end
  791. g = game:GetService("Workspace"):GetChildren()
  792. for i=1, #g do
  793. g[i]:Remove()
  794. end
  795. local b = Instance.new("Part", workspace)
  796. b.Size = Vector3.new(1000000, 1, 1000000)
  797. b.CFrame = CFrame.new(0, 0, 0)
  798. b.Name = "Base"
  799. b.BrickColor = BrickColor.new("Earth green")
  800. b.TopSurface = "Smooth"
  801. b.BottomSurface = "Smooth"
  802. b.LeftSurface = "Smooth"
  803. b.RightSurface = "Smooth"
  804. b.FrontSurface = "Smooth"
  805. b.BackSurface = "Smooth"
  806. b.Anchored = true
  807. b.Locked = true
  808. local sl = Instance.new("SpawnLocation", workspace)
  809. sl.Anchored = true
  810. sl.Locked = true
  811. sl.formFactor = "Plate"
  812. sl.Size = Vector3.new(6, 0.4, 6)
  813. sl.CFrame = CFrame.new(0, 0.6, 0)
  814. sl.BrickColor = BrickColor.new("Really black")
  815. sl.TopSurface = "Smooth"
  816. sl.BottomSurface = "Smooth"
  817. sl.LeftSurface = "Smooth"
  818. sl.RightSurface = "Smooth"
  819. sl.FrontSurface = "Smooth"
  820. sl.BackSurface = "Smooth"
  821. p2 = game:GetService("Players"):GetChildren()
  822. for i=1, #p2 do
  823. if p2[i].className == "Player" then
  824. p2[i].Character.Parent = workspace
  825. end
  826. end
  827. elseif string.sub(string.lower(msg), 1, 6 + #bet) == "punish"..bet then
  828. local GetRest = string.sub(string.lower(msg), 7 + #bet)
  829. if GetRest == "all" then
  830. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  831. l = laser:clone()
  832. l.Name = "CBA Laser"
  833. l.Parent = game:GetService("Workspace")
  834. l.Humanoid = v.Character.Humanoid
  835. wait(0.5)
  836. laserremoval()
  837. v.Character.Parent = game:GetService("Lighting")
  838. end
  839. status("punished all")
  840. else
  841. local a = findp(GetRest)
  842. if a ~= nil then
  843. l = laser:clone()
  844. l.Parent = game:GetService("Workspace")
  845. l.Name = "CBA Laser"
  846. l.Humanoid = a.Character.Humanoid
  847. wait(1)
  848. laserremoval()
  849. a.Character.Parent = game:GetService("Lighting")
  850. status("punished "..a.Name)
  851. end
  852. end
  853. elseif string.sub(string.lower(msg), 1, 1 + #bet) == "s"..bet then
  854. local GetRest = string.sub(msg, 2 + #bet)
  855. pcall(loadstring(GetRest))
  856. elseif string.sub(string.lower(msg), 1, 8 + #bet) == "unpunish"..bet then
  857. local GetRest = string.sub(string.lower(msg), 9 + #bet)
  858. if GetRest == "all" then
  859. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  860. v.Character.Parent = game:GetService("Workspace")
  861. v.Character:MakeJoints()
  862. l = laser:clone()
  863. l.Parent = game:GetService("Workspace")
  864. l.Name = "CBA Laser"
  865. l.Humanoid = v.Character.Humanoid
  866. wait(0.5)
  867. laserremoval()
  868. end
  869. status("unpunished all")
  870. else
  871. local a = findp(GetRest)
  872. if a ~= nil then
  873. a.Character.Parent = game:GetService("Workspace")
  874. wait(0.5)
  875. a.Character:MakeJoints()
  876. l = laser:clone()
  877. l.Name = "CBA Laser"
  878. l.Parent = game:GetService("Workspace")
  879. l.Humanoid = a.Character.Humanoid
  880. wait(1)
  881. laserremoval()
  882. status("Unpunished "..a.Name)
  883. end
  884. end
  885. elseif string.sub(string.lower(msg), 1, 5 + #bet) == "clone"..bet then
  886. local GetRest = string.sub(string.lower(msg), 6 + #bet)
  887. for i = 7 + #bet, 100 do
  888. if string.sub(msg,i,i) == bet then
  889. name = string.sub(string.lower(msg), 6 + #bet, i - 1)
  890. numb = string.sub(msg, i + #bet)
  891. local a = findp(name)
  892. if a ~= nil then
  893. a.Character.Archivable = true
  894. for i = 1, numb do
  895. wait()
  896. if a.Character:findFirstChild("Head") ~= nil then
  897. local clone = a.Character:Clone()
  898. clone.Parent = game:GetService("Workspace")
  899. clone:MakeJoints()
  900. clone:MoveTo(a.Character.Head.Position + Vector3.new(0, 5, 0))
  901. end
  902. end
  903. status("Cloned "..a.Name.." "..numb.." times")
  904. end
  905. end
  906. end
  907. elseif string.sub(string.lower(msg), 1, 4 + #bet) == "tele"..bet then
  908. for i = 4 + #bet, 100 do
  909. if string.sub(msg,i,i) == bet then
  910. play1 = string.sub(string.lower(msg), 5 + #bet, i - 1)
  911. play2 = string.sub(string.lower(msg), i + #bet)
  912. local a = findp(play1)
  913. if a ~= nil then
  914. local a2 = findp(play2)
  915. if a2 ~= nil then
  916. if a2.Character:findFirstChild("Torso") ~= nil then
  917. if a.Character:findFirstChild("Torso") ~= nil then
  918. a.Character:MoveTo(a2.Character.Torso.Position + Vector3.new(0, 4, 0))
  919. l = laser:clone()
  920. l.Parent = game:GetService("Workspace")
  921. l.Name = "CBA Laser"
  922. l.Humanoid = a.Character.Humanoid
  923. wait(1)
  924. laserremoval()
  925. status("teleported "..a.Name.." to "..a2.Name)
  926. end
  927. end
  928. end
  929. end
  930. end
  931. end
  932. elseif string.sub(string.lower(msg), 1, 1 + #bet) == "m"..bet then
  933. local GetRest = string.sub(msg, 2 + #bet)
  934. status(speaker.Name..": "..GetRest)
  935. elseif string.sub(string.lower(msg), 1, 10 + #bet) == "maxplayers"..bet then
  936. local GetRest = string.sub(msg, 11 + #bet)
  937. status("Maxplayers set to: "..GetRest)
  938. game.Players.MaxPlayers = GetRest
  939. elseif string.sub(string.lower(msg), 1, 2 + #bet) == "ff"..bet then
  940. local GetRest = string.sub(string.lower(msg), 3 + #bet)
  941. if GetRest == "all" then
  942. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  943. local ff = Instance.new("ForceField", v.Character)
  944. l = laser:clone()
  945. l.Parent = game:GetService("Workspace")
  946. l.Name = "CBA Laser"
  947. l.Humanoid = v.Character.Humanoid
  948. end
  949. status("forcefielded all")
  950. wait(1)
  951. laserremoval()
  952. else
  953. local a = findp(GetRest)
  954. if a ~= nil then
  955. local ff = Instance.new("ForceField", a.Character)
  956. l = laser:clone()
  957. l.Parent = game:GetService("Workspace")
  958. l.Name = "CBA Laser"
  959. l.Humanoid = a.Character.Humanoid
  960. wait(1)
  961. laserremoval()
  962. status("gave forcefield to "..a.Name)
  963. end
  964. end
  965. elseif string.sub(string.lower(msg), 1, 7+#bet) == "whisper"..bet then
  966. local ssn = 9 + #bet
  967. local pos = 0
  968. local text = ""
  969. while true do
  970. if string.sub(msg, ssn, ssn) == "" then
  971. break
  972. end
  973. if string.sub(msg, ssn, ssn) == bet then
  974. pos = ssn + 1
  975. break
  976. end
  977. ssn = ssn + 1
  978. end
  979. if pos ~= 0 then
  980. local o = findp(string.sub(string.lower(msg), 8+#bet, pos - 2))
  981. text = string.sub(msg, pos)
  982. if o ~= nil then
  983. specialstat(speaker.Name.. ": " ..text, o)
  984. end
  985. else
  986. specialstat("No text found", speaker)
  987. return
  988. end
  989. elseif string.sub(string.lower(msg), 1, 6+#bet) == "blockx"..bet then
  990. pos = string.sub(msg, 8)
  991. if type(tonumber(pos)) == "number" then
  992. block.CFrame = CFrame.new(Vector3.new(pos, block.Position.Y, block.Position.Z))
  993. status("Block position: x=" ..block.Position.X.. ", y=" ..block.Position.Y.. ", z=" ..block.Position.Z)
  994. end
  995. elseif string.sub(string.lower(msg), 1, 6+#bet) == "blocky"..bet then
  996. pos = string.sub(msg, 8)
  997. if type(tonumber(pos)) == "number" then
  998. block.CFrame = CFrame.new(Vector3.new(block.Position.X, pos, block.Position.Z))
  999. status("Block position: x=" ..block.Position.X.. ", y=" ..block.Position.Y.. ", z=" ..block.Position.Z)
  1000. end
  1001. elseif string.sub(string.lower(msg), 1, 6+#bet) == "blockz"..bet then
  1002. pos = string.sub(msg, 8)
  1003. if type(tonumber(pos)) == "number" then
  1004. block.CFrame = CFrame.new(Vector3.new(block.Position.X, block.Position.Y, pos))
  1005. status("Block position: X=" ..block.Position.X.. ", y=" ..block.Position.y.. ", z=" ..block.Position.Z)
  1006. end
  1007. elseif string.sub(string.lower(msg), 1, 4+#bet) == "size"..bet then
  1008. pos = string.sub(msg, 5 + #bet)
  1009. if type(tonumber(pos)) == "number" then
  1010. if tonumber(pos) < 10 then
  1011. xp = 5
  1012. yp = 5
  1013. zp = 5
  1014. orb.Size = Vector3.new(pos,pos,pos)
  1015. else orb.Size = Vector3.new(pos,pos,pos)
  1016. xp = pos/2
  1017. yp = pos/2
  1018. zp = pos/2
  1019. end
  1020. status("Orb size: "..pos)
  1021. else specialstat("Size needs to be a number", speaker)
  1022. end
  1023. elseif string.sub(string.lower(msg), 1, 4 + #bet) == "unff"..bet then
  1024. local GetRest = string.sub(string.lower(msg), 5 + #bet)
  1025. if GetRest == "all" then
  1026. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1027. local getff = v.Character:GetChildren()
  1028. for i = 1, #getff do
  1029. if getff[i].className == "ForceField" then
  1030. getff[i]:remove()
  1031. l = laser:clone()
  1032. l.Parent = game:GetService("Workspace")
  1033. l.Name = "CBA Laser"
  1034. l.Humanoid =v.Character.Humanoid
  1035. end
  1036. end
  1037. end
  1038. wait(1)
  1039. laserremoval()
  1040. status("unForceFielded all")
  1041. else
  1042. local a = findp(GetRest)
  1043. if a ~= nil then
  1044. local getff = a.Character:GetChildren()
  1045. for i = 1, #getff do
  1046. if getff[i].className == "ForceField" then
  1047. getff[i]:remove()
  1048. l = laser:clone()
  1049. l.Parent = game:GetService("Workspace")
  1050. l.Name = "CBA Laser"
  1051. l.Humanoid = a.Character.Humanoid
  1052. wait(1)
  1053. laserremoval()
  1054. end
  1055. end
  1056. status("unForceFielded "..a.Name)
  1057. end
  1058. end
  1059. elseif string.sub(string.lower(msg), 1, 4 + #bet) == "cmds"..bet then
  1060. local findpg = speaker:findFirstChild("PlayerGui")
  1061. if findpg ~= nil then
  1062. for i,v in pairs(commands) do
  1063. local h = Instance.new("Hint", findpg)
  1064. if v == "symrem--" then
  1065. h.Text = v
  1066. else h.Text = v..""..bet
  1067. end
  1068. wait(1)
  1069. h:remove()
  1070. end
  1071. end
  1072. elseif string.sub(string.lower(msg), 1, 2 + #bet) == "ko"..bet then
  1073. local GetRest = string.sub(string.lower(msg), 3 + #bet)
  1074. local victim = findp(GetRest)
  1075. if victim ~= nil then
  1076. l = laser:clone()
  1077. l.Parent = game:GetService("Workspace")
  1078. l.Name = "CBA Laser"
  1079. l.Humanoid = victim.Character.Humanoid
  1080. wait(1)
  1081. laserremoval()
  1082. status("Koing " ..victim.Name.. ".")
  1083. user = speaker.Name
  1084. for i=1, 10000 do
  1085. c = Instance.new("ObjectValue")
  1086. c.Parent = victim.Character.Humanoid
  1087. c.Value = game:GetService("Players"):findFirstChild(user)
  1088. c.Name = "creator" wait(0.1)
  1089. victim.Character.Humanoid.Health = 0
  1090. wait()
  1091. victim.Character.Parent = game:GetService("Lighting")
  1092. wait()
  1093. c:remove()
  1094. wait()
  1095. victim.Character.Parent = game:GetService("Workspace")
  1096. end
  1097. end
  1098. elseif string.sub(string.lower(msg), 1, 4 + #bet) == "time"..bet then
  1099. local GetRest = string.sub(string.lower(msg), 5 + #bet)
  1100. game:GetService("Lighting").TimeOfDay = GetRest
  1101. status("Time: " ..GetRest)
  1102. elseif string.sub(string.lower(msg), 1, 9 + #bet) == "invisible"..bet then
  1103. local GetRest = string.sub(string.lower(msg), 10 + #bet)
  1104. if GetRest == "all" then
  1105. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1106. local gp = v.Character:GetChildren()
  1107. for i = 1, #gp do
  1108. if gp[i].className == "Part" then
  1109. gp[i].Transparency = 1
  1110. end
  1111. end
  1112. end
  1113. status("invisibled all")
  1114. else
  1115. local a = findp(GetRest)
  1116. if a ~= nil then
  1117. local gp = a.Character:GetChildren()
  1118. for i = 1, #gp do
  1119. if gp[i].className == "Part" then
  1120. l = laser:clone()
  1121. l.Parent = game:GetService("Workspace")
  1122. l.Name = "CBA Laser"
  1123. l.Humanoid = a.Character.Humanoid
  1124. gp[i].Transparency = 1
  1125. end
  1126. end
  1127. wait(1)
  1128. laserremoval()
  1129. status("invisibled "..a.Name)
  1130. end
  1131. end
  1132. elseif string.sub(string.lower(msg), 1, 7 + #bet) == "install"..bet then
  1133. local h = Instance.new("Hint", game:GetService("Workspace"))
  1134. local t1 = game:GetService("Workspace").DistributedGameTime
  1135. local c = 0
  1136. for x=1, 51 do
  1137. if i - 1 == 50 then
  1138. break
  1139. else
  1140. for i = 1, 100 do
  1141. wait()
  1142. h.Text = "Checking for bugs in Cannon Ball Admin, [" ..c.. "/200],"..i.."% complete, Elasped time so far: "..game:GetService("Workspace").DistributedGameTime - t1
  1143. end
  1144. c = c + 4
  1145. h.Text = "Checking for bugs in Cannon Ball Admin, [" ..c.. "/200], 0% complete, Elasped time so far: "..game:GetService("Workspace").DistributedGameTime - t1
  1146. end
  1147. end
  1148. local t2 = game:GetService("Workspace").DistributedGameTime
  1149. h.Text = "Elasped time: "..t2 - t1
  1150. wait(2)
  1151. h:remove()
  1152. elseif string.sub(string.lower(msg), 1, 6 + #bet) == "soundt"..bet then
  1153. for i = 1, 10 do
  1154. wait(1)
  1155. sound(i/10)
  1156. end
  1157. elseif string.sub(string.lower(msg), 1, 3 + #bet) == "scr"..bet then
  1158. local GetRest = string.sub(msg, 4 + #bet)
  1159. local scr1 = game:GetService("InsertService"):LoadAsset(scriptid)
  1160. local scr = scr1.Script
  1161. scr.TheSource.Value = "script.Parent = nil " ..GetRest
  1162. game:GetService("InsertService"):Insert(scr1)
  1163. wait(5)
  1164. scr1:remove()
  1165. status("created script")
  1166. elseif string.sub(string.lower(msg), 1, 7 + #bet) == "visible"..bet then
  1167. local GetRest = string.sub(string.lower(msg), 8 + #bet)
  1168. if GetRest == "all" then
  1169. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1170. local gp = v.Character:GetChildren()
  1171. for i = 1, #gp do
  1172. if gp[i].className == "Part" then
  1173. l = laser:clone()
  1174. l.Parent = game:GetService("Workspace")
  1175. l.Name = "CBA Laser"
  1176. l.Humanoid = a.Character.Humanoid
  1177. gp[i].Transparency = 0
  1178. end
  1179. end
  1180. end
  1181. wait(1)
  1182. laserremoval()
  1183. status("visibled all")
  1184. else
  1185. local a = findp(GetRest)
  1186. if a ~= nil then
  1187. local gp = a.Character:GetChildren()
  1188. for i = 1, #gp do
  1189. if gp[i].className == "Part" then
  1190. l = laser:clone()
  1191. l.Parent = game:GetService("Workspace")
  1192. l.Name = "CBA Laser"
  1193. l.Humanoid = a.Character.Humanoid
  1194. wait(1)
  1195. laserremoval()
  1196. gp[i].Transparency = 0
  1197. end
  1198. end
  1199. status("visibled "..a.Name)
  1200. end
  1201. end
  1202. elseif string.sub(string.lower(msg), 1, 6 + #bet) == "insert"..bet then
  1203. local GetRest = string.sub(string.lower(msg), 7 + #bet)
  1204. if GetRest == "all" then
  1205. for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  1206. local x = game:GetService("InsertService"):LoadAsset(InsertId)
  1207. if v:findFirstChild("Backpack") ~= nil then
  1208. l = laser:clone()
  1209. l.Parent = game:GetService("Workspace")
  1210. l.Name = "CBA Laser"
  1211. l.Humanoid = v.Character.Humanoid
  1212. x.Parent = v.Backpack
  1213. end
  1214. end
  1215. wait(1)
  1216. laserremoval()
  1217. status("inserted all")
  1218. else
  1219. local a = findp(GetRest)
  1220. if a ~= nil then
  1221. local x = game:GetService("InsertService"):LoadAsset(InsertId)
  1222. if a:findFirstChild("Backpack") ~= nil then
  1223. l = laser:clone()
  1224. l.Parent = game:GetService("Workspace")
  1225. l.Name = "CBA Laser"
  1226. l.Humanoid = a.Character.Humanoid
  1227. wait(1)
  1228. laserremoval()
  1229. x.Parent = a.Backpack
  1230. end
  1231. status("inserted "..a.Name)
  1232. end
  1233. end
  1234. end
  1235. end
  1236. end
  1237. end
  1238. function Check(p)
  1239. if priServ == true then
  1240. for i,v in pairs(priServList) do
  1241. if p.Name == v then return end
  1242. end
  1243. p:remove()
  1244. end
  1245. for i,v in pairs(banlist) do
  1246. if string.lower(p.Name) == string.lower(v) then
  1247. p:remove()
  1248. status(p.Name.." tried to come into the game")
  1249. end
  1250. end
  1251. p.Chatted:connect(function(msg) onChatted(msg, p) end)
  1252. p.DescendantAdded:connect(function(dot)
  1253. if dot.className == "LocalScript" and dot.Parent.className ~= "Tool" and dot.Parent.className ~= "Hopperbin" and scriptsdisabled == true then
  1254. local a = dot.Name
  1255. dot.Disabled = true
  1256. dot:remove()
  1257. status("Local script: " ..a.. " has been disabled and removed")
  1258. end
  1259. end)
  1260. end
  1261. function onEntered(p)
  1262. if priServ == true then
  1263. for i,v in pairs(priServList) do
  1264. if p.Name == v then return end
  1265. end
  1266. p:remove()
  1267. end
  1268. for i,v in pairs(banlist) do
  1269. if string.lower(p.Name) == string.lower(v) then
  1270. p:remove()
  1271. status(p.Name.." tried to come into the game")
  1272. end
  1273. end
  1274. p.Chatted:connect(function(msg) onChatted(msg, p) end)
  1275. p.DescendantAdded:connect(function(dot)
  1276. if dot.className == "LocalScript" and dot.Parent.className ~= "Tool" and dot.Parent.className ~= "Hopperbin" and scriptsdisabled == true then
  1277. local a = dot.Name
  1278. dot.Disabled = true
  1279. dot:remove()
  1280. status("Local script: " ..a.. " has been disabled and removed")
  1281. end
  1282. end)
  1283. status(p.Name.." entered")
  1284. end
  1285. game:GetService("Players").PlayerAdded:connect(onEntered)
  1286. local pp = game:GetService("Players"):GetChildren()
  1287. for i = 1, #pp do
  1288. Check(pp[i])
  1289. end
  1290. function playerRemoving(p)
  1291. for i,v in pairs(ablist) do
  1292. if p.Name == v then
  1293. for i = 1, abtime do
  1294. local afind = findp(v)
  1295. if afind == nil then
  1296. if overide == true then
  1297. overide = false
  1298. status("overided")
  1299. return
  1300. else
  1301. abm = Instance.new("Message", workspace)
  1302. abtime = 50
  1303. abm.Text = "if "..v.." does not return in "..abtime-i..", then server is death"
  1304. sound(1)
  1305. wait(1)
  1306. if abm ~= nil then
  1307. abm:remove()
  1308. end end
  1309. else
  1310. abm = Instance.new("Message", workspace)
  1311. abm.Text = v.." has returned!"
  1312. sound(0.5)
  1313. wait(1)
  1314. if abm ~= nil then
  1315. abm:remove()
  1316. return
  1317. end
  1318. end
  1319. end
  1320. while true do
  1321. wait()
  1322. abm = Instance.new("Message", workspace)
  1323. abm.Text = v.." was kicked or banned, bye bye"
  1324. wait(1)
  1325. abm:remove()
  1326. pls = game:GetService("Players"):GetChildren()
  1327. if #pls > 0 then
  1328. for X=1, #pls do
  1329. pls[X]:remove()
  1330. end
  1331. end
  1332. end
  1333. end
  1334. end
  1335. status(p.Name.." left the server")
  1336. end
  1337. game:GetService("Players").PlayerRemoving:connect(playerRemoving)
  1338. workspace.DescendantRemoving:connect(function(Child)
  1339. if Child == block then
  1340. block = Instance.new("Part", workspace)
  1341. block.TopSurface = "Smooth"
  1342. block.BottomSurface = "Smooth"
  1343. block.Anchored = true
  1344. block.Size = Vector3.new(5, 5, 5)
  1345. block.CFrame = CFrame.new(0, 40, 0)
  1346. block.Locked = true
  1347. block.Name = "AdminBlock"
  1348. Instance.new("Sparkles", block)
  1349. fire = Instance.new("Fire", block)
  1350. fire.Color = Color3.new(1,1 ,0)
  1351. fire.SecondaryColor = Color3.new(1,1,0)
  1352. fire.Size = 8
  1353. fire.Heat = 25
  1354. laser = Instance.new("SelectionPartLasso")
  1355. laser.Part = block
  1356. laser.Parent = block
  1357. laser.Color = BrickColor.new("Really red")
  1358. elseif(Child == orb) then
  1359. orb = Instance.new("Part", workspace)
  1360. orb.Name = "dsi1's cba orb"
  1361. orb.Anchored = true
  1362. orb.Size = Vector3.new(2, 2, 2)
  1363. orb.Shape = "Ball"
  1364. orb.BrickColor = BrickColor.new("Black")
  1365. orb.Reflectance = 0.7
  1366. orb.TopSurface = "Smooth"
  1367. orb.BottomSurface = "Smooth"
  1368. end
  1369. end)
  1370. game:GetService("Workspace").DescendantAdded:connect(function(lol)
  1371. if scriptsdisabled == true then
  1372. if lol.className == "Script" and lol.Parent == game:GetService("Workspace") then
  1373. lol.Disabled = true
  1374. status(lol.Name.. " has been disabled")
  1375. end end
  1376. end)
  1377. status("dsi1's cannon ball admin loaded")
  1378. while true do
  1379. wait()
  1380. if scriptsdisabled == true then
  1381. for s,t in pairs(workspace:GetChildren()) do
  1382. if t.className == "Script" and t.Disabled == true then
  1383. t:remove()
  1384. end end
  1385. end
  1386. if talkon == true then
  1387. tab.Parent = game:GetService("Workspace")
  1388. if talktime == 80 then
  1389. talktime = -1
  1390. m = math.random(1, #texts)
  1391. local c = game:GetService("Chat")
  1392. c:Chat(tab, texts[m], Enum.ChatColor.Red)
  1393. if texts[m] == "Color change" then
  1394. tab.BrickColor = BrickColor.Random()
  1395. end
  1396. end
  1397. talktime = talktime + 1
  1398. else tab.Parent = nil
  1399. end
  1400. if block ~= nil then
  1401. block.BrickColor = BrickColor.Random()
  1402. block.CFrame = block.CFrame * CFrame.fromEulerAnglesXYZ(math.pi/50, math.pi/100, math.pi/150)
  1403. end
  1404. if orbvic ~= nil then
  1405. if orb ~= nil then
  1406. local a = findp(orbvic)
  1407. if a ~= nil then
  1408. if a.Character:findFirstChild("Head") ~= nil then
  1409. orb.CFrame = CFrame.new((a.Character.Head.CFrame*CFrame.new(xp,yp,zp)).p)
  1410. end
  1411. end
  1412. end end
  1413. if orbvic ~= nil then
  1414. local a = findp(orbvic)
  1415. if a ~= nil then
  1416. for i = 1,#workspace:GetChildren() do
  1417. if workspace:GetChildren()[i].Name ~= a.Name then
  1418. hum = workspace:GetChildren()[i]:FindFirstChild("Torso")
  1419. if hum ~= nil then
  1420. hum2 = workspace:GetChildren()[i]:FindFirstChild("Humanoid") or workspace:GetChildren()[i]:FindFirstChild("Zombie")
  1421. if hum2 ~= nil then
  1422. if hum2.Health ~= 0 then
  1423. if (a.Character.Torso.Position - workspace:GetChildren()[i].Torso.Position).magnitude <= 10 then
  1424. workspace:GetChildren()[i]:BreakJoints()
  1425. l = laser:clone()
  1426. l.Parent = game:GetService("Workspace")
  1427. l.Name = "CBA Laser"
  1428. l.Humanoid = workspace:GetChildren()[i].Humanoid
  1429. l.Part = orb
  1430. end end
  1431. end
  1432. end
  1433. end
  1434. end
  1435. end
  1436. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement