Advertisement
bellaouzo

Untitled

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