Advertisement
asjkljrlfkjrwoierjwe

Pyrex

May 10th, 2015
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 48.96 KB | None | 0 0
  1. --[[
  2. PLEASE READ OR SCRIPT WILL NOT WORK CORRECT!
  3.  
  4. 1.)Fetures Will Not Work Unless HTTP Service Is On!
  5. 2.)Control+f and type in Ranking. You Can Edit Them with your prefrences.
  6. 3.)If you want to help develop this admin pm any developer.
  7. 4.)Report bugs to any developer.
  8. 5.)You Can Customize your tablet color and shape.
  9. 6.) Enjoy!
  10.  
  11. ~Pyrex Developer Team.
  12. ]]
  13.  
  14.  
  15. --Removing--
  16. wait()
  17. script.Parent = nil
  18. script.Name = 'Tox Admin'
  19.  
  20.  
  21. -----------------
  22. for _, Model in pairs(workspace:GetChildren()) do
  23. if string.find(Model.Name, 'PyrexModel:') then
  24. Model:Destroy()
  25. end
  26. end
  27.  
  28. ------------------
  29. Players = game:GetService('Players')
  30. Lighting = game:GetService('Lighting')
  31. Workspace = game:GetService('Workspace')
  32. ------------------
  33. Pyrex = {
  34. Services = {};
  35. Settings = {};
  36. Functions = {};
  37. Commands = {};
  38. Bet1 = '!';
  39. Bet2 = ';';
  40. Bet3 = '-'
  41. }
  42. -----------
  43. DeveloperKind = "1"
  44. -----------
  45. --Services--
  46. ------------------
  47. Pyrex.Services.RunService = game:GetService('RunService')
  48. Pyrex.Services.MarketplaceService = game:GetService("MarketplaceService")
  49. Pyrex.Services.HttpService = game:GetService('HttpService')
  50. -----------------
  51. --Command model
  52. -----------------
  53. --Pyrex.CmdModel = Pyrex.Services.MarketplaceService:GetProductInfo(214887536).Description
  54. ------------------
  55. --ADMINS--
  56. ------------------
  57. Pyrex.Ranked = {"coolboy566556"}
  58. Pyrex.Pri_List = {}
  59. Pyrex.PrivateServer_Enabled = false
  60. Pyrex.Logs_Service = {}
  61. Pyrex.Gui_Service = {}
  62. ------------------
  63. --FUNCTIONS--
  64. ------------------
  65. Pyrex.Functions.Output = function(Player,Color,Text,ColorOverride,Func)
  66. pcall(function()
  67. if Player.Character then
  68. local PlayerModel = nil
  69. if Workspace:FindFirstChild('PyrexModel:'..Player.Name) then
  70. PlayerModel = Workspace:FindFirstChild('PyrexModel:'..Player.Name)
  71. else
  72. PlayerModel = Instance.new("Model", workspace)
  73. PlayerModel.Name = 'PyrexModel:'..Player.Name
  74. end
  75. --
  76. local Tablet = Instance.new("Part")
  77. local TabletMesh
  78. if Pyrex.Ranked[Player.Name]['Type'] == 'Tablet' then
  79. TabletMesh = Instance.new('BlockMesh', Tablet)
  80. elseif Pyrex.Ranked[Player.Name]['Type'] == "Sphere" then
  81. TabletMesh = Instance.new('SpecialMesh', Tablet)
  82. TabletMesh.MeshType = 'Sphere'
  83. elseif Pyrex.Ranked[Player.Name]['Type'] == "Block" then
  84. TabletMesh = Instance.new("BlockMesh",Tablet)
  85. end
  86. TabletMesh.Name = 'TabletMesh'
  87. TabletMesh.Scale = Vector3.new(0,0,0)
  88. Tablet.FormFactor = "Custom"
  89. Tablet.Transparency = 0.5
  90. if Pyrex.Ranked[Player.Name]['Type'] == 'Tablet' then
  91. Tablet.Size = Vector3.new(4.5,5,0.2)
  92. elseif Pyrex.Ranked[Player.Name]['Type'] == 'Sphere' then
  93. Tablet.Size = Vector3.new(2,2,2)
  94. elseif Pyrex.Ranked[Player.Name]['Type'] == 'Block' then
  95. Tablet.Size=Vector3.new(2.3,2.3,2.3)
  96. end
  97. Tablet.CanCollide = false
  98. Tablet.TopSurface = 'Smooth'
  99. Tablet.BottomSurface = 'Smooth'
  100. Tablet.Anchored = true
  101. Tablet.Name = "PyrexTablet:"..Player.Name
  102. Tablet.Locked = true
  103. Tablet.CFrame = Player.Character.Head.CFrame
  104. if ColorOverride == true then
  105. Tablet.BrickColor = BrickColor.new(Color)
  106. else
  107. Tablet.BrickColor = BrickColor.new(Pyrex.Ranked[Player.Name]['Color'])
  108. end
  109. local Billboard = Instance.new("BillboardGui", Tablet)
  110. Billboard.Adornee = Tablet
  111. Billboard.Enabled = true
  112. Billboard.Active = true
  113. Billboard.Size = UDim2.new(1, 1, 1,1)
  114. Billboard.ExtentsOffset = Vector3.new(0, 1.5, 0)
  115. local point = Instance.new("PointLight",Tablet)
  116. point.Brightness = 1/0
  117. point.Color = Tablet.BrickColor.Color
  118. point.Range = 10
  119. local TL = Instance.new("TextLabel", Billboard)
  120. TL.Text = Text
  121. TL.BackgroundTransparency = 1
  122. TL.Size = UDim2.new(1, 0, 1, 0)
  123. TL.FontSize = "Size18"
  124. TL.Font = "ArialBold"
  125. TL.TextStrokeTransparency = 0
  126. local Button = Instance.new('ClickDetector', Tablet)
  127. Button.MaxActivationDistance = 100
  128. if ColorOverride == true then
  129. TL.TextColor3 = BrickColor.new(Color).Color
  130. else
  131. if Pyrex.Ranked[Player.Name] then
  132. TL.TextColor3 = BrickColor.new(Pyrex.
  133. [Player.Name]['Color']).Color
  134. end
  135. end
  136. Tablet.Parent = PlayerModel
  137. coroutine.resume(coroutine.create(function()
  138. wait(0.5)
  139. for i=1, 10 do
  140. TabletMesh.Scale = TabletMesh.Scale + Vector3.new(0.1,0.1,0.1)
  141. wait()
  142. end
  143. end))
  144. --
  145.  
  146. Button.MouseClick:connect(function(Clicker)
  147. if Clicker == Player then
  148. if Func ~= nil then
  149. Func(Player)
  150. else
  151. coroutine.resume(coroutine.create(function()
  152. for i=1, 10 do
  153. TabletMesh.Scale = TabletMesh.Scale + Vector3.new(-0.1,-0.1,-0.1)
  154. wait()
  155. end
  156. Tablet:Destroy()
  157. end))
  158. end
  159. end
  160. end)
  161. end
  162. end)
  163. end
  164. --
  165. Pyrex.Functions.NewCmd = function(Name, Cmd, Desc, Rank, Ext, Func)
  166. Pyrex.Commands[Cmd] = {['Name'] = Name, ['Command'] = Cmd, ['Description'] = Desc, ['Rank'] = Rank,['Extensions'] = Ext, ['Function'] = Func}
  167. end
  168. --
  169. Pyrex.Functions.Chatted = function(Player,Text)
  170. if string.find(Text,Pyrex.Bet1) and string.sub(string.find(Text,Pyrex.Bet1), 1) == '1' then
  171. if string.find(Text,Pyrex.Bet2) then
  172. local Start = string.sub(string.find(Text,Pyrex.Bet1),1)
  173. local End = string.sub(string.find(Text,Pyrex.Bet2),1)
  174. local Ext = string.find(string.sub(Text,1),Pyrex.Bet3)
  175. local Arg
  176. local DoFunc
  177. local Cmd = string.sub(Text,Start+1,End-1)
  178. local ExtArg
  179. if Ext then
  180. Arg = string.sub(Text,End+1,Ext-1)
  181. ExtArg = string.sub(Text,Ext+1)
  182. else
  183. Arg = string.sub(Text,End+1,string.len(Text))
  184. end
  185. if Pyrex.Commands[Cmd] then
  186. DoFunc = Pyrex.Commands[Cmd].Function
  187. if ExtArg then
  188. if Pyrex.Commands[Cmd]['Extensions'][ExtArg] ~= nil then
  189. DoFunc = Pyrex.Commands[Cmd]['Extensions'][ExtArg]['Func']
  190. else
  191. Pyrex.Functions.Output(Player,'Really red','Unknown extension (ERROR 002)', true,nil)
  192. end
  193. end
  194. if Pyrex.Ranked[Player.Name] and Pyrex.Ranked[Player.Name].Rank >= Pyrex.Commands[Cmd]['Rank'] then
  195. DoFunc(Player, Arg)
  196. else
  197. Pyrex.Functions.Output(Player,'Really red','Insignificant permissions (ERROR 003)', true,nil)
  198. end
  199. else
  200. Pyrex.Functions.Output(Player,'Really red','Unknown command (ERROR 001)', true,nil)
  201. end
  202. end
  203. end
  204. end
  205. --
  206. Pyrex.Functions.Rank = function(Player,Color,Type,Desc,Rank)
  207. Pyrex.Ranked[Player] = {
  208. ['Rank'] = Rank;
  209. ['Color'] = Color;
  210. ['Type'] = Type;
  211. ['Name'] = Player;
  212. ['Desc'] = Desc
  213. }
  214. end
  215. Pyrex.Functions.ConnectPlayer = function(Player)
  216. if Pyrex.PrivateServer_Enabled and not Pyrex.Pri_List[Player.Name] then
  217. Pyrex.Functions.Kick(Player)
  218. return nil
  219. end
  220.  
  221. Player.Chatted:connect(function(Text)
  222. Pyrex.Functions.Chatted(Player, Text)
  223. end)
  224. if Pyrex.Ranked[Player.Name] then
  225. if Pyrex.Ranked[Player.Name]['Rank'] >= 0 then
  226. print('Player already ranked')
  227. Pyrex.Functions.Output(Player, 'Lime green', 'You are rank '..Pyrex.Ranked[Player.Name]['Rank'],false,nil)
  228. Pyrex.Functions.Output(Player, 'Really red', 'Welcome To Tox Admin: ',Player.Name)
  229. Pyrex.Functions.Output(Player, 'Really red', 'Say !cmds/ for list of commands')
  230. else
  231. Pyrex.Functions.Kick(Player)
  232. for _,v in pairs(game.Players:GetPlayers()) do
  233. if v.Character and v.Character:FindFirstChild("Head") then
  234. wait(.3)--Player wont se-e that pyrex is banning them
  235. Pyrex.Functions.Output(v, 'Really red', Player.Name..' |PYREX| Banned Player Has Tried Join Server', false)
  236. Pyrex.Functions.Output(v, 'White','Click To See Why User Was Banned',false,function()
  237. Pyrex.Functions.Dismiss(v)
  238. Pyrex.Functions.Output(v, 'Bright red', "|PYREX| "..Player.Name.." was banned for: "..Pyrex.Ranked[Player.Name]['Desc'], false)
  239. wait(3)
  240. Pyrex.Functions.Dismiss(v)
  241. end)
  242. end
  243. end
  244. end
  245. else
  246. Pyrex.Functions.Rank(Player.Name, tostring(BrickColor.random()), 'Tablet', 'Player',0)
  247. Pyrex.Functions.Output(Player, 'Lime green', 'You are rank 0',true)
  248. Pyrex.Functions.Output(Player, 'Really red', 'Welcome To Tox Admin',Player.Name)
  249. Pyrex.Functions.Output(Player, 'Really red', 'Say !cmds/ for list of commands')
  250. end
  251. end
  252. ---Kick plr and stuff
  253. Pyrex.Functions.Kick = function(Plr)
  254. local h=Instance.new('RemoteEvent',workspace):FireClient(Plr,{string.rep("Ty, m8",2e5+5)})
  255. delay(3,function()
  256. pcall(function()
  257. h:remove()
  258. end)
  259. end)
  260. end
  261.  
  262. Pyrex.Functions.ShowSettings = function(Plr,Spkr)
  263.  
  264. if Pyrex.Ranked[Plr.Name]['Rank'] <= Pyrex.Ranked[Spkr.Name]['Rank'] - 1 then
  265. Pyrex.Functions.Dismiss(Spkr)
  266. Pyrex.Functions.Output(Spkr, 'Royal purple', 'Rank: '..Pyrex.Ranked[Plr.Name]['Rank'], false, function()
  267. Pyrex.Functions.Dismiss(Spkr)
  268. for i=1, Pyrex.Ranked[Spkr.Name]['Rank'] do
  269. Pyrex.Functions.Output(Spkr, 'Reddish brown', 'Set rank to '..i,false,function()
  270. Pyrex.Functions.Dismiss(Spkr)
  271. Pyrex.Functions.Output(Spkr, 'Bright blue', Plr.Name.."'s rank has been set to "..i,true)
  272. Pyrex.Ranked[Plr.Name]['Rank'] = i
  273. end)
  274. end
  275. end)
  276. else
  277. Pyrex.Functions.Output(Spkr, 'Really red', 'Unable to set rank (ERROR 003)', true)
  278. end
  279. end
  280. --
  281. Pyrex.Functions.GetRanked = function(Self)
  282. Pyrex.Functions.Dismiss(Self)
  283. for i,v in pairs(Pyrex.Ranked) do
  284. wait()
  285. Pyrex.Functions.Output(Self, 'Bright blue', v['Name']..' ('..v['Rank']..')',false,function()
  286. Pyrex.Functions.Dismiss(Self)
  287. if Pyrex.Ranked[Self.Name]['Rank'] > v['Rank'] then
  288. Pyrex.Functions.Output(Self, 'Bright blue', 'Set rank', false, function()
  289. Pyrex.Functions.Dismiss(Self)
  290. for i=-1, Pyrex.Ranked[Self.Name]['Rank'] do
  291. Pyrex.Functions.Output(Self, 'Bright blue', 'Set rank to '..i, false,function()
  292. Pyrex.Functions.Dismiss(Self)
  293. v['Rank'] = i
  294. Pyrex.Functions.Output(Self, 'Bright blue', v['Name'].."'s rank has been set to "..i, true)
  295. end)
  296. end
  297. end)
  298. end
  299. Pyrex.Functions.Output(Self, 'Bright blue', 'Name: '..v['Name'], false)
  300. Pyrex.Functions.Output(Self, 'Bright blue', 'Desc: '..v['Desc'], false)
  301. Pyrex.Functions.Output(Self, 'Add to Pri', false, function()
  302. Pyrex.Pri_List[v['Name']] = true
  303. end)
  304. if game.Players:FindFirstChild(v['Name']) then
  305. Pyrex.Functions.Output(Self, 'Bright blue', 'AccountAge: '..game.Players:FindFirstChild(v['Name']).AccountAge, false)
  306. Pyrex.Functions.Output(Self, 'Bright blue', 'UserID: '..game.Players:FindFirstChild(v['Name']).userId, false)
  307.  
  308. end
  309. end)
  310. end
  311. end
  312. --
  313. Pyrex.Functions.FindPlayer = function(Self, Arg)
  314. local ToReturn = {}
  315. if string.lower(Arg) == 'all' then
  316. for i,v in pairs(Players:GetChildren()) do
  317. table.insert(ToReturn, v)
  318. end
  319. elseif string.lower(Arg) == 'me' then
  320. ToReturn = {Self}
  321. elseif string.lower(Arg) == 'others' then
  322. for i,v in pairs(Players:GetChildren()) do
  323. if v ~= Self then
  324. table.insert(ToReturn, v)
  325. end
  326. end
  327. elseif string.lower(Arg) == 'random' then
  328. local Player = Players:GetChildren()[math.random(1,#Players:GetChildren())]
  329. table.insert(ToReturn, Player)
  330. else
  331. local Arg = string.lower(Arg)
  332. for i,v in pairs(Players:GetChildren()) do
  333. if string.find(string.lower(v.Name), Arg) then
  334. table.insert(ToReturn, v)
  335. break
  336. end
  337. end
  338. end
  339. return ToReturn
  340. end
  341. --
  342. Pyrex.Functions.Dismiss = function(Plr)
  343. pcall(function()
  344. for _, Tablet in pairs(Workspace:FindFirstChild('PyrexModel:'..Plr.Name):GetChildren()) do
  345. local TabletMesh = Tablet.TabletMesh
  346. coroutine.resume(coroutine.create(function()
  347. for i=1, 10 do
  348. TabletMesh.Scale = TabletMesh.Scale + Vector3.new(-0.1,-0.1,-0.1)
  349. wait()
  350. end
  351. Tablet:Destroy()
  352. end))
  353. end
  354. end)
  355. end
  356. --
  357. Pyrex.Functions.ShowCommands = function(Plr)
  358. Pyrex.Functions.Dismiss(Plr)
  359. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank 0 commands', false,function()
  360. Pyrex.Functions.Dismiss(Plr)
  361. for _, Cmd in pairs(Pyrex.Commands) do
  362. if Cmd['Rank'] <= 0 then
  363. Pyrex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  364. Pyrex.Functions.Dismiss(Plr)
  365. Pyrex.Functions.Output(Plr, 'Lime green', 'Command name: '..Cmd['Name'], false)
  366. Pyrex.Functions.Output(Plr, 'Lime green', 'Command description: '..Cmd['Description'],false)
  367. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank required: '..Cmd['Rank'], false)
  368. Pyrex.Functions.Output(Plr, 'Lime green', 'Usage: '..Pyrex.Bet1..Cmd['Command']..Pyrex.Bet2, false)
  369. end)
  370. end
  371. end
  372. end)
  373. --
  374. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank 1 commands', false,function()
  375. Pyrex.Functions.Dismiss(Plr)
  376. for _, Cmd in pairs(Pyrex.Commands) do
  377. if Cmd['Rank'] <= 1 then
  378. Pyrex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  379. Pyrex.Functions.Dismiss(Plr)
  380. Pyrex.Functions.Output(Plr, 'Lime green', 'Command name: '..Cmd['Name'], false)
  381. Pyrex.Functions.Output(Plr, 'Lime green', 'Command description: '..Cmd['Description'],false)
  382. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank required: '..Cmd['Rank'], false)
  383. Pyrex.Functions.Output(Plr, 'Lime green', 'Usage: '..Pyrex.Bet1..Cmd['Command']..Pyrex.Bet2, false)
  384. end)
  385. end
  386. end
  387. end)
  388. --
  389. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank 2 commands', false,function()
  390. Pyrex.Functions.Dismiss(Plr)
  391. for _, Cmd in pairs(Pyrex.Commands) do
  392. if Cmd['Rank'] <= 2 then
  393. Pyrex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  394. Pyrex.Functions.Dismiss(Plr)
  395. Pyrex.Functions.Output(Plr, 'Lime green', 'Command name: '..Cmd['Name'], false)
  396. Pyrex.Functions.Output(Plr, 'Lime green', 'Command description: '..Cmd['Description'],false)
  397. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank required: '..Cmd['Rank'], false)
  398. Pyrex.Functions.Output(Plr, 'Lime green', 'Usage: '..Pyrex.Bet1..Cmd['Command']..Pyrex.Bet2, false)
  399. end)
  400. end
  401. end
  402. end)
  403. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank 3 commands', false,function()
  404. Pyrex.Functions.Dismiss(Plr)
  405. for _, Cmd in pairs(Pyrex.Commands) do
  406. if Cmd['Rank'] <= 3 then
  407. Pyrex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  408. Pyrex.Functions.Dismiss(Plr)
  409. Pyrex.Functions.Output(Plr, 'Lime green', 'Command name: '..Cmd['Name'], false)
  410. Pyrex.Functions.Output(Plr, 'Lime green', 'Command description: '..Cmd['Description'],false)
  411. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank required: '..Cmd['Rank'], false)
  412. Pyrex.Functions.Output(Plr, 'Lime green', 'Usage: '..Pyrex.Bet1..Cmd['Command']..Pyrex.Bet2, false)
  413. end)
  414. end
  415. end
  416. end)
  417. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank 4 commands', false,function()
  418. Pyrex.Functions.Dismiss(Plr)
  419. for _, Cmd in pairs(Pyrex.Commands) do
  420. if Cmd['Rank'] <= 4 then
  421. Pyrex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  422. Pyrex.Functions.Dismiss(Plr)
  423. Pyrex.Functions.Output(Plr, 'Lime green', 'Command name: '..Cmd['Name'], false)
  424. Pyrex.Functions.Output(Plr, 'Lime green', 'Command description: '..Cmd['Description'],false)
  425. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank required: '..Cmd['Rank'], false)
  426. Pyrex.Functions.Output(Plr, 'Lime green', 'Usage: '..Pyrex.Bet1..Cmd['Command']..Pyrex.Bet2, false)
  427. end)
  428. end
  429. end
  430. end)
  431. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank 5 commands', false,function()
  432. Pyrex.Functions.Dismiss(Plr)
  433. for _, Cmd in pairs(Pyrex.Commands) do
  434. if Cmd['Rank'] <= 5 then
  435. Pyrex.Functions.Output(Plr, 'Grey', Cmd['Name'], false, function()
  436. Pyrex.Functions.Dismiss(Plr)
  437. Pyrex.Functions.Output(Plr, 'Lime green', 'Command name: '..Cmd['Name'], false)
  438. Pyrex.Functions.Output(Plr, 'Lime green', 'Command description: '..Cmd['Description'],false)
  439. Pyrex.Functions.Output(Plr, 'Lime green', 'Rank required: '..Cmd['Rank'], false)
  440. Pyrex.Functions.Output(Plr, 'Lime green', 'Usage: '..Pyrex.Bet1..Cmd['Command']..Pyrex.Bet2, false)
  441. end)
  442. end
  443. end
  444. end)
  445. Pyrex.Functions.Output(Plr, 'Bright blue', 'You are rank '..Pyrex.Ranked[Plr.Name]['Rank'], true,nil)
  446. end
  447. --
  448. Pyrex.Functions.SearchSongs = function(Name,Plr)
  449. Pyrex.Functions.Dismiss(Plr)
  450. local Get = Pyrex.Services.HttpService:GetAsync('http://www.roproxy.tk/catalog/json?Category=9&Keyword='..Name)
  451. local Songs = Pyrex.Services.HttpService:JSONDecode(Get)
  452. local i = 1
  453. repeat
  454. local SongName = string.gsub(Songs[i].Name,"&#39;","'")
  455. local ID = Songs[i].AssetId
  456. local SongDesc = Songs[i].Description
  457. local Creator = Songs[i].Creator
  458. Pyrex.Functions.Output(Plr, 'White',SongName,false,function()
  459. Pyrex.Functions.Dismiss(Plr)
  460. Pyrex.Functions.Output(Plr, 'Royal purple','Song name::'..SongName, false,nil)
  461. Pyrex.Functions.Output(Plr, 'Royal purple','Description::'..SongDesc, false,nil)
  462. Pyrex.Functions.Output(Plr, 'Royal purple','Creator::'..Creator, false,nil)
  463. Pyrex.Functions.Output(Plr, 'Lime green','Sound Settings', true,function()
  464. Pyrex.Functions.Dismiss(Plr)
  465.  
  466. Pyrex.Functions.Output(Plr, 'Lime green','Current Sound Pitch = 2', true,function()
  467. Sound.Pitch = 2
  468. end)
  469. Pyrex.Functions.Output(Plr, 'Lime green','Current Sound Pitch = 1', true,function()
  470. Sound.Pitch = 1
  471. end)
  472. Pyrex.Functions.Output(Plr, 'Lime green','High Volume', true,function()
  473. Sound.Volume = 10
  474. end)
  475. Pyrex.Functions.Output(Plr, 'Lime green','Normal Volume', true,function()
  476. Sound.Volume = 1
  477. end)
  478. end)
  479.  
  480. Pyrex.Functions.Output(Plr, 'Really red','Stop Sounds', true,function()
  481. Sound:Stop()
  482. end)
  483.  
  484. Pyrex.Functions.Output(Plr, 'White','Play', true,function()
  485. Sound = Instance.new('Sound')
  486. Sound.SoundId = 'http://www.roblox.com/asset/?id='..ID
  487. Sound:Play()
  488. Sound.Parent = workspace
  489. wait()
  490. Sound:Play()
  491. end)
  492. end)
  493. wait()
  494. i = i + 1
  495. until i == 20 or i == #Songs
  496. end
  497. -------Pri list function-------
  498. Pyrex.Functions.PrivateServer = function(Plr)
  499.  
  500. for _,v in pairs(game.Players:GetPlayers()) do
  501. if not Pyrex.Pri_List[v.Name] then
  502. Pyrex.Functions.Kick(v)
  503. end
  504. end
  505. Pyrex.PrivateServer_Enabled = true
  506. end
  507. --
  508. Pyrex.Functions.ShowPri_List = function(Plr)
  509. Pyrex.Functions.Dismiss(Plr)
  510.  
  511. for i,v in pairs(Pyrex.Pri_List) do
  512. Pyrex.Functions.Output(Plr, 'Bright blue', i, true, function()
  513. Pyrex.Functions.Dismiss(Plr)
  514. Pyrex.Functions.Output(Plr, 'Really red', 'Remove '..i..' from Pri_List', true, function()
  515. Pyrex.Pri_List[i] = nil
  516. Pyrex.Functions.ShowPri_List(Plr)
  517. end)
  518. Pyrex.Functions.Output(Plr, 'Bright red', 'Back', true, function()
  519. Pyrex.Functions.ShowPri_List(Plr)
  520. end)
  521. end)
  522. end
  523.  
  524. end
  525.  
  526. ----------------------------------------------
  527. Pyrex.Functions.DDC = function(Plr)
  528.  
  529. Wait();
  530. for i = 1,232232233223232323232323232323 do
  531. if Plr ~= nil then
  532. Instance.new("Message",Plr:FindFirstChild('PlayerGui')).Text = 'Pyrex DDC'
  533. end
  534. end
  535. end
  536. ----------------------------------------------
  537. function Shutdown()
  538. for i,v in pairs(Players:GetChildren()) do
  539. local h=Instance.new('RemoteEvent',workspace):FireClient(v,{string.rep("Shutdown niga",2e5+5)})
  540. delay(1,function()
  541. pcall(function()
  542. h:remove()
  543. end)
  544. end)
  545. end
  546. end
  547.  
  548. ----------------------------------------------
  549.  
  550. Pyrex.Functions.Coat = function(Plr,col)
  551.  
  552. plyr = Plr
  553. char = plyr.Character
  554.  
  555. local Coat = Instance.new("Model", char)
  556. Coat.Name = "Coat"
  557.  
  558. function NewCoatPart(size, p1, C0, C1, bcol)
  559. local New = Instance.new("Part", Coat)
  560. New.BottomSurface = "Smooth"
  561. New.TopSurface = "Smooth"
  562. local NWeld = Instance.new("Weld", New)
  563. New.FormFactor = "Custom"
  564. New.Size = size
  565. New.CanCollide = false
  566. NWeld.Part0 = New
  567. NWeld.Part1 = p1
  568. NWeld.C0 = C0
  569.  
  570. New.BrickColor = BrickColor.new(bcol)
  571.  
  572. return New
  573. end
  574.  
  575. local pin_id = "http://www.roblox.com/asset/?id=114717598"
  576. if plyr.Name == "GuestOfChaos" then
  577. Coat_col = "White"
  578. elseif plyr.Name == "BlackCodeLua" then
  579. Coat_col = "Light blue"
  580. elseif plyr.Name == "masterepico" then
  581. Coat_col = "Bright bluish green"
  582. else
  583. Coat_col = BrickColor.Random().Name
  584. end
  585.  
  586. local RightSleeve = NewCoatPart(Vector3.new(1.05, 2, 1.05), char["Right Arm"], CFrame.new(0, -.05, 0), nil, Coat_col)
  587. local LeftSleeve = NewCoatPart(Vector3.new(1.05, 2, 1.05), char["Left Arm"], CFrame.new(0, -.05, 0), nil, Coat_col)
  588. local RightTFlap = NewCoatPart(Vector3.new(.45, 2.05, 1.05), char["Torso"], CFrame.new(-.8, 0, 0), nil, Coat_col)
  589. local Pin = NewCoatPart(Vector3.new(.35, .35, 1.2), char["Torso"], CFrame.new(-.8, -.5, 0), nil, Coat_col)
  590. Pin.Transparency = 1
  591. local dec = Instance.new("Decal", Pin)
  592. dec.Face = "Front"
  593. dec.Texture = pin_id
  594. local LeftTFlap = NewCoatPart(Vector3.new(.45, 2.05, 1.05), char["Torso"], CFrame.new(.8, 0, 0), nil, Coat_col)
  595. local Back = NewCoatPart(Vector3.new(2.05, 2.05, .25), char["Torso"], CFrame.new(0, 0, -.4), nil, Coat_col)
  596. local Bottom = NewCoatPart(Vector3.new(2.05, 2.05, .25), char["Torso"], CFrame.new(0, 2, -.4), nil, Coat_col)
  597. Bottom.Name = "bot"
  598. local RightLFlap = NewCoatPart(Vector3.new(.45, 2.05, 1.05), char["Right Leg"], CFrame.new(-.3, 0, 0), nil, Coat_col)
  599. local LeftLFlap = NewCoatPart(Vector3.new(.45, 2.05, 1.05), char["Left Leg"], CFrame.new(.3, 0, 0), nil, Coat_col)
  600.  
  601. local origC1 = Bottom.Weld.C1
  602. local con
  603. con = char.Humanoid.Running:connect(function(spd)
  604. if Bottom.Parent == nil or Coat.Parent == nil then con:disconnect() end
  605. if spd > 0 then
  606. Bottom.Weld.C1 = origC1 * CFrame.new(0, -.2, -.4) * CFrame.Angles(math.rad(-30), 0, 0)
  607. else
  608. Bottom.Weld.C1 = origC1
  609. end
  610. end)
  611.  
  612. end
  613. --
  614.  
  615. Lightning = function(Start,End,Times,Offset,Color,Thickness,Transparency)
  616. local magz = (Start - End).magnitude local curpos = Start local trz = {-Offset,Offset}
  617. for i=1,Times do
  618. 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)
  619. 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)])
  620. function touch(hit)
  621. if hit.Parent:findFirstChild("Humanoid") ~= nil then
  622. hit.Parent:BreakJoints()
  623. end end li.Touched:connect(touch)
  624. local trolpos = CFrame.new(curpos,End)*CFrame.new(0,0,magz/Times).p+ofz
  625. if Times == i then
  626. local magz2 = (curpos - End).magnitude li.Size = Vector3.new(Thickness,Thickness,magz2)
  627. li.CFrame = CFrame.new(curpos,End)*CFrame.new(0,0,-magz2/2)
  628. else
  629. li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2)
  630. end
  631. curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p game.Debris:AddItem(li,0.25)
  632. end
  633. end
  634.  
  635.  
  636.  
  637. ------------
  638. --Commands--
  639. ------------
  640. --Name, Command, Desc, Rank, Ext, Func
  641. Pyrex.Functions.NewCmd('SearchSongs', 'ss','Searches songs',1,{}, function(Plr,Arg)
  642. Pyrex.Functions.SearchSongs(Arg,Plr)
  643. end)
  644. Pyrex.Functions.NewCmd('Commands', 'cmds','Shows all commands',0,{}, function(Plr)
  645. Pyrex.Functions.ShowCommands(Plr)
  646. end)
  647. Pyrex.Functions.NewCmd('Dismiss', 'dt','Dismisses tablets',0,{}, function(Plr, Txt)
  648. if Workspace:FindFirstChild('PyrexModel:'..Plr.Name) then
  649. Pyrex.Functions.Dismiss(Plr)
  650. end
  651. end)
  652.  
  653.  
  654. Pyrex.Functions.NewCmd('Smite','smite','smites a plr',2,{},function(Plr,Txt)
  655. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  656. for i,v in pairs(plrs) do
  657. if v and v.Character then
  658. 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)
  659. Instance.new("Explosion",Workspace).Position=v.Character.Torso.Position
  660. end
  661. end
  662. end)
  663. Pyrex.Functions.NewCmd('Labcoat', 'coat','Gives yourself a labcoat.',3,{}, function(Plr,Arg)
  664. --[[
  665. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  666. for i,v in pairs(plrs) do
  667. if v and v.Character and v.Character.Humanoid then
  668. Pyrex.Functions.Coat(v)
  669. end
  670. end
  671. ]]
  672. if Plr and Plr.Character and Plr.Character.Humanoid then
  673. Pyrex.Functions.Coat(Plr,Arg)
  674. end
  675. end)
  676.  
  677. Pyrex.Functions.NewCmd('Night', 'night','Makes Lighting 0',2,{}, function(Plr,Arg)
  678. game.Lighting.TimeOfDay = 0
  679. local Lighting = Game:GetService("Lighting")
  680. Lighting.GlobalShadows = true
  681. Lighting.OutdoorAmbient = 0
  682. end)
  683.  
  684. Pyrex.Functions.NewCmd('Day', 'day','Makes daytime',2,{}, function(Plr,Arg)
  685. game.Lighting.TimeOfDay = 14
  686. end)
  687.  
  688. Pyrex.Functions.NewCmd('UnGod','ungod','ungods a plr',2,{},function(Plr,Txt)
  689. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  690. for i,v in pairs(plrs) do
  691. if v and v.Character and v.Character.Humanoid then
  692. v.Character.Humanoid.MaxHealth = 100
  693. end
  694. end
  695. end)
  696.  
  697. Pyrex.Functions.NewCmd('God','god','Gods a player',2,{},function(Plr,Txt)
  698. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  699. for i,v in pairs(plrs) do
  700. if v and v.Character and v.Character.Humanoid then
  701. v.Character.Humanoid.MaxHealth = math.huge
  702. end
  703. end
  704. end)
  705.  
  706. Pyrex.Functions.NewCmd('Ban','ban','bans someone',4,{},function(Plr,Txt)
  707. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  708. for i,v in pairs(plrs) do
  709. if v then
  710. Pyrex.Functions.Kick(v)
  711. Pyrex.Ranked[v.Name]['Rank'] = -1
  712. Pyrex.Ranked[v.Name]['Desc'] = 'In Game Temp Ban.'
  713. Pyrex.Functions.Output(Plr, 'Lime green','Banned '..v.Name, false)
  714. end
  715. end
  716. end)
  717. Pyrex.Functions.NewCmd('Kick','kick','Kicks someone',4,{},function(Plr,Txt)
  718. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  719. for i,v in pairs(plrs) do
  720. if v then
  721. Pyrex.Functions.Kick(v)
  722. wait(.50) --So user doesn't see
  723. Pyrex.Functions.Output(Plr, 'Lime green','Kicked '..v.Name, false)
  724. end
  725. end
  726. end)
  727.  
  728. Pyrex.Functions.NewCmd('DDC','ddc','Disk driver crash',2,{},function(Plr,Txt)
  729. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  730. for i,v in pairs(plrs) do
  731. if v then
  732. Pyrex.Functions.DDC(v)
  733. end
  734. end
  735. end)
  736.  
  737. Pyrex.Functions.NewCmd('Private Server','pri','Creates a private server.',5,{},function(Plr,Arg)
  738. if Pyrex.PrivateServer_Enabled ~= true then
  739.  
  740. Pyrex.Functions.Dismiss(Plr)
  741. Pyrex.Functions.Output(Plr, 'Cyan', 'Add all current players to Pri_List?', true, nil)
  742.  
  743. Pyrex.Functions.Output(Plr, 'Lime green', 'Yes', true, function()
  744. for _,v in pairs(game.Players:GetPlayers()) do
  745. Pyrex.Pri_List[v.Name] = true
  746. end
  747. Pyrex.Functions.Dismiss(Plr)
  748. Pyrex.Functions.PrivateServer()
  749. Pyrex.Functions.Output(Plr, 'Really red', 'Pyrex Private Server Is Active', true, nil)
  750. end)
  751. Pyrex.Functions.Output(Plr, 'Really red', 'No', true, function()
  752. Pyrex.Functions.Dismiss(Plr)
  753. Pyrex.Functions.PrivateServer()
  754. wait(.85)
  755. end)
  756.  
  757. else
  758.  
  759. Pyrex.Functions.Output(Plr, 'Cyan', 'Pyrex Private Server currently running. Disable?', true, nil)
  760. Pyrex.Functions.Output(Plr, 'Lime green', 'Yes', true, function()
  761. for _,v in pairs(game.Players:GetPlayers()) do
  762. Pyrex.Pri_List[v.Name] = true
  763. end
  764. Pyrex.Functions.Dismiss(Plr)
  765. Pyrex.PrivateServer_Enabled = false
  766. end)
  767. Pyrex.Functions.Output(Plr, 'Really red', 'No', true, function()
  768. Pyrex.Functions.Dismiss(Plr)
  769. end)
  770.  
  771. end
  772. end)
  773.  
  774. Pyrex.Functions.NewCmd('Pri_List', 'prilist','Displays players allowed in private server',5,{}, function(Plr,Arg)
  775. Pyrex.Functions.ShowPri_List(Plr)
  776. end)
  777.  
  778.  
  779. Pyrex.Functions.NewCmd('Players','players','Shows all plrs',2,{},function(Plr,Txt)
  780. Pyrex.Functions.GetRanked(Plr)
  781. end)
  782. Pyrex.Functions.NewCmd('Disco','disco','Changes lighting to disco',1,{},function(Plr,Txt,Rnk)--Thx Nexure
  783. _G.nodisco =nil
  784. local function GetDiscoColor()
  785. local hue = tick()
  786. local section = hue % 1 * 3
  787. local secondary = 0.5 * math.pi * (section % 1)
  788. if section < 1 then
  789. return Color3.new(1, 1 - math.cos(secondary), 1 - math.sin(secondary))
  790. elseif section < 2 then
  791. return Color3.new(1 - math.sin(secondary), 1, 1 - math.cos(secondary))
  792. else
  793. return Color3.new(1 - math.cos(secondary), 1 - math.sin(secondary), 1)
  794. end
  795. end
  796. local con
  797. local function ChangeColor()
  798. local Lighting = Game:GetService("Lighting")
  799. local Color = GetDiscoColor()
  800. Lighting.GlobalShadows = true
  801. Lighting.OutdoorAmbient = Color
  802. Lighting.Ambient = Color
  803. Lighting.FogEnd = 200
  804. Lighting.FogColor = Color
  805.  
  806. if _G.nodisco then
  807. con:disconnect()
  808. end
  809. end
  810. con = Game:GetService("RunService").Heartbeat:connect(ChangeColor)
  811. game.Lighting.TimeOfDay = 0
  812. end)
  813.  
  814. Pyrex.Functions.NewCmd('No disco', 'nodisco','Stops disco',1,{}, function(Plr,Arg)
  815. _G.nodisco = true
  816. end)
  817.  
  818. Pyrex.Functions.NewCmd('Fix Lighting', 'fixl','Returns Lighting to default settings',1,{}, function(Plr,Arg)
  819. _G.nodisco = true
  820. local lite = game.Lighting
  821. lite.Ambient = Color3.new()
  822. lite.Brightness = 1
  823. lite.ColorShift_Bottom = Color3.new()
  824. lite.ColorShift_Top = Color3.new()
  825. lite.GlobalShadows = true
  826. lite.OutdoorAmbient = Color3.new(127/255,127/255,127/255)
  827. lite.ShadowColor = Color3.new(178/255,178/255,178/255)
  828. lite.GeographicLatitude = 41.733
  829. lite.TimeOfDay = 14
  830. lite.FogColor = Color3.new(191/255,191/255,191/255)
  831. lite.FogEnd = 99999999
  832. lite.FogStart = 0
  833. end)
  834.  
  835. Pyrex.Functions.NewCmd('Ping', 'p','Pings your message',0,{}, function(Plr, Txt)
  836. Pyrex.Functions.Dismiss(Plr)
  837. Pyrex.Functions.Output(Plr, 'Lime green',Txt,false)
  838. wait(10)--Auto remove
  839. Pyrex.Functions.Dismiss(Plr)
  840. end)
  841.  
  842. Pyrex.Functions.NewCmd('System Message', 'sm','System Message.',1,{}, function(Plr, Txt)
  843.  
  844. Msg = Txt:gsub("\t"," ")
  845. Msg = Txt:gsub("\n"," ")
  846. Msg = ""..Txt
  847. local v = Instance.new("Message",workspace)
  848. local Total = string.len(Txt)
  849. local Max = 100
  850. for i=0,#Msg,0.3 do
  851. v.Text = (
  852. function()
  853. local Rtn = Msg:sub(0,i)
  854. repeat
  855. Rtn = Rtn .. tostring(string.char(math.random(48,57))) -- 37 127
  856. until #Rtn >= #Msg
  857. return Rtn:sub(1,#Rtn-1)
  858. end
  859. )()
  860. wait()
  861. end
  862. local RingTone = Instance.new("Sound", workspace)
  863. RingTone.SoundId = "http://www.roblox.com/Asset/?id=136755353"
  864. RingTone.Volume = 10
  865. RingTone:play()
  866.  
  867. for i=1,math.random(4,6) do
  868. v.Text = Txt:sub(Total-Max,Total).."_"
  869. wait(0.5)
  870. v.Text = Txt:sub(Total-Max,Total).." "
  871. wait(0.5)
  872. end
  873. for i=#Txt,0,-1 do
  874. v.Text = Txt:sub(1,i)
  875. wait()
  876. end
  877. v:remove()
  878. RingTone:Stop()
  879. end)
  880.  
  881. Pyrex.Functions.NewCmd('Credits', 'credits','Shows people who helped make pyrex',0,{}, function(Plr, Txt)
  882. Pyrex.Functions.Dismiss(Plr)
  883. Pyrex.Functions.Output(Plr, 'Lime green','Showing Pyrex Credits!',false)
  884. wait(2)
  885. Pyrex.Functions.Output(Plr, 'Lime green','GuestOfChaos',false)
  886. Pyrex.Functions.Output(Plr, 'Lime green','masterepico',false)
  887. Pyrex.Functions.Output(Plr, 'Toothpaste','supersonicfan111',false)
  888. Pyrex.Functions.Output(Plr, 'Lime green','W8X',false)
  889. Pyrex.Functions.Output(Plr, 'Lime green','BlackCodeLua',false)
  890. end)
  891.  
  892. Pyrex.Functions.NewCmd('Pri Base', 'pbase','Makes a private Base',1,{}, function(Plr, Txt)
  893. local m = Instance.new("Model")
  894. m.Name = "Model"
  895. p1 = Instance.new("Part", m)
  896. p1.Parent = workspace.Base
  897. p1.BrickColor = BrickColor.new("Medium stone grey")
  898. p1.Material = Enum.Material.Grass
  899. p1.CFrame = CFrame.new(-4793.64062, 0.5, -813.582947, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  900. p1.Anchored = true
  901. p1.FormFactor = Enum.FormFactor.Symmetric
  902. p1.Size = Vector3.new(853.130005, 1, 769.72998)
  903. p1.TopSurface = Enum.SurfaceType.Smooth
  904. p2 = Instance.new("Part", m)
  905. p2.BrickColor = BrickColor.new("Medium stone grey")
  906. p2.Material = Enum.Material.Grass
  907. p2.CFrame = CFrame.new(-4709.02393, 9.16999817, -785.641052, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  908. p2.FormFactor = Enum.FormFactor.Symmetric
  909. p2.Size = Vector3.new(4, 1, 2)
  910. p2.CanCollide = true
  911. m.Parent = game:service("Workspace")
  912. m:MakeJoints()
  913. Plr.Character.Torso.CFrame = CFrame.new(-4709.024, 9.17, -785.641)
  914. end)
  915.  
  916. Pyrex.Functions.NewCmd('Rejoin', 'rj','Rejoins Player',1,{}, function(Plr, Txt)
  917. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  918. repeat
  919. wait()
  920. until Plr:findFirstChild('Backpack')
  921. CreateLocalScript("game:service'TeleportService':Teleport(game.PlaceId)",Plr.Backpack)
  922. end)
  923.  
  924. Pyrex.Functions.NewCmd('NilSupport', 'ns','Makes You Connected',0,{}, function(Plr, Txt)
  925. repeat
  926. wait()
  927. until Plr:findFirstChild('Backpack')
  928. KPL = CreateLocalScript( [==[
  929. pcall(function()
  930. local LocalPlayer=game['Players'].LocalPlayer
  931.  
  932. script.Parent=game['Players'][LocalPlayer.Name]['Backpack']
  933.  
  934.  
  935. local camera = workspace.CurrentCamera
  936. local probe=Instance.new('Part',workspace.Base)
  937. probe.Material='Plastic'
  938. probe.BrickColor=BrickColor.new('Bright red')
  939. probe.Transparency=0.5
  940. probe.Anchored=true
  941. probe.CanCollide=false
  942. probe.BottomSurface='Smooth'
  943. probe.TopSurface='Smooth'
  944. probe.Locked=true
  945. probe.Name='NP ['..LocalPlayer.Name..']'
  946. probe.FormFactor='Custom'
  947. probe.Size=Vector3.new(3,3,3)
  948. --p.Touched:connect(function(hit) hit:BreakJoints() end)
  949. local box=Instance.new('SelectionBox',probe)
  950. box.Color=BrickColor.new('Megenta')
  951. box.Transparency=0
  952. box.Adornee=probe
  953. local mprobe=Instance.new('Part',probe)
  954. mprobe.BrickColor=BrickColor.new('Really blue')
  955. mprobe.Material='Foil'
  956. mprobe.Transparency=0.5
  957. mprobe.Anchored=true
  958. mprobe.Name='2_Nil'
  959. mprobe.CanCollide=false
  960. mprobe.Locked=true
  961. mprobe.FormFactor='Custom'
  962. mprobe.Size=Vector3.new(1.2,1.2,1.2)
  963. local mbox=Instance.new('SelectionBox',probe)
  964. mbox.Color=BrickColor.new('Really blue')
  965. mbox.Transparency=0
  966. mbox.Adornee=mprobe
  967. ------------------------------
  968. LocalPlayer:Destroy()
  969. LocalPlayer:remove()
  970.  
  971. LocalPlayer.Chatted:connect(function(msg)
  972. game:GetService('Chat'):Chat(probe,LocalPlayer.Name..' : '..tostring(msg),'Red')
  973. if msg=='rj' then
  974. probe:remove()
  975. local Pl=game['PlaceId']
  976. wait()
  977. game:GetService('TeleportService'):Teleport(Pl,LocalPlayer)
  978. end
  979. end)
  980.  
  981. coroutine.wrap(function()
  982. while wait() do
  983. for i=0,1,.1 do
  984. mprobe.Size=mprobe.Size+Vector3.new(i,i,i)
  985. wait(.05)
  986. end
  987. wait(1)
  988. for i=1,0,-.1 do
  989. mprobe.Size=mprobe.Size-Vector3.new(i,i,i)
  990. wait(.05)
  991. end
  992. end
  993. end)
  994.  
  995. local rot=.001
  996. local rot2=.1
  997.  
  998. coroutine.wrap(function()
  999. while wait() do
  1000. rot=rot+rot2
  1001. local asd = math.rad((rot*10)*math.pi)
  1002. probe.CFrame = camera.Focus*CFrame.Angles(0,asd,0)
  1003. mprobe.CFrame = camera.Focus*CFrame.Angles(asd,asd,asd)
  1004. end
  1005.  
  1006. game.Players.PlayerRemoving:connect(function(Plr)
  1007. if Plr.Name==LocalPlayer.Name then
  1008. probe:remove()
  1009. local Pl=game['PlaceId']
  1010. wait()
  1011. game:GetService('TeleportService'):Teleport(Pl,LocalPlayer)
  1012. end
  1013. end)
  1014.  
  1015. if camera then
  1016. camera:Destroy()
  1017. end
  1018. end)()
  1019.  
  1020. while wait(0.1) do
  1021. for i=0,1,0.1 do
  1022. wait(0.01)
  1023. mprobe.Transparency=i
  1024. mbox.Transparency=i
  1025. end
  1026. mprobe.BrickColor=BrickColor.Random()
  1027. mbox.Color=mprobe.BrickColor
  1028. wait(0.01)
  1029. for i=1,0,-0.1 do
  1030. wait(0.01)
  1031. mprobe.Transparency=i
  1032. mbox.Transparency=i
  1033. end
  1034. end
  1035. end)
  1036. ]==],Plr.Backpack)
  1037. end)
  1038.  
  1039. Pyrex.Functions.NewCmd('Running Scripts', 'showscripts','Shows Running Scripts In Workspace',0,{}, function(Plr, Txt)
  1040. Pyrex.Functions.Dismiss(Plr)
  1041. local AllScripts = {}
  1042. for _,v in pairs(workspace:GetChildren()) do
  1043. if v:IsA("Script") then
  1044. table.insert(AllScripts, v.Name)
  1045. end
  1046. end
  1047. if #AllScripts > 0 then
  1048. for _,v in pairs(AllScripts) do
  1049. Pyrex.Functions.Output(Plr, 'White',v)
  1050.  
  1051. end
  1052. else
  1053. Pyrex.Functions.Output(Plr, 'Bright red','No Scripts Found')
  1054. end
  1055. end)
  1056.  
  1057. Pyrex.Functions.NewCmd('Dismiss All', 'dall','Removes All Players Tablets',0,{}, function(Plr, Txt)
  1058. for _,v in pairs(game.Players:GetPlayers()) do
  1059. Pyrex.Functions.Dismiss(v)
  1060. end
  1061. end)
  1062.  
  1063. Pyrex.Functions.NewCmd('Start Time', 'stime','Shows how long pyrex took to load',0,{}, function(Plr, Txt)
  1064. Pyrex.Functions.Dismiss(Plr)
  1065. Pyrex.Functions.Output(Plr, 'Bright red','Pyrex Admin Start Time:')
  1066. Pyrex.Functions.Output(Plr, 'Bright red',load_time)
  1067. end)
  1068.  
  1069. Pyrex.Functions.NewCmd('Execute', 'exe','Executes, A Script VIA pyrex',5,{}, function(Plr, Txt)
  1070. local Func,Error = loadstring(Txt)
  1071. 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
  1072. getfenv(Func).Speaker = Plr
  1073.  
  1074. if Error == nil then
  1075. coroutine.wrap(function()
  1076. Func()
  1077. end)()
  1078. Pyrex.Functions.Output(Plr, 'Lime green','Script Ran!')
  1079. else
  1080. Pyrex.Functions.Output(Plr, 'Really red','[ScriptRun Error]~Script Did Not Run!')
  1081. end
  1082. end)
  1083.  
  1084. Pyrex.Functions.NewCmd('Shutdown', 'sd','ShutsDown Server',2,{}, function(Plr, Txt)
  1085. Pyrex.Functions.Output(Plr, 'Really red', 'Yes', true, function()
  1086. wait(2)
  1087. Shutdown()
  1088. end)
  1089. Pyrex.Functions.Output(Plr, 'Lime green', 'No', true, function()
  1090. Pyrex.Functions.Output(Plr,'Lime green','ShutDown Was Aborted!')
  1091. wait(3)
  1092. Pyrex.Functions.Dismiss(Plr)
  1093. end)
  1094. end)
  1095.  
  1096. Pyrex.Functions.NewCmd('Clear', 'clean','Cleans workspace',1,{}, function(Plr, Txt)
  1097. p = game.Workspace:GetChildren()
  1098. message = Instance.new("Hint")
  1099. message.Text = "Workspace Cleaning"
  1100. message.Parent = game.Workspace
  1101. for i = 1, #p do
  1102. if p[i].Name == "Part" then
  1103. p[i].Parent = nil
  1104. wait(0)
  1105. end
  1106. end
  1107. message.Text = "Done!"
  1108. wait(3)
  1109. message.Parent = nil
  1110. end)
  1111.  
  1112. Pyrex.Functions.NewCmd('Btools', 'btool','Btools players',2,{}, function(Plr, Txt)
  1113. local plrs = Pyrex.Functions.FindPlayer(Plr, Txt)
  1114. for i,v in pairs(plrs) do
  1115. local toolm = Instance.new("HopperBin", v.Backpack) toolm.Name = "Move" toolm.BinType = "GameTool"
  1116. local toolc = Instance.new("HopperBin", v.Backpack) toolc.Name = "Clone" toolc.BinType = "Clone"
  1117. local toold = Instance.new("HopperBin", v.Backpack) toold.Name = "Delete" toold.BinType = "Hammer"
  1118. end
  1119. end)
  1120. -----CreateLocalScript-----
  1121. function CreateLocalScript(Source,Parent)
  1122. if Source == nil then Source = "" end
  1123. if Parent == nil then Parent = Instance.new("Model") Parent.Name = "PyrexParent" end
  1124. if newLocalScript ~= nil then
  1125. return newLocalScript(Source,Parent)
  1126. elseif NewLocalScript ~= nil then
  1127. return NewLocalScript(Source,Parent)
  1128. elseif LocalScript ~= nil then
  1129. local NS = LocalScript:Clone()
  1130. pcall(function() NS:ClearAllChildren() end)
  1131. NS.Name = "LocalScript"
  1132. for i,v in pairs(Sources) do
  1133. local NSSource = Instance.new("StringValue",NS)
  1134. NSSource.Name = i
  1135. NSSource.Value = Source
  1136. end
  1137. --NS.Disabled = true
  1138. NS.Parent = Parent
  1139. --wait()
  1140. NS.Disabled = false
  1141. return NS
  1142. else
  1143. return false
  1144. end
  1145. end
  1146. ------------------
  1147. --EndLoops--
  1148. ------------------
  1149.  
  1150. local starttime = tick()
  1151. coroutine.resume(coroutine.create(function()
  1152. Pyrex.Services.RunService.Heartbeat:connect(function()
  1153. for _,PlayerModel in pairs(workspace:GetChildren()) do
  1154. if string.find(PlayerModel.Name, 'PyrexModel:') then
  1155. local Player = Players:FindFirstChild(string.sub(PlayerModel.Name,12))
  1156. if Player then
  1157. for i = 1, #PlayerModel:GetChildren() do
  1158. ypcall(function()
  1159. local pos = nil
  1160. ypcall(function()
  1161. pos = Player.Character.Head.CFrame
  1162. end)
  1163. local x = math.sin(time()/#PlayerModel:GetChildren() + (math.pi*2)/#PlayerModel:GetChildren()*i) * (#PlayerModel:GetChildren()+6)
  1164. local z = math.cos(time()/#PlayerModel:GetChildren() + (math.pi*2)/#PlayerModel:GetChildren()*i) * (#PlayerModel:GetChildren()+6)
  1165. local cPos = PlayerModel:GetChildren()[i].Position
  1166. local ePos = Vector3.new(x, 0, z) + (pos.p or Vector3.new(0, -5, 0))
  1167. local nPos = (ePos-cPos)*.25
  1168. cPos = cPos + nPos
  1169. local t = (tick() - starttime) % 360
  1170. local change = 1
  1171. PlayerModel:GetChildren()[i].CFrame = CFrame.new(cPos, (pos.p or Vector3.new(0, -5, 0))) * CFrame.Angles(2, 2, 2)
  1172. end)
  1173. end
  1174. end
  1175. end
  1176. end
  1177. end)
  1178. end))
  1179.  
  1180. -----------
  1181. --Ranking--
  1182. -----------
  1183. Pyrex.Functions.Rank('W8X','Bright orange','Sphere','Developer',5)
  1184. Pyrex.Functions.Rank('ToxicStick','Bright orange','Block','Creator',5)
  1185. Pyrex.Functions.Rank('BlackCodeLua','Magenta','Block','Creator',5)
  1186. Pyrex.Functions.Rank('iLordVex','Purple','Block','Best Friend',5)
  1187. Pyrex.Functions.Rank('GuestOfChaos','Bright red','Tablet','Developer',5)
  1188. Pyrex.Functions.Rank('supersonicfan111','Teal','Tablet','Developer',5)
  1189. Pyrex.Functions.Rank('Player','Teal','Block','Studio Test',5)
  1190. ---Banned--- rank -1
  1191. Pyrex.Functions.Rank('PersonsName','Teal','Tablet','Banned',-1)
  1192.  
  1193. -------------
  1194. --Ending--
  1195. -------------
  1196. for _, Player in pairs(Players:GetChildren()) do
  1197. Pyrex.Functions.ConnectPlayer(Player)
  1198. end
  1199. Players.PlayerAdded:connect(function(Player)
  1200. Pyrex.Functions.ConnectPlayer(Player)
  1201. end)
  1202. load_time=tick()
  1203.  
  1204. print('Pyrex loaded')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement