Advertisement
ActiniumDevs

Orion

Oct 21st, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.29 KB | None | 0 0
  1. -- made by 12GaugeNick
  2. -- Never completed
  3. -- run local
  4. wait()
  5.  
  6. local Plr = nil
  7. if script.ClassName ~= 'Script' then
  8.     Plr = game.Players.LocalPlayer
  9. else
  10.     Plr = game.Players['12gaugenick']
  11. end
  12. local Char = Plr.Character
  13. local PGUI = Plr:FindFirstChild('PlayerGui',true) or Plr:WaitForChild('PlayerGui')
  14. local PBACK = Plr:FindFirstChild('Backpack',true) or Plr:WaitForChild('Backpack')
  15. local Mouse = Plr:GetMouse()
  16. local Cam = workspace.CurrentCamera
  17. local GUIColor = 'Lime green'
  18. local MenuVisible = false
  19.  
  20. script.Parent = PGUI
  21.  
  22. local MusicSettings = {
  23.     MV = 'high', -- muted, medium, high
  24.    
  25. }
  26. local Songs = {
  27.     142963968, 163880175, 222686057, 131717468, 181173563, 150740745, 152324067, 144626383, 145154929
  28. }
  29.  
  30. function GetProductData(id,data)
  31.     return tostring(game:service'MarketplaceService':GetProductInfo(id)[data])
  32. end
  33.  
  34. function PLoad(id)
  35.     game:service'ContentProvider':Preload('rbxassetid://'..id)
  36. end
  37.  
  38. function NewMusic(id)
  39.     for i,v in pairs(Cam:GetChildren()) do
  40.         if v.ClassName == 'Sound' then
  41.             v:Pause()
  42.             v:Stop()
  43.             v:remove()
  44.         end
  45.     end
  46.     PLoad(id)
  47.     local s = Instance.new('Sound',Cam)
  48.     s.SoundId = 'rbxassetid://'..id
  49.     s.Pitch = 1
  50.     s.Volume = 1
  51.     s:Play()
  52. end
  53.  
  54. GUIColor = BrickColor.new(GUIColor).Color
  55.  
  56. local TabC1 = nil
  57. local TabC2 = nil
  58. local Fc = nil
  59. local Fc2 = nil
  60.  
  61. --// Helping funcitons \\--
  62. RUDim = function(a,b,c) return UDim2.new(a,b,c) end
  63. RClr3 = function(a,b,c) return Color3.new(a/255,b/255,c/255) end
  64.  
  65. --// Tablet \\--
  66. function Note(str)
  67.     local CSID = 145154929
  68.     for i,v in pairs(Cam:GetChildren()) do
  69.         if v.ClassName == 'Sound' then
  70.             CSID = v.SoundId:sub( #('rbxassetid://')+1 )
  71.         end
  72.     end
  73.     NewMusic(205318910)
  74.     PE.Size = RUDim(1,0,0,0)
  75.     PE.Text = (str):gsub('','\5')
  76.     MF:TweenSize(UDim2.new(.94,0,.7,0), "In", "Quad", .53, false, nil)
  77.     MF:TweenPosition(UDim2.new(.03,0,.2,0), "In", "Quad", .53, false, nil)
  78.     PE:TweenSize(UDim2.new(1,0,.15,0), "In", "Quad", .53, false, nil)
  79.     wait(5)
  80.     NewMusic(CSID)
  81.     PE:TweenSize(UDim2.new(1,0,0,0), "In", "Quad", .53, false, nil)
  82.     PE:TweenSize(UDim2.new(.93,0,.77,0), "In", "Quad", .53, false, nil)
  83.     MF:TweenSize(UDim2.new(.94,0,.94,0), "In", "Quad", .53, false, nil)
  84.     MF:TweenPosition(UDim2.new(.03,0,.04,0), "In", "Quad", .53, false, nil)
  85. end
  86.  
  87. function RunTablets()
  88.     for _,er in pairs(PGUI:GetChildren()) do
  89.         if er.Name == 'ORIONMUSICGUI' then
  90.            er:remove()
  91.         end
  92.     end
  93.     local Tab1 = Instance.new('Part',workspace)
  94.     Tab1.BrickColor = BrickColor.new('Really black')
  95.     Tab1.Transparency = .3
  96.     Tab1.Anchored = true
  97.     Tab1.CanCollide = false
  98.     Tab1.Locked = true
  99.     Tab1.CFrame = Char.Torso.CFrame
  100.     Tab1.FormFactor = 'Custom'
  101.     Tab1.Size = Vector3.new(9,8,.2)
  102.     TabC1 = Tab1
  103.     local TBG = Instance.new('SurfaceGui',PGUI)
  104.     TBG.Adornee = Tab1
  105.     TBG.CanvasSize = Vector2.new(800,600)
  106.     TBG.Face = 'Front'
  107.     TBG.Name = "ORIONMUSICGUI"
  108.     local F = Instance.new('Frame',TBG)
  109.     F.BackgroundColor3 = GUIColor
  110.     F.BackgroundTransparency = .43
  111.     F.BorderSizePixel = 0
  112.     F.Size = RUDim(1,0,1,0)
  113.     Fc = F
  114.     PE = Instance.new('TextLabel',F)
  115.     PE.BackgroundColor3 = RClr3(255,255,255)
  116.     PE.BackgroundTransparency = .4
  117.     PE.BorderSizePixel = 0
  118.     PE.Font = 'ArialBold'
  119.     PE.FontSize = 'Size14'
  120.     PE.TextColor3 = RClr3(0,0,0)
  121.     PE.TextScaled = true
  122.     MF = Instance.new('ScrollingFrame',F)
  123.     MF.BackgroundColor3 = RClr3(255,255,255)
  124.     MF.BackgroundTransparency = .43
  125.     MF.BorderSizePixel = 0
  126.     MF.Position = RUDim(.03,0,.04,0)
  127.     MF.Size = RUDim(.93,0,.94,0)
  128.     MF.ScrollBarThickness = 60
  129.     MF.CanvasSize = RUDim(0,0,5,0)
  130.     game.Players.DescendantAdded:connect(function(plr)
  131.         coroutine.resume(coroutine.create(function()
  132.             if type(plr) == 'userdata' and plr.ClassName == 'Player' and Tab1.Parent ~= nil then
  133.                 Note(plr.Name..' entered server')
  134.             end
  135.         end))
  136.     end)
  137.     local GUIOutput = {}
  138.     local Output = function(id)
  139.         id = tonumber(id)
  140.         local SN = GetProductData(id,'Name')
  141.         local TB = Instance.new('TextButton',MF)
  142.         TB.BackgroundColor3 = RClr3(255,255,255)
  143.         TB.BackgroundTransparency = 1
  144.         TB.Size = RUDim(.9,0,.02,0)
  145.         TB.Font = 'ArialBold'
  146.         TB.FontSize = 'Size48'
  147.         TB.TextColor3 = RClr3(129,129,129)
  148.         TB.TextStrokeColor3 = RClr3(0,0,0)
  149.         TB.TextStrokeTransparency = .2
  150.         TB.Text = SN:gsub('','\5')
  151.         TB.Position = RUDim(0,0,#GUIOutput*.02,0)
  152.         TB.TextScaled = true
  153.         TB.MouseButton1Down:connect(function()
  154.             NewMusic(id)
  155.         end)
  156.         table.insert(GUIOutput,TB)
  157.     end
  158.     spawn(function()
  159.         for i,v in pairs(Songs) do
  160.             spawn(function()
  161.                 Output( tonumber(v) )
  162.             end)
  163.         end
  164.     end)
  165.     local Tab2 = Instance.new('Part',workspace)
  166.     Tab2.BrickColor = BrickColor.new('Really black')
  167.     Tab2.Transparency = .3
  168.     Tab2.Anchored = true
  169.     Tab2.CanCollide = false
  170.     Tab2.Locked = true
  171.     Tab2.FormFactor = 'Custom'
  172.     Tab2.CFrame = Char.Torso.CFrame
  173.     Tab2.Size = Vector3.new(9,8,.2)
  174.     TabC2 = Tab2
  175.     local TBG2 = Instance.new('SurfaceGui',PGUI)
  176.     TBG2.Adornee = Tab2
  177.     TBG2.CanvasSize = Vector2.new(800,600)
  178.     TBG2.Face = 'Front'
  179.     TBG2.Name = "ORIONMUSICGUI"
  180.     local TB1N = Instance.new('SurfaceGui',Tab1)
  181.     TB1N.Adornee = Tab1
  182.     TB1N.CanvasSize = Vector2.new(800,600)
  183.     TB1N.Face = 'Back'
  184.     local T2N = Instance.new('TextLabel',TB1N)
  185.     T2N.BackgroundColor3 = RClr3(255,255,255)
  186.     T2N.BackgroundTransparency = 1
  187.     T2N.BorderSizePixel = 0
  188.     T2N.Font = 'ArialBold'
  189.     T2N.Size = RUDim(1,0,.1,0)
  190.     T2N.FontSize = 'Size14'
  191.     T2N.Text = 'ORION MUSIC GUI'
  192.     T2N.TextColor3 = RClr3(255,255,255)
  193.     T2N.TextScaled = true
  194.     T2N.TextStrokeColor3 = RClr3(0,0,0)
  195.     T2N.TextStrokeTransparency = .23
  196.     local TB2N = Instance.new('SurfaceGui',Tab2)
  197.     TB2N.Adornee = Tab2
  198.     TB2N.CanvasSize = Vector2.new(800,600)
  199.     TB2N.Face = 'Back'
  200.     local T2N = Instance.new('TextLabel',TB2N)
  201.     T2N.BackgroundColor3 = RClr3(255,255,255)
  202.     T2N.BackgroundTransparency = 1
  203.     T2N.BorderSizePixel = 0
  204.     T2N.Font = 'ArialBold'
  205.     T2N.Size = RUDim(1,0,.1,0)
  206.     T2N.FontSize = 'Size14'
  207.     T2N.Text = 'ORION MUSIC GUI'
  208.     T2N.TextColor3 = RClr3(255,255,255)
  209.     T2N.TextScaled = true
  210.     T2N.TextStrokeColor3 = RClr3(0,0,0)
  211.     T2N.TextStrokeTransparency = .23
  212.    
  213.     --// RIGHT SIDE \\--
  214.     local FM2 = Instance.new('Frame',TBG2)
  215.     FM2.BackgroundColor3 = GUIColor
  216.     FM2.BackgroundTransparency = .43
  217.     FM2.BorderSizePixel = 0
  218.     FM2.Size = RUDim(1,0,1,0)
  219.     Fc2 = FM2
  220.     local T2N = Instance.new('TextLabel',FM2)
  221.     T2N.BackgroundColor3 = RClr3(255,255,255)
  222.     T2N.BackgroundTransparency = 1
  223.     T2N.BorderSizePixel = 0
  224.     T2N.Font = 'ArialBold'
  225.     T2N.Size = RUDim(1,0,.1,0)
  226.     T2N.FontSize = 'Size14'
  227.     T2N.Text = 'Orion music gui'
  228.     T2N.TextColor3 = RClr3(255,255,255)
  229.     T2N.TextScaled = true
  230.     T2N.TextStrokeColor3 = RClr3(0,0,0)
  231.     T2N.TextStrokeTransparency = .23
  232.    
  233.     --// Connection frames \\--
  234.     local MusInfo = Instance.new('Frame',TBG2)
  235.     MusInfo.BackgroundColor3 = RClr3(255,255,255)
  236.     MusInfo.BackgroundTransparency = .43
  237.     MusInfo.BorderSizePixel = 0
  238.     MusInfo.Position = RUDim(1.1,0,.2,0)
  239.     MusInfo.Size = RUDim(.9,0,.7,0)
  240.     local MusFExit = Instance.new('TextButton',MusInfo)
  241.     MusFExit.BackgroundColor3 = RClr3(0,0,0)
  242.     MusFExit.BackgroundTransparency = .43
  243.     MusFExit.BorderSizePixel = 0
  244.     MusFExit.Size = RUDim(1,0,.1,0)
  245.     MusFExit.Font = 'ArialBold'
  246.     MusFExit.FontSize = 'Size36'
  247.     MusFExit.Text = 'Exit'
  248.     MusFExit.TextColor3 = RClr3(255,0,0)
  249.     MusFExit.MouseButton1Click:connect(function()
  250.         MusInfo:TweenPosition(UDim2.new(1.1,0,.2,0), "Out", "Quad", .83, false, nil)
  251.         MToggle:TweenPosition(UDim2.new(.58,0,.15,0), "Out", "Quad", .83, false, nil)
  252.         MInfo:TweenPosition(UDim2.new(.1,0,.15,0), "Out", "Quad", .83, false, nil)
  253.         MenuVisible = false
  254.     end)
  255.     local MILabel = Instance.new('ImageLabel',MusInfo)
  256.    
  257.    
  258.     local MusToggle = Instance.new('Frame',TBG2)
  259.     MusToggle.BackgroundColor3 = RClr3(255,255,255)
  260.     MusToggle.BackgroundTransparency = .43
  261.     MusToggle.BorderSizePixel = 0
  262.     MusToggle.Position = RUDim(1.1,0,.2,0)
  263.     MusToggle.Size = RUDim(.9,0,.7,0)
  264.    
  265.     --// ImageLabels \\--
  266.     MInfo = Instance.new('ImageButton',FM2)
  267.     MInfo.BackgroundTransparency = 1
  268.     MInfo.Image = 'rbxassetid://115574122'
  269.     MInfo.Position = RUDim(.1,0,.15,0)
  270.     MInfo.Size = RUDim(.3,0,.3,0)
  271.     local MI2 = Instance.new('TextLabel',MInfo)
  272.     MI2.BackgroundTransparency = 1
  273.     MI2.BorderSizePixel = 0
  274.     MI2.Font = 'ArialBold'
  275.     MI2.Position = UDim2.new(0,0,1,0)
  276.     MI2.Size = RUDim(1,0,.2,0)
  277.     MI2.Font = 'SourceSansBold'
  278.     MI2.FontSize = 'Size36'
  279.     MI2.Text = 'Music info'
  280.     MI2.TextColor3 = RClr3(255,255,255)
  281.     MI2.TextStrokeColor3 = RClr3(0,0,0)
  282.     MI2.TextStrokeTransparency = .73
  283.     MInfo.MouseButton1Click:connect(function()
  284.         if not MenuVisible then
  285.             MenuVisible = true
  286.             MInfo:TweenPosition(UDim2.new(-.3,0,.15,0), "Out", "Quad", .83, false, nil)
  287.         end
  288.     end)
  289.     MToggle = Instance.new('ImageButton',FM2)
  290.     MToggle.BackgroundTransparency = 1
  291.     MToggle.Image = 'rbxassetid://115574122'
  292.     MToggle.Position = RUDim(.58,0,.15,0)
  293.     MToggle.Size = RUDim(.3,0,.3,0)
  294.     local MT1 = Instance.new('TextLabel',MToggle)
  295.     MT1.BackgroundTransparency = 1
  296.     MT1.BorderSizePixel = 0
  297.     MT1.Font = 'ArialBold'
  298.     MT1.Position = UDim2.new(0,0,1,0)
  299.     MT1.Size = RUDim(1,0,.2,0)
  300.     MT1.Font = 'SourceSansBold'
  301.     MT1.FontSize = 'Size36'
  302.     MT1.Text = 'Music settings'
  303.     MT1.TextColor3 = RClr3(255,255,255)
  304.     MT1.TextStrokeColor3 = RClr3(0,0,0)
  305.     MT1.TextStrokeTransparency = .73
  306.     MToggle.MouseButton1Click:connect(function()
  307.         if not MenuVisible then
  308.             MenuVisible = true
  309.             MToggle:TweenPosition(UDim2.new(.05,0,.2,0), "Out", "Quad", .83, false, nil)
  310.             MInfo:TweenPosition(UDim2.new(-.3,0,.15,0), "Out", "Quad", .83, false, nil)
  311.         end
  312.     end)
  313. end
  314.  
  315. wait()
  316. RunTablets()
  317. --// Color changing \\--
  318. Mouse.KeyDown:connect(function(key)
  319.     if key:lower() == 'z' then -- Color change
  320.         GUIColor = BrickColor.Random().Color
  321.         Fc.BackgroundColor3 = GUIColor
  322.         Fc2.BackgroundColor3 = GUIColor
  323.     elseif key:lower() == 'x' and TabC1.Parent == nil then -- Make tablets come back
  324.         RunTablets()
  325.         wait(3)
  326.         Note('Welcome back, '..Plr.Name..'!')
  327.     elseif key:lower() == 'c' and TabC1.Parent ~= nil then -- Remove tablets
  328.         Note('Dismissing tablets...')
  329.         for i = 0,7,.1 do
  330.             TabC1.Size = TabC1.Size - Vector3.new(.13,.13,.13)
  331.             TabC2.Size = TabC2.Size - Vector3.new(.13,.13,.13)
  332.             game:service'RunService'.Stepped:wait()
  333.         end
  334.         TabC1:remove()
  335.         TabC2:remove()
  336.     end
  337. end)
  338.  
  339. --// Tablet movement \\--
  340. local function clerp(p1,p2,percent)
  341.     local p1x,p1y,p1z,p1R00,p1R01,p1R02,p1R10,p1R11,p1R12,p1R20,p1R21,p1R22=p1:components()
  342.     local p2x,p2y,p2z,p2R00,p2R01,p2R02,p2R10,p2R11,p2R12,p2R20,p2R21,p2R22=p2:components()
  343.     return CFrame.new(p1x+percent*(p2x-p1x),p1y+percent*(p2y-p1y),p1z+percent*(p2z-p1z),
  344.         p1R00+percent*(p2R00-p1R00),p1R01+percent*(p2R01-p1R01),p1R02+percent*(p2R02-p1R02),
  345.         p1R10+percent*(p2R10-p1R10),p1R11+percent*(p2R11-p1R11),p1R12+percent*(p2R12-p1R12),
  346.         p1R20+percent*(p2R20-p1R20),p1R21+percent*(p2R21-p1R21),p1R22+percent*(p2R22-p1R22))
  347. end
  348.  
  349. spawn(function()
  350.     game:service'RunService'.Stepped:connect(function()
  351.         if TabC1 ~= nil and TabC2 ~= nil then
  352.         TabC1.CFrame = clerp(TabC1.CFrame,CFrame.new(Char.Torso.CFrame.p)
  353.             * CFrame.new(4.37,1.8,7)
  354.             * CFrame.Angles(math.rad(7),0,0)
  355.             * CFrame.fromEulerAnglesXYZ(0,math.rad(13.4),0)
  356.         ,.09)
  357.         TabC2.CFrame = clerp(TabC2.CFrame,CFrame.new(Char.Torso.CFrame.p)
  358.             * CFrame.new(-4.37,1.8,7)
  359.             * CFrame.Angles(math.rad(7),0,0)
  360.             * CFrame.fromEulerAnglesXYZ(0,math.rad(-13.4),0)
  361.         ,.09)
  362.         end
  363.     end)
  364. end)
  365.  
  366.  
  367. delay(2,function()
  368.     Note(Plr.Name..', welcome to Orion music gui!')
  369. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement