Advertisement
InfectionBlank

Untitled

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