Advertisement
billykennard

cba script

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