Advertisement
deezfai

Untitled

Aug 29th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 92.75 KB | None | 0 0
  1. --[[
  2.  
  3. Leaked by CLarramore from the Pyrex Developer Team.
  4. Pyrex developers...
  5.  
  6.  
  7. well...
  8.  
  9. I have gotten another version of pyrex admin
  10.  
  11. so...
  12.  
  13. k
  14.  
  15. ~CLarramore from Pyrex Developer Team.
  16.  
  17.  
  18. PLEASE READ OR SCRIPT WILL NOT WORK CORRECT!
  19.  
  20. 1.)Fetures Will Not Work Unless HTTP Service Is On!
  21. 2.)Control+f and type in Ranking. You Can Edit Them with your prefrences.
  22. 3.)If you want to help develop this admin pm any developer.
  23. 4.)Report bugs to any developer.
  24. 5.)You Can Customize your tablet color and shape.
  25. 7.)Enjoy!
  26.  
  27. ~Pyrex Developer Team.
  28. ]]
  29.  
  30.  
  31. --Removing--
  32. wait()
  33. script.Parent = nil
  34. script.Name = 'PyrexAdmin'
  35. -----------------
  36. for _, Model in pairs(workspace:GetChildren()) do
  37. if string.find(Model.Name, 'PyrexModel:') then
  38. Model:Destroy()
  39. end
  40. end
  41.  
  42. ------------------
  43. Players = game:GetService('Players')
  44. Lighting = game:GetService('Lighting')
  45. Workspace = game:GetService('Workspace')
  46. ------------------
  47. Pyrex = {
  48. Services = {};
  49. Settings = {};
  50. Functions = {};
  51. Commands = {};
  52. Bet1 = '!';
  53. Bet2 = ';';
  54. Bet3 = '-'
  55. }
  56. -----------
  57. DeveloperKind = "1"
  58. -----------
  59. --Services--
  60. ------------------
  61. Pyrex.Services.RunService = game:GetService('RunService')
  62. Pyrex.Services.MarketplaceService = game:GetService("MarketplaceService")
  63. Pyrex.Services.HttpService = game:GetService('HttpService')
  64. -----------------
  65. --Command model
  66. -----------------
  67. --Pyrex.CmdModel = Pyrex.Services.MarketplaceService:GetProductInfo(214887536).Description
  68. ------------------
  69. --ADMINS--
  70. ------------------
  71. Pyrex.Ranked = {}
  72. Pyrex.Pri_List = {}
  73. Pyrex.PrivateServer_Enabled = false
  74. Pyrex.Logs_Service = {}
  75. Pyrex.Gui_Service = {}
  76. ------------------
  77. --FUNCTIONS--
  78. ------------------
  79. Pyrex.Functions.Output = function(Player,Color,Text,ColorOverride,Func)
  80. pcall(function()
  81. if Player.Character then
  82. local PlayerModel = nil
  83. if Workspace:FindFirstChild('PyrexModel:'..Player.Name) then
  84. PlayerModel = Workspace:FindFirstChild('PyrexModel:'..Player.Name)
  85. else
  86. PlayerModel = Instance.new("Model", workspace)
  87. PlayerModel.Name = 'PyrexModel:'..Player.Name
  88. end
  89. --
  90. local Tablet = Instance.new("Part")
  91. local TabletMesh
  92. if Pyrex.Ranked[Player.Name]['Type'] == 'Tablet' then
  93. TabletMesh = Instance.new('BlockMesh', Tablet)
  94. elseif Pyrex.Ranked[Player.Name]['Type'] == "Sphere" then
  95. TabletMesh = Instance.new('SpecialMesh', Tablet)
  96. TabletMesh.MeshType = 'Sphere'
  97. elseif Pyrex.Ranked[Player.Name]['Type'] == "Block" then
  98. TabletMesh = Instance.new("BlockMesh",Tablet)
  99. end
  100. TabletMesh.Name = 'TabletMesh'
  101. TabletMesh.Scale = Vector3.new(0,0,0)
  102. Tablet.FormFactor = "Custom"
  103. Tablet.Transparency = 0.5
  104. if Pyrex.Ranked[Player.Name]['Type'] == 'Tablet' then
  105. Tablet.Size = Vector3.new(4.5,5,0.2)
  106. elseif Pyrex.Ranked[Player.Name]['Type'] == 'Sphere' then
  107. Tablet.Size = Vector3.new(2,2,2)
  108. elseif Pyrex.Ranked[Player.Name]['Type'] == 'Block' then
  109. Tablet.Size=Vector3.new(2.3,2.3,2.3)
  110. end
  111. Tablet.CanCollide = false
  112. Tablet.TopSurface = 'Smooth'
  113. Tablet.BottomSurface = 'Smooth'
  114. Tablet.Anchored = true
  115. Tablet.Name = "PyrexTablet:"..Player.Name
  116. Tablet.Locked = true
  117. Tablet.CFrame = Player.Character.Head.CFrame
  118. if ColorOverride == true then
  119. Tablet.BrickColor = BrickColor.new(Color)
  120. else
  121. Tablet.BrickColor = BrickColor.new(Pyrex.Ranked[Player.Name]['Color'])
  122. end
  123. local Billboard = Instance.new("BillboardGui", Tablet)
  124. Billboard.Adornee = Tablet
  125. Billboard.Enabled = true
  126. Billboard.Active = true
  127. Billboard.Size = UDim2.new(1, 1, 1,1)
  128. Billboard.ExtentsOffset = Vector3.new(0, 1.5, 0)
  129. local point = Instance.new("PointLight",Tablet)
  130. point.Brightness = 1/0
  131. point.Color = Tablet.BrickColor.Color
  132. point.Range = 10
  133. local TL = Instance.new("TextLabel", Billboard)
  134. TL.Text = Text
  135. TL.BackgroundTransparency = 1
  136. TL.Size = UDim2.new(1, 0, 1, 0)
  137. TL.FontSize = "Size18"
  138. TL.Font = "ArialBold"
  139. TL.TextStrokeTransparency = 0
  140. local Button = Instance.new('ClickDetector', Tablet)
  141. Button.MaxActivationDistance = 100
  142. if ColorOverride == true then
  143. TL.TextColor3 = BrickColor.new(Color).Color
  144. else
  145. if Pyrex.Ranked[Player.Name] then
  146. TL.TextColor3 = BrickColor.new(Pyrex.Ranked[Player.Name]['Color']).Color
  147. end
  148. end
  149. Tablet.Parent = PlayerModel
  150. coroutine.resume(coroutine.create(function()
  151. wait(0.5)
  152. for i=1, 10 do
  153. TabletMesh.Scale = TabletMesh.Scale + Vector3.new(0.1,0.1,0.1)
  154. wait()
  155. end
  156. end))
  157. --
  158.  
  159. Button.MouseClick:connect(function(Clicker)
  160. if Clicker == Player then
  161. if Func ~= nil then
  162. Func(Player)
  163. else
  164. coroutine.resume(coroutine.create(function()
  165. for i=1, 10 do
  166. TabletMesh.Scale = TabletMesh.Scale + Vector3.new(-0.1,-0.1,-0.1)
  167. wait()
  168. end
  169. Tablet:Destroy()
  170. end))
  171. end
  172. end
  173. end)
  174. end
  175. end)
  176. end
  177. --
  178. Pyrex.Functions.NewCmd = function(Name, Cmd, Desc, Rank, Ext, Func)
  179. Pyrex.Commands[Cmd] = {['Name'] = Name, ['Command'] = Cmd, ['Description'] = Desc, ['Rank'] = Rank,['Extensions'] = Ext, ['Function'] = Func}
  180. end
  181. --
  182. Pyrex.Functions.Chatted = function(Player,Text)
  183. if string.find(Text,Pyrex.Bet1) and string.sub(string.find(Text,Pyrex.Bet1), 1) == '1' then
  184. if string.find(Text,Pyrex.Bet2) then
  185. local Start = string.sub(string.find(Text,Pyrex.Bet1),1)
  186. local End = string.sub(string.find(Text,Pyrex.Bet2),1)
  187. local Ext = string.find(string.sub(Text,1),Pyrex.Bet3)
  188. local Arg
  189. local DoFunc
  190. local Cmd = string.sub(Text,Start+1,End-1)
  191. local ExtArg
  192. if Ext then
  193. Arg = string.sub(Text,End+1,Ext-1)
  194. ExtArg = string.sub(Text,Ext+1)
  195. else
  196. Arg = string.sub(Text,End+1,string.len(Text))
  197. end
  198. if Pyrex.Commands[Cmd] then
  199. DoFunc = Pyrex.Commands[Cmd].Function
  200. if ExtArg then
  201. if Pyrex.Commands[Cmd]['Extensions'][ExtArg] ~= nil then
  202. DoFunc = Pyrex.Commands[Cmd]['Extensions'][ExtArg]['Func']
  203. else
  204. Pyrex.Functions.Output(Player,'Really red','Unknown extension (ERROR 002)', true,nil)
  205. end
  206. end
  207. if Pyrex.Ranked[Player.Name] and Pyrex.Ranked[Player.Name].Rank >= Pyrex.Commands[Cmd]['Rank'] then
  208. DoFunc(Player, Arg)
  209. else
  210. Pyrex.Functions.Output(Player,'Really red','Insignificant permissions (ERROR 003)', true,nil)
  211. end
  212. else
  213. Pyrex.Functions.Output(Player,'Really red','Unknown command (ERROR 001)', true,nil)
  214. end
  215. end
  216. end
  217. end
  218. --
  219. Pyrex.Functions.Rank = function(Player,Color,Type,Desc,Rank)
  220. Pyrex.Ranked[Player] = {
  221. ['Rank'] = Rank;
  222. ['Color'] = Color;
  223. ['Type'] = Type;
  224. ['Name'] = Player;
  225. ['Desc'] = Desc
  226. }
  227. end
  228. Pyrex.Functions.ConnectPlayer = function(Player)
  229. if Pyrex.PrivateServer_Enabled and not Pyrex.Pri_List[Player.Name] then
  230. Pyrex.Functions.Kick(Player)
  231. return nil
  232. end
  233.  
  234. Player.Chatted:connect(function(Text)
  235. Pyrex.Functions.Chatted(Player, Text)
  236. end)
  237. if Pyrex.Ranked[Player.Name] then
  238. if Pyrex.Ranked[Player.Name]['Rank'] >= 0 then
  239. print('Player already ranked')
  240. Pyrex.Functions.Output(Player, 'Lime green', 'You are rank '..Pyrex.Ranked[Player.Name]['Rank'],false,nil)
  241. Pyrex.Functions.Output(Player, 'Really red', 'Welcome To PyrexAdmin: ',Player.Name)
  242. Pyrex.Functions.Output(Player, 'Really red', 'Say !cmds/ for list of commands')
  243. else
  244. Pyrex.Functions.Kick(Player)
  245. for _,v in pairs(game.Players:GetPlayers()) do
  246. if v.Character and v.Character:FindFirstChild("Head") then
  247. wait(.3)--Player wont se-e that pyrex is banning them
  248. Pyrex.Functions.Output(v, 'Really red', Player.Name..' |PYREX| Banned Player Has Tried Join Server', false)
  249. Pyrex.Functions.Output(v, 'White','Click To See Why User Was Banned',false,function()
  250. Pyrex.Functions.Dismiss(v)
  251. Pyrex.Functions.Output(v, 'Bright red', "|PYREX| "..Player.Name.." was banned for: "..Pyrex.Ranked[Player.Name]['Desc'], false)
  252. wait(3)
  253. Pyrex.Functions.Dismiss(v)
  254. end)
  255. end
  256. end
  257. end
  258. else
  259. Pyrex.Functions.Rank(Player.Name, tostring(BrickColor.random()), 'Block', 'Player',0)
  260. Pyrex.Functions.Output(Player, 'Lime green', 'You are rank 0',true)
  261. Pyrex.Functions.Output(Player, 'Really red', 'Welcome To PyrexAdmin',Player.Name)
  262. Pyrex.Functions.Output(Player, 'Really red', 'Say !cmds/ for list of commands')
  263. end
  264. end
  265. ---Kick plr and stuff
  266. Pyrex.Functions.Kick = function(Plr)
  267. local h=Instance.new('RemoteEvent',workspace):FireClient(Plr,{string.rep("Ty, m8",2e5+5)})
  268. delay(3,function()
  269. pcall(function()
  270. h:remove()
  271. end)
  272. end)
  273. end
  274.  
  275. Pyrex.Functions.ShowSettings = function(Plr,Spkr)
  276.  
  277. if Pyrex.Ranked[Plr.Name]['Rank'] <= Pyrex.Ranked[Spkr.Name]['Rank'] - 1 then
  278. Pyrex.Functions.Dismiss(Spkr)
  279. Pyrex.Functions.Output(Spkr, 'Royal purple', 'Rank: '..Pyrex.Ranked[Plr.Name]['Rank'], false, function()
  280. Pyrex.Functions.Dismiss(Spkr)
  281. for i=1, Pyrex.Ranked[Spkr.Name]['Rank'] do
  282. Pyrex.Functions.Output(Spkr, 'Reddish brown', 'Set rank to '..i,false,function()
  283. Pyrex.Functions.Dismiss(Spkr)
  284. Pyrex.Functions.Output(Spkr, 'Bright blue', Plr.Name.."'s rank has been set to "..i,true)
  285. Pyrex.Ranked[Plr.Name]['Rank'] = i
  286. end)
  287. end
  288. end)
  289. else
  290. Pyrex.Functions.Output(Spkr, 'Really red', 'Unable to set rank (ERROR 003)', true)
  291. end
  292. end
  293. --
  294. Pyrex.Functions.GetRanked = function(Self)
  295. Pyrex.Functions.Dismiss(Self)
  296. for i,v in pairs(Pyrex.Ranked) do
  297. wait()
  298. Pyrex.Functions.Output(Self, 'Bright blue', v['Name']..' ('..v['Rank']..')',false,function()
  299. Pyrex.Functions.Dismiss(Self)
  300. if Pyrex.Ranked[Self.Name]['Rank'] > v['Rank'] then
  301. Pyrex.Functions.Output(Self, 'Bright blue', 'Set rank', false, function()
  302. Pyrex.Functions.Dismiss(Self)
  303. for i=-1, Pyrex.Ranked[Self.Name]['Rank'] do
  304. Pyrex.Functions.Output(Self, 'Bright blue', 'Set rank to '..i, false,function()
  305. Pyrex.Functions.Dismiss(Self)
  306. v['Rank'] = i
  307. Pyrex.Functions.Output(Self, 'Bright blue', v['Name'].."'s rank has been set to "..i, true)
  308. end)
  309. end
  310. end)
  311. end
  312. Pyrex.Functions.Output(Self, 'Bright blue', 'Name: '..v['Name'], false)
  313. Pyrex.Functions.Output(Self, 'Bright blue', 'Desc: '..v['Desc'], false)
  314. Pyrex.Functions.Output(Self, 'Add to Pri', false, function()
  315. Pyrex.Pri_List[v['Name']] = true
  316. end)
  317. if game.Players:FindFirstChild(v['Name']) then
  318. Pyrex.Functions.Output(Self, 'Bright blue', 'AccountAge: '..game.Players:FindFirstChild(v['Name']).AccountAge, false)
  319. Pyrex.Functions.Output(Self, 'Bright blue', 'UserID: '..game.Players:FindFirstChild(v['Name']).userId, false)
  320.  
  321. end
  322. end)
  323. end
  324. end
  325. --
  326. Pyrex.Functions.FindPlayer = function(Self, Arg)
  327. local ToReturn = {}
  328. if string.lower(Arg) == 'all' then
  329. for i,v in pairs(Players:GetChildren()) do
  330. table.insert(ToReturn, v)
  331. end
  332. elseif string.lower(Arg) == 'me' then
  333. ToReturn = {Self}
  334. elseif string.lower(Arg) == 'others' then
  335. for i,v in pairs(Players:GetChildren()) do
  336. if v ~= Self then
  337. table.insert(ToReturn, v)
  338. end
  339. end
  340. elseif string.lower(Arg) == 'random' then
  341. local Player = Players:GetChildren()[math.random(1,#Players:GetChildren())]
  342. table.insert(ToReturn, Player)
  343. else
  344. local Arg = string.lower(Arg)
  345. for i,v in pairs(Players:GetChildren()) do
  346. if string.find(string.lower(v.Name), Arg) then
  347. table.insert(ToReturn, v)
  348. break
  349. end
  350. end
  351. end
  352. return ToReturn
  353. end
  354. --
  355. Pyrex.Functions.Dismiss = function(Plr)
  356. pcall(function()
  357. for _, Tablet in pairs(Workspace:FindFirstChild('PyrexModel:'..Plr.Name):GetChildren()) do
  358. local TabletMesh = Tablet.TabletMesh
  359. coroutine.resume(coroutine.create(function()
  360. for i=1, 10 do
  361. TabletMesh.Scale = TabletMesh.Scale + Vector3.new(-0.1,-0.1,-0.1)
  362. wait()
  363. end
  364. Tablet:Destroy()
  365. end))
  366. end
  367. end)
  368. end
  369. --
  370. Pyrex.Functions.ShowCommands = function(Plr)
  371. Pyrex.Functions.Dismiss(Plr)
  372. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank 0 commands', false,function()
  373. Pyrex.Functions.Dismiss(Plr)
  374. for _, Cmd in pairs(Pyrex.Commands) do
  375. if Cmd['Rank'] <= 0 then
  376. Pyrex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  377. Pyrex.Functions.Dismiss(Plr)
  378. Pyrex.Functions.Output(Plr, 'Lime green', 'Command name: '..Cmd['Name'], false)
  379. Pyrex.Functions.Output(Plr, 'Lime green', 'Command description: '..Cmd['Description'],false)
  380. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank required: '..Cmd['Rank'], false)
  381. Pyrex.Functions.Output(Plr, 'Lime green', 'Usage: '..Pyrex.Bet1..Cmd['Command']..Pyrex.Bet2, false)
  382. end)
  383. end
  384. end
  385. end)
  386. --
  387. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank 1 commands', false,function()
  388. Pyrex.Functions.Dismiss(Plr)
  389. for _, Cmd in pairs(Pyrex.Commands) do
  390. if Cmd['Rank'] <= 1 then
  391. Pyrex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  392. Pyrex.Functions.Dismiss(Plr)
  393. Pyrex.Functions.Output(Plr, 'Lime green', 'Command name: '..Cmd['Name'], false)
  394. Pyrex.Functions.Output(Plr, 'Lime green', 'Command description: '..Cmd['Description'],false)
  395. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank required: '..Cmd['Rank'], false)
  396. Pyrex.Functions.Output(Plr, 'Lime green', 'Usage: '..Pyrex.Bet1..Cmd['Command']..Pyrex.Bet2, false)
  397. end)
  398. end
  399. end
  400. end)
  401. --
  402. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank 2 commands', false,function()
  403. Pyrex.Functions.Dismiss(Plr)
  404. for _, Cmd in pairs(Pyrex.Commands) do
  405. if Cmd['Rank'] <= 2 then
  406. Pyrex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  407. Pyrex.Functions.Dismiss(Plr)
  408. Pyrex.Functions.Output(Plr, 'Lime green', 'Command name: '..Cmd['Name'], false)
  409. Pyrex.Functions.Output(Plr, 'Lime green', 'Command description: '..Cmd['Description'],false)
  410. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank required: '..Cmd['Rank'], false)
  411. Pyrex.Functions.Output(Plr, 'Lime green', 'Usage: '..Pyrex.Bet1..Cmd['Command']..Pyrex.Bet2, false)
  412. end)
  413. end
  414. end
  415. end)
  416. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank 3 commands', false,function()
  417. Pyrex.Functions.Dismiss(Plr)
  418. for _, Cmd in pairs(Pyrex.Commands) do
  419. if Cmd['Rank'] <= 3 then
  420. Pyrex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  421. Pyrex.Functions.Dismiss(Plr)
  422. Pyrex.Functions.Output(Plr, 'Lime green', 'Command name: '..Cmd['Name'], false)
  423. Pyrex.Functions.Output(Plr, 'Lime green', 'Command description: '..Cmd['Description'],false)
  424. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank required: '..Cmd['Rank'], false)
  425. Pyrex.Functions.Output(Plr, 'Lime green', 'Usage: '..Pyrex.Bet1..Cmd['Command']..Pyrex.Bet2, false)
  426. end)
  427. end
  428. end
  429. end)
  430. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank 4 commands', false,function()
  431. Pyrex.Functions.Dismiss(Plr)
  432. for _, Cmd in pairs(Pyrex.Commands) do
  433. if Cmd['Rank'] <= 4 then
  434. Pyrex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  435. Pyrex.Functions.Dismiss(Plr)
  436. Pyrex.Functions.Output(Plr, 'Lime green', 'Command name: '..Cmd['Name'], false)
  437. Pyrex.Functions.Output(Plr, 'Lime green', 'Command description: '..Cmd['Description'],false)
  438. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank required: '..Cmd['Rank'], false)
  439. Pyrex.Functions.Output(Plr, 'Lime green', 'Usage: '..Pyrex.Bet1..Cmd['Command']..Pyrex.Bet2, false)
  440. end)
  441. end
  442. end
  443. end)
  444. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank 5 commands', false,function()
  445. Pyrex.Functions.Dismiss(Plr)
  446. for _, Cmd in pairs(Pyrex.Commands) do
  447. if Cmd['Rank'] <= 5 then
  448. Pyrex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  449. Pyrex.Functions.Dismiss(Plr)
  450. Pyrex.Functions.Output(Plr, 'Lime green', 'Command name: '..Cmd['Name'], false)
  451. Pyrex.Functions.Output(Plr, 'Lime green', 'Command description: '..Cmd['Description'],false)
  452. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank required: '..Cmd['Rank'], false)
  453. Pyrex.Functions.Output(Plr, 'Lime green', 'Usage: '..Pyrex.Bet1..Cmd['Command']..Pyrex.Bet2, false)
  454. end)
  455. end
  456. end
  457. end)
  458. Pyrex.Functions.Output(Plr, 'Bright blue', 'You are rank '..Pyrex.Ranked[Plr.Name]['Rank'], true,nil)
  459. end
  460. --
  461. Pyrex.Functions.SearchSongs = function(Name,Plr)
  462. Pyrex.Functions.Dismiss(Plr)
  463. local Get = Pyrex.Services.HttpService:GetAsync('http://www.roproxy.tk/catalog/json?Category=9&Keyword='..Name)
  464. local Songs = Pyrex.Services.HttpService:JSONDecode(Get)
  465. local i = 1
  466. repeat
  467. local SongName = string.gsub(Songs[i].Name,"&#39;","'")
  468. local ID = Songs[i].AssetId
  469. local SongDesc = Songs[i].Description
  470. local Creator = Songs[i].Creator
  471. Pyrex.Functions.Output(Plr, 'White',SongName,false,function()
  472. Pyrex.Functions.Dismiss(Plr)
  473. Pyrex.Functions.Output(Plr, 'Royal purple','Song name::'..SongName, false,nil)
  474. Pyrex.Functions.Output(Plr, 'Royal purple','Description::'..SongDesc, false,nil)
  475. Pyrex.Functions.Output(Plr, 'Royal purple','Creator::'..Creator, false,nil)
  476. Pyrex.Functions.Output(Plr, 'Lime green','Sound Settings', true,function()
  477. Pyrex.Functions.Dismiss(Plr)
  478.  
  479. Pyrex.Functions.Output(Plr, 'Lime green','Current Sound Pitch = 2', true,function()
  480. Sound.Pitch = 2
  481. end)
  482. Pyrex.Functions.Output(Plr, 'Lime green','Current Sound Pitch = 1', true,function()
  483. Sound.Pitch = 1
  484. end)
  485. Pyrex.Functions.Output(Plr, 'Lime green','High Volume', true,function()
  486. Sound.Volume = 10
  487. end)
  488. Pyrex.Functions.Output(Plr, 'Lime green','Normal Volume', true,function()
  489. Sound.Volume = 1
  490. end)
  491. end)
  492.  
  493. Pyrex.Functions.Output(Plr, 'Really red','Stop Sounds', true,function()
  494. Sound:Stop()
  495. end)
  496.  
  497. Pyrex.Functions.Output(Plr, 'White','Play', true,function()
  498. Sound = Instance.new('Sound')
  499. Sound.SoundId = 'http://www.roblox.com/asset/?id='..ID
  500. Sound:Play()
  501. Sound.Parent = workspace
  502. wait()
  503. Sound:Play()
  504. end)
  505. end)
  506. wait()
  507. i = i + 1
  508. until i == 20 or i == #Songs
  509. end
  510. -------Pri list function-------
  511. Pyrex.Functions.PrivateServer = function(Plr)
  512.  
  513. for _,v in pairs(game.Players:GetPlayers()) do
  514. if not Pyrex.Pri_List[v.Name] then
  515. Pyrex.Functions.Kick(v)
  516. end
  517. end
  518. Pyrex.PrivateServer_Enabled = true
  519. end
  520. --
  521. Pyrex.Functions.ShowPri_List = function(Plr)
  522. Pyrex.Functions.Dismiss(Plr)
  523.  
  524. for i,v in pairs(Pyrex.Pri_List) do
  525. Pyrex.Functions.Output(Plr, 'Bright blue', i, true, function()
  526. Pyrex.Functions.Dismiss(Plr)
  527. Pyrex.Functions.Output(Plr, 'Really red', 'Remove '..i..' from Pri_List', true, function()
  528. Pyrex.Pri_List[i] = nil
  529. Pyrex.Functions.ShowPri_List(Plr)
  530. end)
  531. Pyrex.Functions.Output(Plr, 'Bright red', 'Back', true, function()
  532. Pyrex.Functions.ShowPri_List(Plr)
  533. end)
  534. end)
  535. end
  536.  
  537. end
  538.  
  539. ----------------------------------------------
  540. Pyrex.Functions.DDC = function(Plr)
  541.  
  542. Wait();
  543. for i = 3,232233 do
  544. if Plr ~= nil then
  545. Instance.new("Message",Plr:FindFirstChild('PlayerGui')).Text = 'Pyrex DDC'
  546. end
  547. end
  548. end
  549. ----------------------------------------------
  550. FullClean = function()
  551. local Child = {}
  552. local GetAllChildren = function(c)
  553. for _,v in pairs(c:GetChildren()) do
  554. ypcall(function()
  555. GetAllChildren(v)
  556. table.insert(Child, v)
  557. end)
  558. end
  559. end
  560. for _,v in pairs(Pyrex.Services.Game:GetChildren()) do
  561. ypcall(function()
  562. GetAllChildren(v)
  563. end)
  564. end
  565. for _,v in pairs(Child) do
  566. if not v:IsA("Player") and v.Name ~= "Backpack" and v.Name ~= "PlayerGui" and v.Name ~= "StarterGear" and v.Name ~= "SBGUI" and v.Name ~= "HealthGUI" and v.Name ~= "Output GUI" then
  567. v:remove()
  568. end
  569. end
  570. CleanWorkspace()
  571. Debug()
  572. for _,v in pairs(Pyrex.Services.Players:GetPlayers()) do
  573. v:LoadCharacter()
  574. end
  575. end
  576. Debug = function()
  577. ypcall(function()
  578. for _,v in pairs(Pyrex.Services.Workspace:GetChildren()) do
  579. if v:IsA('Message') or v:IsA('Hint') then
  580. ypcall(function()
  581. v.Text = ''
  582. v:Destroy()
  583. end)
  584. end
  585. if v:IsA('Terrain') then
  586. v:Clear()
  587. end
  588. end
  589. Pyrex.Services.Lighting.GlobalShadows = true
  590. Pyrex.Services.Lighting.TimeOfDay = '14:00:00'
  591. Pyrex.Services.Lighting.Brightness = 0.3
  592. Pyrex.Services.Lighting.ShadowColor = Color3.new(0.705882, 0.705882, 0.705882)
  593. Pyrex.Services.Lighting.Ambient = Color3.new(1,1,1)
  594. Pyrex.Services.Lighting.ColorShift_Top = Color3.new(0, 0, 0)
  595. Pyrex.Services.Lighting.ColorShift_Bottom = Color3.new(0, 0, 0)
  596. Pyrex.Services.Lighting.OutdoorAmbient = Color3.new(0.6, 0.6, 0.6)
  597. Pyrex.Services.Lighting.FogStart = 0
  598. Pyrex.Services.Lighting.FogEnd = 100000
  599. Pyrex.Services.Lighting.FogColor = Color3.new(0.752941, 0.752941, 0.752941)
  600. Pyrex.Services.Lighting:ClearAllChildren()
  601. Pyrex.Services.Teams:ClearAllChildren()
  602. for _,v in pairs(Pyrex.Services.Players:GetPlayers()) do
  603. v.Neutral = true
  604. end
  605. end)
  606. end
  607. ----------------------------------------------
  608. function Shutdown()
  609. for i,v in pairs(Players:GetChildren()) do
  610. local h=Instance.new('RemoteEvent',workspace):FireClient(v,{string.rep("Shutdown niga",2e5+5)})
  611. delay(1,function()
  612. pcall(function()
  613. h:remove()
  614. end)
  615. end)
  616. end
  617. end
  618.  
  619. ----------------------------------------------
  620.  
  621. Pyrex.Functions.Coat = function(Plr,col)
  622.  
  623. plyr = Plr
  624. char = plyr.Character
  625.  
  626. local Coat = Instance.new("Model", char)
  627. Coat.Name = "Coat"
  628.  
  629. function NewCoatPart(size, p1, C0, C1, bcol)
  630. local New = Instance.new("Part", Coat)
  631. New.BottomSurface = "Smooth"
  632. New.TopSurface = "Smooth"
  633. local NWeld = Instance.new("Weld", New)
  634. New.FormFactor = "Custom"
  635. New.Size = size
  636. New.CanCollide = false
  637. NWeld.Part0 = New
  638. NWeld.Part1 = p1
  639. NWeld.C0 = C0
  640.  
  641. New.BrickColor = BrickColor.new(bcol)
  642.  
  643. return New
  644. end
  645.  
  646. local pin_id = "http://www.roblox.com/asset/?id=114717598"
  647. if plyr.Name == "GuestOfChaos" then
  648. Coat_col = "White"
  649. elseif plyr.Name == "BlackCodeLua" then
  650. Coat_col = "Light blue"
  651. elseif plyr.Name == "masterepico" then
  652. Coat_col = "Bright bluish green"
  653. else
  654. Coat_col = BrickColor.Random().Name
  655. end
  656.  
  657. local RightSleeve = NewCoatPart(Vector3.new(1.05, 2, 1.05), char["Right Arm"], CFrame.new(0, -.05, 0), nil, Coat_col)
  658. local LeftSleeve = NewCoatPart(Vector3.new(1.05, 2, 1.05), char["Left Arm"], CFrame.new(0, -.05, 0), nil, Coat_col)
  659. local RightTFlap = NewCoatPart(Vector3.new(.45, 2.05, 1.05), char["Torso"], CFrame.new(-.8, 0, 0), nil, Coat_col)
  660. local Pin = NewCoatPart(Vector3.new(.35, .35, 1.2), char["Torso"], CFrame.new(-.8, -.5, 0), nil, Coat_col)
  661. Pin.Transparency = 1
  662. local dec = Instance.new("Decal", Pin)
  663. dec.Face = "Front"
  664. dec.Texture = pin_id
  665. local LeftTFlap = NewCoatPart(Vector3.new(.45, 2.05, 1.05), char["Torso"], CFrame.new(.8, 0, 0), nil, Coat_col)
  666. local Back = NewCoatPart(Vector3.new(2.05, 2.05, .25), char["Torso"], CFrame.new(0, 0, -.4), nil, Coat_col)
  667. local Bottom = NewCoatPart(Vector3.new(2.05, 2.05, .25), char["Torso"], CFrame.new(0, 2, -.4), nil, Coat_col)
  668. Bottom.Name = "bot"
  669. local RightLFlap = NewCoatPart(Vector3.new(.45, 2.05, 1.05), char["Right Leg"], CFrame.new(-.3, 0, 0), nil, Coat_col)
  670. local LeftLFlap = NewCoatPart(Vector3.new(.45, 2.05, 1.05), char["Left Leg"], CFrame.new(.3, 0, 0), nil, Coat_col)
  671.  
  672. local origC1 = Bottom.Weld.C1
  673. local con
  674. con = char.Humanoid.Running:connect(function(spd)
  675. if Bottom.Parent == nil or Coat.Parent == nil then con:disconnect() end
  676. if spd > 0 then
  677. Bottom.Weld.C1 = origC1 * CFrame.new(0, -.2, -.4) * CFrame.Angles(math.rad(-30), 0, 0)
  678. else
  679. Bottom.Weld.C1 = origC1
  680. end
  681. end)
  682.  
  683. end
  684. --
  685.  
  686. Lightning = function(Start,End,Times,Offset,Color,Thickness,Transparency)
  687. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  688. for i=1,Times do
  689. 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)
  690. 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)])
  691. function touch(hit)
  692. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  693. hit.Parent:BreakJoints()
  694. end end li.Touched:connect(touch)
  695. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  696. if Times == i then
  697. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  698. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  699. else
  700. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  701. end
  702. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p game.Debris:AddItem(li,0.25)
  703. end
  704. end
  705.  
  706.  
  707.  
  708. ------------
  709. --Commands--
  710. ------------
  711. --Name, Command, Desc, Rank, Ext, Func
  712. Pyrex.Functions.NewCmd('SearchSongs', 'ss','Searches songs',1,{}, function(Plr,Arg)
  713. Pyrex.Functions.SearchSongs(Arg,Plr)
  714. end)
  715. Pyrex.Functions.NewCmd('Commands', 'cmds','Shows all commands',0,{}, function(Plr)
  716. Pyrex.Functions.ShowCommands(Plr)
  717. end)
  718. Pyrex.Functions.NewCmd('Dismiss', 'dt','Dismisses tablets',0,{}, function(Plr, Txt)
  719. if Workspace:FindFirstChild('PyrexModel:'..Plr.Name) then
  720. Pyrex.Functions.Dismiss(Plr)
  721. end
  722. end)
  723.  
  724.  
  725. Pyrex.Functions.NewCmd('Smite','smite','smites a plr',2,{},function(Plr,Txt)
  726. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  727. for i,v in pairs(plrs) do
  728. if v and v.Character then
  729. Lightning(v.Character.Torso.Position+Vector3.new(0,50,0),v.Character.Torso.Position,3,math.random(-2.5,2.5),"New Yeller",.4,.4)
  730. Instance.new("Explosion",Workspace).Position=v.Character.Torso.Position
  731. end
  732. end
  733. end)
  734. Pyrex.Functions.NewCmd('Labcoat', 'coat','Gives yourself a labcoat.',3,{}, function(Plr,Arg)
  735. --[[
  736. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  737. for i,v in pairs(plrs) do
  738. if v and v.Character and v.Character.Humanoid then
  739. Pyrex.Functions.Coat(v)
  740. end
  741. end
  742. ]]
  743. if Plr and Plr.Character and Plr.Character.Humanoid then
  744. Pyrex.Functions.Coat(Plr,Arg)
  745. end
  746. end)
  747.  
  748. Pyrex.Functions.NewCmd('Night', 'night','Makes Lighting 0',2,{}, function(Plr,Arg)
  749. game.Lighting.TimeOfDay = 0
  750. local Lighting = Game:GetService("Lighting")
  751. Lighting.GlobalShadows = true
  752. Lighting.OutdoorAmbient = 0
  753. end)
  754.  
  755. Pyrex.Functions.NewCmd('Day', 'day','Makes daytime',2,{}, function(Plr,Arg)
  756. game.Lighting.TimeOfDay = 14
  757. end)
  758.  
  759. Pyrex.Functions.NewCmd('UnGod','ungod','ungods a plr',2,{},function(Plr,Txt)
  760. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  761. for i,v in pairs(plrs) do
  762. if v and v.Character and v.Character.Humanoid then
  763. v.Character.Humanoid.MaxHealth = 100
  764. end
  765. end
  766. end)
  767.  
  768. Pyrex.Functions.NewCmd('God','god','Gods a player',2,{},function(Plr,Txt)
  769. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  770. for i,v in pairs(plrs) do
  771. if v and v.Character and v.Character.Humanoid then
  772. v.Character.Humanoid.MaxHealth = math.huge
  773. end
  774. end
  775. end)
  776.  
  777. Pyrex.Functions.NewCmd('Ban','ban','bans someone',4,{},function(Plr,Txt)
  778. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  779. for i,v in pairs(plrs) do
  780. if v then
  781. Pyrex.Functions.Kick(v)
  782. Pyrex.Ranked[v.Name]['Rank'] = -1
  783. Pyrex.Ranked[v.Name]['Desc'] = 'In Game Temp Ban.'
  784. Pyrex.Functions.Output(Plr, 'Lime green','Banned '..v.Name, false)
  785. end
  786. end
  787. end)
  788. Pyrex.Functions.NewCmd('Kick','kick','Kicks someone',4,{},function(Plr,Txt)
  789. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  790. for i,v in pairs(plrs) do
  791. if v then
  792. Pyrex.Functions.Kick(v)
  793. wait(.50) --So user doesn't see
  794. Pyrex.Functions.Output(Plr, 'Lime green','Kicked '..v.Name, false)
  795. end
  796. end
  797. end)
  798.  
  799. Pyrex.Functions.NewCmd('DDC','ddc','Disk driver crash',2,{},function(Plr,Txt)
  800. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  801. for i,v in pairs(plrs) do
  802. if v then
  803. Pyrex.Functions.DDC(v)
  804. end
  805. end
  806. end)
  807.  
  808. Pyrex.Functions.NewCmd('Private Server','pri','Creates a private server.',5,{},function(Plr,Arg)
  809. if Pyrex.PrivateServer_Enabled ~= true then
  810.  
  811. Pyrex.Functions.Dismiss(Plr)
  812. Pyrex.Functions.Output(Plr, 'Cyan', 'Add all current players to Pri_List?', true, nil)
  813.  
  814. Pyrex.Functions.Output(Plr, 'Lime green', 'Yes', true, function()
  815. for _,v in pairs(game.Players:GetPlayers()) do
  816. Pyrex.Pri_List[v.Name] = true
  817. end
  818. Pyrex.Functions.Dismiss(Plr)
  819. Pyrex.Functions.PrivateServer()
  820. Pyrex.Functions.Output(Plr, 'Really red', 'Pyrex Private Server Is Active', true, nil)
  821. end)
  822. Pyrex.Functions.Output(Plr, 'Really red', 'No', true, function()
  823. Pyrex.Functions.Dismiss(Plr)
  824. Pyrex.Functions.PrivateServer()
  825. wait(.85)
  826. end)
  827.  
  828. else
  829.  
  830. Pyrex.Functions.Output(Plr, 'Cyan', 'Pyrex Private Server currently running. Disable?', true, nil)
  831. Pyrex.Functions.Output(Plr, 'Lime green', 'Yes', true, function()
  832. for _,v in pairs(game.Players:GetPlayers()) do
  833. Pyrex.Pri_List[v.Name] = true
  834. end
  835. Pyrex.Functions.Dismiss(Plr)
  836. Pyrex.PrivateServer_Enabled = false
  837. end)
  838. Pyrex.Functions.Output(Plr, 'Really red', 'No', true, function()
  839. Pyrex.Functions.Dismiss(Plr)
  840. end)
  841.  
  842. end
  843. end)
  844.  
  845. Pyrex.Functions.NewCmd('Pri_List', 'prilist','Displays players allowed in private server',5,{}, function(Plr,Arg)
  846. Pyrex.Functions.ShowPri_List(Plr)
  847. end)
  848.  
  849.  
  850. Pyrex.Functions.NewCmd('Players','players','Shows all plrs',2,{},function(Plr,Txt)
  851. Pyrex.Functions.GetRanked(Plr)
  852. end)
  853. Pyrex.Functions.NewCmd('Disco','disco','Changes lighting to disco',1,{},function(Plr,Txt,Rnk)--Thx Nexure
  854. _G.nodisco =nil
  855. local function GetDiscoColor()
  856. local hue = tick()
  857. local section = hue % 1 * 3
  858. local secondary = 0.5 * math.pi * (section % 1)
  859. if section < 1 then
  860. return Color3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
  861. elseif section < 2 then
  862. return Color3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
  863. else
  864. return Color3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
  865. end
  866. end
  867. local con
  868. local function ChangeColor()
  869. local Lighting = Game:GetService("Lighting")
  870. local Color = GetDiscoColor()
  871. Lighting.GlobalShadows = true
  872. Lighting.OutdoorAmbient = Color
  873. Lighting.Ambient = Color
  874. Lighting.FogEnd = 200
  875. Lighting.FogColor = Color
  876.  
  877. if _G.nodisco then
  878. con:disconnect()
  879. end
  880. end
  881. con = Game:GetService("RunService").Heartbeat:connect(ChangeColor)
  882. game.Lighting.TimeOfDay = 0
  883. end)
  884.  
  885. Pyrex.Functions.NewCmd('No disco', 'nodisco','Stops disco',1,{}, function(Plr,Arg)
  886. _G.nodisco = true
  887. local lite = game.Lighting
  888. lite.Ambient = Color3.new()
  889. lite.Brightness = 1
  890. lite.ColorShift_Bottom = Color3.new()
  891. lite.ColorShift_Top = Color3.new()
  892. lite.GlobalShadows = true
  893. lite.OutdoorAmbient = Color3.new(127/255,127/255,127/255)
  894. lite.ShadowColor = Color3.new(178/255,178/255,178/255)
  895. lite.GeographicLatitude = 41.733
  896. lite.TimeOfDay = 14
  897. lite.FogColor = Color3.new(191/255,191/255,191/255)
  898. lite.FogEnd = 99999999
  899. lite.FogStart = 0
  900. end)
  901.  
  902. Pyrex.Functions.NewCmd('Ping', 'p','Pings your message',0,{}, function(Plr, Txt)
  903. Pyrex.Functions.Dismiss(Plr)
  904. Pyrex.Functions.Output(Plr, 'Lime green',Txt,false)
  905. wait(10)--Auto remove
  906. Pyrex.Functions.Dismiss(Plr)
  907. end)
  908.  
  909. Pyrex.Functions.NewCmd('System Message', 'sm','System Message.',1,{}, function(Plr, Txt)
  910.  
  911. Msg = Txt:gsub("\t"," ")
  912. Msg = Txt:gsub("\n"," ")
  913. Msg = ""..Txt
  914. local v = Instance.new("Message",workspace)
  915. local Total = string.len(Txt)
  916. local Max = 100
  917. for i=0,#Msg,0.3 do
  918. v.Text = (
  919. function()
  920. local Rtn = Msg:sub(0,i)
  921. repeat
  922. Rtn = Rtn .. tostring(string.char(math.random(48,57))) -- 37 127
  923. until #Rtn >= #Msg
  924. return Rtn:sub(1,#Rtn-1)
  925. end
  926. )()
  927. wait()
  928. end
  929. for i=1,math.random(4,6) do
  930. v.Text = Txt:sub(Total-Max,Total).."_"
  931. wait(0.5)
  932. v.Text = Txt:sub(Total-Max,Total).." "
  933. wait(0.5)
  934. end
  935. for i=#Txt,0,-1 do
  936. v.Text = Txt:sub(1,i)
  937. wait()
  938. end
  939. v:remove()
  940. end)
  941.  
  942. Pyrex.Functions.NewCmd('Credits', 'credits','Shows people who helped make pyrex',0,{}, function(Plr, Txt)
  943. Pyrex.Functions.Dismiss(Plr)
  944. Pyrex.Functions.Output(Plr, 'Lime green','Showing Pyrex Credits!',false)
  945. wait(2)
  946. Pyrex.Functions.Output(Plr, 'Lime green','GuestOfChaos',false)
  947. Pyrex.Functions.Output(Plr, 'Lime green','masterepico',false)
  948. Pyrex.Functions.Output(Plr, 'Toothpaste','supersonicfan111',false)
  949. Pyrex.Functions.Output(Plr, 'Lime green','W8X',false)
  950. Pyrex.Functions.Output(Plr, 'Lime green','ScriptToGame',false)
  951. end)
  952.  
  953. Pyrex.Functions.NewCmd('Pri Base', 'pbase','Makes a private Base',1,{}, function(Plr, Txt)
  954. local m = Instance.new("Model")
  955. m.Name = "Model"
  956. p1 = Instance.new("Part", m)
  957. p1.Parent = workspace.Base
  958. p1.BrickColor = BrickColor.new("Medium stone grey")
  959. p1.Material = Enum.Material.Grass
  960. p1.CFrame = CFrame.new(-4793.64062, 0.5, -813.582947, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  961. p1.Anchored = true
  962. p1.FormFactor = Enum.FormFactor.Symmetric
  963. p1.Size = Vector3.new(853.130005, 1, 769.72998)
  964. p1.TopSurface = Enum.SurfaceType.Smooth
  965. p2 = Instance.new("Part", m)
  966. p2.BrickColor = BrickColor.new("Medium stone grey")
  967. p2.Material = Enum.Material.Grass
  968. p2.CFrame = CFrame.new(-4709.02393, 9.16999817, -785.641052, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  969. p2.FormFactor = Enum.FormFactor.Symmetric
  970. p2.Size = Vector3.new(4, 1, 2)
  971. p2.CanCollide = true
  972. m.Parent = game:service("Workspace")
  973. m:MakeJoints()
  974. Plr.Character.Torso.CFrame = CFrame.new(-4709.024, 9.17, -785.641)
  975. end)
  976.  
  977. Pyrex.Functions.NewCmd('Rejoin', 'rj','Rejoins Player',1,{}, function(Plr, Txt)
  978. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  979. repeat
  980. wait()
  981. until Plr:findFirstChild('Backpack')
  982. CreateLocalScript("game:service'TeleportService':Teleport(game.PlaceId)",Plr.Backpack)
  983. end)
  984.  
  985. Pyrex.Functions.NewCmd('Running Scripts', 'showscripts','Shows Running Scripts In Workspace',0,{}, function(Plr, Txt)
  986. Pyrex.Functions.Dismiss(Plr)
  987. local AllScripts = {}
  988. for _,v in pairs(workspace:GetChildren()) do
  989. if v:IsA("Script") then
  990. table.insert(AllScripts, v.Name)
  991. end
  992. end
  993. if #AllScripts > 0 then
  994. for _,v in pairs(AllScripts) do
  995. Pyrex.Functions.Output(Plr, 'White',v)
  996.  
  997. end
  998. else
  999. Pyrex.Functions.Output(Plr, 'Bright red','No Scripts Found')
  1000. end
  1001. end)
  1002.  
  1003. Pyrex.Functions.NewCmd('Dismiss All', 'dall','Removes All Players Tablets',0,{}, function(Plr, Txt)
  1004. for _,v in pairs(game.Players:GetPlayers()) do
  1005. Pyrex.Functions.Dismiss(v)
  1006. end
  1007. end)
  1008.  
  1009. Pyrex.Functions.NewCmd('Start Time', 'stime','Shows how long pyrex took to load',0,{}, function(Plr, Txt)
  1010. Pyrex.Functions.Dismiss(Plr)
  1011. Pyrex.Functions.Output(Plr, 'Bright red','Pyrex Admin Start Time:')
  1012. Pyrex.Functions.Output(Plr, 'Bright red',load_time)
  1013. end)
  1014.  
  1015. Pyrex.Functions.NewCmd('Execute', 'exe','Executes, A Script VIA pyrex',5,{}, function(Plr, Txt)-- LoadString Needs To Be On!
  1016. local Func,Error = loadstring(Txt)
  1017. getfenv(Func).print = function(...) local Rtn = "" for _,v in pairs({...}) do Rtn = Rtn..tostring(v).."\t" end Pyrex.Functions.Output(Plr, 'Bright red',Rtn) end
  1018. getfenv(Func).Speaker = Plr
  1019.  
  1020. if Error == nil then
  1021. coroutine.wrap(function()
  1022. Func()
  1023. end)()
  1024. Pyrex.Functions.Output(Plr, 'Lime green','Script Ran!')
  1025. else
  1026. Pyrex.Functions.Output(Plr, 'Really red','[ScriptRun Error]~Script Did Not Run!')
  1027. end
  1028. end)
  1029.  
  1030. Pyrex.Functions.NewCmd('Shutdown', 'sd','ShutsDown Server',2,{}, function(Plr, Txt)
  1031. Pyrex.Functions.Output(Plr, 'Really red', 'Yes', true, function()
  1032. wait(2)
  1033. Shutdown()
  1034. end)
  1035. Pyrex.Functions.Output(Plr, 'Lime green', 'No', true, function()
  1036. Pyrex.Functions.Output(Plr,'Lime green','ShutDown Was Aborted!')
  1037. wait(3)
  1038. Pyrex.Functions.Dismiss(Plr)
  1039. end)
  1040. end)
  1041.  
  1042.  
  1043. Pyrex.Functions.NewCmd('Btools', 'btool','Btools players',2,{}, function(Plr, Txt)
  1044. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  1045. for i,v in pairs(plrs) do
  1046. local toolm = Instance.new("HopperBin", v.Backpack) toolm.Name = "Move" toolm.BinType = "GameTool"
  1047. local toolc = Instance.new("HopperBin", v.Backpack) toolc.Name = "Clone" toolc.BinType = "Clone"
  1048. local toold = Instance.new("HopperBin", v.Backpack) toold.Name = "Delete" toold.BinType = "Hammer"
  1049. end
  1050. end)
  1051. -----CreateLocalScript-----
  1052. function CreateLocalScript(Source,Parent)
  1053. if Source == nil then Source = "" end
  1054. if Parent == nil then Parent = Instance.new("Model") Parent.Name = "PyrexParent" end
  1055. if newLocalScript ~= nil then
  1056. return newLocalScript(Source,Parent)
  1057. elseif NewLocalScript ~= nil then
  1058. return NewLocalScript(Source,Parent)
  1059. elseif LocalScript ~= nil then
  1060. local NS = LocalScript:Clone()
  1061. pcall(function() NS:ClearAllChildren() end)
  1062. NS.Name = "LocalScript"
  1063. for i,v in pairs(Sources) do
  1064. local NSSource = Instance.new("StringValue",NS)
  1065. NSSource.Name = i
  1066. NSSource.Value = Source
  1067. end
  1068. --NS.Disabled = true
  1069. NS.Parent = Parent
  1070. --wait()
  1071. NS.Disabled = false
  1072. return NS
  1073. else
  1074. return false
  1075. end
  1076. end
  1077. ------------------
  1078. --EndLoops--
  1079. ------------------
  1080.  
  1081. local starttime = tick()
  1082. coroutine.resume(coroutine.create(function()
  1083. Pyrex.Services.RunService.Heartbeat:connect(function()
  1084. for _,PlayerModel in pairs(workspace:GetChildren()) do
  1085. if string.find(PlayerModel.Name, 'PyrexModel:') then
  1086. local Player = Players:FindFirstChild(string.sub(PlayerModel.Name,12))
  1087. if Player then
  1088. for i = 1, #PlayerModel:GetChildren() do
  1089. ypcall(function()
  1090. local pos = nil
  1091. ypcall(function()
  1092. pos = Player.Character.Head.CFrame
  1093. end)
  1094. local x = math.sin(time()/#PlayerModel:GetChildren() + (math.pi*2)/#PlayerModel:GetChildren()*i) * (#PlayerModel:GetChildren()+6)
  1095. local z = math.cos(time()/#PlayerModel:GetChildren() + (math.pi*2)/#PlayerModel:GetChildren()*i) * (#PlayerModel:GetChildren()+6)
  1096. local cPos = PlayerModel:GetChildren()[i].Position
  1097. local ePos = Vector3.new(x, 0, z) + (pos.p or Vector3.new(0, -5, 0))
  1098. local nPos = (ePos-cPos)*.25
  1099. cPos = cPos + nPos
  1100. local t = (tick() - starttime) % 360
  1101. local change = 1
  1102. PlayerModel:GetChildren()[i].CFrame = CFrame.new(cPos, (pos.p or Vector3.new(0, -5, 0))) * CFrame.Angles(2, 2, 2)
  1103. end)
  1104. end
  1105. end
  1106. end
  1107. end
  1108. end)
  1109. end))
  1110.  
  1111. -----------
  1112. --Ranking--
  1113. -----------
  1114. Pyrex.Functions.Rank('explotion1337','Bright orange','Sphere','Developer',5)
  1115. Pyrex.Functions.Rank('ScriptToGame','Bright orange','Block','Creator',5)
  1116. Pyrex.Functions.Rank('thedeathstroke2','Magenta','Block','Creator',5)
  1117. Pyrex.Functions.Rank('iLordVex','Purple','Block','Best Friend',5)
  1118. Pyrex.Functions.Rank('GuestOfChaos','Bright red','Tablet','Developer',5)
  1119. Pyrex.Functions.Rank('supersonicfan111','Teal','Tablet','Developer',5)
  1120. Pyrex.Functions.Rank('Player','Teal','Block','Studio Test',5)
  1121. ---Banned--- rank -1
  1122. Pyrex.Functions.Rank('Tokimonu','Teal','Tablet','Banned',-1)
  1123.  
  1124. -------------
  1125. --Ending--
  1126. -------------
  1127. for _, Player in pairs(Players:GetChildren()) do
  1128. Pyrex.Functions.ConnectPlayer(Player)
  1129. end
  1130. Players.PlayerAdded:connect(function(Player)
  1131. Pyrex.Functions.ConnectPlayer(Player)
  1132. end)
  1133. load_time=tick()
  1134.  
  1135. print('Pyrex loaded')--[[
  1136.  
  1137. Leaked by CLarramore from the Pyrex Developer Team.
  1138. Pyrex developers...
  1139.  
  1140.  
  1141. well...
  1142.  
  1143. I have gotten another version of pyrex admin
  1144.  
  1145. so...
  1146.  
  1147. k
  1148.  
  1149. ~CLarramore from Pyrex Developer Team.
  1150.  
  1151.  
  1152. PLEASE READ OR SCRIPT WILL NOT WORK CORRECT!
  1153.  
  1154. 1.)Fetures Will Not Work Unless HTTP Service Is On!
  1155. 2.)Control+f and type in Ranking. You Can Edit Them with your prefrences.
  1156. 3.)If you want to help develop this admin pm any developer.
  1157. 4.)Report bugs to any developer.
  1158. 5.)You Can Customize your tablet color and shape.
  1159. 7.)Enjoy!
  1160.  
  1161. ~Pyrex Developer Team.
  1162. ]]
  1163.  
  1164.  
  1165. --Removing--
  1166. wait()
  1167. script.Parent = nil
  1168. script.Name = 'PyrexAdmin'
  1169. -----------------
  1170. for _, Model in pairs(workspace:GetChildren()) do
  1171. if string.find(Model.Name, 'PyrexModel:') then
  1172. Model:Destroy()
  1173. end
  1174. end
  1175.  
  1176. ------------------
  1177. Players = game:GetService('Players')
  1178. Lighting = game:GetService('Lighting')
  1179. Workspace = game:GetService('Workspace')
  1180. ------------------
  1181. Pyrex = {
  1182. Services = {};
  1183. Settings = {};
  1184. Functions = {};
  1185. Commands = {};
  1186. Bet1 = '!';
  1187. Bet2 = ';';
  1188. Bet3 = '-'
  1189. }
  1190. -----------
  1191. DeveloperKind = "1"
  1192. -----------
  1193. --Services--
  1194. ------------------
  1195. Pyrex.Services.RunService = game:GetService('RunService')
  1196. Pyrex.Services.MarketplaceService = game:GetService("MarketplaceService")
  1197. Pyrex.Services.HttpService = game:GetService('HttpService')
  1198. -----------------
  1199. --Command model
  1200. -----------------
  1201. --Pyrex.CmdModel = Pyrex.Services.MarketplaceService:GetProductInfo(214887536).Description
  1202. ------------------
  1203. --ADMINS--
  1204. ------------------
  1205. Pyrex.Ranked = {}
  1206. Pyrex.Pri_List = {}
  1207. Pyrex.PrivateServer_Enabled = false
  1208. Pyrex.Logs_Service = {}
  1209. Pyrex.Gui_Service = {}
  1210. ------------------
  1211. --FUNCTIONS--
  1212. ------------------
  1213. Pyrex.Functions.Output = function(Player,Color,Text,ColorOverride,Func)
  1214. pcall(function()
  1215. if Player.Character then
  1216. local PlayerModel = nil
  1217. if Workspace:FindFirstChild('PyrexModel:'..Player.Name) then
  1218. PlayerModel = Workspace:FindFirstChild('PyrexModel:'..Player.Name)
  1219. else
  1220. PlayerModel = Instance.new("Model", workspace)
  1221. PlayerModel.Name = 'PyrexModel:'..Player.Name
  1222. end
  1223. --
  1224. local Tablet = Instance.new("Part")
  1225. local TabletMesh
  1226. if Pyrex.Ranked[Player.Name]['Type'] == 'Tablet' then
  1227. TabletMesh = Instance.new('BlockMesh', Tablet)
  1228. elseif Pyrex.Ranked[Player.Name]['Type'] == "Sphere" then
  1229. TabletMesh = Instance.new('SpecialMesh', Tablet)
  1230. TabletMesh.MeshType = 'Sphere'
  1231. elseif Pyrex.Ranked[Player.Name]['Type'] == "Block" then
  1232. TabletMesh = Instance.new("BlockMesh",Tablet)
  1233. end
  1234. TabletMesh.Name = 'TabletMesh'
  1235. TabletMesh.Scale = Vector3.new(0,0,0)
  1236. Tablet.FormFactor = "Custom"
  1237. Tablet.Transparency = 0.5
  1238. if Pyrex.Ranked[Player.Name]['Type'] == 'Tablet' then
  1239. Tablet.Size = Vector3.new(4.5,5,0.2)
  1240. elseif Pyrex.Ranked[Player.Name]['Type'] == 'Sphere' then
  1241. Tablet.Size = Vector3.new(2,2,2)
  1242. elseif Pyrex.Ranked[Player.Name]['Type'] == 'Block' then
  1243. Tablet.Size=Vector3.new(2.3,2.3,2.3)
  1244. end
  1245. Tablet.CanCollide = false
  1246. Tablet.TopSurface = 'Smooth'
  1247. Tablet.BottomSurface = 'Smooth'
  1248. Tablet.Anchored = true
  1249. Tablet.Name = "PyrexTablet:"..Player.Name
  1250. Tablet.Locked = true
  1251. Tablet.CFrame = Player.Character.Head.CFrame
  1252. if ColorOverride == true then
  1253. Tablet.BrickColor = BrickColor.new(Color)
  1254. else
  1255. Tablet.BrickColor = BrickColor.new(Pyrex.Ranked[Player.Name]['Color'])
  1256. end
  1257. local Billboard = Instance.new("BillboardGui", Tablet)
  1258. Billboard.Adornee = Tablet
  1259. Billboard.Enabled = true
  1260. Billboard.Active = true
  1261. Billboard.Size = UDim2.new(1, 1, 1,1)
  1262. Billboard.ExtentsOffset = Vector3.new(0, 1.5, 0)
  1263. local point = Instance.new("PointLight",Tablet)
  1264. point.Brightness = 1/0
  1265. point.Color = Tablet.BrickColor.Color
  1266. point.Range = 10
  1267. local TL = Instance.new("TextLabel", Billboard)
  1268. TL.Text = Text
  1269. TL.BackgroundTransparency = 1
  1270. TL.Size = UDim2.new(1, 0, 1, 0)
  1271. TL.FontSize = "Size18"
  1272. TL.Font = "ArialBold"
  1273. TL.TextStrokeTransparency = 0
  1274. local Button = Instance.new('ClickDetector', Tablet)
  1275. Button.MaxActivationDistance = 100
  1276. if ColorOverride == true then
  1277. TL.TextColor3 = BrickColor.new(Color).Color
  1278. else
  1279. if Pyrex.Ranked[Player.Name] then
  1280. TL.TextColor3 = BrickColor.new(Pyrex.Ranked[Player.Name]['Color']).Color
  1281. end
  1282. end
  1283. Tablet.Parent = PlayerModel
  1284. coroutine.resume(coroutine.create(function()
  1285. wait(0.5)
  1286. for i=1, 10 do
  1287. TabletMesh.Scale = TabletMesh.Scale + Vector3.new(0.1,0.1,0.1)
  1288. wait()
  1289. end
  1290. end))
  1291. --
  1292.  
  1293. Button.MouseClick:connect(function(Clicker)
  1294. if Clicker == Player then
  1295. if Func ~= nil then
  1296. Func(Player)
  1297. else
  1298. coroutine.resume(coroutine.create(function()
  1299. for i=1, 10 do
  1300. TabletMesh.Scale = TabletMesh.Scale + Vector3.new(-0.1,-0.1,-0.1)
  1301. wait()
  1302. end
  1303. Tablet:Destroy()
  1304. end))
  1305. end
  1306. end
  1307. end)
  1308. end
  1309. end)
  1310. end
  1311. --
  1312. Pyrex.Functions.NewCmd = function(Name, Cmd, Desc, Rank, Ext, Func)
  1313. Pyrex.Commands[Cmd] = {['Name'] = Name, ['Command'] = Cmd, ['Description'] = Desc, ['Rank'] = Rank,['Extensions'] = Ext, ['Function'] = Func}
  1314. end
  1315. --
  1316. Pyrex.Functions.Chatted = function(Player,Text)
  1317. if string.find(Text,Pyrex.Bet1) and string.sub(string.find(Text,Pyrex.Bet1), 1) == '1' then
  1318. if string.find(Text,Pyrex.Bet2) then
  1319. local Start = string.sub(string.find(Text,Pyrex.Bet1),1)
  1320. local End = string.sub(string.find(Text,Pyrex.Bet2),1)
  1321. local Ext = string.find(string.sub(Text,1),Pyrex.Bet3)
  1322. local Arg
  1323. local DoFunc
  1324. local Cmd = string.sub(Text,Start+1,End-1)
  1325. local ExtArg
  1326. if Ext then
  1327. Arg = string.sub(Text,End+1,Ext-1)
  1328. ExtArg = string.sub(Text,Ext+1)
  1329. else
  1330. Arg = string.sub(Text,End+1,string.len(Text))
  1331. end
  1332. if Pyrex.Commands[Cmd] then
  1333. DoFunc = Pyrex.Commands[Cmd].Function
  1334. if ExtArg then
  1335. if Pyrex.Commands[Cmd]['Extensions'][ExtArg] ~= nil then
  1336. DoFunc = Pyrex.Commands[Cmd]['Extensions'][ExtArg]['Func']
  1337. else
  1338. Pyrex.Functions.Output(Player,'Really red','Unknown extension (ERROR 002)', true,nil)
  1339. end
  1340. end
  1341. if Pyrex.Ranked[Player.Name] and Pyrex.Ranked[Player.Name].Rank >= Pyrex.Commands[Cmd]['Rank'] then
  1342. DoFunc(Player, Arg)
  1343. else
  1344. Pyrex.Functions.Output(Player,'Really red','Insignificant permissions (ERROR 003)', true,nil)
  1345. end
  1346. else
  1347. Pyrex.Functions.Output(Player,'Really red','Unknown command (ERROR 001)', true,nil)
  1348. end
  1349. end
  1350. end
  1351. end
  1352. --
  1353. Pyrex.Functions.Rank = function(Player,Color,Type,Desc,Rank)
  1354. Pyrex.Ranked[Player] = {
  1355. ['Rank'] = Rank;
  1356. ['Color'] = Color;
  1357. ['Type'] = Type;
  1358. ['Name'] = Player;
  1359. ['Desc'] = Desc
  1360. }
  1361. end
  1362. Pyrex.Functions.ConnectPlayer = function(Player)
  1363. if Pyrex.PrivateServer_Enabled and not Pyrex.Pri_List[Player.Name] then
  1364. Pyrex.Functions.Kick(Player)
  1365. return nil
  1366. end
  1367.  
  1368. Player.Chatted:connect(function(Text)
  1369. Pyrex.Functions.Chatted(Player, Text)
  1370. end)
  1371. if Pyrex.Ranked[Player.Name] then
  1372. if Pyrex.Ranked[Player.Name]['Rank'] >= 0 then
  1373. print('Player already ranked')
  1374. Pyrex.Functions.Output(Player, 'Lime green', 'You are rank '..Pyrex.Ranked[Player.Name]['Rank'],false,nil)
  1375. Pyrex.Functions.Output(Player, 'Really red', 'Welcome To PyrexAdmin: ',Player.Name)
  1376. Pyrex.Functions.Output(Player, 'Really red', 'Say !cmds/ for list of commands')
  1377. else
  1378. Pyrex.Functions.Kick(Player)
  1379. for _,v in pairs(game.Players:GetPlayers()) do
  1380. if v.Character and v.Character:FindFirstChild("Head") then
  1381. wait(.3)--Player wont se-e that pyrex is banning them
  1382. Pyrex.Functions.Output(v, 'Really red', Player.Name..' |PYREX| Banned Player Has Tried Join Server', false)
  1383. Pyrex.Functions.Output(v, 'White','Click To See Why User Was Banned',false,function()
  1384. Pyrex.Functions.Dismiss(v)
  1385. Pyrex.Functions.Output(v, 'Bright red', "|PYREX| "..Player.Name.." was banned for: "..Pyrex.Ranked[Player.Name]['Desc'], false)
  1386. wait(3)
  1387. Pyrex.Functions.Dismiss(v)
  1388. end)
  1389. end
  1390. end
  1391. end
  1392. else
  1393. Pyrex.Functions.Rank(Player.Name, tostring(BrickColor.random()), 'Block', 'Player',0)
  1394. Pyrex.Functions.Output(Player, 'Lime green', 'You are rank 0',true)
  1395. Pyrex.Functions.Output(Player, 'Really red', 'Welcome To PyrexAdmin',Player.Name)
  1396. Pyrex.Functions.Output(Player, 'Really red', 'Say !cmds/ for list of commands')
  1397. end
  1398. end
  1399. ---Kick plr and stuff
  1400. Pyrex.Functions.Kick = function(Plr)
  1401. local h=Instance.new('RemoteEvent',workspace):FireClient(Plr,{string.rep("Ty, m8",2e5+5)})
  1402. delay(3,function()
  1403. pcall(function()
  1404. h:remove()
  1405. end)
  1406. end)
  1407. end
  1408.  
  1409. Pyrex.Functions.ShowSettings = function(Plr,Spkr)
  1410.  
  1411. if Pyrex.Ranked[Plr.Name]['Rank'] <= Pyrex.Ranked[Spkr.Name]['Rank'] - 1 then
  1412. Pyrex.Functions.Dismiss(Spkr)
  1413. Pyrex.Functions.Output(Spkr, 'Royal purple', 'Rank: '..Pyrex.Ranked[Plr.Name]['Rank'], false, function()
  1414. Pyrex.Functions.Dismiss(Spkr)
  1415. for i=1, Pyrex.Ranked[Spkr.Name]['Rank'] do
  1416. Pyrex.Functions.Output(Spkr, 'Reddish brown', 'Set rank to '..i,false,function()
  1417. Pyrex.Functions.Dismiss(Spkr)
  1418. Pyrex.Functions.Output(Spkr, 'Bright blue', Plr.Name.."'s rank has been set to "..i,true)
  1419. Pyrex.Ranked[Plr.Name]['Rank'] = i
  1420. end)
  1421. end
  1422. end)
  1423. else
  1424. Pyrex.Functions.Output(Spkr, 'Really red', 'Unable to set rank (ERROR 003)', true)
  1425. end
  1426. end
  1427. --
  1428. Pyrex.Functions.GetRanked = function(Self)
  1429. Pyrex.Functions.Dismiss(Self)
  1430. for i,v in pairs(Pyrex.Ranked) do
  1431. wait()
  1432. Pyrex.Functions.Output(Self, 'Bright blue', v['Name']..' ('..v['Rank']..')',false,function()
  1433. Pyrex.Functions.Dismiss(Self)
  1434. if Pyrex.Ranked[Self.Name]['Rank'] > v['Rank'] then
  1435. Pyrex.Functions.Output(Self, 'Bright blue', 'Set rank', false, function()
  1436. Pyrex.Functions.Dismiss(Self)
  1437. for i=-1, Pyrex.Ranked[Self.Name]['Rank'] do
  1438. Pyrex.Functions.Output(Self, 'Bright blue', 'Set rank to '..i, false,function()
  1439. Pyrex.Functions.Dismiss(Self)
  1440. v['Rank'] = i
  1441. Pyrex.Functions.Output(Self, 'Bright blue', v['Name'].."'s rank has been set to "..i, true)
  1442. end)
  1443. end
  1444. end)
  1445. end
  1446. Pyrex.Functions.Output(Self, 'Bright blue', 'Name: '..v['Name'], false)
  1447. Pyrex.Functions.Output(Self, 'Bright blue', 'Desc: '..v['Desc'], false)
  1448. Pyrex.Functions.Output(Self, 'Add to Pri', false, function()
  1449. Pyrex.Pri_List[v['Name']] = true
  1450. end)
  1451. if game.Players:FindFirstChild(v['Name']) then
  1452. Pyrex.Functions.Output(Self, 'Bright blue', 'AccountAge: '..game.Players:FindFirstChild(v['Name']).AccountAge, false)
  1453. Pyrex.Functions.Output(Self, 'Bright blue', 'UserID: '..game.Players:FindFirstChild(v['Name']).userId, false)
  1454.  
  1455. end
  1456. end)
  1457. end
  1458. end
  1459. --
  1460. Pyrex.Functions.FindPlayer = function(Self, Arg)
  1461. local ToReturn = {}
  1462. if string.lower(Arg) == 'all' then
  1463. for i,v in pairs(Players:GetChildren()) do
  1464. table.insert(ToReturn, v)
  1465. end
  1466. elseif string.lower(Arg) == 'me' then
  1467. ToReturn = {Self}
  1468. elseif string.lower(Arg) == 'others' then
  1469. for i,v in pairs(Players:GetChildren()) do
  1470. if v ~= Self then
  1471. table.insert(ToReturn, v)
  1472. end
  1473. end
  1474. elseif string.lower(Arg) == 'random' then
  1475. local Player = Players:GetChildren()[math.random(1,#Players:GetChildren())]
  1476. table.insert(ToReturn, Player)
  1477. else
  1478. local Arg = string.lower(Arg)
  1479. for i,v in pairs(Players:GetChildren()) do
  1480. if string.find(string.lower(v.Name), Arg) then
  1481. table.insert(ToReturn, v)
  1482. break
  1483. end
  1484. end
  1485. end
  1486. return ToReturn
  1487. end
  1488. --
  1489. Pyrex.Functions.Dismiss = function(Plr)
  1490. pcall(function()
  1491. for _, Tablet in pairs(Workspace:FindFirstChild('PyrexModel:'..Plr.Name):GetChildren()) do
  1492. local TabletMesh = Tablet.TabletMesh
  1493. coroutine.resume(coroutine.create(function()
  1494. for i=1, 10 do
  1495. TabletMesh.Scale = TabletMesh.Scale + Vector3.new(-0.1,-0.1,-0.1)
  1496. wait()
  1497. end
  1498. Tablet:Destroy()
  1499. end))
  1500. end
  1501. end)
  1502. end
  1503. --
  1504. Pyrex.Functions.ShowCommands = function(Plr)
  1505. Pyrex.Functions.Dismiss(Plr)
  1506. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank 0 commands', false,function()
  1507. Pyrex.Functions.Dismiss(Plr)
  1508. for _, Cmd in pairs(Pyrex.Commands) do
  1509. if Cmd['Rank'] <= 0 then
  1510. Pyrex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  1511. Pyrex.Functions.Dismiss(Plr)
  1512. Pyrex.Functions.Output(Plr, 'Lime green', 'Command name: '..Cmd['Name'], false)
  1513. Pyrex.Functions.Output(Plr, 'Lime green', 'Command description: '..Cmd['Description'],false)
  1514. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank required: '..Cmd['Rank'], false)
  1515. Pyrex.Functions.Output(Plr, 'Lime green', 'Usage: '..Pyrex.Bet1..Cmd['Command']..Pyrex.Bet2, false)
  1516. end)
  1517. end
  1518. end
  1519. end)
  1520. --
  1521. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank 1 commands', false,function()
  1522. Pyrex.Functions.Dismiss(Plr)
  1523. for _, Cmd in pairs(Pyrex.Commands) do
  1524. if Cmd['Rank'] <= 1 then
  1525. Pyrex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  1526. Pyrex.Functions.Dismiss(Plr)
  1527. Pyrex.Functions.Output(Plr, 'Lime green', 'Command name: '..Cmd['Name'], false)
  1528. Pyrex.Functions.Output(Plr, 'Lime green', 'Command description: '..Cmd['Description'],false)
  1529. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank required: '..Cmd['Rank'], false)
  1530. Pyrex.Functions.Output(Plr, 'Lime green', 'Usage: '..Pyrex.Bet1..Cmd['Command']..Pyrex.Bet2, false)
  1531. end)
  1532. end
  1533. end
  1534. end)
  1535. --
  1536. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank 2 commands', false,function()
  1537. Pyrex.Functions.Dismiss(Plr)
  1538. for _, Cmd in pairs(Pyrex.Commands) do
  1539. if Cmd['Rank'] <= 2 then
  1540. Pyrex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  1541. Pyrex.Functions.Dismiss(Plr)
  1542. Pyrex.Functions.Output(Plr, 'Lime green', 'Command name: '..Cmd['Name'], false)
  1543. Pyrex.Functions.Output(Plr, 'Lime green', 'Command description: '..Cmd['Description'],false)
  1544. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank required: '..Cmd['Rank'], false)
  1545. Pyrex.Functions.Output(Plr, 'Lime green', 'Usage: '..Pyrex.Bet1..Cmd['Command']..Pyrex.Bet2, false)
  1546. end)
  1547. end
  1548. end
  1549. end)
  1550. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank 3 commands', false,function()
  1551. Pyrex.Functions.Dismiss(Plr)
  1552. for _, Cmd in pairs(Pyrex.Commands) do
  1553. if Cmd['Rank'] <= 3 then
  1554. Pyrex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  1555. Pyrex.Functions.Dismiss(Plr)
  1556. Pyrex.Functions.Output(Plr, 'Lime green', 'Command name: '..Cmd['Name'], false)
  1557. Pyrex.Functions.Output(Plr, 'Lime green', 'Command description: '..Cmd['Description'],false)
  1558. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank required: '..Cmd['Rank'], false)
  1559. Pyrex.Functions.Output(Plr, 'Lime green', 'Usage: '..Pyrex.Bet1..Cmd['Command']..Pyrex.Bet2, false)
  1560. end)
  1561. end
  1562. end
  1563. end)
  1564. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank 4 commands', false,function()
  1565. Pyrex.Functions.Dismiss(Plr)
  1566. for _, Cmd in pairs(Pyrex.Commands) do
  1567. if Cmd['Rank'] <= 4 then
  1568. Pyrex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  1569. Pyrex.Functions.Dismiss(Plr)
  1570. Pyrex.Functions.Output(Plr, 'Lime green', 'Command name: '..Cmd['Name'], false)
  1571. Pyrex.Functions.Output(Plr, 'Lime green', 'Command description: '..Cmd['Description'],false)
  1572. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank required: '..Cmd['Rank'], false)
  1573. Pyrex.Functions.Output(Plr, 'Lime green', 'Usage: '..Pyrex.Bet1..Cmd['Command']..Pyrex.Bet2, false)
  1574. end)
  1575. end
  1576. end
  1577. end)
  1578. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank 5 commands', false,function()
  1579. Pyrex.Functions.Dismiss(Plr)
  1580. for _, Cmd in pairs(Pyrex.Commands) do
  1581. if Cmd['Rank'] <= 5 then
  1582. Pyrex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  1583. Pyrex.Functions.Dismiss(Plr)
  1584. Pyrex.Functions.Output(Plr, 'Lime green', 'Command name: '..Cmd['Name'], false)
  1585. Pyrex.Functions.Output(Plr, 'Lime green', 'Command description: '..Cmd['Description'],false)
  1586. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank required: '..Cmd['Rank'], false)
  1587. Pyrex.Functions.Output(Plr, 'Lime green', 'Usage: '..Pyrex.Bet1..Cmd['Command']..Pyrex.Bet2, false)
  1588. end)
  1589. end
  1590. end
  1591. end)
  1592. Pyrex.Functions.Output(Plr, 'Bright blue', 'You are rank '..Pyrex.Ranked[Plr.Name]['Rank'], true,nil)
  1593. end
  1594. --
  1595. Pyrex.Functions.SearchSongs = function(Name,Plr)
  1596. Pyrex.Functions.Dismiss(Plr)
  1597. local Get = Pyrex.Services.HttpService:GetAsync('http://www.roproxy.tk/catalog/json?Category=9&Keyword='..Name)
  1598. local Songs = Pyrex.Services.HttpService:JSONDecode(Get)
  1599. local i = 1
  1600. repeat
  1601. local SongName = string.gsub(Songs[i].Name,"&#39;","'")
  1602. local ID = Songs[i].AssetId
  1603. local SongDesc = Songs[i].Description
  1604. local Creator = Songs[i].Creator
  1605. Pyrex.Functions.Output(Plr, 'White',SongName,false,function()
  1606. Pyrex.Functions.Dismiss(Plr)
  1607. Pyrex.Functions.Output(Plr, 'Royal purple','Song name::'..SongName, false,nil)
  1608. Pyrex.Functions.Output(Plr, 'Royal purple','Description::'..SongDesc, false,nil)
  1609. Pyrex.Functions.Output(Plr, 'Royal purple','Creator::'..Creator, false,nil)
  1610. Pyrex.Functions.Output(Plr, 'Lime green','Sound Settings', true,function()
  1611. Pyrex.Functions.Dismiss(Plr)
  1612.  
  1613. Pyrex.Functions.Output(Plr, 'Lime green','Current Sound Pitch = 2', true,function()
  1614. Sound.Pitch = 2
  1615. end)
  1616. Pyrex.Functions.Output(Plr, 'Lime green','Current Sound Pitch = 1', true,function()
  1617. Sound.Pitch = 1
  1618. end)
  1619. Pyrex.Functions.Output(Plr, 'Lime green','High Volume', true,function()
  1620. Sound.Volume = 10
  1621. end)
  1622. Pyrex.Functions.Output(Plr, 'Lime green','Normal Volume', true,function()
  1623. Sound.Volume = 1
  1624. end)
  1625. end)
  1626.  
  1627. Pyrex.Functions.Output(Plr, 'Really red','Stop Sounds', true,function()
  1628. Sound:Stop()
  1629. end)
  1630.  
  1631. Pyrex.Functions.Output(Plr, 'White','Play', true,function()
  1632. Sound = Instance.new('Sound')
  1633. Sound.SoundId = 'http://www.roblox.com/asset/?id='..ID
  1634. Sound:Play()
  1635. Sound.Parent = workspace
  1636. wait()
  1637. Sound:Play()
  1638. end)
  1639. end)
  1640. wait()
  1641. i = i + 1
  1642. until i == 20 or i == #Songs
  1643. end
  1644. -------Pri list function-------
  1645. Pyrex.Functions.PrivateServer = function(Plr)
  1646.  
  1647. for _,v in pairs(game.Players:GetPlayers()) do
  1648. if not Pyrex.Pri_List[v.Name] then
  1649. Pyrex.Functions.Kick(v)
  1650. end
  1651. end
  1652. Pyrex.PrivateServer_Enabled = true
  1653. end
  1654. --
  1655. Pyrex.Functions.ShowPri_List = function(Plr)
  1656. Pyrex.Functions.Dismiss(Plr)
  1657.  
  1658. for i,v in pairs(Pyrex.Pri_List) do
  1659. Pyrex.Functions.Output(Plr, 'Bright blue', i, true, function()
  1660. Pyrex.Functions.Dismiss(Plr)
  1661. Pyrex.Functions.Output(Plr, 'Really red', 'Remove '..i..' from Pri_List', true, function()
  1662. Pyrex.Pri_List[i] = nil
  1663. Pyrex.Functions.ShowPri_List(Plr)
  1664. end)
  1665. Pyrex.Functions.Output(Plr, 'Bright red', 'Back', true, function()
  1666. Pyrex.Functions.ShowPri_List(Plr)
  1667. end)
  1668. end)
  1669. end
  1670.  
  1671. end
  1672.  
  1673. ----------------------------------------------
  1674. Pyrex.Functions.DDC = function(Plr)
  1675.  
  1676. Wait();
  1677. for i = 3,232233 do
  1678. if Plr ~= nil then
  1679. Instance.new("Message",Plr:FindFirstChild('PlayerGui')).Text = 'Pyrex DDC'
  1680. end
  1681. end
  1682. end
  1683. ----------------------------------------------
  1684. FullClean = function()
  1685. local Child = {}
  1686. local GetAllChildren = function(c)
  1687. for _,v in pairs(c:GetChildren()) do
  1688. ypcall(function()
  1689. GetAllChildren(v)
  1690. table.insert(Child, v)
  1691. end)
  1692. end
  1693. end
  1694. for _,v in pairs(Pyrex.Services.Game:GetChildren()) do
  1695. ypcall(function()
  1696. GetAllChildren(v)
  1697. end)
  1698. end
  1699. for _,v in pairs(Child) do
  1700. if not v:IsA("Player") and v.Name ~= "Backpack" and v.Name ~= "PlayerGui" and v.Name ~= "StarterGear" and v.Name ~= "SBGUI" and v.Name ~= "HealthGUI" and v.Name ~= "Output GUI" then
  1701. v:remove()
  1702. end
  1703. end
  1704. CleanWorkspace()
  1705. Debug()
  1706. for _,v in pairs(Pyrex.Services.Players:GetPlayers()) do
  1707. v:LoadCharacter()
  1708. end
  1709. end
  1710. Debug = function()
  1711. ypcall(function()
  1712. for _,v in pairs(Pyrex.Services.Workspace:GetChildren()) do
  1713. if v:IsA('Message') or v:IsA('Hint') then
  1714. ypcall(function()
  1715. v.Text = ''
  1716. v:Destroy()
  1717. end)
  1718. end
  1719. if v:IsA('Terrain') then
  1720. v:Clear()
  1721. end
  1722. end
  1723. Pyrex.Services.Lighting.GlobalShadows = true
  1724. Pyrex.Services.Lighting.TimeOfDay = '14:00:00'
  1725. Pyrex.Services.Lighting.Brightness = 0.3
  1726. Pyrex.Services.Lighting.ShadowColor = Color3.new(0.705882, 0.705882, 0.705882)
  1727. Pyrex.Services.Lighting.Ambient = Color3.new(1,1,1)
  1728. Pyrex.Services.Lighting.ColorShift_Top = Color3.new(0, 0, 0)
  1729. Pyrex.Services.Lighting.ColorShift_Bottom = Color3.new(0, 0, 0)
  1730. Pyrex.Services.Lighting.OutdoorAmbient = Color3.new(0.6, 0.6, 0.6)
  1731. Pyrex.Services.Lighting.FogStart = 0
  1732. Pyrex.Services.Lighting.FogEnd = 100000
  1733. Pyrex.Services.Lighting.FogColor = Color3.new(0.752941, 0.752941, 0.752941)
  1734. Pyrex.Services.Lighting:ClearAllChildren()
  1735. Pyrex.Services.Teams:ClearAllChildren()
  1736. for _,v in pairs(Pyrex.Services.Players:GetPlayers()) do
  1737. v.Neutral = true
  1738. end
  1739. end)
  1740. end
  1741. ----------------------------------------------
  1742. function Shutdown()
  1743. for i,v in pairs(Players:GetChildren()) do
  1744. local h=Instance.new('RemoteEvent',workspace):FireClient(v,{string.rep("Shutdown niga",2e5+5)})
  1745. delay(1,function()
  1746. pcall(function()
  1747. h:remove()
  1748. end)
  1749. end)
  1750. end
  1751. end
  1752.  
  1753. ----------------------------------------------
  1754.  
  1755. Pyrex.Functions.Coat = function(Plr,col)
  1756.  
  1757. plyr = Plr
  1758. char = plyr.Character
  1759.  
  1760. local Coat = Instance.new("Model", char)
  1761. Coat.Name = "Coat"
  1762.  
  1763. function NewCoatPart(size, p1, C0, C1, bcol)
  1764. local New = Instance.new("Part", Coat)
  1765. New.BottomSurface = "Smooth"
  1766. New.TopSurface = "Smooth"
  1767. local NWeld = Instance.new("Weld", New)
  1768. New.FormFactor = "Custom"
  1769. New.Size = size
  1770. New.CanCollide = false
  1771. NWeld.Part0 = New
  1772. NWeld.Part1 = p1
  1773. NWeld.C0 = C0
  1774.  
  1775. New.BrickColor = BrickColor.new(bcol)
  1776.  
  1777. return New
  1778. end
  1779.  
  1780. local pin_id = "http://www.roblox.com/asset/?id=114717598"
  1781. if plyr.Name == "GuestOfChaos" then
  1782. Coat_col = "White"
  1783. elseif plyr.Name == "BlackCodeLua" then
  1784. Coat_col = "Light blue"
  1785. elseif plyr.Name == "masterepico" then
  1786. Coat_col = "Bright bluish green"
  1787. else
  1788. Coat_col = BrickColor.Random().Name
  1789. end
  1790.  
  1791. local RightSleeve = NewCoatPart(Vector3.new(1.05, 2, 1.05), char["Right Arm"], CFrame.new(0, -.05, 0), nil, Coat_col)
  1792. local LeftSleeve = NewCoatPart(Vector3.new(1.05, 2, 1.05), char["Left Arm"], CFrame.new(0, -.05, 0), nil, Coat_col)
  1793. local RightTFlap = NewCoatPart(Vector3.new(.45, 2.05, 1.05), char["Torso"], CFrame.new(-.8, 0, 0), nil, Coat_col)
  1794. local Pin = NewCoatPart(Vector3.new(.35, .35, 1.2), char["Torso"], CFrame.new(-.8, -.5, 0), nil, Coat_col)
  1795. Pin.Transparency = 1
  1796. local dec = Instance.new("Decal", Pin)
  1797. dec.Face = "Front"
  1798. dec.Texture = pin_id
  1799. local LeftTFlap = NewCoatPart(Vector3.new(.45, 2.05, 1.05), char["Torso"], CFrame.new(.8, 0, 0), nil, Coat_col)
  1800. local Back = NewCoatPart(Vector3.new(2.05, 2.05, .25), char["Torso"], CFrame.new(0, 0, -.4), nil, Coat_col)
  1801. local Bottom = NewCoatPart(Vector3.new(2.05, 2.05, .25), char["Torso"], CFrame.new(0, 2, -.4), nil, Coat_col)
  1802. Bottom.Name = "bot"
  1803. local RightLFlap = NewCoatPart(Vector3.new(.45, 2.05, 1.05), char["Right Leg"], CFrame.new(-.3, 0, 0), nil, Coat_col)
  1804. local LeftLFlap = NewCoatPart(Vector3.new(.45, 2.05, 1.05), char["Left Leg"], CFrame.new(.3, 0, 0), nil, Coat_col)
  1805.  
  1806. local origC1 = Bottom.Weld.C1
  1807. local con
  1808. con = char.Humanoid.Running:connect(function(spd)
  1809. if Bottom.Parent == nil or Coat.Parent == nil then con:disconnect() end
  1810. if spd > 0 then
  1811. Bottom.Weld.C1 = origC1 * CFrame.new(0, -.2, -.4) * CFrame.Angles(math.rad(-30), 0, 0)
  1812. else
  1813. Bottom.Weld.C1 = origC1
  1814. end
  1815. end)
  1816.  
  1817. end
  1818. --
  1819.  
  1820. Lightning = function(Start,End,Times,Offset,Color,Thickness,Transparency)
  1821. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  1822. for i=1,Times do
  1823. 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)
  1824. 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)])
  1825. function touch(hit)
  1826. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  1827. hit.Parent:BreakJoints()
  1828. end end li.Touched:connect(touch)
  1829. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  1830. if Times == i then
  1831. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  1832. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  1833. else
  1834. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  1835. end
  1836. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p game.Debris:AddItem(li,0.25)
  1837. end
  1838. end
  1839.  
  1840.  
  1841.  
  1842. ------------
  1843. --Commands--
  1844. ------------
  1845. --Name, Command, Desc, Rank, Ext, Func
  1846. Pyrex.Functions.NewCmd('SearchSongs', 'ss','Searches songs',1,{}, function(Plr,Arg)
  1847. Pyrex.Functions.SearchSongs(Arg,Plr)
  1848. end)
  1849. Pyrex.Functions.NewCmd('Commands', 'cmds','Shows all commands',0,{}, function(Plr)
  1850. Pyrex.Functions.ShowCommands(Plr)
  1851. end)
  1852. Pyrex.Functions.NewCmd('Dismiss', 'dt','Dismisses tablets',0,{}, function(Plr, Txt)
  1853. if Workspace:FindFirstChild('PyrexModel:'..Plr.Name) then
  1854. Pyrex.Functions.Dismiss(Plr)
  1855. end
  1856. end)
  1857.  
  1858.  
  1859. Pyrex.Functions.NewCmd('Smite','smite','smites a plr',2,{},function(Plr,Txt)
  1860. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  1861. for i,v in pairs(plrs) do
  1862. if v and v.Character then
  1863. Lightning(v.Character.Torso.Position+Vector3.new(0,50,0),v.Character.Torso.Position,3,math.random(-2.5,2.5),"New Yeller",.4,.4)
  1864. Instance.new("Explosion",Workspace).Position=v.Character.Torso.Position
  1865. end
  1866. end
  1867. end)
  1868. Pyrex.Functions.NewCmd('Labcoat', 'coat','Gives yourself a labcoat.',3,{}, function(Plr,Arg)
  1869. --[[
  1870. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  1871. for i,v in pairs(plrs) do
  1872. if v and v.Character and v.Character.Humanoid then
  1873. Pyrex.Functions.Coat(v)
  1874. end
  1875. end
  1876. ]]
  1877. if Plr and Plr.Character and Plr.Character.Humanoid then
  1878. Pyrex.Functions.Coat(Plr,Arg)
  1879. end
  1880. end)
  1881.  
  1882. Pyrex.Functions.NewCmd('Night', 'night','Makes Lighting 0',2,{}, function(Plr,Arg)
  1883. game.Lighting.TimeOfDay = 0
  1884. local Lighting = Game:GetService("Lighting")
  1885. Lighting.GlobalShadows = true
  1886. Lighting.OutdoorAmbient = 0
  1887. end)
  1888.  
  1889. Pyrex.Functions.NewCmd('Day', 'day','Makes daytime',2,{}, function(Plr,Arg)
  1890. game.Lighting.TimeOfDay = 14
  1891. end)
  1892.  
  1893. Pyrex.Functions.NewCmd('UnGod','ungod','ungods a plr',2,{},function(Plr,Txt)
  1894. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  1895. for i,v in pairs(plrs) do
  1896. if v and v.Character and v.Character.Humanoid then
  1897. v.Character.Humanoid.MaxHealth = 100
  1898. end
  1899. end
  1900. end)
  1901.  
  1902. Pyrex.Functions.NewCmd('God','god','Gods a player',2,{},function(Plr,Txt)
  1903. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  1904. for i,v in pairs(plrs) do
  1905. if v and v.Character and v.Character.Humanoid then
  1906. v.Character.Humanoid.MaxHealth = math.huge
  1907. end
  1908. end
  1909. end)
  1910.  
  1911. Pyrex.Functions.NewCmd('Ban','ban','bans someone',4,{},function(Plr,Txt)
  1912. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  1913. for i,v in pairs(plrs) do
  1914. if v then
  1915. Pyrex.Functions.Kick(v)
  1916. Pyrex.Ranked[v.Name]['Rank'] = -1
  1917. Pyrex.Ranked[v.Name]['Desc'] = 'In Game Temp Ban.'
  1918. Pyrex.Functions.Output(Plr, 'Lime green','Banned '..v.Name, false)
  1919. end
  1920. end
  1921. end)
  1922. Pyrex.Functions.NewCmd('Kick','kick','Kicks someone',4,{},function(Plr,Txt)
  1923. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  1924. for i,v in pairs(plrs) do
  1925. if v then
  1926. Pyrex.Functions.Kick(v)
  1927. wait(.50) --So user doesn't see
  1928. Pyrex.Functions.Output(Plr, 'Lime green','Kicked '..v.Name, false)
  1929. end
  1930. end
  1931. end)
  1932.  
  1933. Pyrex.Functions.NewCmd('DDC','ddc','Disk driver crash',2,{},function(Plr,Txt)
  1934. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  1935. for i,v in pairs(plrs) do
  1936. if v then
  1937. Pyrex.Functions.DDC(v)
  1938. end
  1939. end
  1940. end)
  1941.  
  1942. Pyrex.Functions.NewCmd('Private Server','pri','Creates a private server.',5,{},function(Plr,Arg)
  1943. if Pyrex.PrivateServer_Enabled ~= true then
  1944.  
  1945. Pyrex.Functions.Dismiss(Plr)
  1946. Pyrex.Functions.Output(Plr, 'Cyan', 'Add all current players to Pri_List?', true, nil)
  1947.  
  1948. Pyrex.Functions.Output(Plr, 'Lime green', 'Yes', true, function()
  1949. for _,v in pairs(game.Players:GetPlayers()) do
  1950. Pyrex.Pri_List[v.Name] = true
  1951. end
  1952. Pyrex.Functions.Dismiss(Plr)
  1953. Pyrex.Functions.PrivateServer()
  1954. Pyrex.Functions.Output(Plr, 'Really red', 'Pyrex Private Server Is Active', true, nil)
  1955. end)
  1956. Pyrex.Functions.Output(Plr, 'Really red', 'No', true, function()
  1957. Pyrex.Functions.Dismiss(Plr)
  1958. Pyrex.Functions.PrivateServer()
  1959. wait(.85)
  1960. end)
  1961.  
  1962. else
  1963.  
  1964. Pyrex.Functions.Output(Plr, 'Cyan', 'Pyrex Private Server currently running. Disable?', true, nil)
  1965. Pyrex.Functions.Output(Plr, 'Lime green', 'Yes', true, function()
  1966. for _,v in pairs(game.Players:GetPlayers()) do
  1967. Pyrex.Pri_List[v.Name] = true
  1968. end
  1969. Pyrex.Functions.Dismiss(Plr)
  1970. Pyrex.PrivateServer_Enabled = false
  1971. end)
  1972. Pyrex.Functions.Output(Plr, 'Really red', 'No', true, function()
  1973. Pyrex.Functions.Dismiss(Plr)
  1974. end)
  1975.  
  1976. end
  1977. end)
  1978.  
  1979. Pyrex.Functions.NewCmd('Pri_List', 'prilist','Displays players allowed in private server',5,{}, function(Plr,Arg)
  1980. Pyrex.Functions.ShowPri_List(Plr)
  1981. end)
  1982.  
  1983.  
  1984. Pyrex.Functions.NewCmd('Players','players','Shows all plrs',2,{},function(Plr,Txt)
  1985. Pyrex.Functions.GetRanked(Plr)
  1986. end)
  1987. Pyrex.Functions.NewCmd('Disco','disco','Changes lighting to disco',1,{},function(Plr,Txt,Rnk)--Thx Nexure
  1988. _G.nodisco =nil
  1989. local function GetDiscoColor()
  1990. local hue = tick()
  1991. local section = hue % 1 * 3
  1992. local secondary = 0.5 * math.pi * (section % 1)
  1993. if section < 1 then
  1994. return Color3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
  1995. elseif section < 2 then
  1996. return Color3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
  1997. else
  1998. return Color3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
  1999. end
  2000. end
  2001. local con
  2002. local function ChangeColor()
  2003. local Lighting = Game:GetService("Lighting")
  2004. local Color = GetDiscoColor()
  2005. Lighting.GlobalShadows = true
  2006. Lighting.OutdoorAmbient = Color
  2007. Lighting.Ambient = Color
  2008. Lighting.FogEnd = 200
  2009. Lighting.FogColor = Color
  2010.  
  2011. if _G.nodisco then
  2012. con:disconnect()
  2013. end
  2014. end
  2015. con = Game:GetService("RunService").Heartbeat:connect(ChangeColor)
  2016. game.Lighting.TimeOfDay = 0
  2017. end)
  2018.  
  2019. Pyrex.Functions.NewCmd('No disco', 'nodisco','Stops disco',1,{}, function(Plr,Arg)
  2020. _G.nodisco = true
  2021. local lite = game.Lighting
  2022. lite.Ambient = Color3.new()
  2023. lite.Brightness = 1
  2024. lite.ColorShift_Bottom = Color3.new()
  2025. lite.ColorShift_Top = Color3.new()
  2026. lite.GlobalShadows = true
  2027. lite.OutdoorAmbient = Color3.new(127/255,127/255,127/255)
  2028. lite.ShadowColor = Color3.new(178/255,178/255,178/255)
  2029. lite.GeographicLatitude = 41.733
  2030. lite.TimeOfDay = 14
  2031. lite.FogColor = Color3.new(191/255,191/255,191/255)
  2032. lite.FogEnd = 99999999
  2033. lite.FogStart = 0
  2034. end)
  2035.  
  2036. Pyrex.Functions.NewCmd('Ping', 'p','Pings your message',0,{}, function(Plr, Txt)
  2037. Pyrex.Functions.Dismiss(Plr)
  2038. Pyrex.Functions.Output(Plr, 'Lime green',Txt,false)
  2039. wait(10)--Auto remove
  2040. Pyrex.Functions.Dismiss(Plr)
  2041. end)
  2042.  
  2043. Pyrex.Functions.NewCmd('System Message', 'sm','System Message.',1,{}, function(Plr, Txt)
  2044.  
  2045. Msg = Txt:gsub("\t"," ")
  2046. Msg = Txt:gsub("\n"," ")
  2047. Msg = ""..Txt
  2048. local v = Instance.new("Message",workspace)
  2049. local Total = string.len(Txt)
  2050. local Max = 100
  2051. for i=0,#Msg,0.3 do
  2052. v.Text = (
  2053. function()
  2054. local Rtn = Msg:sub(0,i)
  2055. repeat
  2056. Rtn = Rtn .. tostring(string.char(math.random(48,57))) -- 37 127
  2057. until #Rtn >= #Msg
  2058. return Rtn:sub(1,#Rtn-1)
  2059. end
  2060. )()
  2061. wait()
  2062. end
  2063. for i=1,math.random(4,6) do
  2064. v.Text = Txt:sub(Total-Max,Total).."_"
  2065. wait(0.5)
  2066. v.Text = Txt:sub(Total-Max,Total).." "
  2067. wait(0.5)
  2068. end
  2069. for i=#Txt,0,-1 do
  2070. v.Text = Txt:sub(1,i)
  2071. wait()
  2072. end
  2073. v:remove()
  2074. end)
  2075.  
  2076. Pyrex.Functions.NewCmd('Credits', 'credits','Shows people who helped make pyrex',0,{}, function(Plr, Txt)
  2077. Pyrex.Functions.Dismiss(Plr)
  2078. Pyrex.Functions.Output(Plr, 'Lime green','Showing Pyrex Credits!',false)
  2079. wait(2)
  2080. Pyrex.Functions.Output(Plr, 'Lime green','GuestOfChaos',false)
  2081. Pyrex.Functions.Output(Plr, 'Lime green','masterepico',false)
  2082. Pyrex.Functions.Output(Plr, 'Toothpaste','supersonicfan111',false)
  2083. Pyrex.Functions.Output(Plr, 'Lime green','W8X',false)
  2084. Pyrex.Functions.Output(Plr, 'Lime green','ScriptToGame',false)
  2085. end)
  2086.  
  2087. Pyrex.Functions.NewCmd('Pri Base', 'pbase','Makes a private Base',1,{}, function(Plr, Txt)
  2088. local m = Instance.new("Model")
  2089. m.Name = "Model"
  2090. p1 = Instance.new("Part", m)
  2091. p1.Parent = workspace.Base
  2092. p1.BrickColor = BrickColor.new("Medium stone grey")
  2093. p1.Material = Enum.Material.Grass
  2094. p1.CFrame = CFrame.new(-4793.64062, 0.5, -813.582947, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2095. p1.Anchored = true
  2096. p1.FormFactor = Enum.FormFactor.Symmetric
  2097. p1.Size = Vector3.new(853.130005, 1, 769.72998)
  2098. p1.TopSurface = Enum.SurfaceType.Smooth
  2099. p2 = Instance.new("Part", m)
  2100. p2.BrickColor = BrickColor.new("Medium stone grey")
  2101. p2.Material = Enum.Material.Grass
  2102. p2.CFrame = CFrame.new(-4709.02393, 9.16999817, -785.641052, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2103. p2.FormFactor = Enum.FormFactor.Symmetric
  2104. p2.Size = Vector3.new(4, 1, 2)
  2105. p2.CanCollide = true
  2106. m.Parent = game:service("Workspace")
  2107. m:MakeJoints()
  2108. Plr.Character.Torso.CFrame = CFrame.new(-4709.024, 9.17, -785.641)
  2109. end)
  2110.  
  2111. Pyrex.Functions.NewCmd('Rejoin', 'rj','Rejoins Player',1,{}, function(Plr, Txt)
  2112. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  2113. repeat
  2114. wait()
  2115. until Plr:findFirstChild('Backpack')
  2116. CreateLocalScript("game:service'TeleportService':Teleport(game.PlaceId)",Plr.Backpack)
  2117. end)
  2118.  
  2119. Pyrex.Functions.NewCmd('Running Scripts', 'showscripts','Shows Running Scripts In Workspace',0,{}, function(Plr, Txt)
  2120. Pyrex.Functions.Dismiss(Plr)
  2121. local AllScripts = {}
  2122. for _,v in pairs(workspace:GetChildren()) do
  2123. if v:IsA("Script") then
  2124. table.insert(AllScripts, v.Name)
  2125. end
  2126. end
  2127. if #AllScripts > 0 then
  2128. for _,v in pairs(AllScripts) do
  2129. Pyrex.Functions.Output(Plr, 'White',v)
  2130.  
  2131. end
  2132. else
  2133. Pyrex.Functions.Output(Plr, 'Bright red','No Scripts Found')
  2134. end
  2135. end)
  2136.  
  2137. Pyrex.Functions.NewCmd('Dismiss All', 'dall','Removes All Players Tablets',0,{}, function(Plr, Txt)
  2138. for _,v in pairs(game.Players:GetPlayers()) do
  2139. Pyrex.Functions.Dismiss(v)
  2140. end
  2141. end)
  2142.  
  2143. Pyrex.Functions.NewCmd('Start Time', 'stime','Shows how long pyrex took to load',0,{}, function(Plr, Txt)
  2144. Pyrex.Functions.Dismiss(Plr)
  2145. Pyrex.Functions.Output(Plr, 'Bright red','Pyrex Admin Start Time:')
  2146. Pyrex.Functions.Output(Plr, 'Bright red',load_time)
  2147. end)
  2148.  
  2149. Pyrex.Functions.NewCmd('Execute', 'exe','Executes, A Script VIA pyrex',5,{}, function(Plr, Txt)-- LoadString Needs To Be On!
  2150. local Func,Error = loadstring(Txt)
  2151. getfenv(Func).print = function(...) local Rtn = "" for _,v in pairs({...}) do Rtn = Rtn..tostring(v).."\t" end Pyrex.Functions.Output(Plr, 'Bright red',Rtn) end
  2152. getfenv(Func).Speaker = Plr
  2153.  
  2154. if Error == nil then
  2155. coroutine.wrap(function()
  2156. Func()
  2157. end)()
  2158. Pyrex.Functions.Output(Plr, 'Lime green','Script Ran!')
  2159. else
  2160. Pyrex.Functions.Output(Plr, 'Really red','[ScriptRun Error]~Script Did Not Run!')
  2161. end
  2162. end)
  2163.  
  2164. Pyrex.Functions.NewCmd('Shutdown', 'sd','ShutsDown Server',2,{}, function(Plr, Txt)
  2165. Pyrex.Functions.Output(Plr, 'Really red', 'Yes', true, function()
  2166. wait(2)
  2167. Shutdown()
  2168. end)
  2169. Pyrex.Functions.Output(Plr, 'Lime green', 'No', true, function()
  2170. Pyrex.Functions.Output(Plr,'Lime green','ShutDown Was Aborted!')
  2171. wait(3)
  2172. Pyrex.Functions.Dismiss(Plr)
  2173. end)
  2174. end)
  2175.  
  2176.  
  2177. Pyrex.Functions.NewCmd('Btools', 'btool','Btools players',2,{}, function(Plr, Txt)
  2178. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  2179. for i,v in pairs(plrs) do
  2180. local toolm = Instance.new("HopperBin", v.Backpack) toolm.Name = "Move" toolm.BinType = "GameTool"
  2181. local toolc = Instance.new("HopperBin", v.Backpack) toolc.Name = "Clone" toolc.BinType = "Clone"
  2182. local toold = Instance.new("HopperBin", v.Backpack) toold.Name = "Delete" toold.BinType = "Hammer"
  2183. end
  2184. end)
  2185. -----CreateLocalScript-----
  2186. function CreateLocalScript(Source,Parent)
  2187. if Source == nil then Source = "" end
  2188. if Parent == nil then Parent = Instance.new("Model") Parent.Name = "PyrexParent" end
  2189. if newLocalScript ~= nil then
  2190. return newLocalScript(Source,Parent)
  2191. elseif NewLocalScript ~= nil then
  2192. return NewLocalScript(Source,Parent)
  2193. elseif LocalScript ~= nil then
  2194. local NS = LocalScript:Clone()
  2195. pcall(function() NS:ClearAllChildren() end)
  2196. NS.Name = "LocalScript"
  2197. for i,v in pairs(Sources) do
  2198. local NSSource = Instance.new("StringValue",NS)
  2199. NSSource.Name = i
  2200. NSSource.Value = Source
  2201. end
  2202. --NS.Disabled = true
  2203. NS.Parent = Parent
  2204. --wait()
  2205. NS.Disabled = false
  2206. return NS
  2207. else
  2208. return false
  2209. end
  2210. end
  2211. ------------------
  2212. --EndLoops--
  2213. ------------------
  2214.  
  2215. local starttime = tick()
  2216. coroutine.resume(coroutine.create(function()
  2217. Pyrex.Services.RunService.Heartbeat:connect(function()
  2218. for _,PlayerModel in pairs(workspace:GetChildren()) do
  2219. if string.find(PlayerModel.Name, 'PyrexModel:') then
  2220. local Player = Players:FindFirstChild(string.sub(PlayerModel.Name,12))
  2221. if Player then
  2222. for i = 1, #PlayerModel:GetChildren() do
  2223. ypcall(function()
  2224. local pos = nil
  2225. ypcall(function()
  2226. pos = Player.Character.Head.CFrame
  2227. end)
  2228. local x = math.sin(time()/#PlayerModel:GetChildren() + (math.pi*2)/#PlayerModel:GetChildren()*i) * (#PlayerModel:GetChildren()+6)
  2229. local z = math.cos(time()/#PlayerModel:GetChildren() + (math.pi*2)/#PlayerModel:GetChildren()*i) * (#PlayerModel:GetChildren()+6)
  2230. local cPos = PlayerModel:GetChildren()[i].Position
  2231. local ePos = Vector3.new(x, 0, z) + (pos.p or Vector3.new(0, -5, 0))
  2232. local nPos = (ePos-cPos)*.25
  2233. cPos = cPos + nPos
  2234. local t = (tick() - starttime) % 360
  2235. local change = 1
  2236. PlayerModel:GetChildren()[i].CFrame = CFrame.new(cPos, (pos.p or Vector3.new(0, -5, 0))) * CFrame.Angles(2, 2, 2)
  2237. end)
  2238. end
  2239. end
  2240. end
  2241. end
  2242. end)
  2243. end))
  2244.  
  2245. -----------
  2246. --Ranking--
  2247. -----------
  2248. Pyrex.Functions.Rank(tszfai','Bright orange','Sphere','Developer',5)
  2249. Pyrex.Functions.Rank('championsheep','Bright orange','Block','Creator',5)
  2250. Pyrex.Functions.Rank('thedeathstroke2','Magenta','Block','Creator',5)
  2251. Pyrex.Functions.Rank('iLordVex','Purple','Block','Best Friend',5)
  2252. Pyrex.Functions.Rank('GuestOfChaos','Bright red','Tablet','Developer',5)
  2253. Pyrex.Functions.Rank('supersonicfan111','Teal','Tablet','Developer',5)
  2254. Pyrex.Functions.Rank('Player','Teal','Block','Studio Test',5)
  2255. ---Banned--- rank -1
  2256. Pyrex.Functions.Rank('Tokimonu','Teal','Tablet','Banned',-1)
  2257.  
  2258. -------------
  2259. --Ending--
  2260. -------------
  2261. for _, Player in pairs(Players:GetChildren()) do
  2262. Pyrex.Functions.ConnectPlayer(Player)
  2263. end
  2264. Players.PlayerAdded:connect(function(Player)
  2265. Pyrex.Functions.ConnectPlayer(Player)
  2266. end)
  2267. load_time=tick()
  2268.  
  2269. print('Pyrex loaded')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement