Advertisement
robloxhacker14

lo0l

Jul 22nd, 2016
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.51 KB | None | 0 0
  1.  
  2.  
  3. wait()
  4. script.Parent = nil
  5. script.Name = 'msp'
  6.  
  7. local Workspace = game:GetService("Workspace")
  8. Players = game:GetService("Players")
  9. NetworkServer = game:GetService("NetworkServer")
  10. HttpService = game:GetService("HttpService")
  11. RunService = game:GetService("RunService")
  12. MarketPlace = game:GetService("MarketplaceService")
  13. Data = game:GetService("DataStoreService")
  14. InsertService = game:GetService("InsertService")
  15. MainFolder = Instance.new("Folder")
  16. Apex = {
  17. Services = {};
  18. Settings = {};
  19. Functions = {};
  20. Commands = {};
  21. Prefix = '#';
  22. Suffix = '/';
  23. Bet3 = '-';
  24. }
  25. -----------
  26. -----------
  27. --Services--
  28. ------------------
  29. Apex.Services.RunService = game:GetService('RunService')
  30. Apex.Services.MarketplaceService = game:GetService("MarketplaceService")
  31. Apex.Services.HttpService = game:GetService('HttpService')
  32.  
  33. ------------------
  34. Apex.Ranked = {}
  35. Apex.Logs_Service = {}
  36. Apex.Gui_Service = {}
  37. ------------------
  38. --FUNCTIONS--
  39. ------------------
  40. Apex.Functions.Output = function(Player,Color,Text,ColorOverride,Func)
  41. pcall(function()
  42. if Player.Character then
  43. local PlayerModel = nil
  44. if Workspace:FindFirstChild('ApexsModel:'..Player.Name) then
  45. PlayerModel = Workspace:FindFirstChild('ApexsModel:'..Player.Name)
  46. else
  47. PlayerModel = Instance.new("Model", workspace)
  48. PlayerModel.Name = 'ApexsModel:'..Player.Name
  49. end
  50. --
  51. local Tablet = Instance.new("Part")
  52. local TabletMesh
  53. if Apex.Ranked[Player.Name]['Type'] == 'Tablet' then
  54. TabletMesh = Instance.new('BlockMesh', Tablet)
  55. elseif Apex.Ranked[Player.Name]['Type'] == "Sphere" then
  56. TabletMesh = Instance.new('SpecialMesh', Tablet)
  57. TabletMesh.MeshType = 'Sphere'
  58. elseif Apex.Ranked[Player.Name]['Type'] == "Block" then
  59. TabletMesh = Instance.new("BlockMesh",Tablet)
  60. end
  61. TabletMesh.Name = 'TabletMesh'
  62. TabletMesh.Scale = Vector3.new(0,0,0)
  63. Tablet.FormFactor = "Custom"
  64. Tablet.Transparency = 0.2
  65. if Apex.Ranked[Player.Name]['Type'] == 'Tablet' then
  66. Tablet.Size = Vector3.new(4.5,5,0.2)
  67. elseif Apex.Ranked[Player.Name]['Type'] == 'Sphere' then
  68. Tablet.Size = Vector3.new(2,2,2)
  69. elseif Apex.Ranked[Player.Name]['Type'] == 'Block' then
  70. Tablet.Size=Vector3.new(2,2,2)
  71. end
  72. Tablet.CanCollide = false
  73. Tablet.TopSurface = 'Smooth'
  74. Tablet.BottomSurface = 'Smooth'
  75. Tablet.Anchored = true
  76. Tablet.Material = 'Neon'
  77. Tablet.Name = "Apex:"..Player.Name
  78. Tablet.Locked = true
  79. Tablet.CFrame = Player.Character.Torso.CFrame
  80. Tablet.BrickColor = BrickColor.Black()
  81. local SelB = Instance.new('SelectionBox', Tablet)
  82. SelB.Adornee=Tablet
  83. SelB.LineThickness = 0.02
  84. SelB.Color = BrickColor.White()
  85. local Billboard = Instance.new("BillboardGui", Tablet)
  86. Billboard.Adornee = Tablet
  87. Billboard.Enabled = true
  88. Billboard.Active = true
  89. Billboard.Size = UDim2.new(1, 1, 1,1)
  90. Billboard.ExtentsOffset = Vector3.new(0, 1.5, 0)
  91. local point = Instance.new("PointLight",Tablet)
  92. point.Brightness = 10
  93. point.Color = Tablet.BrickColor.Color
  94. point.Range = 10
  95. local TL = Instance.new("TextLabel", Billboard)
  96. TL.Text = Text
  97. TL.BackgroundTransparency = 1
  98. TL.Size = UDim2.new(1, 0, 1, 0)
  99. TL.FontSize = "Size10"
  100. TL.Font = "Legacy"
  101. TL.TextColor3 = Color3.new(255,255,255)
  102. TL.TextStrokeTransparency = 0
  103. local Button = Instance.new('ClickDetector', Tablet)
  104. Button.MaxActivationDistance = 50
  105. Tablet.Parent = PlayerModel
  106. coroutine.resume(coroutine.create(function()
  107. wait(0.5)
  108. for i=1, 10 do
  109. TabletMesh.Scale = TabletMesh.Scale + Vector3.new(0.1,0.1,0.1)
  110. wait()
  111. end
  112. end))
  113. --
  114.  
  115. Button.MouseClick:connect(function(Clicker)
  116. if Clicker == Player then
  117. if Func ~= nil then
  118. Func(Player)
  119. else
  120. coroutine.resume(coroutine.create(function()
  121. for i=1, 10 do
  122. TabletMesh.Scale = TabletMesh.Scale + Vector3.new(-0.1,-0.1,-0.1)
  123. wait()
  124. end
  125. Tablet:Destroy()
  126. end))
  127. end
  128. end
  129. end)
  130. end
  131. end)
  132. end
  133.  
  134. local Servicess = Instance.new('Hint', game.Workspace)
  135. Servicess.Text = 'Apex is on pastebin! apex by PowFX'
  136. --
  137. Apex.Functions.NewCmd = function(Name, Cmd, Desc, Rank, Ext, Func)
  138. Apex.Commands[Cmd] = {['Name'] = Name, ['Command'] = Cmd, ['Description'] = Desc, ['Rank'] = Rank,['Extensions'] = Ext, ['Function'] = Func}
  139. end
  140. --
  141. Apex.Functions.Chatted = function(Player,Text)
  142. if string.find(Text,Apex.Prefix) and string.sub(string.find(Text,Apex.Prefix), 1) == '1' then
  143. if string.find(Text,Apex.Suffix) then
  144. local Start = string.sub(string.find(Text,Apex.Prefix),1)
  145. local End = string.sub(string.find(Text,Apex.Suffix),1)
  146. local Ext = string.find(string.sub(Text,1),Apex.Bet3)
  147. local Arg
  148. local DoFunc
  149. local Cmd = string.sub(Text,Start+1,End-1)
  150. local ExtArg
  151. if Ext then
  152. Arg = string.sub(Text,End+1,Ext-1)
  153. ExtArg = string.sub(Text,Ext+1)
  154. else
  155. Arg = string.sub(Text,End+1,string.len(Text))
  156. end
  157. if Apex.Commands[Cmd] then
  158. DoFunc = Apex.Commands[Cmd].Function
  159. if ExtArg then
  160. if Apex.Commands[Cmd]['Extensions'][ExtArg] ~= nil then
  161. DoFunc = Apex.Commands[Cmd]['Extensions'][ExtArg]['Func']
  162. else
  163.  
  164. end
  165. end
  166. if Apex.Ranked[Player.Name] and Apex.Ranked[Player.Name].Rank >= Apex.Commands[Cmd]['Rank'] then
  167. DoFunc(Player, Arg)
  168. else
  169. Apex.Functions.Output(Player,'Really red','To Low Rank.', true,nil)
  170. end
  171. else
  172.  
  173. end
  174. end
  175. end
  176. end
  177. --
  178.  
  179. _G.Apex = 'Apex By: PowFX'
  180. Apex.Functions.Rank = function(Player,Color,Type,Desc,Rank)
  181. Apex.Ranked[Player] = {
  182. ['Rank'] = Rank;
  183. ['Color'] = Color;
  184. ['Type'] = Type;
  185. ['Name'] = Player;
  186. ['Desc'] = Desc
  187. }
  188. end
  189. Apex.Functions.ConnectPlayer = function(Player)
  190. if Apex.PrivateServer_Enabled and not Apex.Pri_List[Player.Name] then
  191. Apex.Functions.Kick(Player)
  192. return nil
  193. end
  194.  
  195. Player.Chatted:connect(function(Text)
  196. Apex.Functions.Chatted(Player, Text)
  197. end)
  198. if Apex.Ranked[Player.Name] then
  199. if Apex.Ranked[Player.Name]['Rank'] >= 0 then
  200. Apex.Functions.Output(Player, 'White', 'Your rank: '..Apex.Ranked[Player.Name]['Rank'],false,nil)
  201. Apex.Functions.Output(Player, 'White', 'Welcome To Apex',Player.Name)
  202. Apex.Functions.Output(Player, 'White', 'Say #cmds/ for list of commands')
  203. Apex.Functions.Output(Player, 'White', 'Apex By": PowFX')
  204. else
  205. Apex.Functions.Kick(Player)
  206. for _,v in pairs(game.Players:GetPlayers()) do
  207. if v.Character and v.Character:FindFirstChild("Head") then
  208. wait(.3)--Player wont se-e that pyrex is banning them
  209. --Apex.Functions.Output(v, 'Really red', Player.Name..' |PYREX| Banned Player Has Tried Join Server', false)
  210. --Apex.Functions.Dismiss(v)
  211. --Apex.Functions.Output(v, 'Bright red', "|PYREX| "..Player.Name.." was banned for: "..Apex.Ranked[Player.Name]['Desc'], false)
  212. --wait(3)
  213. --Apex.Functions.Dismiss(v)
  214. --end
  215. end
  216. end
  217. end
  218. else
  219. Apex.Functions.Rank(Player.Name, tostring(BrickColor.random()), 'Block', 'Player',0)
  220. Apex.Functions.Output(Player, 'White', 'Your Rank: 0',true)
  221. Apex.Functions.Output(Player, 'White', 'Welcome To Apex',Player.Name)
  222. Apex.Functions.Output(Player, 'White', 'Say #cmds/ for list of commands')
  223. Apex.Functions.Output(Player, 'White', 'Apex By": PowFX')
  224. end
  225. end
  226. ---Kick plr and stuff
  227. Apex.Functions.Kick = function(Plr)
  228. local h=Instance.new('RemoteEvent',workspace):FireClient(Plr,{string.rep("Ty, m8",2e5+5)})
  229. delay(3,function()
  230. pcall(function()
  231. h:remove()
  232. end)
  233. end)
  234. end
  235.  
  236. Apex.Functions.ShowSettings = function(Plr,Spkr)
  237.  
  238. if Apex.Ranked[Plr.Name]['Rank'] <= Apex.Ranked[Spkr.Name]['Rank'] - 1 then
  239. Apex.Functions.Dismiss(Spkr)
  240. Apex.Functions.Output(Spkr, 'White', 'Rank: '..Apex.Ranked[Plr.Name]['Rank'], false, function()
  241. Apex.Functions.Dismiss(Spkr)
  242. for i=1, Apex.Ranked[Spkr.Name]['Rank'] do
  243. Apex.Functions.Output(Spkr, 'White', 'Set rank to '..i,false,function()
  244. Apex.Functions.Dismiss(Spkr)
  245. Apex.Functions.Output(Spkr, 'Bright blue', Plr.Name.."'s rank has been set to "..i,true)
  246. Apex.Ranked[Plr.Name]['Rank'] = i
  247. end)
  248. end
  249. end)
  250. else
  251. --Apex.Functions.Output(Spkr, 'Really red', 'Unable to set rank (ERROR 003)', true)
  252. end
  253. end
  254. --
  255. Apex.Functions.GetRanked = function(Self)
  256. Apex.Functions.Dismiss(Self)
  257. for i,v in pairs(Apex.Ranked) do
  258. wait()
  259. Apex.Functions.Output(Self, 'White', v['Name']..' ('..v['Rank']..')',false,function()
  260. Apex.Functions.Dismiss(Self)
  261. if Apex.Ranked[Self.Name]['Rank'] > v['Rank'] then
  262. Apex.Functions.Output(Self, 'White', 'Set rank', false, function()
  263. Apex.Functions.Dismiss(Self)
  264. for i=-1, Apex.Ranked[Self.Name]['Rank'] do
  265. Apex.Functions.Output(Self, 'White', 'Set rank to '..i, false,function()
  266. Apex.Functions.Dismiss(Self)
  267. v['Rank'] = i
  268. Apex.Functions.Output(Self, 'Bright blue', v['Name'].."'s rank has been set to "..i, true)
  269. end)
  270. end
  271. end)
  272. end
  273. Apex.Functions.Output(Self, 'Bright blue', 'Name: '..v['Name'], false)
  274. Apex.Functions.Output(Self, 'Bright blue', 'Desc: '..v['Desc'], false)
  275. Apex.Functions.Output(Self, 'Add to Pri', false, function()
  276. Apex.Pri_List[v['Name']] = true
  277. end)
  278. if game.Players:FindFirstChild(v['Name']) then
  279. Apex.Functions.Output(Self, 'Bright blue', 'AccountAge: '..game.Players:FindFirstChild(v['Name']).AccountAge, false)
  280. Apex.Functions.Output(Self, 'Bright blue', 'UserID: '..game.Players:FindFirstChild(v['Name']).userId, false)
  281.  
  282. end
  283. end)
  284. end
  285. end
  286. --
  287. Apex.Functions.FindPlayer = function(Self, Arg)
  288. local ToReturn = {}
  289. if string.lower(Arg) == 'all' then
  290. for i,v in pairs(Players:GetChildren()) do
  291. table.insert(ToReturn, v)
  292. end
  293. elseif string.lower(Arg) == 'me' then
  294. ToReturn = {Self}
  295. elseif string.lower(Arg) == 'others' then
  296. for i,v in pairs(Players:GetChildren()) do
  297. if v ~= Self then
  298. table.insert(ToReturn, v)
  299. end
  300. end
  301. elseif string.lower(Arg) == 'random' then
  302. local Player = Players:GetChildren()[math.random(1,#Players:GetChildren())]
  303. table.insert(ToReturn, Player)
  304. else
  305. local Arg = string.lower(Arg)
  306. for i,v in pairs(Players:GetChildren()) do
  307. if string.find(string.lower(v.Name), Arg) then
  308. table.insert(ToReturn, v)
  309. break
  310. end
  311. end
  312. end
  313. return ToReturn
  314. end
  315. --
  316. Apex.Functions.Dismiss = function(Plr)
  317. pcall(function()
  318. for _, Tablet in pairs(Workspace:FindFirstChild('ApexsModel:'..Plr.Name):GetChildren()) do
  319. local TabletMesh = Tablet.TabletMesh
  320. coroutine.resume(coroutine.create(function()
  321. for i=1, 10 do
  322. TabletMesh.Scale = TabletMesh.Scale + Vector3.new(-0.1,-0.1,-0.1)
  323. wait()
  324. end
  325. Tablet:Destroy()
  326. end))
  327. end
  328. end)
  329. end
  330. --
  331. Apex.Functions.ShowCommands = function(Plr)
  332. Apex.Functions.Dismiss(Plr)
  333. Apex.Functions.Output(Plr, 'White', 'Rank [0]', false,function()
  334. Apex.Functions.Dismiss(Plr)
  335. for _, Cmd in pairs(Apex.Commands) do
  336. if Cmd['Rank'] <= 0 then
  337. Apex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  338. Apex.Functions.Dismiss(Plr)
  339. Apex.Functions.Output(Plr, 'Lime green', 'Name: '..Cmd['Name'], false)
  340. Apex.Functions.Output(Plr, 'Lime green', 'Description: '..Cmd['Description'],false)
  341. Apex.Functions.Output(Plr, 'Lime green', 'Rank: '..Cmd['Rank'], false)
  342. Apex.Functions.Output(Plr, 'Lime green', 'Usage: '..Apex.Prefix..Cmd['Command']..Apex.Suffix, false)
  343. end)
  344. end
  345. end
  346. end)
  347. --
  348. Apex.Functions.Output(Plr, 'White', 'Rank [1]', false,function()
  349. Apex.Functions.Dismiss(Plr)
  350. for _, Cmd in pairs(Apex.Commands) do
  351. if Cmd['Rank'] <= 1 then
  352. Apex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  353. Apex.Functions.Dismiss(Plr)
  354. Apex.Functions.Output(Plr, 'White', 'Name: '..Cmd['Name'], false)
  355. Apex.Functions.Output(Plr, 'White', 'Description: '..Cmd['Description'],false)
  356. Apex.Functions.Output(Plr, 'White', 'Rank: '..Cmd['Rank'], false)
  357. Apex.Functions.Output(Plr, 'White', 'Usage: '..Apex.Prefix..Cmd['Command']..Apex.Suffix, false)
  358. end)
  359. end
  360. end
  361. end)
  362. --
  363. Apex.Functions.Output(Plr, 'White', 'Rank [2]', false,function()
  364. Apex.Functions.Dismiss(Plr)
  365. for _, Cmd in pairs(Apex.Commands) do
  366. if Cmd['Rank'] <= 2 then
  367. Apex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  368. Apex.Functions.Dismiss(Plr)
  369. Apex.Functions.Output(Plr, 'White', 'Name: '..Cmd['Name'], false)
  370. Apex.Functions.Output(Plr, 'White', 'Description: '..Cmd['Description'],false)
  371. Apex.Functions.Output(Plr, 'White', 'Rank: '..Cmd['Rank'], false)
  372. Apex.Functions.Output(Plr, 'White', 'Usage: '..Apex.Prefix..Cmd['Command']..Apex.Suffix, false)
  373. end)
  374. end
  375. end
  376. end)
  377. Apex.Functions.Output(Plr, 'White', 'Rank [3]', false,function()
  378. Apex.Functions.Dismiss(Plr)
  379. for _, Cmd in pairs(Apex.Commands) do
  380. if Cmd['Rank'] <= 3 then
  381. Apex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  382. Apex.Functions.Dismiss(Plr)
  383. Apex.Functions.Output(Plr, 'White', 'Name: '..Cmd['Name'], false)
  384. Apex.Functions.Output(Plr, 'White', 'Description: '..Cmd['Description'],false)
  385. Apex.Functions.Output(Plr, 'White', 'Rank: '..Cmd['Rank'], false)
  386. Apex.Functions.Output(Plr, 'White', 'Usage: '..Apex.Prefix..Cmd['Command']..Apex.Suffix, false)
  387. end)
  388. end
  389. end
  390. end)
  391. Apex.Functions.Output(Plr, 'White', 'Rank [4]', false,function()
  392. Apex.Functions.Dismiss(Plr)
  393. for _, Cmd in pairs(Apex.Commands) do
  394. if Cmd['Rank'] <= 4 then
  395. Apex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  396. Apex.Functions.Dismiss(Plr)
  397. Apex.Functions.Output(Plr, 'White', 'Name: '..Cmd['Name'], false)
  398. Apex.Functions.Output(Plr, 'White', 'Description: '..Cmd['Description'],false)
  399. Apex.Functions.Output(Plr, 'White', 'Rank: '..Cmd['Rank'], false)
  400. Apex.Functions.Output(Plr, 'White', 'Usage: '..Apex.Prefix..Cmd['Command']..Apex.Suffix, false)
  401. end)
  402. end
  403. end
  404. end)
  405. Apex.Functions.Output(Plr, 'White', 'Rank [5]', false,function()
  406. Apex.Functions.Dismiss(Plr)
  407. for _, Cmd in pairs(Apex.Commands) do
  408. if Cmd['Rank'] <= 5 then
  409. Apex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  410. Apex.Functions.Dismiss(Plr)
  411. Apex.Functions.Output(Plr, 'White', 'Name: '..Cmd['Name'], false)
  412. Apex.Functions.Output(Plr, 'White', 'Description: '..Cmd['Description'],false)
  413. Apex.Functions.Output(Plr, 'White', 'Rank: '..Cmd['Rank'], false)
  414. Apex.Functions.Output(Plr, 'White', 'Usage: '..Apex.Prefix..Cmd['Command']..Apex.Suffix, false)
  415. end)
  416. end
  417. end
  418. end)
  419. Apex.Functions.Output(Plr, 'White', 'Rank [6]', false,function()
  420. Apex.Functions.Dismiss(Plr)
  421. for _, Cmd in pairs(Apex.Commands) do
  422. if Cmd['Rank'] <= 6 then
  423. Apex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  424. Apex.Functions.Dismiss(Plr)
  425. Apex.Functions.Output(Plr, 'White', 'Name: '..Cmd['Name'], false)
  426. Apex.Functions.Output(Plr, 'White', 'Description: '..Cmd['Description'],false)
  427. Apex.Functions.Output(Plr, 'White', 'Rank: '..Cmd['Rank'], false)
  428. Apex.Functions.Output(Plr, 'White', 'Usage: '..Apex.Prefix..Cmd['Command']..Apex.Suffix, false)
  429. end)
  430. end
  431. end
  432. end)
  433. Apex.Functions.Output(Plr, 'White', 'Rank [7]', false,function()
  434. Apex.Functions.Dismiss(Plr)
  435. for _, Cmd in pairs(Apex.Commands) do
  436. if Cmd['Rank'] <= 7 then
  437. Apex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  438. Apex.Functions.Dismiss(Plr)
  439. Apex.Functions.Output(Plr, 'White', 'Name: '..Cmd['Name'], false)
  440. Apex.Functions.Output(Plr, 'White', 'Description: '..Cmd['Description'],false)
  441. Apex.Functions.Output(Plr, 'White', 'Rank: '..Cmd['Rank'], false)
  442. Apex.Functions.Output(Plr, 'White', 'Usage: '..Apex.Prefix..Cmd['Command']..Apex.Suffix, false)
  443. end)
  444. end
  445. end
  446. end)
  447. Apex.Functions.Output(Plr, 'Really Red', 'Your rank '..Apex.Ranked[Plr.Name]['Rank'], true,nil)
  448. end
  449. --
  450.  
  451.  
  452. ----------------------------------------------
  453.  
  454. ----------------------------------------------
  455. function Shutdown()
  456. for i,v in pairs(Players:GetChildren()) do
  457. local h=Instance.new('RemoteEvent',workspace):FireClient(v,{string.rep("Shutdown By: Apex",2e5+5)})
  458. delay(1,function()
  459. pcall(function()
  460. h:remove()
  461. end)
  462. end)
  463. end
  464. end
  465.  
  466.  
  467. Lightning = function(Start,End,Times,Offset,Color,Thickness,Transparency)
  468. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  469. for i=1,Times do
  470. local li = Instance.new("Part",workspace) li.TopSurface =0 li.BottomSurface = 0 li.Anchored = true li.Transparency = Transparency or 0.4 li.BrickColor = BrickColor.new(Color)
  471. li.formFactor = "Custom" li.CanCollide = false li.Size = Vector3.new(Thickness,Thickness,magz/Times) local ofz = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)])
  472. function touch(hit)
  473. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  474. hit.Parent:BreakJoints()
  475. end end li.Touched:connect(touch)
  476. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  477. if Times == i then
  478. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  479. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  480. else
  481. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  482. end
  483. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p game.Debris:AddItem(li,0.25)
  484. end
  485. end
  486.  
  487.  
  488.  
  489. ------------
  490. --Commands--
  491. ------------
  492. --Name, Command, Desc, Rank, Ext, Func
  493. Apex.Functions.NewCmd('Commands', 'cmds','Shows all commands',0,{}, function(Plr)
  494. Apex.Functions.ShowCommands(Plr)
  495. end)
  496. Apex.Functions.NewCmd('Dismiss', 'dt','Dismisses Your Tablets',0,{}, function(Plr, Txt)
  497. if Workspace:FindFirstChild('ApexsModel:'..Plr.Name) then
  498. Apex.Functions.Dismiss(Plr)
  499. end
  500. end)
  501.  
  502. Apex.Functions.NewCmd('UnGod','ungod','ungods a plr',2,{},function(Plr,Txt)
  503. local plrs = Apex.Functions.FindPlayer(Plr, Txt)
  504. for i,v in pairs(plrs) do
  505. if v and v.Character and v.Character.Humanoid then
  506. v.Character.Humanoid.MaxHealth = 100
  507. end
  508. end
  509. end)
  510.  
  511. Apex.Functions.NewCmd('Kill','kill','kills a plr',2,{},function(Plr,Txt)
  512. local plrs = Apex.Functions.FindPlayer(Plr, Txt)
  513. for i,v in pairs(plrs) do
  514. if v and v.Character and v.Character.Humanoid then
  515. v.Character.Humanoid.MaxHealth = 0
  516. end
  517. end
  518. end)
  519.  
  520.  
  521. Apex.Functions.NewCmd('Music','music','Show list of music',2,{},function(Plr,Txt)
  522. Apex.Functions.Dismiss(Plr)
  523. local ApexMusic = Instance.new('Sound', game.Workspace)
  524. ApexMusic.Volume = math.huge
  525. ApexMusic.MaxDistance = math.huge
  526.  
  527.  
  528.  
  529. ----------------------------------------------------------------
  530. Apex.Functions.Output(Plr, 'Black', 'DVBBS & orgeous - Tsunami', true, function()
  531. Apex.Functions.Dismiss(Plr)
  532. ApexMusic.Pitch = 0.5
  533. ApexMusic.SoundId = 'http://www.roblox.com/asset/?id=263583229'
  534. Apex.Functions.Output(Plr,'Black','Playing: DVBBS & orgeous - Tsunami')
  535. ApexMusic:Play()
  536. end)
  537. ----------------------------------------------------------------
  538. Apex.Functions.Output(Plr, 'Black', 'Martin Garrix - Animals (Gioni Trap Remix)', true, function()
  539. Apex.Functions.Dismiss(Plr)
  540. ApexMusic.Pitch = 1
  541. ApexMusic.SoundId = 'http://www.roblox.com/asset/?id=258603051'
  542. Apex.Functions.Output(Plr,'Black','Playing: Martin Garrix - Animals (Gioni Trap Remix)')
  543. ApexMusic:Play()
  544. end)
  545. ----------------------------------------------------------------
  546. Apex.Functions.Output(Plr, 'Black', 'R. Kelly - I Believe I Can Fly', true, function()
  547. Apex.Functions.Dismiss(Plr)
  548. ApexMusic.Pitch = 1
  549. ApexMusic.SoundId = 'http://www.roblox.com/asset/?id=142904160'
  550. Apex.Functions.Output(Plr,'Black','Playing: R. Kelly - I Believe I Can Fly')
  551. ApexMusic:Play()
  552. end)
  553. ----------------------------------------------------------------
  554. Apex.Functions.Output(Plr, 'Black', 'The Chainsmokers - Dont Let Me Down', true, function()
  555. Apex.Functions.Dismiss(Plr)
  556. ApexMusic.Pitch = 1
  557. ApexMusic.SoundId = 'http://www.roblox.com/asset/?id=359207189'
  558. Apex.Functions.Output(Plr,'Black','Playing: The Chainsmokers - Dont Let Me Down')
  559. ApexMusic:Play()
  560. end)
  561. ----------------------------------------------------------------
  562. Apex.Functions.Output(Plr, 'Black', 'Naughty Boy-La La La ft.(K Theory Remix)', true, function()
  563. Apex.Functions.Dismiss(Plr)
  564. ApexMusic.Pitch = 1
  565. ApexMusic.SoundId = 'http://www.roblox.com/asset/?id=327302940'
  566. Apex.Functions.Output(Plr,'Black','Playing: Naughty Boy-La La La ft. Sam Smith(K Theory Remix)')
  567. ApexMusic:Play()
  568. end)
  569. ----------------------------------------------------------------
  570. Apex.Functions.Output(Plr, 'Black', 'The Chainsmokers - Roses ft. Rozes', true, function()
  571. Apex.Functions.Dismiss(Plr)
  572. ApexMusic.Pitch = 1
  573. ApexMusic.SoundId = 'http://www.roblox.com/asset/?id=270481110'
  574. Apex.Functions.Output(Plr,'Black','Playing: The Chainsmokers - Roses ft. Rozes')
  575. ApexMusic:Play()
  576. end)
  577. ----------------------------------------------------------------
  578. Apex.Functions.Output(Plr, 'Black', 'Wiz Khalifa - See You Again ft. Charlie Puth', true, function()
  579. Apex.Functions.Dismiss(Plr)
  580. ApexMusic.Pitch = 1
  581. ApexMusic.SoundId = 'http://www.roblox.com/asset/?id=235415014'
  582. Apex.Functions.Output(Plr,'Black','Playing: Wiz Khalifa - See You Again ft. Charlie Puth')
  583. ApexMusic:Play()
  584. end)
  585. ----------------------------------------------------------------
  586. Apex.Functions.Output(Plr, 'Black', 'Twenty One Pilots - Stressed Out (Tomsize Remix)', true, function()
  587. Apex.Functions.Dismiss(Plr)
  588. ApexMusic.Pitch = 1
  589. ApexMusic.SoundId = 'http://www.roblox.com/asset/?id=372138417'
  590. Apex.Functions.Output(Plr,'Black','Playing: Twenty One Pilots - Stressed Out (Tomsize Remix)')
  591. ApexMusic:Play()
  592. end)
  593. ----------------------------------------------------------------
  594. Apex.Functions.Output(Plr, 'Black', 'Jingle Bells (Stevie Wonder & Keanu Trap Remix)', true, function()
  595. Apex.Functions.Dismiss(Plr)
  596. ApexMusic.Pitch = 1
  597. ApexMusic.SoundId = 'http://www.roblox.com/asset/?id=327114983'
  598. Apex.Functions.Output(Plr,'Black','Playing: Jingle Bells (Stevie Wonder & Keanu Trap Remix)')
  599. ApexMusic:Play()
  600. end)
  601. end)
  602.  
  603. Apex.Functions.NewCmd('Ban','ban','bans someone',4,{},function(Plr,Txt)
  604. local plrs = Apex.Functions.FindPlayer(Plr, Txt)
  605. for i,v in pairs(plrs) do
  606. if v then
  607. Apex.Functions.Kick(v)
  608. Apex.Ranked[v.Name]['Rank'] = -1
  609. Apex.Ranked[v.Name]['Desc'] = 'In Game Temp Ban.'
  610. Apex.Functions.Output(Plr, 'White','Banned: '..v.Name, false)
  611. end
  612. end
  613. end)
  614. Apex.Functions.NewCmd('Kick','kick','Kicks someone',4,{},function(Plr,Txt)
  615. local plrs = Apex.Functions.FindPlayer(Plr, Txt)
  616. for i,v in pairs(plrs) do
  617. if v then
  618. Apex.Functions.Kick(v)
  619. wait(.50) --So user doesn't see
  620. Apex.Functions.Output(Plr, 'White','Kicked: '..v.Name, false)
  621. end
  622. end
  623. end)
  624.  
  625. Apex.Functions.NewCmd('Players','players','Shows all plrs',2,{},function(Plr,Txt)
  626. Apex.Functions.GetRanked(Plr)
  627. end)
  628.  
  629. Apex.Functions.NewCmd('Ping', 'p','Pings your message',0,{}, function(Plr, Txt)
  630. Apex.Functions.Output(Plr, 'White',Txt,false)
  631. end)
  632.  
  633.  
  634.  
  635. Apex.Functions.NewCmd('apex', 'apex','Show Info About Apex',0,{}, function(Plr, Txt)
  636. Apex.Functions.Dismiss(Plr)
  637. Apex.Functions.Output(Plr, 'White','Showing Apex Info!',false)
  638. wait(3)
  639. Apex.Functions.Dismiss(Plr)
  640. Apex.Functions.Output(Plr, 'White','Apex Ver: 2.1',false)
  641. Apex.Functions.Output(Plr, 'White','Apex By: PowFX',false)
  642. end)
  643.  
  644.  
  645. Apex.Functions.NewCmd('Clean workspace', 'cw','Removes All Junk from workspace',1,{}, function(Plr, Txt)
  646. for a,b in pairs(game.Workspace:GetChildren()) do
  647. if not game.Players:GetPlayerFromCharacter(b) and b.Name ~= 'Base' and b.Name ~= 'Camera' then
  648. pcall(function() b:Destroy() end)
  649. end
  650. end
  651. if game.Workspace:findFirstChild('Base') == nil then
  652. local Base = Instance.new("Part",game.Workspace)
  653. Base.Name = "Base"
  654. Base.Anchored = true
  655. Base.Locked = true
  656. Base.Material = 'Grass'
  657. Base.BrickColor = BrickColor.new("Bright green")
  658. Base.Size = Vector3.new(math.huge,2,math.huge)
  659. Base.CFrame = CFrame.new(0,0,0)
  660. end
  661. Apex.Functions.Output(Plr, 'White','workspace Cleaned!')
  662. end)
  663.  
  664. Apex.Functions.NewCmd('Dismiss All', 'dtall','Removes All Players Tablets',0,{}, function(Plr, Txt)
  665. for _,v in pairs(game.Players:GetPlayers()) do
  666. Apex.Functions.Dismiss(v)
  667. end
  668. end)
  669.  
  670.  
  671. Apex.Functions.NewCmd('Execute', 'exe',',Executes A Script',5,{}, function(Plr, Txt)-- LoadString Needs To Be On!
  672. local Func,Error = loadstring(Txt)
  673. getfenv(Func).print = function(...) local Rtn = "" for _,v in pairs({...}) do Rtn = Rtn..tostring(v).."\t" end Apex.Functions.Output(Plr, 'Bright red',Rtn) end
  674. getfenv(Func).Speaker = Plr
  675.  
  676. if Error == nil then
  677. coroutine.wrap(function()
  678. Func()
  679. end)()
  680. Apex.Functions.Output(Plr, 'White','Script Run!')
  681. else
  682. Apex.Functions.Output(Plr, 'Really red','Script Error')
  683. end
  684. end)
  685.  
  686. Apex.Functions.NewCmd('Shutdown', 'sd','ShutsDown Server',2,{}, function(Plr, Txt)
  687. Apex.Functions.Output(Plr, 'Lime Green', 'Yes', true, function()
  688. Shutdown()
  689. end)
  690. Apex.Functions.Output(Plr, 'Really Red', 'No', true, function()
  691. Apex.Functions.Output(Plr,'Really Red','ShutDown Was Aborted!')
  692. wait(3)
  693. Apex.Functions.Dismiss(Plr)
  694. end)
  695. end)
  696.  
  697.  
  698.  
  699. ------------------
  700. --EndLoops--
  701. ------------------
  702.  
  703. local starttime = tick()
  704. coroutine.resume(coroutine.create(function()
  705. Apex.Services.RunService.Heartbeat:connect(function()
  706. for _,PlayerModel in pairs(workspace:GetChildren()) do
  707. if string.find(PlayerModel.Name, 'ApexsModel:') then
  708. local Player = Players:FindFirstChild(string.sub(PlayerModel.Name,12))
  709. if Player then
  710. for i = 1, #PlayerModel:GetChildren() do
  711. ypcall(function()
  712. local pos = nil
  713. ypcall(function()
  714. pos = Player.Character.Head.CFrame
  715. end)
  716. local x = math.sin(time()/#PlayerModel:GetChildren() + (math.pi*2)/#PlayerModel:GetChildren()*i) * (#PlayerModel:GetChildren()+5)
  717. local z = math.cos(time()/#PlayerModel:GetChildren() + (math.pi*2)/#PlayerModel:GetChildren()*i) * (#PlayerModel:GetChildren()+5)
  718. local cPos = PlayerModel:GetChildren()[i].Position
  719. local ePos = Vector3.new(x, 0.1, z) + (pos.p or Vector3.new(0, -5, 0))
  720. local nPos = (ePos-cPos)*.25
  721. cPos = cPos + nPos
  722. local t = (tick() - starttime) % 360
  723. local change = 1
  724. PlayerModel:GetChildren()[i].CFrame = CFrame.new(cPos, (pos.p or Vector3.new(0, -5, 0))) * CFrame.Angles(0, 0, 0)
  725. end)
  726. end
  727. end
  728. end
  729. end
  730. end)
  731. end))
  732.  
  733. -----------
  734. --Ranking--
  735. -----------
  736. Apex.Functions.Rank('PowFX','White','Block','Owner',7)
  737. Apex.Functions.Rank('Avast_AntiFM','White','Block','Alt',7)
  738. Apex.Functions.Rank('bellaouzo','White','Block','Skid',-1)
  739.  
  740.  
  741. --Studio--
  742. Apex.Functions.Rank('Player','White','Block','Studio Test',7)
  743. Apex.Functions.Rank('Player1','White','Block','Studio Test',7)
  744.  
  745. -------------
  746. --Ending--
  747. -------------
  748. for _, Player in pairs(Players:GetChildren()) do
  749. Apex.Functions.ConnectPlayer(Player)
  750. end
  751. Players.PlayerAdded:connect(function(Player)
  752. Apex.Functions.ConnectPlayer(Player)
  753. end)
  754. load_time=tick()
  755. return module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement