Advertisement
candissss

Untitled

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