Advertisement
Sergeant_SethZP

CHM

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