Advertisement
mical123

Untitled

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