Advertisement
jayrock3401

Untitled

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