Advertisement
yaay

Untitled

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