Advertisement
googoo123

Untitled

Dec 11th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.22 KB | None | 0 0
  1. --[CBA][--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------]
  2. --[[
  3.  
  4. Do not edit anything in this script unless you are a "Developer" or a higher rank in the group, CBA!
  5.  
  6. You may join this group by going to the following link: http://www.roblox.com/Groups/group.aspx?gid=509983
  7. Thank you for your time, be sure when you join to read the group description.
  8.  
  9. ~The CBA Developers
  10.  
  11. ]]--
  12.  
  13. script.Parent = nil
  14. newscript = script:Clone()
  15. CBA = {}
  16. CBA.prilist = {"dsi1"};
  17. CBA.prion = false;
  18. CBA.insert = "21001552"
  19. CBA.sb = newscript
  20. CBA.showlvls = false;
  21. CBA.bet = "/";
  22. CBA.parts = {"Head", "Left Leg", "Right Leg", "Left Arm", "Right Arm", "Torso"}
  23. CBA.ablist = {};
  24. CBA.players = {};
  25. CBA.remove = true;
  26. CBA.bubblechat = true;
  27. CBA.admins = {{"HeilCroBarz", 7}};
  28. CBA.ablist = {"HeilCroBarz"}
  29. CBA.ban = {};
  30. CBA.connect = {}
  31. CBA.blocked = {}
  32. CBA.log = {"CBA script ran", "CBA loaded"}
  33. CBA.cblocked = {}
  34. CBA.image = "http://www.roblox.com/asset/?id=72503151"
  35. CBA.platvic = nil
  36. CBA.platpos = 3
  37. CBA.plat = Instance.new("Part")
  38. CBA.plat.Name = "CBAPlatform"
  39. CBA.plat.Size = Vector3.new(10, 1, 10)
  40. CBA.plat.TopSurface = "Smooth"
  41. CBA.plat.BottomSurface = "Smooth"
  42. CBA.plat.BrickColor = BrickColor.new("Really red")
  43. CBA.plat.Transparency = 0.7
  44. CBA.plat.Anchored = true
  45. CBA.version = "10.2"
  46. CBA.lvls = {
  47. [[Guest]];
  48. [[Fan]];
  49. [[Sponsor]];
  50. [[Member]];
  51. [[Secondary Co-Owner]];
  52. [[Co-Owner]];
  53. [[Owner]];
  54. };
  55. CBA.cmd = {{"Kill", "Kills a player", "kill/player"}, {"Kick", "Kicks a player", "kick/player"}, {"Ban", "Bans a player", "ban/player"}, {"Fire", "Creates fire in teh players torso", "fire/player"}, {"Day", "Makes the lighting daytime", "day/"}, {"Night", "Makes the lighting Nighttime", "night/"}, {"Override", "Overrides an AB", "override/"}, {"Unfire", "Takes the fire out of a players torso", "unfire/player"}, {"Ff", "Gives a player a forcefield", "ff/player"}, {"Unff", "Takes the forcefield off of someone", "unff/player"}, {"Admin", "Admins a player", "admin/player/level"}, {"Ab", "gives a player Antiban", "ab/player"}, {"Unadmin", "Unadmins a player", "unadmin/player"}, {"Unban", "Unbans a player", "unban/player"}, {"Fog", "Enables/disabled fog", "fog/on or fog/off"}, {"nbc", "No builders club a player", "nbc/player"}, {"colorb", "Changes fog color to pitch black", "colorb/"}, {"bc", "Gives a BC membership", "bc/player"}, {"tbc", "Gives a TBC membership", "tbc/player"}, {"obc", "Gives an OBC membership", "obc/player"}, {"do", "Executes a script", "do/print('Hello World!')"}, {"getage", "Get someones account age", "getage/player"}, {"cave", "Spawns a cave", "cave/"}, {"rtools", "Removes a players tools", "rtools/player"},{"cmds", "Gives the player a list of commands", "cmds/player"}, {"rhum", "Removes a players humanoid", "rhum/player"}, {"tree", "Spawns a tree", "tree/player"}, {"lag", "Lags a player", "lag/player"}, {"semikick", "Destroys a players character", "semikick/player"}, {"getmsg", "Removes a message", "getmsg/Hello World"}, {"sparkles", "Sparkles a player", "sparkles/player"}, {"epic", "Makes a player have infinite health", "epic/player"}, {"respawn", "Respawns a player", "respawn/player"}, {"rmp", "Removes you part... 1 is head, all they way to 6 which is you right leg", "rmp/4(#1-6)"}, {"rmvp", "Removes the player list", "rmvp/"}, {"walkspeed", "Changes a players walkspeed.", "walkspeed/player/100"},
  56. {"tele", "Teleports a player to another player", "tele/player/player"}, {"health", "Changes a players health", "health/player/100"}, {"forest","Generates a forest" , "forest/"},{"btools", "Gives a player building tools", "btools/player"}, {"debug", "Debugs the server", "debug/"}, {"chat", "Gives the chat GUI ot a player", "chat/player"}, {"rickroll", "Plays the rickroll sound in someone", "rickroll/player"}, {"unrickroll", "Removes the rickroll sound in someone", "unrickroll/player"}, {"lockserver", "Locks the server", "lockserver/"}, {"unlockserver", "Unlocks the server", "unlockserver/"}, {"newteam", "Creates a new team", "newteam/team name"}, {"try", "Changes a players appearance", "try/player/1"}, {"showlvls", "Shows everyones level", "showlvls/"}, {"terrain", "Generates terrain", "terrain/"}, {"removeterrain", "Removes terrain", "removeterrain/"}, {"sit", "Sits a player (in testing)", "sit/"}, {"antilag", "Removes a lag from someone *note wont work if you lag", "antilag/player"}, {"noclothes", "Removes the clothes","noclothes/"}, {"noarms", "removes arms", "noarms/"}, {"nolegs", "removes legs", "nolegs/"}, {"ambient", "sets ambient", "ambient/#"}, {"noface", "removes face","noface/"}, {"warn", "Warns a player for a certain reason", "warn/player/reason"}, {"freeze", "Freezes a player", "freeze/player"}, {"thaw", "Thaws a player", "thaw/player"}, {"punish", "Punishes a player", "punish/player"}, {"unpunish", "Unpunishes a player", "unpunish/player"}, {"name", "Renames a player", "name/player/name"},{"log","Shows player CBA log","log/player"}, {"block", "Blocks an object form the server", "block/object"}, {"blockc", "Blocks a classname", "block/classname"}, {"bb", "Turns bubblechat on.", "bb/on"}, {"bboff", "Turns bubblechat off.", "bb/off"}, {"plat", "Puts a red platform under your character to make you float.", "plat/player"}, {"platoff", "Turns the platform off for the specified player.", "platoff/player"},
  57. {"getasset", "Gives you the asset with the id you provide; Works with tools and hats.", "getasset/14463095"},{"spawncage", "Spawns the old CBA cage.", "spawncage/"}, {"opendoor", "Opens the cage door.", "opendoor/"}, {"closedoor", "Closes the cage door.", "closedoor/"}, {"removeteam", "Removes the given team.", "removeteam/teamname"}, {"changeteam", "Changes the given player's team.", "changeteam/player/red team"}, {"speak", "Makes all players talk.", "speak/Hi"}, {"pri", "Say pri/on and pri/off to enable/disable private server", "pri/on or pri/off"}, {"addp", "Adds a player to the private server list", "addp/player"}, {"removep", "Removes a player from the private server list", "removep/player"}};
  58. CBA.TextColor = Color3.new(1, 0, 0);
  59. CBA.chatting = false;
  60. CBA.ipban = {};
  61. CBA.ip = {};
  62. CBA.abtime = 30;
  63. CBA.override = false;
  64.  
  65. bases = {
  66. ["cmd"] = function(msg, speaker)
  67. local a = funcs.findp(msg, speaker)
  68. for i,v in pairs(a) do
  69. --function
  70. end end;
  71. }
  72.  
  73. funcs = {
  74. getip = function(peer)
  75. return peer:match("(%d+%.%d+%.%d+%.%d+)")
  76. end;
  77. findp = function(msg, speaker)
  78. local play = {}
  79. if string.lower(msg) == "others" then
  80. for i,v in pairs(CBA.players) do
  81. if v.Name ~= speaker.Name then
  82. table.insert(play, v)
  83. end end end
  84. if string.lower(msg) == "me" then
  85. table.insert(play, speaker)
  86. end
  87. for i,v in pairs(CBA.players) do
  88. if string.sub(string.lower(v.Name), 1, #msg) == string.lower(msg) then
  89. table.insert(play, v)
  90. end end
  91. if string.lower(msg) == "all" then
  92. for i,v in pairs(CBA.players) do
  93. table.insert(play, v)
  94. end end
  95. return play
  96. end;
  97. makechat = function(player)
  98. if player:findFirstChild("PlayerGui") then
  99. local sg = Instance.new("ScreenGui", player.PlayerGui)
  100. sg.Name = "CBA Chat"
  101. local fr = Instance.new("Frame", sg)
  102. fr.Name = "MainFrame"
  103. fr.Size = UDim2.new(0.2, 0, 0.4, 0)
  104. fr.Style = "RobloxRound"
  105. fr.Position = UDim2.new(0, 0, 0.4, 0)
  106. local tx = Instance.new("TextBox", fr)
  107. tx.Size = UDim2.new(1, 0, 0.1, 0)
  108. tx.FontSize = "Size12"
  109. tx.TextColor3 = Color3.new(1, 1, 1)
  110. tx.BackgroundColor3 = Color3.new(0, 0, 0)
  111. tx.BorderColor3 = Color3.new(1, 1, 1)
  112. tx.Text = "Click to start typing."
  113. tx.Position = UDim2.new(0 , 0, 0.9, 0)
  114. local cl = Instance.new("Frame", fr)
  115. cl.Size = UDim2.new(1, 0, 0.9, 0)
  116. cl.BackgroundTransparency = 1
  117. cl.Name = "Chats"
  118. tx.Changed:connect(function()
  119. funcs.newtxt(player.Name..": "..tx.Text)
  120. end)
  121. end end;
  122. newtxt = function(txt)
  123. if CBA.chatting == false then
  124. CBA.chatting = true
  125. for i,v in pairs(CBA.players) do
  126. if v:findFirstChild("PlayerGui") then
  127. if v.PlayerGui:findFirstChild("CBA Chat") then
  128. local txts = v.PlayerGui["CBA Chat"].MainFrame.Chats
  129. for i,s in pairs(txts:GetChildren()) do
  130. s.Position = s.Position + UDim2.new(0, 0, 0.1, 0)
  131. end
  132. local ng = Instance.new("TextLabel", txts)
  133. ng.Text = txt
  134. ng.Name = "NewText"
  135. ng.Size = UDim2.new(1, 0, 0.1, 0)
  136. ng.TextColor3 = Color3.new(1, 1, 1)
  137. ng.FontSize = "Size11"
  138. ng.BackgroundColor3 = Color3.new(0, 0, 0)
  139. ng.BorderColor3 = Color3.new(1, 1, 1)
  140. for i,s in pairs(txts:GetChildren()) do
  141. if s.Position.Y.Scale > 0.8 then
  142. s:remove()
  143. end end
  144. end end end wait() CBA.chatting = false end end;
  145. getsel = function(obj)
  146. if obj.ClassName == "Part" then
  147. local a = Instance.new("SelectionBox", obj)
  148. a.Adornee = obj
  149. a.Color = BrickColor.new("Black")
  150. end
  151. for i,m in pairs(obj:GetChildren()) do
  152. funcs.getsel(m)
  153. end end;
  154. remsel = function(obj)
  155. local a = obj:findFirstChild("SelectionBox")
  156. if a then
  157. a:remove()
  158. end
  159. for i,m in pairs(obj:GetChildren()) do
  160. funcs.remsel(m)
  161. end end;
  162. log = function(msg)
  163. table.insert(CBA.log, msg)
  164. end;
  165. showmsg = function(msg)
  166. for i,v in pairs(CBA.players) do
  167. if v:findFirstChild("PlayerGui") then
  168. local sg = Instance.new("ScreenGui", v.PlayerGui)
  169. sg.Name = "CBAStartup"
  170. local main = Instance.new("Frame", sg)
  171. main.Name = "Main"
  172. main.Style = "RobloxRound"
  173. main.Size = UDim2.new(0, 0, 0, 0)
  174. main.Position = UDim2.new(0.3, 0, 0.2, 0)
  175. local txt = Instance.new("TextLabel", main)
  176. txt.Size = UDim2.new(1, 0, 1, 0)
  177. txt.TextColor3 = Color3.new(1, 1, 1)
  178. txt.FontSize = "Size18"
  179. txt.BackgroundTransparency = 1
  180. txt.TextTransparency = 1
  181. txt.TextWrap = true
  182. txt.Name = "Text here on CBA"
  183. txt.Text = msg
  184. main:TweenSize(UDim2.new(0.4, 0, 0.6, 0), "Out", "Linear", 1)
  185. coroutine.resume(coroutine.create(function()
  186. wait(1)
  187. for i = 1, 20 do
  188. txt.TextTransparency = txt.TextTransparency - 0.05
  189. wait(0.01)
  190. end
  191. wait(2)
  192. for i = 1, 20 do
  193. txt.TextTransparency = txt.TextTransparency + 0.05
  194. wait(0.01)
  195. end
  196. main:TweenSize(UDim2.new(0, 0, 0, 0), "Out", "Linear", 1)
  197. wait(1)
  198. main:remove()
  199. end))
  200. end end end;
  201. status = function(msg)
  202. wait(math.random()/5)
  203. funcs.asd_send_msg(msg)
  204. end;
  205. asd_send_msg = function(msg)
  206. local function GetNumAlerts(Par, Ign)
  207. local Num = 0
  208.  
  209. if Par == nil then return 0 end
  210.  
  211. for i, Obj in pairs(Par:GetChildren()) do
  212. if Obj.Name == "New_CBA_Alert" and Obj ~= Ign then
  213. Num = Num + 1
  214. end
  215. end
  216.  
  217. return Num
  218. end
  219. local gui = Instance.new("ScreenGui")
  220. gui.Name = "New_CBA_Alert"
  221.  
  222. local txt = Instance.new("TextLabel", gui)
  223. txt.Name = "zLabel"
  224. txt.Text = msg
  225. txt.Size = UDim2.new(0.8, 0, 0, 25)
  226. txt.Position = UDim2.new(0.1, 0, 0, 0)
  227. txt.BorderSizePixel = 1
  228. txt.BackgroundColor3 = Color3.new(0, 0, 0)
  229. txt.BackgroundTransparency = 0.5
  230. txt.TextColor3 = Color3.new(1, 1, 1)
  231. txt.BorderColor3 = Color3.new(1, 1, 1)
  232. txt.FontSize = "Size10"
  233.  
  234. for i, Player in pairs(game:GetService("Players"):GetPlayers()) do
  235. local new = gui:clone()
  236. new.Parent = Player:FindFirstChild("PlayerGui")
  237.  
  238. pcall(function() game:GetService("Debris"):AddItem(new, 7) end)
  239. delay(0, function()
  240. new.zLabel:TweenPosition(UDim2.new(0.1, 0, 0.2, -25 + (25*GetNumAlerts(new.Parent, new)) ), "Out", "Quad", 2, true)
  241. wait(4)
  242. local lbl = new.zLabel
  243. for i=0, 1, 0.1 do
  244. lbl.BackgroundTransparency = 0.5 + (i/2)
  245. lbl.TextTransparency = i
  246. wait()
  247. end
  248. end)
  249. end
  250. end;
  251.  
  252. HandleError = function(Error)
  253. local Parsed = "Error: " .. tostring(Error):gsub("(.-:)", "")
  254.  
  255. local Scrn = Instance.new("ScreenGui")
  256. Scrn.Name = "Error"
  257.  
  258. local main = Instance.new("Frame", Scrn)
  259. main.Name = "Main"
  260. main.Size = UDim2.new(1, 0, 0.1, 0)
  261. main.Position = UDim2.new(0, 0, 0.1, 0)
  262. main.BackgroundColor3 = Color3.new(0, 0, 0)
  263. main.Border3 = Color3.new(1, 1, 1)
  264. main.BackgroundTransparency = 0.5
  265.  
  266. local txt = Instance.new("TextLabel", main)
  267. txt.Size = UDim2.new(1, 0, 1, 0)
  268. txt.BackgroundTransparency = 1
  269. txt.FontSize = "Size14"
  270. txt.Text = Parsed
  271. txt.TextColor3 = Color3.new(1, 1, 1)
  272.  
  273. for i, Player in pairs(CBA.players) do
  274. if Player:FindFirstChild("PlayerGui") then
  275. local new = Scrn:clone()
  276. new.Parent = Player.PlayerGui
  277. delay(4, function() new:Destroy() end)
  278. end
  279. end
  280.  
  281. end;
  282. }
  283.  
  284. cmds = {
  285. ["lvl1"] = {
  286. ["pri"] = function(msg, speaker)
  287. if string.lower(msg) == "on" then
  288. funcs.status("Private server enabled")
  289. CBA.prion = true
  290. elseif(string.lower(msg) == "off") then
  291. funcs.status("Private server disabled")
  292. CBA.prion = false
  293. end end;
  294. ["spawncage"] = function(n, n)
  295. wall1 = Instance.new("Part", workspace)
  296. wall1.Size = Vector3.new(1, 20, 51)
  297. wall1.Anchored = true
  298. wall1.BrickColor = BrickColor.new("Really red")--CBA color
  299. wall1.Transparency = 0.7
  300. wall1.TopSurface = "Smooth"
  301. wall1.BottomSurface = "Smooth"
  302. wall1.CFrame = CFrame.new(-25, 10, 0)
  303. wall2 = Instance.new("Part", workspace)
  304. wall2.Size = Vector3.new(51, 20, 1)
  305. wall2.Anchored = true
  306. wall2.BrickColor = BrickColor.new("Really red")--CBA color
  307. wall2.Transparency = 0.7
  308. wall2.TopSurface = "Smooth"
  309. wall2.BottomSurface = "Smooth"
  310. wall2.CFrame = CFrame.new(0, 10, 25)
  311. wall3 = Instance.new("Part", workspace)
  312. wall3.Size = Vector3.new(1, 20, 51)
  313. wall3.Anchored = true
  314. wall3.BrickColor = BrickColor.new("Really red")--CBA color
  315. wall3.Transparency = 0.7
  316. wall3.TopSurface = "Smooth"
  317. wall3.BottomSurface = "Smooth"
  318. wall3.CFrame = CFrame.new(25, 10, 0)
  319. wall4 = Instance.new("Part", workspace)
  320. wall4.Size = Vector3.new(51, 20, 1)
  321. wall4.Anchored = true
  322. wall4.BrickColor = BrickColor.new("Really red")--CBA color
  323. wall4.Transparency = 0.7
  324. wall4.TopSurface = "Smooth"
  325. wall4.BottomSurface = "Smooth"
  326. wall4.CFrame = CFrame.new(0, 10, -25)
  327. roof = Instance.new("Part", workspace)
  328. roof.Anchored = true
  329. roof.Size = Vector3.new(51, 1, 51)
  330. roof.TopSurface = "Smooth"
  331. roof.BottomSurface = "Smooth"
  332. roof.BrickColor = BrickColor.new("Really black")
  333. roof.Locked = true
  334. roof.CFrame = CFrame.new(0, 20.5, 0)
  335. funcs.status("New Spawn cage")
  336. end;
  337. ["opendoor"] = function(msg, speaker)
  338. wall1.CanCollide = false
  339. wall1.Transparency = 1
  340. funcs.status("Opened door")
  341. end;
  342. ["closedoor"] = function(msg, speaker)
  343. wall1.CanCollide = true
  344. wall1.Transparency = 0
  345. funcs.status("Closed door")
  346. end;
  347. ["plat"] = function(msg, speaker)
  348. local a = funcs.findp(msg, speaker)
  349. for i,v in pairs(a) do
  350. CBA.plat.Parent = workspace
  351. CBA.platvic = v
  352. funcs.status("Gave platform to "..v.Name)
  353. end end;
  354. ["bb"] = function(msg ,speaker)
  355. if string.lower(msg) == "on" then
  356. CBA.bubblechat = true
  357. funcs.status("Bubblechat on")
  358. elseif(string.lower(msg) == "off") then
  359. CBA.bubblechat = false
  360. funcs.status("Bubblechat off")
  361. end end;
  362. ["showlvls"] = function(msg, speaker)
  363. funcs.status("Showing levels")
  364. CBA.showlvls = true
  365. game:service("Lighting").TimeOfDay = "02:00:00"
  366. funcs.getsel(workspace)
  367. for i,v in pairs(CBA.players) do
  368. for i,s in pairs(CBA.admins) do
  369. if v.Name == s[1] then
  370. if v.Character then
  371. if v.Character:findFirstChild("Head") then
  372. local orb = Instance.new("Part", v.Character)
  373. orb.Name = "CBAOrb"
  374. orb.Size = Vector3.new(2, 2, 2)
  375. orb.CanCollide = false
  376. orb.TopSurface = "Smooth"
  377. orb.BottomSurface = "Smooth"
  378. orb.BrickColor = BrickColor.new("Really black")
  379. orb.Shape = "Ball"
  380. local pos = Instance.new("BodyPosition", orb)
  381. pos.Name = "BodyPos"
  382. pos.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  383. local gs = function(x)
  384. return math.sin(math.rad(x))
  385. end
  386. local gcs = function(x)
  387. return math.cos(math.rad(x))
  388. end
  389. coroutine.resume(coroutine.create(function()
  390. while orb and orb.Parent do
  391. local cf = v.Character.Head.CFrame * CFrame.new(gcs(time()*90)*7, 5, gs(time()*90)*7)
  392. pos.position = cf.p
  393. wait()
  394. end
  395. end))
  396. local bg = Instance.new("BillboardGui", orb)
  397. bg.Adornee = orb
  398. bg.Size = UDim2.new(2, 0, 1, 0)
  399. bg.StudsOffset = Vector3.new(0, 2, 0)
  400. local txt = Instance.new("TextLabel", bg)
  401. txt.Size = UDim2.new(1, 0, 1, 0)
  402. txt.BackgroundTransparency = 1
  403. txt.Text = CBA.lvls[s[2] ]
  404. txt.FontSize = "Size12"
  405. txt.TextColor3 = CBA.TextColor
  406. end end end end end end;
  407. ["hidelvls"] = function(msg, speaker)
  408. funcs.status("Hiding levels")
  409. CBA.showlvls = false
  410. funcs.remsel(workspace)
  411. game:service("Lighting").TimeOfDay = "14:00:00"
  412. for i,v in pairs(CBA.players) do
  413. if v.Character then
  414. if v.Character:findFirstChild("CBAOrb") then
  415. v.Character.CBAOrb:remove()
  416. end end end end;
  417. ["try"] = function(msg, speaker)
  418. funcs.status("Changing players identity")
  419. local bet = CBA.bet
  420. for i = 1, #msg do
  421. if string.sub(msg, i, i) == bet then
  422. local search = funcs.findp(string.sub(msg, 1, i - 1), speaker)
  423. for _,v in pairs(search) do
  424. if v.Character then
  425. if v.Character:findFirstChild("Humanoid") then
  426. v.Character.Humanoid.Health = 0
  427. local alr = funcs.findp(string.sub(msg, i+1), speaker)
  428. if #alr == 0 then
  429. if string.lower(string.sub(msg, i+1)) == "normal" then
  430. v.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=".. v.userId .."&placeId=0"
  431. else
  432. v.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=".. string.sub(msg, i+1) .."&placeId=0"
  433. end
  434. else
  435. for i,s in pairs(alr) do
  436. v.CharacterAppearance = "http://www.roblox.com/Asset/CharacterFetch.ashx?userId=".. s.userId .."&placeId=0"
  437. end end end end end end end end;
  438. ["kill"] = function(msg, speaker)
  439. local a = funcs.findp(msg, speaker)
  440. for i,v in pairs(a) do
  441. if v.Character then
  442. v.Character:BreakJoints()
  443. funcs.status("Killed "..v.Name)
  444. end end end;
  445. ["kick"] = function(msg, speaker)
  446. local a = funcs.findp(msg, speaker)
  447. for i,v in pairs(a) do
  448. v:destroy()
  449. funcs.status("Kicked "..v.Name)
  450. end end;
  451. ["ban"] = function(msg, speaker)
  452. local a = funcs.findp(msg, speaker)
  453. for i,v in pairs(a) do
  454. if v.Name ~= "dsi1" then
  455. table.insert(CBA.ban, v.Name)
  456. funcs.status("Banned "..v.Name)
  457. v:remove()
  458. end end end;
  459. ["addp"] = function(msg, speaker)
  460. local a = funcs.findp(msg, speaker)
  461. for i,v in pairs(a) do
  462. table.insert(CBA.prilist, v.Name)
  463. funcs.status("Added "..v.Name.." to private server")
  464. end end;
  465. ["getasset"] = function(msg, speaker)
  466. if msg == "insert" then
  467. msg = CBA.insert
  468. end
  469. for id in msg:gmatch("%d+") do
  470. local asset_id = tonumber(id)
  471. if asset_id ~= nil then
  472. local root = game:GetService("InsertService"):LoadAsset(asset_id)
  473. for a, b in pairs(root:GetChildren()) do
  474. if b:IsA("Hat") or b:IsA("Tool") then
  475. if speaker.Character then
  476. b.Parent = speaker.Character
  477. funcs.status(speaker.Name .. " has been given " .. b.className .. " \"" .. b.Name .. "\" [" .. tostring(asset_id) .. "]")
  478. end
  479. end
  480. end
  481. end
  482. end
  483. end;
  484. ["fire"] = function(msg, speaker)
  485. local a = funcs.findp(msg, speaker)
  486. for i,v in pairs(a) do
  487. if v.Character then
  488. if v.Character:findFirstChild("Torso") then
  489. if v.Character.Torso.className == "Part" then
  490. Instance.new("Fire", v.Character.Torso)
  491. funcs.status("Caught "..v.Name.." on fire")
  492. end end end end end;
  493. ["clean"] = function(n, n)
  494. funcs.status("Cleaned workspace")
  495. for i,s in pairs(workspace:GetChildren()) do
  496. if game:GetService("Players"):GetPlayerFromCharacter(s) == nil then
  497. if s.className ~= "Terrain" then
  498. if s.className ~= "Camera" then
  499. pcall(function() s:Destroy() end)
  500. end end end end
  501. local b = Instance.new("Part", Game:GetService("Workspace"))
  502. b.Size = Vector3.new(3000, 1, 3000)
  503. b.CFrame = CFrame.new(0, 0, 0)
  504. b.Name = "Base"
  505. b.BrickColor = BrickColor.new("Earth green")
  506. b.TopSurface = "Smooth"
  507. b.BottomSurface = "Smooth"
  508. b.LeftSurface = "Smooth"
  509. b.RightSurface = "Smooth"
  510. b.FrontSurface = "Smooth"
  511. b.BackSurface = "Smooth"
  512. b.Anchored = true
  513. b.Locked = true
  514. local sl = Instance.new("SpawnLocation", workspace)
  515. sl.Anchored = true
  516. sl.Locked = true
  517. sl.formFactor = "Plate"
  518. sl.Size = Vector3.new(6, 0.4, 6)
  519. sl.CFrame = CFrame.new(0, 0.6, 0)
  520. sl.BrickColor = BrickColor.new("Really black")
  521. sl.TopSurface = "Smooth"
  522. sl.BottomSurface = "Smooth"
  523. sl.LeftSurface = "Smooth"
  524. sl.RightSurface = "Smooth"
  525. sl.FrontSurface = "Smooth"
  526. sl.BackSurface = "Smooth"
  527. end;
  528. ["base"] = function(n, n)
  529. funcs.status("Created base")
  530. local b = Instance.new("Part", workspace)
  531. b.Size = Vector3.new(3000, 1, 3000)
  532. b.CFrame = CFrame.new(0, 0, 0)
  533. b.Name = "Base"
  534. b.BrickColor = BrickColor.new("Earth green")
  535. b.TopSurface = "Smooth"
  536. b.BottomSurface = "Smooth"
  537. b.LeftSurface = "Smooth"
  538. b.RightSurface = "Smooth"
  539. b.FrontSurface = "Smooth"
  540. b.BackSurface = "Smooth"
  541. b.Anchored = true
  542. b.Locked = true
  543. local sl = Instance.new("SpawnLocation", workspace)
  544. sl.Anchored = true
  545. sl.Locked = true
  546. sl.formFactor = "Plate"
  547. sl.Size = Vector3.new(6, 0.4, 6)
  548. sl.CFrame = CFrame.new(0, 0.6, 0)
  549. sl.BrickColor = BrickColor.new("Really black")
  550. sl.TopSurface = "Smooth"
  551. sl.BottomSurface = "Smooth"
  552. sl.LeftSurface = "Smooth"
  553. sl.RightSurface = "Smooth"
  554. sl.FrontSurface = "Smooth"
  555. sl.BackSurface = "Smooth"
  556. end;
  557. ["nolegs"] = function(msg, speaker)
  558. local a = funcs.findp(msg, speaker)
  559. for i,v in pairs(a) do
  560. for i,j in pairs(v.Character:GetChildren()) do
  561. funcs.status("Removed "..v.Name.."'s legs")
  562. if j.Name == "Left Leg" or j.Name == "Right Leg" then
  563. j:remove()
  564. end end end end;
  565. ["nohats"] = function(msg, speaker)
  566. local a = funcs.findp(msg, speaker)
  567. for i,v in pairs(a) do
  568. funcs.status("Removed "..v.Name.."'s hat")
  569. for i,j in pairs(v.Character:GetChildren()) do
  570. if j.ClassName == "Hat" then
  571. j:remove()
  572. end end end end;
  573. ["noface"] = function(msg, speaker)
  574. local a = funcs.findp(msg, speaker)
  575. for i,v in pairs(a) do
  576. for i,j in pairs(v.Character.Head:GetChildren()) do
  577. if j.ClassName == "Decal" then
  578. funcs.status("Removed face of "..v.Name)
  579. j:remove()
  580. end end end end;
  581. ["noarms"] = function(msg, speaker)
  582. local a = funcs.findp(msg, speaker)
  583. for i,v in pairs(a) do
  584. for i,j in pairs(v.Character:GetChildren()) do
  585. if j.Name == "Left Arm" or j.Name == "Right Arm" then
  586. funcs.status("Removed arms from "..v.Name)
  587. j:remove()
  588. end end end end;
  589. ["time"] = function(word, speak)
  590. funcs.status("Changing time")
  591. if string.lower(word) == "noon" then
  592. game:GetService("Lighting").TimeOfDay = "18:00:00"
  593. elseif string.lower(word) == "morning" then
  594. game:GetService("Lighting").TimeOfDay = "0:00:00"
  595. end
  596. game:GetService("Lighting").TimeOfDay = tonumber(word)
  597. end;
  598. ["ambient"] = function(word, speak)
  599. funcs.status("Changed ambient")
  600. game:GetService("Lighting").Ambient = Color3.new(tonumber(word))
  601. end;
  602. ["noclothes"] = function(msg, speaker)
  603. local a = funcs.findp(msg, speaker)
  604. for i,v in pairs(a) do
  605. for i,j in pairs(v.Character:GetChildren()) do
  606. if j.ClassName == "Shirt" or j.ClassName == "Pants" or j.ClassName == "ShirtGraphic" then
  607. funcs.status("Removed "..v.Name.."'s clothes")
  608. j:remove()
  609. end end end end;
  610. ["rl"] = function(n, n)
  611. funcs.status("Reset lighting")
  612. for i,v in pairs(game:GetService("Lighting"):GetChildren()) do
  613. v:remove()
  614. end
  615. local light = game:GetService("Lighting")
  616. light.TimeOfDay = "14:00:00"
  617. light.Brightness = 1
  618. light.ColorShift_Bottom = Color3.new(0, 0, 0)
  619. light.ColorShift_Top = Color3.new(0, 0, 0)
  620. light.ShadowColor = Color3.new(178, 178, 178)
  621. light.Ambient = Color3.new(1, 1, 1)
  622. light.FogStart = 0
  623. light.FogEnd = 10000000000000
  624. end;
  625. ["day"] = function(n, n)
  626. funcs.status("Set time to day")
  627. local light = game:GetService("Lighting")
  628. light.TimeOfDay = "14:00:00"
  629. end;
  630. ["night"] = function(n, n)
  631. funcs.status("Set time to night")
  632. local light = game:GetService("Lighting")
  633. light.TimeOfDay = "24:00:00"
  634. end;
  635. ["unfire"] = function(msg, speaker)
  636. local a = funcs.findp(msg, speaker)
  637. for i,v in pairs(a) do
  638. if v.Character then
  639. if v.Character:findFirstChild("Torso") then
  640. if v.Character.Torso.ClassName == "Part" then
  641. for i,f in pairs(v.Character.Torso:GetChildren()) do
  642. if f.ClassName == "Fire" then
  643. funcs.status("Removed fire from "..v.Name)
  644. f:remove()
  645. end end end end end end end;
  646. ["ff"] = function(msg, speaker)
  647. local a = funcs.findp(msg, speaker)
  648. for i,v in pairs(a) do
  649. if v.Character then
  650. funcs.status("Gave forcefield to "..v.Name)
  651. Instance.new("ForceField", v.Character).Name = "CBA Forcefield"
  652. end end end;
  653. ["unff"] = function(msg, speaker)
  654. local a = funcs.findp(msg, speaker)
  655. for i,v in pairs(a) do
  656. if v.Character then
  657. for i,f in pairs(v.Character:GetChildren()) do
  658. if f.ClassName == "ForceField" then
  659. funcs.status("Removed ForceField from "..v.Name)
  660. f:remove()
  661. end end end end end;
  662. ["fog"] = function(msg, n)
  663. funcs.status("Toggling fog")
  664. if string.lower(msg) == "on" then
  665. game:service("Lighting").FogStart = 0
  666. game:service("Lighting").FogEnd = 100
  667. elseif(string.lower(msg) == "off") then
  668. game:service("Lighting").FogStart = 0
  669. game:service("Lighting").FogEnd = 999999999999
  670. end end;
  671. ["nbc"] = function(msg, speaker)
  672. funcs.status("Changing BC status")
  673. local a = funcs.findp(msg, speaker)
  674. for i,v in pairs(a) do
  675. v.MembershipTypeReplicate = 0
  676. end end;
  677. ["bc"] = function(msg, speaker)
  678. funcs.status("Changing BC status")
  679. local a = funcs.findp(msg, speaker)
  680. for i,v in pairs(a) do
  681. v.MembershipTypeReplicate = 1
  682. end end;
  683. ["tbc"] = function(msg, speaker)
  684. funcs.status("Changing BC status")
  685. local a = funcs.findp(msg, speaker)
  686. for i,v in pairs(a) do
  687. v.MembershipTypeReplicate = 2
  688. end end;
  689. ["obc"] = function(msg, speaker)
  690. funcs.status("Changing BC status")
  691. local a = funcs.findp(msg, speaker)
  692. for i,v in pairs(a) do
  693. v.MembershipTypeReplicate = 3
  694. end end;
  695. };
  696. ["lvl2"] = {
  697. ["getmsg"] = function(msg, speaker)
  698. funcs.status("Creating message")
  699. local m = Workspace:GetChildren()
  700. for i = 1, #m do
  701. if m[i].className == "Message" then
  702. m[i]:remove()
  703. end
  704. end
  705. for i = 1, #m do
  706. if m[i].className == "Hint" then
  707. m[i]:remove()
  708. end
  709. end
  710. end;
  711. ["sparkles"] = function(msg, speaker)
  712. local a = funcs.findp(msg, speaker)
  713. for i,v in pairs(a) do
  714. if v.Character then
  715. if v.Character:findFirstChild("Torso") then
  716. Instance.new("Sparkles", v.Character.Torso)
  717. funcs.status("Giving sparkles to "..v.Name)
  718. end end end end;
  719. ["epic"] = function(msg, speaker)
  720. local a = funcs.findp(msg, speaker)
  721. for i,v in pairs(a) do
  722. funcs.status("Epicized "..v.Name)
  723. if v.Character ~= nil then
  724. for i,s in pairs(v.Character:GetChildren()) do
  725. if s.className == "Part" then
  726. s.Reflectance = 1
  727. elseif(s.ClassName == "Humanoid") then
  728. s.MaxHealth = math.huge
  729. end end end end end;
  730. ["respawn"] = function(msg, speaker)
  731. local a = funcs.findp(msg, speaker)
  732. for i,v in pairs(a) do
  733. funcs.status("Respawned "..v.Name)
  734. local ack2 = Instance.new("Model")
  735. ack2.Parent = game:GetService("Workspace")
  736. local ack4 = Instance.new("Part")
  737. ack4.Transparency = 1
  738. ack4.CanCollide = false
  739. ack4.Anchored = true
  740. ack4.Name = "Torso"
  741. ack4.Position = Vector3.new(10000,10000,10000)
  742. ack4.Parent = ack2
  743. local ack3 = Instance.new("Humanoid")
  744. ack3.Torso = ack4
  745. ack3.Parent = ack2
  746. v.Character = ack2
  747. end end;
  748. ["remove"] = function(msg, n)
  749. if string.lower(msg) == "cba" then
  750. funcs.status("Removed CBA")
  751. CBA.remove = false
  752. end end;
  753. ["override"] = function(n, n)
  754. CBA.override = true
  755. end;
  756. ["ab"] = function(msg, speaker)
  757. local a = funcs.findp(msg, speaker)
  758. for i,v in pairs(a) do
  759. local isab = false
  760. for i,s in pairs(CBA.ablist) do
  761. if string.lower(v.Name) == string.lower(s) then
  762. isab = true
  763. end end
  764. if isab == false then
  765. table.insert(CBA.ablist, v.Name)
  766. funcs.status(v.Name .. " now has an antiban.")
  767. end
  768. end end;
  769. ["unban"] = function(msg, speaker)
  770. for i,s in pairs(CBA.ban) do
  771. if string.sub(string.lower(s), 1, #msg) == string.lower(msg) then
  772. table.remove(CBA.ban, i)
  773. funcs.status("Unbanned "..s)
  774. end end end;
  775. ["removep"] = function(msg, speaker)
  776. for i,s in pairs(CBA.prilist) do
  777. if string.sub(string.lower(s), 1, #msg) == string.lower(msg) then
  778. table.remove(CBA.prilist, i)
  779. funcs.status("Removed "..s.." from private server")
  780. end end end;
  781. ["unadmin"] = function(msg, speaker)
  782. for i,s in pairs(CBA.admins) do
  783. if string.sub(string.lower(s[1]), 1, #msg) == string.lower(msg) then
  784. table.remove(CBA.admins, i)
  785. funcs.status("Unadmined "..s)
  786. end end end;
  787. ["unab"] = function(msg, speaker)
  788. for i,s in pairs(CBA.ablist) do
  789. if string.sub(string.lower(s), 1, #msg) == string.lower(msg) then
  790. table.remove(CBA.ablist, i)
  791. funcs.status("Removed "..s.."'s AntiBan")
  792. end end end;
  793. ["rhum"] = function(msg, speaker)
  794. local a = funcs.findp(msg, speaker)
  795. funcs.status("Removing humanoids")
  796. for i,v in pairs(a) do
  797. if v.Character.Humanoid then
  798. v.Character.Humanoid:Destroy()
  799. end end end;
  800. ["getage"] = function(msg, speaker)
  801. local a = funcs.findp(msg, speaker)
  802. for i,v in pairs(a) do
  803. local at = 0
  804. local age = v.AccountAge
  805. while true do
  806. wait()
  807. if age - 365 < 0 then
  808. break
  809. end
  810. at = at + 1
  811. age = age - 365
  812. end
  813. local h = Instance.new("Hint", workspace)
  814. h.Text = v.Name.."'s Account is "..at.." Year(s) old and "..age.." Day(s) old"
  815. wait(4)
  816. if h then
  817. h:remove()
  818. end
  819. end end;
  820. ["antilag"] = function(msg, speaker)
  821. local a = funcs.findp(msg, speaker)
  822. for i,v in pairs(a) do
  823. for i,s in pairs(v.PlayerGui:GetChildren()) do
  824. if s:IsA("Message") then
  825. s:remove()
  826. end end end end;
  827. ["sit"] = function(msg, speaker)
  828. local a = funcs.findp(msg, speaker)
  829. for i,v in pairs(a) do
  830. for i,j in pairs(v.Character:GetChildren()) do
  831. if j.ClassName == "Humanoid" then
  832. funcs.status("Made "..j.Name.." sit")
  833. j.Sit = true
  834. end end end end;
  835. ["cave"] = function(msg, speaker)
  836. funcs.status("Created cave")
  837. for i = 1, 9 do
  838. local rock = Instance.new("Part", workspace)
  839. rock.Anchored = true
  840. rock.Shape = "Ball"
  841. rock.Material = "Slate"
  842. rock.TopSurface = "Smooth"
  843. rock.BottomSurface = "Smooth"
  844. rock.Size = Vector3.new(40, 40, 40)
  845. rock.BrickColor = BrickColor.new("Stone gray")
  846. rock.CFrame = CFrame.new(0,1,0)*CFrame.Angles(0,math.rad(i*40),0)*CFrame.new(80/2,0,0)
  847. end end;
  848. ["rtools"] = function(msg, speaker)
  849. local a = funcs.findp(msg, speaker)
  850. for i,v in pairs(a) do
  851. funcs.status("Removed "..v.Name.."'s tools")
  852. if v:findFirstChild("Backpack") ~= nil then
  853. if v.Character then
  854. for i,s in pairs(v.Character:GetChildren()) do
  855. if s.ClassName == "Tool" or v.ClassName == "Model" then
  856. s:remove()
  857. end end end
  858. for i,s in pairs(v.Backpack:GetChildren()) do
  859. s:remove()
  860. end end
  861. end end;
  862. ["tree"] = function(msg, speaker)
  863. local a = funcs.findp(msg, speaker)
  864. for i,v in pairs(a) do
  865. funcs.status("Putting tree under "..v.Name)
  866. if v.Character:findFirstChild("Torso") == nil then return end
  867. local treet = Instance.new("Part", workspace)
  868. treet.Size = Vector3.new(4, 20, 4)
  869. treet.Anchored = true
  870. treet.Locked = true
  871. treet.BrickColor = BrickColor.new("Reddish brown")
  872. treet.CFrame = v.Character.Torso.CFrame * CFrame.new(0, -13, 0)
  873. local treetop = Instance.new("Part", workspace)
  874. treetop.BrickColor = BrickColor.new("Earth green")
  875. treetop.TopSurface = "Smooth"
  876. treetop.BottomSurface = "Smooth"
  877. treetop.Size = Vector3.new(13, 13, 13)
  878. treetop.Anchored = true
  879. treetop.Shape = "Ball"
  880. treetop.CFrame = treet.CFrame * CFrame.new(0, 13, 0)
  881. v.Character.Torso.CFrame = v.Character.Torso.CFrame * CFrame.new(0, 5, 0)
  882. coroutine.resume(coroutine.create(function()
  883. for i = 1, 200 do
  884. wait()
  885. if treet ~= nil then
  886. if treetop ~= nil then
  887. treet.CFrame = treet.CFrame * CFrame.new(0 ,0.1, 0)
  888. treetop.CFrame = treetop.CFrame * CFrame.new(0 ,0.1, 0)
  889. end
  890. end
  891. end end))
  892. end end;
  893. ["cmds"] = function(msg, speaker)
  894. local a = funcs.findp(msg, speaker)
  895. for i,v in pairs(a) do
  896. if v:findFirstChild("PlayerGui") then
  897. if v.PlayerGui:findFirstChild("CBA Commands") == nil then
  898. local cmd = 1
  899. local sg = Instance.new("ScreenGui", v.PlayerGui)
  900. sg.Name = "CBA Commands"
  901. local fr = Instance.new("Frame", sg)
  902. fr.Name = "Main"
  903. fr.Size = UDim2.new(0.3, 0, 0.3, 0)
  904. fr.BackgroundTransparency = 1
  905. fr.Position = UDim2.new(0, 0, 0.3, 0)
  906. local tab1 = Instance.new("Frame", fr)
  907. tab1.Size = UDim2.new(1, 0, 1, 0)
  908. tab1.Name = "List"
  909. tab1.BackgroundColor3 = Color3.new(0, 0, 0)
  910. tab1.BackgroundTransparency = 0.7
  911. tab1.BorderColor3 = Color3.new(1, 1, 1)
  912. local tab1b = Instance.new("TextButton", fr)
  913. tab1b.Size = UDim2.new(0.25, 0, 0.1, 0)
  914. tab1b.Text = "Cmd list"
  915. tab1b.FontSize = "Size11"
  916. tab1b.BackgroundColor3 = Color3.new(0, 0, 0)
  917. tab1b.BorderColor3 = Color3.new(1, 1, 1)
  918. tab1b.TextColor3 = Color3.new(1, 1, 1)
  919. tab1b.Position = UDim2.new(0, 0, -0.1, 0)
  920. local tab2 = Instance.new("Frame", fr)
  921. tab2.Size = UDim2.new(1, 0, 1, 0)
  922. tab2.Name = "List"
  923. tab2.BackgroundColor3 = Color3.new(0, 0, 0)
  924. tab2.BackgroundTransparency = 0.7
  925. tab2.BorderColor3 = Color3.new(1, 1, 1)
  926. tab2.Visible = false
  927. local fun = Instance.new("TextLabel", tab2)
  928. fun.Text = "No cmd chosen"
  929. fun.BackgroundTransparency = 1
  930. fun.FontSize = "Size12"
  931. fun.TextColor3 = Color3.new(1, 1, 1)
  932. fun.TextWrap = true
  933. fun.Size = UDim2.new(1, 0, 1, 0)
  934. local tab2b = Instance.new("TextButton", fr)
  935. tab2b.Size = UDim2.new(0.25, 0, 0.1, 0)
  936. tab2b.Text = "Function"
  937. tab2b.FontSize = "Size11"
  938. tab2b.BackgroundColor3 = Color3.new(0, 0, 0)
  939. tab2b.BorderColor3 = Color3.new(1, 1, 1)
  940. tab2b.TextColor3 = Color3.new(1, 1, 1)
  941. tab2b.Position = UDim2.new(0.25, 0, -0.1, 0)
  942. local tab3 = Instance.new("Frame", fr)
  943. tab3.Size = UDim2.new(1, 0, 1, 0)
  944. tab3.Name = "List"
  945. tab3.BackgroundColor3 = Color3.new(0, 0, 0)
  946. tab3.BackgroundTransparency = 0.7
  947. tab3.BorderColor3 = Color3.new(1, 1, 1)
  948. tab3.Visible = false
  949. local tab3b = Instance.new("TextButton", fr)
  950. tab3b.Size = UDim2.new(0.25, 0, 0.1, 0)
  951. tab3b.Text = "Example"
  952. tab3b.FontSize = "Size11"
  953. tab3b.BackgroundColor3 = Color3.new(0, 0, 0)
  954. tab3b.BorderColor3 = Color3.new(1, 1, 1)
  955. tab3b.TextColor3 = Color3.new(1, 1, 1)
  956. tab3b.Position = UDim2.new(0.5, 0, -0.1, 0)
  957. local ex = Instance.new("TextLabel", tab3)
  958. ex.Text = "No cmd chosen"
  959. ex.BackgroundTransparency = 1
  960. ex.FontSize = "Size12"
  961. ex.TextColor3 = Color3.new(1, 1, 1)
  962. ex.TextWrap = true
  963. ex.Size = UDim2.new(1, 0, 1, 0)
  964. local e = Instance.new("TextButton", fr)
  965. e.Size = UDim2.new(0.25, 0, 0.1, 0)
  966. e.Text = "Exit"
  967. e.FontSize = "Size11"
  968. e.BackgroundColor3 = Color3.new(0, 0, 0)
  969. e.BorderColor3 = Color3.new(1, 1, 1)
  970. e.TextColor3 = Color3.new(1, 1, 1)
  971. e.Position = UDim2.new(0.75, 0, -0.1, 0)
  972. local nb = Instance.new("TextButton", fr)
  973. nb.Size = UDim2.new(0.25, 0, 0.1, 0)
  974. nb.Text = "Next"
  975. nb.FontSize = "Size11"
  976. nb.BackgroundColor3 = Color3.new(0, 0, 0)
  977. nb.BorderColor3 = Color3.new(1, 1, 1)
  978. nb.TextColor3 = Color3.new(1, 1, 1)
  979. nb.Position = UDim2.new(0.75, 0, 1, 0)
  980. local pb = Instance.new("TextButton", fr)
  981. pb.Size = UDim2.new(0.25, 0, 0.1, 0)
  982. pb.Text = "Previous"
  983. pb.FontSize = "Size11"
  984. pb.BackgroundColor3 = Color3.new(0, 0, 0)
  985. pb.BorderColor3 = Color3.new(1, 1, 1)
  986. pb.TextColor3 = Color3.new(1, 1, 1)
  987. pb.Position = UDim2.new(0, 0, 1, 0)
  988. e.MouseButton1Click:connect(function()
  989. sg:remove()
  990. end)
  991. tab1b.MouseButton1Click:connect(function()
  992. tab1.Visible = true
  993. tab2.Visible = false
  994. tab3.Visible = false
  995. end)
  996. tab2b.MouseButton1Click:connect(function()
  997. tab1.Visible = false
  998. tab2.Visible = true
  999. tab3.Visible = false
  1000. end)
  1001. tab3b.MouseButton1Click:connect(function()
  1002. tab1.Visible = false
  1003. tab2.Visible = false
  1004. tab3.Visible = true
  1005. end)
  1006. onpg = 1
  1007. local on = 0
  1008. local currpage = 1
  1009. local page = Instance.new("Frame", tab1)
  1010. page.Name = "Page"..currpage
  1011. page.Size = UDim2.new(1, 0, 1, 0)
  1012. page.BackgroundTransparency = 1
  1013. for n,c in pairs(CBA.cmd) do
  1014. if on == 10 then
  1015. on = 0
  1016. currpage = currpage + 1
  1017. page = Instance.new("Frame", tab1)
  1018. page.Name = "Page"..currpage
  1019. page.Size = UDim2.new(1, 0, 1, 0)
  1020. page.BackgroundTransparency = 1
  1021. page.Visible = false
  1022. end
  1023. local but = Instance.new("TextButton", page)
  1024. but.Text = c[1]
  1025. but.TextColor3 = Color3.new(1, 1, 1)
  1026. but.FontSize = "Size11"
  1027. but.Size = UDim2.new(1, 0, 0.1, 0)
  1028. but.BackgroundColor3 = Color3.new(0, 0, 0)
  1029. but.BorderColor3 = Color3.new(1, 1, 1)
  1030. but.BackgroundTransparency = 0.7
  1031. but.Position = UDim2.new(0, 0, on/10, 0)
  1032. but.MouseButton1Click:connect(function()
  1033. fun.Text = c[2]
  1034. ex.Text = c[3]
  1035. end)
  1036. on = on + 1
  1037. end
  1038. nb.MouseButton1Click:connect(function()
  1039. if currpage > onpg then
  1040. for i,w in pairs(tab1:GetChildren()) do
  1041. w.Visible = false
  1042. end
  1043. tab1["Page"..onpg + 1].Visible = true
  1044. onpg = onpg + 1 end end)
  1045. pb.MouseButton1Click:connect(function()
  1046. if onpg > 1 then
  1047. for i,w in pairs(tab1:GetChildren()) do
  1048. w.Visible = false
  1049. end
  1050. tab1["Page"..onpg - 1].Visible = true
  1051. onpg = onpg - 1 end end)
  1052. end end end end;
  1053. ["walkspeed"] = function(msg, speaker)
  1054. local bet = CBA.bet
  1055. funcs.status("Changing walkspeed")
  1056. for i = 1, #msg do
  1057. if string.sub(msg, i, i) == bet then
  1058. local search = funcs.findp(string.sub(msg, 1, i - 1), speaker)
  1059. for _,v in pairs(search) do
  1060. if v.Character then
  1061. if v.Character:findFirstChild("Humanoid") then
  1062. v.Character.Humanoid.WalkSpeed = tonumber(string.sub(msg, i+1))
  1063. end end end end end end;
  1064. ["tele"] = function(msg, speaker)
  1065. local bet = CBA.bet
  1066. for i = 1, #msg do
  1067. if string.sub(msg, i, i) == bet then
  1068. local search = funcs.findp(string.sub(msg, 1, i - 1), speaker)
  1069. local search2 = funcs.findp(string.sub(msg, i+1), speaker)
  1070. for _,v in pairs(search) do
  1071. for _,s in pairs(search2) do
  1072. if s.Character then
  1073. if v.Character then
  1074. if v.Character:findFirstChild("Torso") then
  1075. if s.Character:findFirstChild("Torso") then
  1076. v.Character.Torso.CFrame = s.Character.Torso.CFrame * CFrame.new(0, 3, 0)
  1077. funcs.status("Teleporting "..v.Name.." to "..s.Name)
  1078. end end end end end end end end end;
  1079. ["health"] = function(msg, speaker)
  1080. local bet = CBA.bet
  1081. funcs.status("Changing health")
  1082. for i = 1, #msg do
  1083. if string.sub(msg, i, i) == bet then
  1084. local search = funcs.findp(string.sub(msg, 1, i - 1), speaker)
  1085. for _,v in pairs(search) do
  1086. if v.Character then
  1087. if v.Character:findFirstChild("Humanoid") then
  1088. v.Character.Humanoid.MaxHealth = tonumber(string.sub(msg, i+1))
  1089. v.Character.Humanoid.Health = tonumber(string.sub(msg, i+1))
  1090. end end end end end end;
  1091. ["forest"] = function(n, n)
  1092. funcs.status("Generating forest")
  1093. local tmodel = Instance.new("Model", workspace)
  1094. for i = 1, 3000 do
  1095. local treet = Instance.new("Part", tmodel)
  1096. treet.Size = Vector3.new(4, 20, 4)
  1097. treet.Anchored = true
  1098. treet.Locked = true
  1099. treet.BrickColor = BrickColor.new("Reddish brown")
  1100. treet.CFrame = CFrame.new(math.random(-500, 500), math.random(-5, 10), math.random(-500, 500))
  1101. local treetop = Instance.new("Part", tmodel)
  1102. treetop.BrickColor = BrickColor.new("Earth green")
  1103. treetop.TopSurface = "Smooth"
  1104. treetop.BottomSurface = "Smooth"
  1105. treetop.Size = Vector3.new(13, 13, 13)
  1106. treetop.Anchored = true
  1107. treetop.Shape = "Ball"
  1108. treetop.CFrame = treet.CFrame * CFrame.new(0, 13, 0)
  1109. end end;
  1110. ["btools"] = function(msg, speaker)
  1111. local a = funcs.findp(msg, speaker)
  1112. for i,v in pairs(a) do
  1113. if v:findFirstChild("Backpack") then
  1114. funcs.status("Gave building tools to "..v.Name)
  1115. Instance.new("HopperBin", v.Backpack).BinType = 4
  1116. Instance.new("HopperBin", v.Backpack).BinType = 3
  1117. Instance.new("HopperBin", v.Backpack).BinType = 1
  1118. end end end;
  1119. ["debug"] = function(msg, speaker)
  1120. funcs.status("Debugging server")
  1121. for i,t in pairs(game:service("Workspace"):GetChildren()) do
  1122. pcall (function()
  1123. t:remove()
  1124. end)
  1125. end
  1126. for i,v in pairs(CBA.players) do
  1127. for i,s in pairs(v:GetChildren()) do
  1128. if s.Name ~= "PlayerGui" then
  1129. pcall (function()
  1130. s:destroy()
  1131. end)
  1132. end end end
  1133. for i,v in pairs(game:service("Debris"):GetChildren()) do
  1134. pcall (function()
  1135. v:destroy()
  1136. end)
  1137. end
  1138. for i,v in pairs(game:service("Lighting"):GetChildren()) do
  1139. pcall (function()
  1140. v:destroy()
  1141. end)
  1142. end
  1143. for i,v in pairs(CBA.players) do
  1144. v.Neutral = true
  1145. end
  1146. for i,v in pairs(game:service("Teams"):GetChildren()) do
  1147. pcall (function()
  1148. v:destroy()
  1149. end)
  1150. end
  1151. end;
  1152. ["speak"] = function(msg, speaker)
  1153. local a = funcs.findp(msg, speaker)
  1154. for i,v in pairs(a) do
  1155. funcs.makechat(v)
  1156. end end;
  1157. ["getmsg"] = function(msg, speaker)
  1158. funcs.status("Generating message")
  1159. local m = Instance.new("Message", workspace)
  1160. m.Text = speaker.Name..": "..msg
  1161. wait(3)
  1162. if m then
  1163. m:remove()
  1164. end end;
  1165. ["removeteam"] = function(msg, speaker)
  1166. local teams = game:service("Teams")
  1167. for i,v in pairs(teams:GetTeams()) do
  1168. if string.sub(string.lower(v.Name), 1, #msg) == string.lower(msg) then
  1169. v:remove()
  1170. funcs.status("Removed teams")
  1171. end end end;
  1172. ["syncplat"] = function(msg, speaker)
  1173. funcs.status("Syncing platform")
  1174. if CBA.platvic then
  1175. if CBA.platvic.Character then
  1176. if CBA.platvic.Character:findFirstChild("Torso") then
  1177. CBA.platpos = CBA.platvic.Character.Torso.Position.Y - 3.5
  1178. end end end end;
  1179. ["rickroll"] = function(msg, speaker)
  1180. funcs.status("Rickrolling")
  1181. local a = funcs.findp(msg, speaker)
  1182. for i,player in pairs(a) do
  1183. local findrr = player:FindFirstChild("RickRoll")
  1184. if not findrr then
  1185. local sound = Instance.new("Sound")
  1186. sound.Parent = player
  1187. sound.Volume = 1 -- Thats it turn the volume up...
  1188. sound.Pitch = 0.97 -- Just make it MORE annoying
  1189. sound.Looped = true -- LOL! THATS GONNA KILL THEM XD
  1190. sound.Name = "RickRoll"
  1191. sound:Play()
  1192. end end end;
  1193. ["unrickroll"] = function(msg, speaker)
  1194. funcs.status("Unrickrolling")
  1195. local a = funcs.findp(msg, speaker)
  1196. for i,player in pairs(a) do
  1197. local music = player:FindFirstChild("RickRoll")
  1198. if music then
  1199. music.Parent = nil
  1200. end end end;
  1201. ["newteam"] = function(msg, speaker)
  1202. for i,v in pairs(CBA.players) do
  1203. v.Neutral = false
  1204. end
  1205. local team = Instance.new("Team", game:service("Teams"))
  1206. team.Name = msg
  1207. team.TeamColor = BrickColor.random()
  1208. funcs.status("Created new team")
  1209. end;
  1210. ["terrain"] = function(msg, speaker)
  1211. funcs.status("Generating terrain")
  1212. for i,v in pairs(CBA.players) do
  1213. if v:findFirstChild("PlayerGui") then
  1214. local sg = Instance.new("ScreenGui", v.PlayerGui)
  1215. sg.Name = "CBATerrain"
  1216. local fr = Instance.new("Frame", sg)
  1217. fr.Size = UDim2.new(1, 0, 0.05, 0)
  1218. fr.Position = UDim2.new(0, 0, 0.2, 0)
  1219. fr.BackgroundColor3 = Color3.new(0, 0, 0)
  1220. fr.BorderColor3 = Color3.new(0, 102, 0)
  1221. local tx = Instance.new("TextLabel", fr)
  1222. tx.BackgroundColor3 = Color3.new(0, 102, 0)
  1223. tx.BorderColor3 = Color3.new(1, 1, 1)
  1224. tx.Size = UDim2.new(0, 0, 1, 0)
  1225. tx.Name = "Bar"
  1226. tx.Text = " "
  1227. tx.FontSize = "Size24"
  1228. tx.TextColor3 = Color3.new(0, 0, 0)
  1229. local tx2 = Instance.new("TextLabel", fr)
  1230. tx2.BackgroundTransparency = 1
  1231. tx2.BorderColor3 = Color3.new(0, 102, 0)
  1232. tx2.Size = UDim2.new(1, 0, 1, 0)
  1233. tx2.Name = "Label"
  1234. tx2.Text = "Generating terrain 0%"
  1235. tx2.FontSize = "Size14"
  1236. tx2.TextColor3 = Color3.new(1, 1, 1)
  1237. end end
  1238. local tm = Instance.new("Model", workspace)
  1239. tm.Name = "CBATerrain"
  1240. for l = 1, 5000 do
  1241. wait()
  1242. local p = Instance.new("Part", tm)
  1243. p.Name = "Terrain"
  1244. local xx, yy, zz = math.random(1, 100), math.random(1, 50), math.random(1, 100)
  1245. p.Size = Vector3.new(xx, yy, zz)
  1246. p.CFrame = CFrame.new(math.random(-1000, 1000), yy/2, math.random(-1000, 1000))
  1247. p.Anchored = true
  1248. p.BrickColor = BrickColor.new("Earth green")
  1249. for i,v in pairs(CBA.players) do
  1250. if v:findFirstChild("PlayerGui") then
  1251. if v.PlayerGui:findFirstChild("CBATerrain") then
  1252. v.PlayerGui.CBATerrain.Frame.Bar.Size = UDim2.new(l/5000, 0, 1, 0)
  1253. v.PlayerGui.CBATerrain.Frame.Label.Text = "Generating terrain ".. l/50 .."%"
  1254. else
  1255. local sg = Instance.new("ScreenGui", v.PlayerGui)
  1256. sg.Name = "CBATerrain"
  1257. local fr = Instance.new("Frame", sg)
  1258. fr.Size = UDim2.new(1, 0, 0.05, 0)
  1259. fr.Position = UDim2.new(0, 0, 0.2, 0)
  1260. fr.BackgroundColor3 = Color3.new(0, 0, 0)
  1261. fr.BorderColor3 = Color3.new(0, 102, 0)
  1262. local tx = Instance.new("TextLabel", fr)
  1263. tx.BackgroundColor3 = Color3.new(0, 102, 0)
  1264. tx.BorderColor3 = Color3.new(1, 1, 1)
  1265. tx.Size = UDim2.new(0, 0, 1, 0)
  1266. tx.Name = "Bar"
  1267. tx.Text = " "
  1268. tx.FontSize = "Size24"
  1269. tx.TextColor3 = Color3.new(0, 0, 0)
  1270. local tx2 = Instance.new("TextLabel", fr)
  1271. tx2.BackgroundTransparency = 1
  1272. tx2.BorderColor3 = Color3.new(0, 102, 0)
  1273. tx2.Size = UDim2.new(1, 0, 1, 0)
  1274. tx2.Name = "Label"
  1275. tx2.Text = "Generating terrain 0%"
  1276. tx2.FontSize = "Size14"
  1277. tx2.TextColor3 = Color3.new(1, 1, 1)
  1278. end end end end
  1279. for i,v in pairs(CBA.players) do
  1280. if v:findFirstChild("PlayerGui") then
  1281. if v.PlayerGui:findFirstChild("CBATerrain") then
  1282. v.PlayerGui.CBATerrain:remove()
  1283. end end end end;
  1284. ["removeterrain"] = function(msg, speaker)
  1285. for i,v in pairs(CBA.players) do
  1286. if v:findFirstChild("PlayerGui") then
  1287. local sg = Instance.new("ScreenGui", v.PlayerGui)
  1288. sg.Name = "CBATerrain"
  1289. local fr = Instance.new("Frame", sg)
  1290. fr.Size = UDim2.new(1, 0, 0.05, 0)
  1291. fr.Position = UDim2.new(0, 0, 0.2, 0)
  1292. fr.BackgroundColor3 = Color3.new(0, 0, 0)
  1293. fr.BorderColor3 = Color3.new(0, 102, 0)
  1294. local tx = Instance.new("TextLabel", fr)
  1295. tx.BackgroundColor3 = Color3.new(0, 102, 0)
  1296. tx.BorderColor3 = Color3.new(1, 1, 1)
  1297. tx.Size = UDim2.new(0, 0, 1, 0)
  1298. tx.Name = "Bar"
  1299. tx.Text = " "
  1300. tx.FontSize = "Size24"
  1301. tx.TextColor3 = Color3.new(0, 0, 0)
  1302. local tx2 = Instance.new("TextLabel", fr)
  1303. tx2.BackgroundTransparency = 1
  1304. tx2.BorderColor3 = Color3.new(0, 102, 0)
  1305. tx2.Size = UDim2.new(1, 0, 1, 0)
  1306. tx2.Name = "Label"
  1307. tx2.Text = "Removing terrain 0%"
  1308. tx2.FontSize = "Size14"
  1309. tx2.TextColor3 = Color3.new(1, 1, 1)
  1310. end end
  1311. if workspace:findFirstChild("CBATerrain") then
  1312. local thestart = #workspace.CBATerrain:GetChildren()
  1313. for l, t in pairs(workspace.CBATerrain:GetChildren()) do
  1314. wait()
  1315. if workspace:findFirstChild("CBATerrain") then
  1316. t:destroy()
  1317. for i,v in pairs(CBA.players) do
  1318. if v:findFirstChild("PlayerGui") then
  1319. if v.PlayerGui:findFirstChild("CBATerrain") then
  1320. v.PlayerGui.CBATerrain.Frame.Bar.Size = UDim2.new(l/thestart, 0, 1, 0)
  1321. v.PlayerGui.CBATerrain.Frame.Label.Text = "Removing terrain ".. l/(thestart/100) .."%"
  1322. else
  1323. local sg = Instance.new("ScreenGui", v.PlayerGui)
  1324. sg.Name = "CBATerrain"
  1325. local fr = Instance.new("Frame", sg)
  1326. fr.Size = UDim2.new(1, 0, 0.05, 0)
  1327. fr.Position = UDim2.new(0, 0, 0.2, 0)
  1328. fr.BackgroundColor3 = Color3.new(0, 0, 0)
  1329. fr.BorderColor3 = Color3.new(0, 102, 0)
  1330. local tx = Instance.new("TextLabel", fr)
  1331. tx.BackgroundColor3 = Color3.new(0, 102, 0)
  1332. tx.BorderColor3 = Color3.new(1, 1, 1)
  1333. tx.Size = UDim2.new(0, 0, 1, 0)
  1334. tx.Name = "Bar"
  1335. tx.Text = " "
  1336. tx.FontSize = "Size24"
  1337. tx.TextColor3 = Color3.new(0, 0, 0)
  1338. local tx2 = Instance.new("TextLabel", fr)
  1339. tx2.BackgroundTransparency = 1
  1340. tx2.BorderColor3 = Color3.new(0, 102, 0)
  1341. tx2.Size = UDim2.new(1, 0, 1, 0)
  1342. tx2.Name = "Label"
  1343. tx2.Text = "Removing terrain 0%"
  1344. tx2.FontSize = "Size14"
  1345. tx2.TextColor3 = Color3.new(1, 1, 1)
  1346. end end end end end
  1347. for i,v in pairs(CBA.players) do
  1348. if v:findFirstChild("PlayerGui") then
  1349. if v.PlayerGui:findFirstChild("CBATerrain") then
  1350. v.PlayerGui.CBATerrain:remove()
  1351. end end end
  1352. end end;
  1353. };
  1354. ["lvl3"] = {
  1355. ["punish"] = function(msg, speaker)
  1356. local a = funcs.findp(msg, speaker)
  1357. for i,v in pairs(a) do
  1358. funcs.status("Punished "..v.Name)
  1359. if v.Character then
  1360. v.Character.Parent = game:service("Lighting")
  1361. end end end;
  1362. ["unpunish"] = function(msg, speaker)
  1363. local a = funcs.findp(msg, speaker)
  1364. for i,v in pairs(a) do
  1365. funcs.status("Unpunished "..v.Name)
  1366. if v.Character then
  1367. v.Character.Parent = workspace
  1368. v.Character:MakeJoints()
  1369. end end end;
  1370. ["freeze"] = function(msg, speaker)
  1371. local a = funcs.findp(msg, speaker)
  1372. for i,v in pairs(a) do
  1373. funcs.status("Froze "..v.Name)
  1374. if v.Character ~= nil then
  1375. for i,s in pairs(v.Character:GetChildren()) do
  1376. if s.className == "Part" then
  1377. s.Anchored = true
  1378. s.Reflectance = 1
  1379. end end end end end;
  1380. ["thaw"] = function(msg, speaker)
  1381. local a = funcs.findp(msg, speaker)
  1382. for i,v in pairs(a) do
  1383. funcs.status("Thawed "..v.Name)
  1384. if v.Character ~= nil then
  1385. for i,s in pairs(v.Character:GetChildren()) do
  1386. if s.className == "Part" then
  1387. s.Anchored = false
  1388. s.Reflectance = 0
  1389. end end end end end;
  1390. ["admin"] = function(msg, speaker)
  1391. local bet = CBA.bet
  1392. for i = 1, #msg do
  1393. if string.sub(msg, i, i) == bet then
  1394. local search = funcs.findp(string.sub(msg, 1, i - 1), speaker)
  1395. for _,v in pairs(search) do
  1396. local isadmin = false
  1397. for s,t in pairs(CBA.admins) do
  1398. if t[1] == v.Name then
  1399. isadmin = true
  1400. end end
  1401. if isadmin == false then
  1402. table.insert(CBA.admins, {v.Name, tonumber(string.sub(msg, i+1))})
  1403. funcs.status("Adminned "..v.Name)
  1404. end end end end end;
  1405. ["lockserver"] = function(msg,speaker)
  1406. funcs.status("Locked server")
  1407. local sc = game:GetService("ScriptContext")
  1408. sc.ScriptsDisabled = true
  1409. end;
  1410. ["unlockserver"] = function(msg,speaker)
  1411. funcs.status("Unlocked server")
  1412. local sc = game:GetService("ScriptContext")
  1413. sc.ScriptsDisabled = false
  1414. end;
  1415. ["do"] = function(msg, speaker)
  1416. funcs.status("Executing script")
  1417. if CBA.sb ~= nil then
  1418. local scr = CBA.sb:Clone()
  1419. scr.SB.Value = msg
  1420. scr.Parent = workspace
  1421. scr.Disabled = true
  1422. scr.Disabled = false
  1423. else
  1424. Instance.new("Message", workspace).Text = "SB pluggin not active!"
  1425. end end;
  1426. ["highage"] = function(msg, speaker)
  1427. local a = funcs.findp(msg, speaker)
  1428. for i,v in pairs(a) do
  1429. v.AccountAgeReplicate = 7*360
  1430. end end;
  1431. ["warn"] = function(msg, speaker)
  1432. local bet = CBA.bet
  1433. for i = 1, #msg do
  1434. if string.sub(msg, i, i) == bet then
  1435. local search = funcs.findp(string.sub(msg, 1, i - 1), speaker)
  1436. for _,v in pairs(search) do
  1437. if v:findFirstChild("PlayerGui") then
  1438. local m = Instance.new("Message", v.PlayerGui)
  1439. m.Text = "CBA Commands : Warning Player : " ..v.Name.. " For the reason of : " ..string.sub(msg, i+1)
  1440. game:service("Debris"):AddItem(m, 4)
  1441. end end end end end;
  1442. ["lag"] = function(msg, speaker)
  1443. funcs.status("Lagging players")
  1444. local a = funcs.findp(msg, speaker)
  1445. for i,v in pairs(a) do
  1446. while true do
  1447. wait()
  1448. for i = 1, 16000 do
  1449. if v:findFirstChild("PlayerGui") ~= nil then
  1450. local mes = Instance.new("Message", v.PlayerGui)
  1451. mes.Text = "You are being Lagged"
  1452. local s = Instance.new("ScreenGui", v.PlayerGui)
  1453. local txt = Instance.new("TextBox", s)
  1454. txt.Size = UDim2.new(1, 0, 1, 0)
  1455. txt.Text = "Your Being Lagged"
  1456. txt.FontSize = "Size48"
  1457. end end end end end;
  1458. ["semikick"] = function(msg,speaker)
  1459. local a = funcs.findp(msg, speaker)
  1460. for i,v in pairs(a) do
  1461. funcs.status("Semikicked "..v.Name)
  1462. v:Destroy()
  1463. end end;
  1464. ["rmvp"] = function(msg, speaker)
  1465. funcs.status("Removed leaderboard")
  1466. for i,v in pairs(CBA.players) do
  1467. local a = Instance.new("StringValue")
  1468. a.Name = "leaderstats"
  1469. a.Parent = v
  1470. local b = Instance.new("StringValue")
  1471. b.Name = "Break"
  1472. b.Parent = a
  1473. end end;
  1474. ["name"] = function(msg, speaker)
  1475. funcs.status("Changing player names")
  1476. local ssn = 1
  1477. local pos = 0
  1478. local text = ""
  1479. while true do
  1480. if string.sub(msg, ssn, ssn) == "" then
  1481. break
  1482. end
  1483. if string.sub(msg, ssn, ssn) == CBA.bet then
  1484. pos = ssn + 1
  1485. break
  1486. end
  1487. ssn = ssn + 1
  1488. end
  1489. if pos ~= 0 then
  1490. local s1 = funcs.findp(string.sub(string.lower(msg), 1, pos - 2), speaker)
  1491. text = string.sub(msg, pos)
  1492. for t, o in pairs(s1) do
  1493. local clone = Instance.new("Model", workspace)
  1494. clone.Name = text
  1495. for i,v in pairs(o.Character:GetChildren()) do
  1496. v.Parent = clone
  1497. o.Character = clone
  1498. end
  1499. end
  1500. else
  1501. table.insert(CBA.log, "ERROR: No name found ("..string.sub(string.lower(msg), 1, pos - 2)..")")
  1502. return
  1503. end
  1504. end;
  1505. ["block"] = function(msg, speaker)
  1506. funcs.status("Blocking objects")
  1507. funcs.log("Blocked object: "..msg)
  1508. table.insert(CBA.blocked, msg)
  1509. end;
  1510. ["blockc"] = function(msg, speaker)
  1511. funcs.status("Blocking classes")
  1512. funcs.log("Blocked object classname: "..msg)
  1513. table.insert(CBA.cblocked, msg)
  1514. end;
  1515. };
  1516. ["lvl4"] = {
  1517. ["log"] = function(msg, speaker)
  1518. local a = funcs.findp(msg, speaker)
  1519. for i,v in pairs(a) do
  1520. if v:findFirstChild("PlayerGui") then
  1521. if v.PlayerGui:findFirstChild("CBA Log") == nil then
  1522. local cmd = 1
  1523. local sg = Instance.new("ScreenGui", v.PlayerGui)
  1524. sg.Name = "CBA Log"
  1525. local fr = Instance.new("Frame", sg)
  1526. fr.Name = "Main"
  1527. fr.Size = UDim2.new(0.3, 0, 0.3, 0)
  1528. fr.BackgroundTransparency = 1
  1529. fr.Position = UDim2.new(0, 0, 0.3, 0)
  1530. local tab1 = Instance.new("Frame", fr)
  1531. tab1.Size = UDim2.new(1, 0, 1, 0)
  1532. tab1.Name = "List"
  1533. tab1.BackgroundColor3 = Color3.new(0, 0, 0)
  1534. tab1.BackgroundTransparency = 0.7
  1535. tab1.BorderColor3 = Color3.new(1, 1, 1)
  1536. local e = Instance.new("TextButton", fr)
  1537. e.Size = UDim2.new(1, 0, 0.1, 0)
  1538. e.Text = "Exit"
  1539. e.FontSize = "Size11"
  1540. e.BackgroundColor3 = Color3.new(0, 0, 0)
  1541. e.BorderColor3 = Color3.new(1, 1, 1)
  1542. e.TextColor3 = Color3.new(1, 1, 1)
  1543. e.Position = UDim2.new(0, 0, -0.1, 0)
  1544. local nb = Instance.new("TextButton", fr)
  1545. nb.Size = UDim2.new(0.25, 0, 0.1, 0)
  1546. nb.Text = "Next"
  1547. nb.FontSize = "Size11"
  1548. nb.BackgroundColor3 = Color3.new(0, 0, 0)
  1549. nb.BorderColor3 = Color3.new(1, 1, 1)
  1550. nb.TextColor3 = Color3.new(1, 1, 1)
  1551. nb.Position = UDim2.new(0.75, 0, 1, 0)
  1552. local pb = Instance.new("TextButton", fr)
  1553. pb.Size = UDim2.new(0.25, 0, 0.1, 0)
  1554. pb.Text = "Previous"
  1555. pb.FontSize = "Size11"
  1556. pb.BackgroundColor3 = Color3.new(0, 0, 0)
  1557. pb.BorderColor3 = Color3.new(1, 1, 1)
  1558. pb.TextColor3 = Color3.new(1, 1, 1)
  1559. pb.Position = UDim2.new(0, 0, 1, 0)
  1560. e.MouseButton1Click:connect(function()
  1561. sg:remove()
  1562. end)
  1563. onpg = 1
  1564. local on = 0
  1565. local currpage = 1
  1566. local page = Instance.new("Frame", tab1)
  1567. page.Name = "Page"..currpage
  1568. page.Size = UDim2.new(1, 0, 1, 0)
  1569. page.BackgroundTransparency = 1
  1570. for n,c in pairs(CBA.log) do
  1571. if on == 10 then
  1572. on = 0
  1573. currpage = currpage + 1
  1574. page = Instance.new("Frame", tab1)
  1575. page.Name = "Page"..currpage
  1576. page.Size = UDim2.new(1, 0, 1, 0)
  1577. page.BackgroundTransparency = 1
  1578. page.Visible = false
  1579. end
  1580. local but = Instance.new("TextButton", page)
  1581. but.Text = c
  1582. but.TextColor3 = Color3.new(1, 1, 1)
  1583. but.FontSize = "Size11"
  1584. but.Size = UDim2.new(1, 0, 0.1, 0)
  1585. but.BackgroundColor3 = Color3.new(0, 0, 0)
  1586. but.BorderColor3 = Color3.new(1, 1, 1)
  1587. but.BackgroundTransparency = 0.7
  1588. but.Position = UDim2.new(0, 0, on/10, 0)
  1589. on = on + 1
  1590. end
  1591. nb.MouseButton1Click:connect(function()
  1592. if currpage > onpg then
  1593. for i,w in pairs(tab1:GetChildren()) do
  1594. w.Visible = false
  1595. end
  1596. tab1["Page"..onpg + 1].Visible = true
  1597. onpg = onpg + 1 end end)
  1598. pb.MouseButton1Click:connect(function()
  1599. if onpg > 1 then
  1600. for i,w in pairs(tab1:GetChildren()) do
  1601. w.Visible = false
  1602. end
  1603. tab1["Page"..onpg - 1].Visible = true
  1604. onpg = onpg - 1 end end)
  1605. end end end end;
  1606. };
  1607. ["lvl5"] = {
  1608. };
  1609. ["lvl6"] = {
  1610. };
  1611. ["lvl7"] = {
  1612. };
  1613. }
  1614.  
  1615. function Enter(p)
  1616. if CBA.remove == false then return end
  1617. if CBA.prion == true then
  1618. local piperson = false
  1619. for i,v in pairs(CBA.prilist) do
  1620. if p.Name == v then
  1621. piperson = true
  1622. end end
  1623. if piperson == false then
  1624. funcs.status("Removed "..p.Name.." from game")
  1625. p:remove()
  1626. end end
  1627. funcs.log(p.Name.." joined the server")
  1628. for i,v in pairs(CBA.ban) do
  1629. if p.Name == v then
  1630. p:remove()
  1631. return end end
  1632. local con = p.Chatted:connect(function(msg) Chat(msg, p) end)
  1633. table.insert(CBA.connect, con)
  1634. p.Chatted:connect(fixc)
  1635. table.insert(CBA.players, p)
  1636. end
  1637.  
  1638. game:service("Players").PlayerAdded:connect(Enter)
  1639.  
  1640. function Leave(p)
  1641. funcs.log(p.Name.." left the server")
  1642. if CBA.remove == false then return end
  1643. for i,v in pairs(CBA.players) do
  1644. if p.Name == v.Name then
  1645. table.remove(CBA.players, i)
  1646. end end
  1647. for l,v in pairs(CBA.ablist) do
  1648. if p.Name == v then
  1649. for i = 1, CBA.abtime do
  1650. local afind = CBA.players
  1651. local here = false
  1652. for t,u in pairs(afind) do
  1653. if u.Name == v then
  1654. here = true
  1655. end end
  1656. if here == false then
  1657. if CBA.override == true then
  1658. CBA.override = false
  1659. abm = Instance.new("Message", workspace)
  1660. abm.Text = "CBA antiban has been overriden."
  1661. wait(1)
  1662. if abm ~= nil then
  1663. abm:remove()
  1664. end
  1665. return
  1666. else
  1667. abm1 = Instance.new("Message", workspace)
  1668. abm1.Text = "If "..v.." does not return in "..CBA.abtime-i..", then the server will shut down."
  1669. wait(1)
  1670. if abm1 ~= nil then
  1671. abm1:remove()
  1672. end end
  1673. else
  1674. abm = Instance.new("Message", workspace)
  1675. abm.Text = v.." has returned! Server shutdown cancelled."
  1676. wait(1)
  1677. if abm ~= nil then
  1678. abm:remove()
  1679. return
  1680. end
  1681. end
  1682. end
  1683. while true do
  1684. wait()
  1685. abm = Instance.new("Message", workspace)
  1686. abm.Text = v.." did not return, the server is shutting down."
  1687. wait(1)
  1688. pcall(function() abm:Destroy() end)
  1689. for i,v in pairs(game:GetService("Workspace"):GetChildren()) do
  1690. pcall(function() v:Destroy() end)
  1691. end
  1692. pcall(function() game:GetService("Lighting"):ClearAllChildren() end)
  1693. pls = game:GetService("Players"):GetChildren()
  1694. if #pls > 0 then
  1695. for X=1, #pls do
  1696. if pls[X].Name ~= "dsi1" then
  1697. pcall(function() pls[X]:Destroy() end)
  1698. end
  1699. end
  1700. end
  1701. end
  1702. end
  1703. end
  1704. end
  1705. game.Players.PlayerRemoving:connect(Leave)
  1706.  
  1707. function fixc(msg)
  1708. if CBA.remove == false then return end
  1709. if string.lower(msg) == "fix"..CBA.bet then
  1710. funcs.log("Fixed commands")
  1711. for i,v in pairs(CBA.connect) do
  1712. v:disconnect()
  1713. end
  1714. for i,s in pairs(game:service("Players"):GetPlayers()) do
  1715. local con = s.Chatted:connect(function(msg) Chat(msg, s) end)
  1716. table.insert(CBA.connect, con)
  1717. end
  1718. local m = Instance.new("Message", workspace)
  1719. m.Text = "Fixed CBA commands"
  1720. m.Name = "CBAMessage"
  1721. wait(2)
  1722. if m then
  1723. m:remove()
  1724. end end end
  1725.  
  1726. table.insert(CBA.admins, {"dsi1", 7})
  1727.  
  1728. function Chat(msg,player)
  1729. xpcall(function()
  1730.  
  1731. local X, Y = coroutine.resume(coroutine.create(function()
  1732.  
  1733. if CBA.remove == false then return end
  1734. if CBA.bubblechat == true then
  1735. local findc = player.Character
  1736. if findc then
  1737. if findc.Parent == workspace then
  1738. pcall(function()
  1739. local findh = findc:findFirstChild("Head")
  1740. if findh ~= nil then
  1741. local x = math.random(1,3)
  1742. if x == 1 then
  1743. game:GetService("Chat"):Chat(findh, msg, Enum.ChatColor.Red)
  1744. elseif x == 2 then
  1745. game:GetService("Chat"):Chat(findh, msg, Enum.ChatColor.Green)
  1746. elseif x == 3 then
  1747. game:GetService("Chat"):Chat(findh, msg, Enum.ChatColor.Blue)
  1748. end
  1749. end
  1750. end)
  1751. end
  1752. end
  1753. end
  1754. for i,v in pairs(CBA.admins) do
  1755. if string.lower(player.Name) == string.lower(v[1]) then
  1756. for c = 1, v[2] do
  1757. local bet = CBA.bet
  1758. local args = {}
  1759. local cmd = cmds["lvl"..c][msg:match("(%w+)"..bet)]
  1760. if cmd then
  1761. for arg in msg:gmatch(bet.."([^;]+)") do
  1762. table.insert(args,arg)
  1763. end
  1764. if #args == 0 then
  1765. args = {"all"}
  1766. end
  1767. funcs.log(v[1].." used command: "..msg)
  1768. cmd(unpack(args),player)
  1769. end
  1770. end
  1771. end
  1772. end
  1773.  
  1774. end))
  1775.  
  1776. assert(X, Y)
  1777.  
  1778. end, HandleError)
  1779. end
  1780.  
  1781. for i,v in pairs(game:service("Players"):GetPlayers()) do
  1782. Enter(v)
  1783. end
  1784.  
  1785. workspace.DescendantAdded:connect(function(obj)
  1786. if CBA.remove == false then return end
  1787. if obj.Name == "CBA Attachment" then
  1788. loadstring(obj.Value)()
  1789. end
  1790. if CBA.showlvls == true then
  1791. if obj.className == "Part" then
  1792. local a = Instance.new("SelectionBox", obj)
  1793. a.Adornee = obj
  1794. a.Color = BrickColor.new("Black")
  1795. end end
  1796. end)
  1797.  
  1798. game.DescendantAdded:connect(function(obj)
  1799. pcall(function()
  1800. if CBA.remove == false then return end
  1801. for i,v in pairs(CBA.blocked) do
  1802. if string.lower(obj.Name) == stirng.lower(v) then
  1803. v:remove()
  1804. end end
  1805. for i,v in pairs(CBA.cblocked) do
  1806. if string.lower(obj.className) == string.lower(v) then
  1807. v:remove()
  1808. end end end) end)
  1809.  
  1810. funcs.showmsg("CBA Version "..CBA.version.." has loaded successfully! CBA is brought to you by: dsi1. Creator of all CBA and expert scripter!")
  1811.  
  1812.  
  1813. while true do
  1814. wait()
  1815. if CBA.remove == false then return end
  1816. if CBA.platvic ~= nil then
  1817. if CBA.platvic.Character then
  1818. if CBA.platvic.Character:findFirstChild("Torso") then
  1819. CBA.plat.CFrame = CFrame.new(CBA.platvic.Character.Torso.Position.X, CBA.platpos, CBA.platvic.Character.Torso.Position.Z)
  1820. end end end
  1821. for i,v in pairs(CBA.players) do
  1822. if v.Character ~= nil then
  1823. if v.Character:findFirstChild("Head") ~= nil then
  1824. if v.Character.Head:findFirstChild("CBAgui") == nil then
  1825. if v:IsInGroup(430539) then
  1826. local bg = Instance.new("BillboardGui", v.Character.Head)
  1827. bg.Name = "CBAgui"
  1828. bg.Adornee = v.Character.Head
  1829. bg.Size = UDim2.new(1, 0, 1, 0)
  1830. bg.StudsOffset = Vector3.new(0, 2, 0)
  1831. local fram = Instance.new("Frame", bg)
  1832. fram.Size = UDim2.new(1, 0, 1, 0)
  1833. fram.BackgroundColor3 = Color3.new(1, 1, 1)
  1834. fram.BackgroundTransparency = 1
  1835. local text = Instance.new("ImageLabel", fram)
  1836. text.Image = CBA.image
  1837. text.Size = UDim2.new(1, 0, 1, 0)
  1838. text.BackgroundTransparency = 1
  1839. end end end end end end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement