Advertisement
Doomix

admin

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