Advertisement
cuepointthekid

Untitled

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