Maxenus

Admin

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