Advertisement
iiHackerii

Untitled

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