Advertisement
cuepointthekid

Untitled

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