Advertisement
Ephius

Untitled

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