Advertisement
realstar101

Untitled

Mar 29th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 88.21 KB | None | 0 0
  1. player = game.Players.LocalPlayer
  2.  
  3. char = player.Character
  4.  
  5. cam = Workspace.CurrentCamera
  6.  
  7.  
  8.  
  9.  
  10.  
  11. MusicList = {["Fracture"] = {
  12.  
  13. ["Artist"] = "Heyeaheyeaheyeah",
  14.  
  15. ["Image"] = "170940501",
  16.  
  17. ["SNDAsset"] = "155869694"},
  18.  
  19.  
  20.  
  21. ["Professional Griefers"] = {
  22.  
  23. ["Artist"] = "DeadMau5",
  24.  
  25. ["Image"] = "74028542",
  26.  
  27. ["SNDAsset"] = "142285269"},
  28.  
  29. ["Custom"] = {
  30.  
  31. ["Artist"] = "YOU!",
  32.  
  33. ["Image"] = "",
  34.  
  35. ["SNDAsset"] = ""},
  36.  
  37. ["Awwsome"] = {
  38.  
  39. ["Artist"] = "Shy Glizzy",
  40.  
  41. ["Image"] = "170143162",
  42.  
  43. ["SNDAsset"] = "163830723"},
  44.  
  45. ["IGNITE"] = {
  46.  
  47. ["Artist"] = "Eir Aoi",
  48.  
  49. ["Image"] = "144879739",
  50.  
  51. ["SNDAsset"] = "164856392"}
  52.  
  53.  
  54.  
  55. }
  56.  
  57.  
  58.  
  59. SettingOptions = {"Background and Color",
  60.  
  61. "Styles",
  62.  
  63. "Apps Management",
  64.  
  65. "Ringtones",
  66.  
  67. "Date and Time",
  68.  
  69. "Region",
  70.  
  71. "Phone Updates",
  72.  
  73. "Phone Lock",
  74.  
  75. "About your Phone"}
  76.  
  77.  
  78.  
  79. style = "Bounce"
  80.  
  81. ringtone = nil
  82.  
  83. region = "US"
  84.  
  85. auto_updates = false
  86.  
  87. phonelocked = false
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95. APPS = {["My Music"] = {["Icon"] = "12297005",
  96.  
  97. ["Code"] = function()
  98.  
  99. local nscrn = NewScreen(Color3.new(.35, .35, .35), "My Music")
  100.  
  101. if nscrn then
  102.  
  103. if phone:FindFirstChild(nscrn.Name) then
  104.  
  105. phone[nscrn.Name]:Destroy()
  106.  
  107. end
  108.  
  109.  
  110.  
  111. local newsound = newSound(nscrn.Name)
  112.  
  113. local playing = nil
  114.  
  115. local YPos_Start = 15
  116.  
  117. local itemsizeY = canvy/7
  118.  
  119. local between = 3
  120.  
  121. local amt = 0
  122.  
  123. for i,v in pairs(MusicList) do
  124.  
  125. amt = amt+1
  126.  
  127. local musicItem = Instance.new("Frame", nscrn)
  128.  
  129. musicItem.Name = i
  130.  
  131. musicItem.Size = UDim2.new(1, 0, 0, canvy/7)
  132.  
  133. musicItem.Position = UDim2.new(0, 0, 0, itemsizeY*amt)
  134.  
  135. musicItem.BackgroundColor3 = bgCol
  136.  
  137. musicItem.BackgroundTransparency = .7
  138.  
  139. musicItem.BorderColor3 = bgCol
  140.  
  141. musicItem.ZIndex = tab+1
  142.  
  143. local coverImg = Instance.new("ImageLabel", musicItem)
  144.  
  145. coverImg.Name = " "
  146.  
  147. coverImg.Image = asset..v["Image"]
  148.  
  149. coverImg.BorderSizePixel = 0
  150.  
  151. coverImg.Size = UDim2.new(0.2,0, 1, 0)
  152.  
  153. coverImg.Position = UDim2.new(0,0,0,0)
  154.  
  155. coverImg.ZIndex = tab+1
  156.  
  157. local DescText = Instance.new("TextLabel", musicItem)
  158.  
  159. DescText.Name = "desc"
  160.  
  161. DescText.Size = UDim2.new(.3, 0, 1, 0)
  162.  
  163. DescText.Position = UDim2.new(.25, 0, 0, 0)
  164.  
  165. DescText.BackgroundTransparency = 1
  166.  
  167. DescText.TextColor3 = white
  168.  
  169. DescText.FontSize = "Size18"
  170.  
  171. DescText.TextScaled = true
  172.  
  173. DescText.Text = i.." - By: "..v["Artist"]
  174.  
  175. DescText.ZIndex = tab+1
  176.  
  177. local playIcon = nil
  178.  
  179.  
  180.  
  181. musicItem.MouseEnter:connect(function()
  182.  
  183. musicItem.BackgroundTransparency = .5
  184.  
  185. local sndasset = asset..v["SNDAsset"]
  186.  
  187.  
  188.  
  189. playIcon = Instance.new("ImageLabel")
  190.  
  191. playIcon.Name = "PlayIcon"..amt
  192.  
  193. playIcon.BackgroundTransparency = 1
  194.  
  195. playIcon.Size = UDim2.new(.2, 0, 1, 0)
  196.  
  197. playIcon.Position = UDim2.new(.7,0,0,0)
  198.  
  199. playIcon.ZIndex = musicItem.ZIndex+1
  200.  
  201.  
  202.  
  203. if newsound.SoundId ~= sndasset then
  204.  
  205. playIcon.Image = asset..Textures["Play Music"]
  206.  
  207. elseif newsound.SoundId == sndasset then
  208.  
  209. playIcon.Image = asset..Textures["Pause Music"]
  210.  
  211. else
  212.  
  213. playIcon.Image = ""
  214.  
  215. end
  216.  
  217. playIcon.Parent = musicItem
  218.  
  219.  
  220.  
  221. selected = playIcon.Name
  222.  
  223. selectedFunc = function(playmusic)
  224.  
  225. musicItem.Transparency = .5
  226.  
  227. if newsound.SoundId ~= sndasset then
  228.  
  229. newsound:Stop()
  230.  
  231. newsound.SoundId = sndasset
  232.  
  233. newsound:Play()
  234.  
  235.  
  236.  
  237. elseif newsound.SoundId == sndasset then
  238.  
  239. newsound:Stop()
  240.  
  241. newsound.SoundId = ""
  242.  
  243. if musicItem:FindFirstChild(playIcon.Name) then
  244.  
  245. musicItem[playIcon.Name].Image = ""
  246.  
  247. end
  248.  
  249. end
  250.  
  251.  
  252.  
  253. --[[
  254.  
  255. if musicItem:FindFirstChild(playIcon.Name) then
  256.  
  257. musicItem.playIcon:Destroy()
  258.  
  259. end]]
  260.  
  261.  
  262.  
  263.  
  264.  
  265. end
  266.  
  267.  
  268.  
  269. end)
  270.  
  271.  
  272.  
  273. musicItem.MouseLeave:connect(function()
  274.  
  275. if musicItem:FindFirstChild(playIcon.Name) then
  276.  
  277. musicItem[playIcon.Name]:Destroy()
  278.  
  279. end
  280.  
  281. musicItem.Transparency = .7
  282.  
  283. if selected == playIcon.Name then
  284.  
  285. selected = nil
  286.  
  287. selectedFunc = nil
  288.  
  289. end
  290.  
  291. end)
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.  
  305.  
  306.  
  307. end
  308.  
  309. end
  310.  
  311. end},
  312.  
  313.  
  314.  
  315. ["BloxTube"] = {["Icon"] = "2164890",
  316.  
  317. ["Code"] = function() print("Do shet") end},
  318.  
  319.  
  320.  
  321. ["Settings"] = {["Icon"] = "132769544",
  322.  
  323. ["Code"] = function()
  324.  
  325. local nscrn = NewScreen(Color3.new(.08, .08, .08), "Settings")
  326.  
  327. if nscrn then
  328.  
  329.  
  330.  
  331. local ovrscrn = Instance.new("ScrollingFrame", nscrn)
  332.  
  333. ovrscrn.Name = "Overscreen"
  334.  
  335. ovrscrn.Size = UDim2.new(0, 380, 0, 535)
  336.  
  337. ovrscrn.ScrollBarThickness = 16
  338.  
  339. ovrscrn.BackgroundTransparency = 1
  340.  
  341. ovrscrn.MidImage = asset.."171011914"
  342.  
  343. ovrscrn.ZIndex = tab + 1
  344.  
  345.  
  346.  
  347. local curwin = nil
  348.  
  349. local win = nil
  350.  
  351. function MakeWindow(heading)
  352.  
  353. if curwin == nil then
  354.  
  355. win = nscrn:Clone()
  356.  
  357. win:ClearAllChildren()
  358.  
  359. win.Name = heading
  360.  
  361. win.Position = UDim2.new(1, 0, 0, 0)
  362.  
  363. win.Parent = nscrn
  364.  
  365. win.BorderSizePixel = 2
  366.  
  367. win.BorderColor3 = white
  368.  
  369. win.ZIndex = tab + 2
  370.  
  371. win:TweenPosition(UDim2.new(), "Out", "Sine", 1)
  372.  
  373. ovrscrn:TweenPosition(UDim2.new(1, 0, 0, 0), "Out", "Sine", 1)
  374.  
  375.  
  376.  
  377. curwin = win
  378.  
  379. return win
  380.  
  381. else
  382.  
  383. print("Returned nil")
  384.  
  385. return nil
  386.  
  387. end
  388.  
  389. end
  390.  
  391.  
  392.  
  393. function LeaveWin(this)
  394.  
  395. if this then
  396.  
  397. for _,v in pairs(this:GetChildren()) do
  398.  
  399. v:Destroy()
  400.  
  401. end
  402.  
  403. this:TweenPosition(UDim2.new(1, 0, 0, 0), "Out", "Sine", 1)
  404.  
  405. curwin = nil
  406.  
  407. end
  408.  
  409. end
  410.  
  411.  
  412.  
  413. local YPos_Start = 75
  414.  
  415. local itemsizeY = canvy/12
  416.  
  417. local between = 3
  418.  
  419. local amt = 0
  420.  
  421. --local toolItem = nil
  422.  
  423. ovrscrn.Position = UDim2.new(0, 0, 0, YPos_Start)
  424.  
  425. function DispAllSettings()
  426.  
  427. for i,v in pairs(SettingOptions) do
  428.  
  429. amt = amt+1
  430.  
  431. local toolItem = Instance.new("Frame", ovrscrn)
  432.  
  433. toolItem.Name = v
  434.  
  435. toolItem.Size = UDim2.new(1, 0, 0, itemsizeY)
  436.  
  437. toolItem.Position = UDim2.new(0, 0, 0, -1)
  438.  
  439. toolItem.BackgroundColor3 = Color3.new()
  440.  
  441. toolItem.BackgroundTransparency = 0
  442.  
  443. toolItem.BorderColor3 = white
  444.  
  445. toolItem.ZIndex = tab+1
  446.  
  447. local DescText = Instance.new("TextLabel", toolItem)
  448.  
  449. DescText.Name = v
  450.  
  451. DescText.Size = UDim2.new(.5, 0, 1, 0)
  452.  
  453. DescText.Position = UDim2.new(.2, 0, 0, 0)
  454.  
  455. DescText.BackgroundTransparency = 1
  456.  
  457. DescText.TextColor3 = white
  458.  
  459. DescText.FontSize = "Size18"
  460.  
  461. DescText.Text = v
  462.  
  463. DescText.TextXAlignment = "Left"
  464.  
  465. DescText.ZIndex = tab+1
  466.  
  467. local scrntitle = DescText:Clone()
  468.  
  469. scrntitle.Parent = nscrn
  470.  
  471. scrntitle.Name = "ScreenTitle"
  472.  
  473. scrntitle.Size = UDim2.new(.3, 0, 0, canvy/15)
  474.  
  475. scrntitle.Position = UDim2.new(0, 10, 0, 40)
  476.  
  477. scrntitle.Text = "__ Settings __"
  478.  
  479. scrntitle.TextScaled = false
  480.  
  481.  
  482.  
  483. toolItem.MouseEnter:connect(function()
  484.  
  485. toolItem.BackgroundColor3 = white
  486.  
  487. DescText.TextColor3 = Color3.new()
  488.  
  489. selected = toolItem.Name
  490.  
  491. selectedFunc = function()
  492.  
  493. local new_win = MakeWindow(toolItem.Name)
  494.  
  495. if new_win then
  496.  
  497. local wintitle = Instance.new("TextLabel", new_win)
  498.  
  499. wintitle.Name = "Title"
  500.  
  501. wintitle.Size = UDim2.new(.3, 0, .1, 0)
  502.  
  503. wintitle.Position = UDim2.new(0, 0, 0, 40)
  504.  
  505. wintitle.BackgroundTransparency = 1
  506.  
  507. wintitle.TextColor3 = white
  508.  
  509. wintitle.FontSize = "Size24"
  510.  
  511. wintitle.Text = " "..toolItem.Name
  512.  
  513. wintitle.TextXAlignment = "Left"
  514.  
  515. wintitle.ZIndex = new_win.ZIndex + 1
  516.  
  517.  
  518.  
  519. if toolItem.Name == "Background and Color" then
  520.  
  521. local desc = wintitle:Clone()
  522.  
  523. desc.Parent = new_win
  524.  
  525. desc.FontSize = "Size18"
  526.  
  527. desc.Position = UDim2.new(0, 20, 0, 95)
  528.  
  529. desc.Size = UDim2.new(.9, 0, .2, 0)
  530.  
  531. desc.TextXAlignment = "Center"
  532.  
  533. desc.TextScaled = true
  534.  
  535. desc.Text = "Change your theme color using the item below."
  536.  
  537.  
  538.  
  539. local pbox = Instance.new("Frame", new_win)
  540.  
  541. pbox.Name = "ColorBox"
  542.  
  543. pbox.Size = UDim2.new(0, 50, 0, 50)
  544.  
  545. pbox.Position = UDim2.new(0, 80, 0, 210)
  546.  
  547. pbox.BorderSizePixel = 2
  548.  
  549. pbox.BorderColor3 = white
  550.  
  551. pbox.BackgroundColor3 = bgCol
  552.  
  553. pbox.ZIndex = new_win.ZIndex+1
  554.  
  555.  
  556.  
  557. local distbtwn = 60
  558.  
  559. local R = pbox:Clone()
  560.  
  561. R.Parent = new_win
  562.  
  563. R.Name = "RValue"
  564.  
  565. R.Position = UDim2.new(0, 160, 0, 210)
  566.  
  567. R.BackgroundColor3 = Color3.new()
  568.  
  569.  
  570.  
  571.  
  572.  
  573. local G = R:Clone()
  574.  
  575. G.Parent = new_win
  576.  
  577. G.Name = "GValue"
  578.  
  579. G.Position = UDim2.new(0, 160+distbtwn, 0, 210)
  580.  
  581. local GTbox = Instance.new("TextLabel", G)
  582.  
  583. GTbox.Name = "Textbox"
  584.  
  585. GTbox.Size = UDim2.new(1, 0, 1, 0)
  586.  
  587. GTbox.TextColor3 = white
  588.  
  589. GTbox.BackgroundTransparency = 1
  590.  
  591. GTbox.FontSize = "Size18"
  592.  
  593. GTbox.Text = math.floor(bgCol.g*255)
  594.  
  595. GTbox.ZIndex = R.ZIndex + 1
  596.  
  597. makeButton(GTbox, function(upval)
  598.  
  599. coroutine.resume(coroutine.create(function()
  600.  
  601. while keylist["M1"] do
  602.  
  603. if tonumber(GTbox.Text) < 255 then
  604.  
  605. GTbox.Text = tonumber(GTbox.Text) + 1
  606.  
  607. end
  608.  
  609. wait(.1)
  610.  
  611. end
  612.  
  613. end))
  614.  
  615. end,
  616.  
  617. function(downval)
  618.  
  619. coroutine.resume(coroutine.create(function()
  620.  
  621. while keylist["M2"] do
  622.  
  623. if tonumber(GTbox.Text) > 0 then
  624.  
  625. GTbox.Text = tonumber(GTbox.Text) - 1
  626.  
  627. end
  628.  
  629. wait(.1)
  630.  
  631. end
  632.  
  633. end))
  634.  
  635. end)
  636.  
  637. --makeTextbox(GTbox)
  638.  
  639.  
  640.  
  641. local B = R:Clone()
  642.  
  643. B.Parent = new_win
  644.  
  645. B.Name = "BValue"
  646.  
  647. B.Position = UDim2.new(0, 220+distbtwn, 0, 210)
  648.  
  649. local BTbox = Instance.new("TextLabel", B)
  650.  
  651. BTbox.Name = "Textbox"
  652.  
  653. BTbox.Size = UDim2.new(1, 0, 1, 0)
  654.  
  655. BTbox.TextColor3 = white
  656.  
  657. BTbox.BackgroundTransparency = 1
  658.  
  659. BTbox.FontSize = "Size18"
  660.  
  661. BTbox.Text = math.floor(bgCol.b*255)
  662.  
  663. BTbox.ZIndex = R.ZIndex + 1
  664.  
  665. makeButton(BTbox, function(upval)
  666.  
  667. coroutine.resume(coroutine.create(function()
  668.  
  669. while keylist["M1"] do
  670.  
  671. if tonumber(BTbox.Text) < 255 then
  672.  
  673. BTbox.Text = tonumber(BTbox.Text) + 1
  674.  
  675. end
  676.  
  677. wait(.1)
  678.  
  679. end
  680.  
  681. end))
  682.  
  683. end,
  684.  
  685. function(downval)
  686.  
  687. coroutine.resume(coroutine.create(function()
  688.  
  689. while keylist["M2"] do
  690.  
  691. if tonumber(BTbox.Text) > 0 then
  692.  
  693. BTbox.Text = tonumber(BTbox.Text) - 1
  694.  
  695. end
  696.  
  697. wait(.1)
  698.  
  699. end
  700.  
  701. end))
  702.  
  703. end)
  704.  
  705. --makeTextbox(BTbox)
  706.  
  707.  
  708.  
  709. local RTbox = Instance.new("TextLabel", R)
  710.  
  711. RTbox.Name = "Textbox"
  712.  
  713. RTbox.Size = UDim2.new(1, 0, 1, 0)
  714.  
  715. RTbox.TextColor3 = white
  716.  
  717. RTbox.BackgroundTransparency = 1
  718.  
  719. RTbox.FontSize = "Size18"
  720.  
  721. RTbox.Text = math.floor(bgCol.r*255)
  722.  
  723. RTbox.ZIndex = R.ZIndex + 1
  724.  
  725. makeButton(RTbox, function(upval)
  726.  
  727. coroutine.resume(coroutine.create(function()
  728.  
  729. while keylist["M1"] do
  730.  
  731. if tonumber(RTbox.Text) < 255 then
  732.  
  733. RTbox.Text = tonumber(RTbox.Text) + 1
  734.  
  735. end
  736.  
  737. wait(.1)
  738.  
  739. end
  740.  
  741. end))
  742.  
  743. end,
  744.  
  745. function(downval)
  746.  
  747. coroutine.resume(coroutine.create(function()
  748.  
  749. while keylist["M2"] do
  750.  
  751. if tonumber(RTbox.Text) > 0 then
  752.  
  753. RTbox.Text = tonumber(RTbox.Text) - 1
  754.  
  755. end
  756.  
  757. wait(.1)
  758.  
  759. end
  760.  
  761. end))
  762.  
  763. end)
  764.  
  765. --makeTextbox(RTbox)
  766.  
  767.  
  768.  
  769. function refreshcol()
  770.  
  771. local rcol = RTbox.Text
  772.  
  773. local gcol = GTbox.Text
  774.  
  775. local bcol = BTbox.Text
  776.  
  777. pbox.BackgroundColor3 = Color3.new(rcol/255, gcol/255, bcol/255)
  778.  
  779. bgCol = Color3.new(rcol/255, gcol/255, bcol/255)
  780.  
  781. end
  782.  
  783. RTbox.Changed:connect(refreshcol)
  784.  
  785. GTbox.Changed:connect(refreshcol)
  786.  
  787. BTbox.Changed:connect(refreshcol)
  788.  
  789.  
  790.  
  791. end
  792.  
  793. end
  794.  
  795. end
  796.  
  797. end)
  798.  
  799.  
  800.  
  801. toolItem.MouseLeave:connect(function()
  802.  
  803. toolItem.BackgroundColor3 = Color3.new()
  804.  
  805. DescText.TextColor3 = white
  806.  
  807. selected = nil
  808.  
  809. selectedFunc = nil
  810.  
  811. end)
  812.  
  813.  
  814.  
  815. toolItem:TweenPosition(UDim2.new(0, 0, 0, itemsizeY*amt), "Out", "Quart", 1)
  816.  
  817. end
  818.  
  819. end
  820.  
  821.  
  822.  
  823. DispAllSettings()
  824.  
  825.  
  826.  
  827. end
  828.  
  829. end},
  830.  
  831.  
  832.  
  833. ["Explorer"] = {["Icon"] = "99368131",
  834.  
  835. ["Code"] = function() print("Do shet") end},
  836.  
  837.  
  838.  
  839. ["Players"] = {["Icon"] = "132279861",
  840.  
  841. ["Code"] = function()
  842.  
  843. local nscrn = NewScreen(Color3.new(.7, .8, 1), "Players")
  844.  
  845. if nscrn then
  846.  
  847.  
  848.  
  849. local YPos_Start = 15
  850.  
  851. local itemsizeY = canvy/7
  852.  
  853. local between = 3
  854.  
  855. local amt = 0
  856.  
  857. local playerItem = nil
  858.  
  859. function refreshPlayers()
  860.  
  861. for i,v in pairs(game.Players:GetPlayers()) do
  862.  
  863. amt = amt+1
  864.  
  865. playerItem = Instance.new("Frame", nscrn)
  866.  
  867. playerItem.Name = v.Name
  868.  
  869. playerItem.Size = UDim2.new(1, 0, 0, canvy/7)
  870.  
  871. playerItem.Position = UDim2.new(0, 0, 0, -1)
  872.  
  873. playerItem.BackgroundColor3 = bgCol
  874.  
  875. playerItem.BackgroundTransparency = .7
  876.  
  877. playerItem.BorderColor3 = bgCol
  878.  
  879. playerItem.ZIndex = tab+1
  880.  
  881. local coverImg = Instance.new("ImageLabel", playerItem)
  882.  
  883. coverImg.Name = i
  884.  
  885. coverImg.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..v.Name
  886.  
  887. coverImg.BorderSizePixel = 0
  888.  
  889. coverImg.Size = UDim2.new(0.2,0, 1, 0)
  890.  
  891. coverImg.Position = UDim2.new(0,0,0,0)
  892.  
  893. coverImg.BackgroundTransparency = .5
  894.  
  895. coverImg.ZIndex = tab+1
  896.  
  897. local DescText = Instance.new("TextLabel", playerItem)
  898.  
  899. DescText.Name = i
  900.  
  901. DescText.Size = UDim2.new(.3, 0, 1, 0)
  902.  
  903. DescText.Position = UDim2.new(.25, 0, 0, 0)
  904.  
  905. DescText.BackgroundTransparency = 1
  906.  
  907. DescText.TextColor3 = white
  908.  
  909. DescText.FontSize = "Size18"
  910.  
  911. DescText.TextScaled = true
  912.  
  913. DescText.Text = "Player: "..v.Name
  914.  
  915. DescText.ZIndex = tab+1
  916.  
  917. local scrntitle = DescText:Clone()
  918.  
  919. scrntitle.Parent = nscrn
  920.  
  921. scrntitle.Name = "ScreenTitle"
  922.  
  923. scrntitle.Size = UDim2.new(.3, 0, 0, canvy/15)
  924.  
  925. scrntitle.Position = UDim2.new(0, 10, 0, 40)
  926.  
  927. scrntitle.TextStrokeColor3 = bgCol
  928.  
  929. scrntitle.TextStrokeTransparency = .8
  930.  
  931. scrntitle.Text = "Players List"
  932.  
  933. scrntitle.TextScaled = false
  934.  
  935.  
  936.  
  937. playerItem:TweenPosition(UDim2.new(0, 0, 0, itemsizeY*amt), "Out", "Quart", 1)
  938.  
  939. end
  940.  
  941. end
  942.  
  943.  
  944.  
  945. refreshPlayers()
  946.  
  947.  
  948.  
  949. game.Players.PlayerRemoving:connect(function(plr)
  950.  
  951. for _,v in pairs(nscrn:GetChildren()) do
  952.  
  953. if v.ClassName == "Frame" then
  954.  
  955. v:Destroy()
  956.  
  957. end
  958.  
  959. end
  960.  
  961. refreshPlayers()
  962.  
  963. end)
  964.  
  965.  
  966.  
  967. playerItem.MouseEnter:connect(function()
  968.  
  969. playerItem.BackgroundTransparency = .5
  970.  
  971. selected = playerItem.Name
  972.  
  973. selectedFunc = nil
  974.  
  975.  
  976.  
  977. end)
  978.  
  979.  
  980.  
  981. playerItem.MouseLeave:connect(function()
  982.  
  983. playerItem.Transparency = .7
  984.  
  985. if selected == playerItem.Name then
  986.  
  987. selected = nil
  988.  
  989. selectedFunc = nil
  990.  
  991. end
  992.  
  993.  
  994.  
  995. end)
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001. end
  1002.  
  1003. end},
  1004.  
  1005.  
  1006.  
  1007. ["BloxTube"] = {["Icon"] = "2164890",
  1008.  
  1009. ["Code"] = function() print("Do shet") end},
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017. ["Head Asploder"] = {["Icon"] = "171700393",
  1018.  
  1019. ["Code"] = function()
  1020.  
  1021. local nscrn = NewScreen(BrickColor.new("Br. yellowish orange").Color, "Head Asploder")
  1022.  
  1023. if nscrn then
  1024.  
  1025. local titleimg = Instance.new("ImageLabel", nscrn)
  1026.  
  1027. titleimg.Size = UDim2.new(.7, 0, .7, 0)
  1028.  
  1029. titleimg.BackgroundTransparency = 1
  1030.  
  1031. titleimg.Image = asset..171700393
  1032.  
  1033. titleimg.Position = UDim2.new(.12, 0, .1)
  1034.  
  1035. titleimg.ZIndex = nscrn.ZIndex +1
  1036.  
  1037.  
  1038.  
  1039. local title = Instance.new("TextLabel", nscrn)
  1040.  
  1041. title.Size = UDim2.new(0, 380, .4, 0)
  1042.  
  1043. title.Position = UDim2.new(0, 0, .5, 0)
  1044.  
  1045. title.BackgroundTransparency = 1
  1046.  
  1047. title.FontSize = "Size48"
  1048.  
  1049. title.TextColor3 = white
  1050.  
  1051. title.TextStrokeColor3 = BrickColor.new("Bright red").Color
  1052.  
  1053. title.TextStrokeTransparency = .2
  1054.  
  1055. title.Text = "Head Asploder"
  1056.  
  1057. title.TextWrapped = true
  1058.  
  1059. title.ZIndex = titleimg.ZIndex
  1060.  
  1061.  
  1062.  
  1063. wait(2)
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069. title:Destroy()
  1070.  
  1071. titleimg.Image = asset..Textures["bloxxer"]
  1072.  
  1073. nscrn.BackgroundColor3 = Color3.new(0.57745, 0.32254, 0.15784)
  1074.  
  1075.  
  1076.  
  1077. local vict = Instance.new("TextLabel", nscrn)
  1078.  
  1079. vict.Size = UDim2.new(.4, 0, 0, canvy/7)
  1080.  
  1081. vict.Position = UDim2.new(0, 0 ,0, canvy/7)
  1082.  
  1083. vict.Text = "Victim:"
  1084.  
  1085. vict.FontSize = "Size24"
  1086.  
  1087. vict.Font = "Legacy"
  1088.  
  1089. vict.TextColor3 = white
  1090.  
  1091. vict.TextStrokeTransparency = .2
  1092.  
  1093. vict.TextStrokeColor3 = BrickColor.new("Bright red").Color
  1094.  
  1095. vict.BackgroundTransparency = 1
  1096.  
  1097. vict.ZIndex = titleimg.ZIndex + 1
  1098.  
  1099.  
  1100.  
  1101. local victpic = Instance.new("ImageLabel", nscrn)
  1102.  
  1103. victpic.Size = UDim2.new(.4, 0, .3, 0)
  1104.  
  1105. victpic.Position = UDim2.new(0, 0, 0, canvy/7*2)
  1106.  
  1107. victpic.Image = ""
  1108.  
  1109. victpic.BackgroundTransparency = .7
  1110.  
  1111. victpic.BackgroundColor3 = BrickColor.new("Neon orange").Color
  1112.  
  1113. victpic.BorderColor3 = BrickColor.new("Br. yellowish orange").Color
  1114.  
  1115. victpic.ZIndex = titleimg.ZIndex + 1
  1116.  
  1117.  
  1118.  
  1119. local tim = Instance.new("TextLabel", nscrn)
  1120.  
  1121. tim.Name = "Textbox"
  1122.  
  1123. tim.Size = UDim2.new(0, 40, 0, 49)
  1124.  
  1125. tim.Position = UDim2.new(.15, 0, .6, 0)
  1126.  
  1127. tim.TextColor3 = white
  1128.  
  1129. tim.BackgroundTransparency = 1
  1130.  
  1131. tim.FontSize = "Size18"
  1132.  
  1133. tim.Text = 5
  1134.  
  1135. tim.ZIndex = titleimg.ZIndex + 1
  1136.  
  1137. makeButton(tim, function(upval)
  1138.  
  1139. coroutine.resume(coroutine.create(function()
  1140.  
  1141. if tonumber(tim.Text) < 10 then
  1142.  
  1143. tim.Text = tonumber(tim.Text) + 1
  1144.  
  1145. end
  1146.  
  1147. wait(.1)
  1148.  
  1149. end))
  1150.  
  1151. end,
  1152.  
  1153. function(downval)
  1154.  
  1155. coroutine.resume(coroutine.create(function()
  1156.  
  1157. if tonumber(tim.Text) > 0 then
  1158.  
  1159. tim.Text = tonumber(tim.Text) - 1
  1160.  
  1161. end
  1162.  
  1163. wait(.1)
  1164.  
  1165. end))
  1166.  
  1167. end)
  1168.  
  1169.  
  1170.  
  1171. local YPos_Start = 15
  1172.  
  1173. local itemsizeY = canvy/7
  1174.  
  1175. local between = 3
  1176.  
  1177. local amt = 0
  1178.  
  1179. --local playerItem = nil
  1180.  
  1181. local victim = nil
  1182.  
  1183. local exploding = false
  1184.  
  1185. function refreshPlayers()
  1186.  
  1187. for i,v in pairs(game.Players:GetPlayers()) do
  1188.  
  1189. amt = amt+1
  1190.  
  1191. local playerItem = Instance.new("Frame", nscrn)
  1192.  
  1193. playerItem.Name = v.Name
  1194.  
  1195. playerItem.Size = UDim2.new(.6, 0, 0, canvy/10)
  1196.  
  1197. playerItem.Position = UDim2.new(.39, 0, 0, -1)
  1198.  
  1199. playerItem.BackgroundColor3 = BrickColor.new("Neon orange").Color
  1200.  
  1201. playerItem.BackgroundTransparency = .7
  1202.  
  1203. playerItem.BorderColor3 = bgCol
  1204.  
  1205. playerItem.ZIndex = titleimg.ZIndex+1
  1206.  
  1207. local coverImg = Instance.new("ImageLabel", playerItem)
  1208.  
  1209. coverImg.Name = i
  1210.  
  1211. coverImg.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..v.Name
  1212.  
  1213. coverImg.BorderSizePixel = 0
  1214.  
  1215. coverImg.Size = UDim2.new(0.2,0, 1, 0)
  1216.  
  1217. coverImg.Position = UDim2.new(0,0,0,0)
  1218.  
  1219. coverImg.BackgroundTransparency = .5
  1220.  
  1221. coverImg.ZIndex = titleimg.ZIndex+1
  1222.  
  1223. local DescText = Instance.new("TextLabel", playerItem)
  1224.  
  1225. DescText.Name = i
  1226.  
  1227. DescText.Size = UDim2.new(.3, 0, 1, 0)
  1228.  
  1229. DescText.Position = UDim2.new(.25, 0, 0, 0)
  1230.  
  1231. DescText.BackgroundTransparency = 1
  1232.  
  1233. DescText.TextColor3 = white
  1234.  
  1235. DescText.FontSize = "Size18"
  1236.  
  1237. DescText.TextScaled = true
  1238.  
  1239. DescText.Text = "Victim, "..v.Name
  1240.  
  1241. DescText.ZIndex = titleimg.ZIndex+1
  1242.  
  1243. local scrntitle = DescText:Clone()
  1244.  
  1245. scrntitle.Parent = nscrn
  1246.  
  1247. scrntitle.Name = "ScreenTitle"
  1248.  
  1249. scrntitle.Size = UDim2.new(.6, 0, 0, canvy/15)
  1250.  
  1251. scrntitle.Position = UDim2.new(0, 10, 0, 40)
  1252.  
  1253. scrntitle.TextStrokeColor3 = BrickColor.new("Neon orange").Color
  1254.  
  1255. scrntitle.TextStrokeTransparency = .8
  1256.  
  1257. scrntitle.TextXAlignment = "Left"
  1258.  
  1259. scrntitle.Text = "Head Asploder"
  1260.  
  1261. scrntitle.TextScaled = false
  1262.  
  1263.  
  1264.  
  1265. playerItem:TweenPosition(UDim2.new(.39, 0, 0, itemsizeY*amt), "Out", "Quart", 1)
  1266.  
  1267.  
  1268.  
  1269. playerItem.MouseEnter:connect(function()
  1270.  
  1271. playerItem.BackgroundTransparency = .5
  1272.  
  1273. selected = playerItem.Name
  1274.  
  1275. selectedFunc = function()
  1276.  
  1277. victim = playerItem.Name
  1278.  
  1279. victpic.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..victim
  1280.  
  1281. victpic.Name = victim
  1282.  
  1283. end
  1284.  
  1285.  
  1286.  
  1287. end)
  1288.  
  1289.  
  1290.  
  1291. playerItem.MouseLeave:connect(function()
  1292.  
  1293. playerItem.Transparency = .7
  1294.  
  1295. if selected == playerItem.Name then
  1296.  
  1297. selected = nil
  1298.  
  1299. selectedFunc = nil
  1300.  
  1301. end
  1302.  
  1303.  
  1304.  
  1305. end)
  1306.  
  1307. end
  1308.  
  1309. end
  1310.  
  1311.  
  1312.  
  1313. function remakebody(guy)
  1314.  
  1315. local fake = Instance.new("Model")
  1316.  
  1317. for _,v in pairs(guy:GetChildren()) do
  1318.  
  1319. if v.ClassName == "Part" and v.Name ~= "Head" then
  1320.  
  1321. v:Clone().Parent = fake
  1322.  
  1323. end
  1324.  
  1325. end
  1326.  
  1327.  
  1328.  
  1329. if fake:FindFirstChild("Torso") then
  1330.  
  1331. fake.Torso.LeftSurface = "Weld"
  1332.  
  1333. fake.Torso.RightSurface = "Weld"
  1334.  
  1335. fake.Torso.BottomSurface = "Weld"
  1336.  
  1337. if fake:FindFirstChild("Right Arm") then
  1338.  
  1339. fake["Right Arm"].CFrame = fake.Torso.CFrame * CFrame.new(1.5, 0, 0)
  1340.  
  1341. end
  1342.  
  1343. if fake:FindFirstChild("Left Arm") then
  1344.  
  1345. fake["Left Arm"].CFrame = fake.Torso.CFrame * CFrame.new(-1.5, 0, 0)
  1346.  
  1347. end
  1348.  
  1349. if fake:FindFirstChild("Right Leg") then
  1350.  
  1351. fake["Right Leg"].CFrame = fake.Torso.CFrame * CFrame.new(.5, -2, 0)
  1352.  
  1353. end
  1354.  
  1355. if fake:FindFirstChild("Left Leg") then
  1356.  
  1357. fake["Left Leg"].CFrame = fake.Torso.CFrame * CFrame.new(-.5, -2, 0)
  1358.  
  1359. end
  1360.  
  1361. fake.Parent = Workspace
  1362.  
  1363. fake.Torso.Position = guy.Torso.Position
  1364.  
  1365. fake:MakeJoints()
  1366.  
  1367. for _,v in pairs(guy:GetChildren()) do
  1368.  
  1369. if v.ClassName == "Part" and v.Name ~= "Head" then
  1370.  
  1371. v:Destroy()
  1372.  
  1373. elseif v.Name == "Head" then
  1374.  
  1375. v.Name = "AsplodedHead"
  1376.  
  1377. end
  1378.  
  1379. end
  1380.  
  1381. end
  1382.  
  1383.  
  1384.  
  1385. end
  1386.  
  1387.  
  1388.  
  1389. function doExplode(who, timelim)
  1390.  
  1391. print("Doing")
  1392.  
  1393. local count = timelim
  1394.  
  1395. repeat
  1396.  
  1397. wait(count)
  1398.  
  1399. if who:FindFirstChild("Head") then
  1400.  
  1401. who.Head.Mesh.Scale = Vector3.new(1.50, 1.50, 1.50)
  1402.  
  1403. wait(.05)
  1404.  
  1405. who.Head.Mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
  1406.  
  1407. end
  1408.  
  1409. count = count - .3
  1410.  
  1411. until count <= 0
  1412.  
  1413. if who:FindFirstChild("Head") then
  1414.  
  1415. local ex = Instance.new("Explosion", Workspace)
  1416.  
  1417. ex.Position = who.Head.Position
  1418.  
  1419. wait()
  1420.  
  1421. remakebody(who)
  1422.  
  1423. else
  1424.  
  1425. print("Couldn't find a head!")
  1426.  
  1427. end
  1428.  
  1429. victpic.Image = ""
  1430.  
  1431. victim = nil
  1432.  
  1433. exploding = false
  1434.  
  1435. end
  1436.  
  1437.  
  1438.  
  1439. refreshPlayers()
  1440.  
  1441.  
  1442.  
  1443. game.Players.PlayerRemoving:connect(function(plr)
  1444.  
  1445. for _,v in pairs(nscrn:GetChildren()) do
  1446.  
  1447. if v.ClassName == "Frame" then
  1448.  
  1449. v:Destroy()
  1450.  
  1451. end
  1452.  
  1453. end
  1454.  
  1455. if victim == plr.Name then
  1456.  
  1457. victim = nil
  1458.  
  1459. victpic.Name = "None"
  1460.  
  1461. victpic.Image = ""
  1462.  
  1463. end
  1464.  
  1465. refreshPlayers()
  1466.  
  1467. end)
  1468.  
  1469.  
  1470.  
  1471. game.Players.PlayerAdded:connect(function(plr)
  1472.  
  1473. for _,v in pairs(nscrn:GetChildren()) do
  1474.  
  1475. if v.ClassName == "Frame" then
  1476.  
  1477. v:Destroy()
  1478.  
  1479. end
  1480.  
  1481. end
  1482.  
  1483. refreshPlayers()
  1484.  
  1485. end)
  1486.  
  1487.  
  1488.  
  1489.  
  1490.  
  1491.  
  1492.  
  1493.  
  1494.  
  1495. victpic.MouseEnter:connect(function()
  1496.  
  1497. victpic.BackgroundTransparency = .5
  1498.  
  1499. if victim then
  1500.  
  1501. local asplode = Instance.new("TextLabel", nscrn)
  1502.  
  1503. asplode.Size = UDim2.new(.4, 0, .1, 0)
  1504.  
  1505. asplode.BackgroundTransparency = 1
  1506.  
  1507. asplode.TextColor3 = white
  1508.  
  1509. asplode.TextStrokeColor3 = BrickColor.new("Bright red").Color
  1510.  
  1511. asplode.TextStrokeTransparency = .2
  1512.  
  1513. asplode.Font = "ArialBold"
  1514.  
  1515. asplode.FontSize = "Size36"
  1516.  
  1517. asplode.Rotation = 50
  1518.  
  1519. asplode.ZIndex = victpic.ZIndex +1
  1520.  
  1521. asplode.Text = "ASPLODE!!!1!"
  1522.  
  1523. asplode.Position = victpic.Position + UDim2.new(0, 0, victpic.Size.Y.Scale/3, 0)
  1524.  
  1525. asplode.Name = "asplode"
  1526.  
  1527. end
  1528.  
  1529.  
  1530.  
  1531. selected = victpic.Name
  1532.  
  1533. selectedFunc = function()
  1534.  
  1535. if nscrn:FindFirstChild("asplode") then
  1536.  
  1537. nscrn.asplode:Destroy()
  1538.  
  1539. end
  1540.  
  1541.  
  1542.  
  1543. local look4 = game.Players:FindFirstChild(victpic.Name)
  1544.  
  1545. if look4 and look4.Character and exploding == false then
  1546.  
  1547. doExplode(look4.Character, nscrn.Textbox.Text)
  1548.  
  1549. end
  1550.  
  1551.  
  1552.  
  1553. end
  1554.  
  1555.  
  1556.  
  1557. end)
  1558.  
  1559.  
  1560.  
  1561. victpic.MouseLeave:connect(function()
  1562.  
  1563. victpic.Transparency = .7
  1564.  
  1565. if nscrn:FindFirstChild("asplode") then
  1566.  
  1567. nscrn.asplode:Destroy()
  1568.  
  1569. end
  1570.  
  1571. if selected == victpic.Name then
  1572.  
  1573. selected = nil
  1574.  
  1575. selectedFunc = nil
  1576.  
  1577. end
  1578.  
  1579.  
  1580.  
  1581. end)
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587. end
  1588.  
  1589. end}
  1590.  
  1591. }
  1592.  
  1593.  
  1594.  
  1595. Tabs = Instance.new("Backpack")
  1596.  
  1597. Tabs.Name = "Tabs"
  1598.  
  1599. tab = 2
  1600.  
  1601.  
  1602.  
  1603. Textures = {["Home Button"] = "170940873",
  1604.  
  1605. ["Wireless_Bars"] = "170989162",
  1606.  
  1607. ["No Signal"] = "171007724",
  1608.  
  1609. ["Tabs Icon"] = "171009648",
  1610.  
  1611. ["Play Music"] = "51811789",
  1612.  
  1613. ["Pause Music"] = "61994669",
  1614.  
  1615. ["Rewind Music"] = "142546687",
  1616.  
  1617. ["Audio"] = "72625616",
  1618.  
  1619. ["white_scroll_mid"] = "158362264",
  1620.  
  1621. ["bloxxer"] = "36493098"}
  1622.  
  1623.  
  1624.  
  1625.  
  1626.  
  1627. -- Screen Savers --
  1628.  
  1629. ScnSavers = {["Space Earth"] = "171011490",
  1630.  
  1631. ["Flower Field"] = "171011914"}
  1632.  
  1633.  
  1634.  
  1635.  
  1636.  
  1637.  
  1638.  
  1639. keylist = {}
  1640.  
  1641. asset = "http://www.roblox.com/asset/?id="
  1642.  
  1643.  
  1644.  
  1645. raweld = nil
  1646.  
  1647. foneweld = nil
  1648.  
  1649. phone = nil
  1650.  
  1651. menu = nil
  1652.  
  1653. tabslab = nil
  1654.  
  1655. loc = nil
  1656.  
  1657. selected = nil
  1658.  
  1659. selectedFunc = nil
  1660.  
  1661. selectedFunc2 = nil
  1662.  
  1663. normWS = 16
  1664.  
  1665. typing = false
  1666.  
  1667. curtbox = nil
  1668.  
  1669. clock = nil
  1670.  
  1671. tab = 2 -- Base tab will be 3 because Menu tab is 2. Use this for ZIndex.
  1672.  
  1673. curtab = nil -- This is the current tab being displayed.
  1674.  
  1675.  
  1676.  
  1677. topbarwait = 0
  1678.  
  1679. tabsblinking = false
  1680.  
  1681. volume = .5
  1682.  
  1683. playing = nil
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689. bgCol = Color3.new() --Color3.new(.20, .30, .50)
  1690.  
  1691. white = Color3.new(1,1,1)
  1692.  
  1693.  
  1694.  
  1695. gcount = 0
  1696.  
  1697. looking = false
  1698.  
  1699.  
  1700.  
  1701. canvx = 600/1.5
  1702.  
  1703. canvy = 800/1.5
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709. phoneOut = false
  1710.  
  1711.  
  1712.  
  1713. function takeOutPhone()
  1714.  
  1715. phoneOut = true
  1716.  
  1717.  
  1718.  
  1719. ra = char["Right Arm"]
  1720.  
  1721. torso = char.Torso
  1722.  
  1723. torso["Right Shoulder"].Part0 = nil
  1724.  
  1725. torso["Right Shoulder"].Part1 = nil
  1726.  
  1727. torso["Right Shoulder"].Name = "RSBlank"
  1728.  
  1729. raweld = Instance.new("Weld", ra)
  1730.  
  1731. raweld.Part0 = raweld.Parent
  1732.  
  1733. raweld.Part1 = char.Torso
  1734.  
  1735.  
  1736.  
  1737. raweld.C0 = CFrame.new(-1.5, .5, .5)
  1738.  
  1739. * CFrame.Angles(math.rad(-60), 0, 0)
  1740.  
  1741. --* CFrame.Angles(0, -.45, 0)
  1742.  
  1743. --* CFrame.new(0, 0, -.5)
  1744.  
  1745.  
  1746.  
  1747. torso.Neck.C0 = torso.Neck.C0 * CFrame.Angles(math.rad(15), 0, math.rad(-5))
  1748.  
  1749.  
  1750.  
  1751. phone = Instance.new("Part", Workspace)
  1752.  
  1753. phone.Name = "Phone"
  1754.  
  1755. phone.FormFactor = "Custom"
  1756.  
  1757. phone.Size = Vector3.new(1, 1.4, .2)
  1758.  
  1759. phone.Position = char.Torso.Position
  1760.  
  1761. phone.TopSurface = "Smooth"
  1762.  
  1763. phone.BrickColor = BrickColor.new("Black")
  1764.  
  1765. sg = Instance.new("SurfaceGui", phone)
  1766.  
  1767. --sg.Adornee = phone
  1768.  
  1769. sg.Name = "Surface"
  1770.  
  1771. sg.Face = "Back"
  1772.  
  1773. surface = sg
  1774.  
  1775. surface.CanvasSize = Vector2.new(canvx, canvy)
  1776.  
  1777. sound = Instance.new("Sound", phone)
  1778.  
  1779. sound2 = Instance.new("Sound", phone)
  1780.  
  1781. fr = Instance.new("Frame", sg)
  1782.  
  1783. fr.Size = UDim2.new(.95, 0, .95, 0)
  1784.  
  1785. fr.Position = UDim2.new(.025, 0, .025, 0)
  1786.  
  1787. fr.Name ="Backdrop"
  1788.  
  1789. fr.BackgroundColor3 = Color3.new(.2, .2, .2)
  1790.  
  1791. fr.ClipsDescendants = true
  1792.  
  1793. fr.Active = true
  1794.  
  1795. Tabs.Parent = backdrop
  1796.  
  1797. backdrop = fr
  1798.  
  1799.  
  1800.  
  1801. foneweld = Instance.new("Weld", phone)
  1802.  
  1803. foneweld.Part0 = foneweld.Parent
  1804.  
  1805. foneweld.Part1 = char.Torso
  1806.  
  1807. foneweld.C0 = CFrame.new(-.5, -.8, 1.2) * CFrame.Angles(math.rad(30), 0, 0)
  1808.  
  1809. end
  1810.  
  1811.  
  1812.  
  1813. function putAwayPhone()
  1814.  
  1815. phoneOut = false
  1816.  
  1817.  
  1818.  
  1819. torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1820.  
  1821. if foneweld then
  1822.  
  1823. foneweld:Destroy()
  1824.  
  1825. end
  1826.  
  1827. if phone then
  1828.  
  1829. phone:Remove()
  1830.  
  1831. end
  1832.  
  1833. if raweld then
  1834.  
  1835. raweld:Destroy()
  1836.  
  1837. end
  1838.  
  1839.  
  1840.  
  1841. typing = false
  1842.  
  1843. if char.Torso:FindFirstChild("RSBlank") then
  1844.  
  1845. rsweld = char.Torso.RSBlank
  1846.  
  1847. rsweld.Name = "Right Shoulder"
  1848.  
  1849. rsweld.Part0 = torso
  1850.  
  1851. rsweld.Part1 = ra
  1852.  
  1853. end
  1854.  
  1855.  
  1856.  
  1857. end
  1858.  
  1859.  
  1860.  
  1861. function DoIntro()
  1862.  
  1863. local img = Instance.new("ImageLabel", backdrop)
  1864.  
  1865. img.ZIndex = 2
  1866.  
  1867. img.Size = UDim2.new(0,canvx/3, 0, canvy/3)
  1868.  
  1869. img.Position = UDim2.new(0, canvx/2, 0, canvy)
  1870.  
  1871. img.BackgroundTransparency = 1
  1872.  
  1873. img.Image = "http://www.roblox.com/asset/?id=65732094"
  1874.  
  1875. local txt = Instance.new("TextLabel", backdrop)
  1876.  
  1877. txt.ZIndex = 3
  1878.  
  1879. txt.Size = UDim2.new(0,canvx/2,0,canvy/4)
  1880.  
  1881. txt.Position = UDim2.new(0,canvx/4.5,0,-txt.Size.Y.Offset)
  1882.  
  1883. txt.BackgroundTransparency = 1
  1884.  
  1885. txt.TextStrokeTransparency = 0
  1886.  
  1887. txt.TextStrokeColor3 = Color3.new(231/255,0/255,3/255)
  1888.  
  1889. txt.TextColor3 = white
  1890.  
  1891. txt.FontSize = "Size48"
  1892.  
  1893. txt.Text = "G.o.C"
  1894.  
  1895. local txt2 = txt:Clone()
  1896.  
  1897. txt2.Parent = txt.Parent
  1898.  
  1899. txt2.FontSize = "Size36"
  1900.  
  1901. txt2.Position = UDim2.new(0, canvx/4.5, 0, canvy/2.3)
  1902.  
  1903. txt2.Text = "Phone OS"
  1904.  
  1905. txt2.TextTransparency = 1
  1906.  
  1907. txt2.TextStrokeTransparency = 1
  1908.  
  1909.  
  1910.  
  1911. txt:TweenPosition(UDim2.new(0, canvx/4.5, 0, canvy/3), "Out", "Quart", 2, true)
  1912.  
  1913. wait(1.7)
  1914.  
  1915. repeat
  1916.  
  1917. txt2.TextTransparency = txt2.TextTransparency - .01
  1918.  
  1919. wait(0)
  1920.  
  1921. until txt2.TextTransparency < 0
  1922.  
  1923. wait(1)
  1924.  
  1925. repeat
  1926.  
  1927. txt2.TextTransparency = txt2.TextTransparency + .01
  1928.  
  1929. txt.TextTransparency = txt.TextTransparency + .01
  1930.  
  1931. txt.TextStrokeTransparency = txt.TextStrokeTransparency + .01
  1932.  
  1933. wait(0)
  1934.  
  1935. until txt2.TextTransparency > 1 and txt.TextTransparency > 1
  1936.  
  1937. wait(.5)
  1938.  
  1939. end
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945. function DispMenu()
  1946.  
  1947.  
  1948.  
  1949. if loc ~= "Menu" then
  1950.  
  1951. if loc and backdrop:FindFirstChild(loc) then
  1952.  
  1953. coroutine.resume(coroutine.create(function()
  1954.  
  1955. local scrnclone = backdrop[loc]:Clone()
  1956.  
  1957. scrnclone.Parent = backdrop
  1958.  
  1959. scrnclone.Name = "@clone"
  1960.  
  1961. scrnclone.ZIndex = 9
  1962.  
  1963. scrnclone:TweenPosition(UDim2.new(0, 0, 0, -canvy), "Out", "Sine", 1)
  1964.  
  1965. if APPS[loc] then -- If last tab was "All Tabs" then delete it for good. Else, put it in Tabs.
  1966.  
  1967. backdrop[loc].Parent = Tabs
  1968.  
  1969. else
  1970.  
  1971. backdrop[loc]:Destroy()
  1972.  
  1973. end
  1974.  
  1975. tab = tab - 1
  1976.  
  1977. print("Variable 'tab' = "..tab)
  1978.  
  1979. scrnclone.Name = "@RemoveThis"
  1980.  
  1981. scrnclone:ClearAllChildren()
  1982.  
  1983. end))
  1984.  
  1985. end
  1986.  
  1987. loc = "Menu"
  1988.  
  1989. DispTopBar()
  1990.  
  1991. end
  1992.  
  1993.  
  1994.  
  1995. bg = Instance.new("Frame", backdrop)
  1996.  
  1997. bg.ZIndex = 2
  1998.  
  1999. bg.Name = "MenuScreen"
  2000.  
  2001. bg.Size = UDim2.new(1, 0, 5, 0)
  2002.  
  2003. bg.Position = UDim2.new(0,0,0,0)
  2004.  
  2005. bg.BackgroundTransparency = 1
  2006.  
  2007. bg.BackgroundColor3 = bgCol
  2008.  
  2009. bg.ClipsDescendants = true
  2010.  
  2011. menu = bg
  2012.  
  2013.  
  2014.  
  2015. bg.BackgroundTransparency = 1
  2016.  
  2017. coroutine.resume(coroutine.create(function()
  2018.  
  2019. repeat
  2020.  
  2021. bg.BackgroundTransparency = bg.BackgroundTransparency - .05
  2022.  
  2023. wait(0)
  2024.  
  2025. until bg.BackgroundTransparency <= 0 or loc ~= "Menu"
  2026.  
  2027. end))
  2028.  
  2029.  
  2030.  
  2031. local row = 0
  2032.  
  2033. local col = 0
  2034.  
  2035. local btwnx = 32
  2036.  
  2037. local btwny = 40
  2038.  
  2039. for i,v in pairs(APPS) do
  2040.  
  2041. local frame = Instance.new("Frame", bg)
  2042.  
  2043. frame.BackgroundTransparency = 1
  2044.  
  2045. frame.Size = UDim2.new(0, canvx/6, 0, canvy/6)
  2046.  
  2047. frame.Name = i
  2048.  
  2049. local icon = Instance.new("ImageButton", frame)
  2050.  
  2051. icon.Name = i --.."Button"
  2052.  
  2053. icon.Size = UDim2.new(1, 0, 1, 0)--UDim2.new(0, canvx/6, 0, canvy/6)
  2054.  
  2055. appname = Instance.new("TextLabel", frame)
  2056.  
  2057. appname.Size = UDim2.new(1, 0, .4, 0)
  2058.  
  2059. appname.Position = UDim2.new(0, 0, .8, 0)
  2060.  
  2061. appname.BackgroundColor3 = white
  2062.  
  2063. appname.BackgroundTransparency = .7
  2064.  
  2065. appname.ZIndex = bg.ZIndex+2
  2066.  
  2067. appname.TextXAlignment = "Center"
  2068.  
  2069. appname.FontSize = "Size14"
  2070.  
  2071. --appname.TextScaled = true
  2072.  
  2073. appname.TextColor3 = Color3.new(1, 1, 1)
  2074.  
  2075. appname.Text = i
  2076.  
  2077.  
  2078.  
  2079. frame.Position = UDim2.new(0,btwnx + col*btwnx + col*canvx/8, 0, btwny + row*btwny + row*canvy/8 - canvy)
  2080.  
  2081. local dest = frame.Position.Y.Offset + canvy
  2082.  
  2083.  
  2084.  
  2085. icon.BackgroundTransparency = 1
  2086.  
  2087. icon.BackgroundColor3 = Color3.new(1, 1, 1)
  2088.  
  2089. icon.Image = asset..v["Icon"]
  2090.  
  2091. icon.ZIndex = bg.ZIndex+1
  2092.  
  2093. frame.ZIndex = bg.ZIndex+1
  2094.  
  2095.  
  2096.  
  2097. frame:TweenPosition(UDim2.new(0, frame.Position.X.Offset, 0, dest), "Out", style, 1.5, true)
  2098.  
  2099.  
  2100.  
  2101. icon.MouseEnter:connect(function(glow)
  2102.  
  2103. icon.BackgroundTransparency = .5
  2104.  
  2105. selected = icon.Name
  2106.  
  2107. print(selected)
  2108.  
  2109. end)
  2110.  
  2111. icon.MouseLeave:connect(function(unglow)
  2112.  
  2113. icon.BackgroundTransparency = 1
  2114.  
  2115. if selected == icon.Name then
  2116.  
  2117. selected = nil
  2118.  
  2119. end
  2120.  
  2121. end)
  2122.  
  2123.  
  2124.  
  2125. col = col + 1
  2126.  
  2127.  
  2128.  
  2129. if col > 3 then
  2130.  
  2131. col = 0
  2132.  
  2133. row = row + 1
  2134.  
  2135. end
  2136.  
  2137.  
  2138.  
  2139. end
  2140.  
  2141. end
  2142.  
  2143.  
  2144.  
  2145. function LeaveMenu()
  2146.  
  2147. if menu then
  2148.  
  2149. for _,v in pairs(menu:GetChildren()) do
  2150.  
  2151. v:Destroy()
  2152.  
  2153. end
  2154.  
  2155. menu.Name = "@RemoveThis"
  2156.  
  2157. end
  2158.  
  2159. end
  2160.  
  2161.  
  2162.  
  2163. function DestroyScreen(scrn)
  2164.  
  2165. if scrn then
  2166.  
  2167. for _,v in pairs(phone:GetChildren()) do
  2168.  
  2169. if v.Name == scrn.Name then
  2170.  
  2171. if v.ClassName == "Sound" then
  2172.  
  2173. v:Stop()
  2174.  
  2175. end
  2176.  
  2177. v:Destroy()
  2178.  
  2179. end
  2180.  
  2181. end
  2182.  
  2183. scrn:Destroy()
  2184.  
  2185.  
  2186.  
  2187. if loc ~= "All Tabs" then
  2188.  
  2189. ShowTabs()
  2190.  
  2191. tab = tab - 1
  2192.  
  2193. end
  2194.  
  2195. end
  2196.  
  2197. end
  2198.  
  2199.  
  2200.  
  2201. function GetTab(tabname) -- Use to get a tab currently running
  2202.  
  2203. if Tabs:FindFirstChild(tabname) then
  2204.  
  2205. local findtab = Tabs[tabname]
  2206.  
  2207.  
  2208.  
  2209. -- REMOVE CURRENT TAB (Most Likely 'All Tabs' Tab) --
  2210.  
  2211. if backdrop:FindFirstChild(loc) then
  2212.  
  2213. coroutine.resume(coroutine.create(function()
  2214.  
  2215. local scrnclone = backdrop[loc]:Clone()
  2216.  
  2217. scrnclone.Parent = backdrop
  2218.  
  2219. scrnclone.Name = "@clone"
  2220.  
  2221. scrnclone.ZIndex = 9
  2222.  
  2223. scrnclone:TweenPosition(UDim2.new(0, 0, 0, -canvy), "Out", "Sine", 1)
  2224.  
  2225. if APPS[loc] then -- If last tab was "All Tabs" then delete it for good. Else, put it in Tabs.
  2226.  
  2227. backdrop[loc].Parent = Tabs
  2228.  
  2229. else
  2230.  
  2231. backdrop[loc]:Destroy()
  2232.  
  2233. end
  2234.  
  2235. tab = tab
  2236.  
  2237. print("Variable 'tab' = "..tab)
  2238.  
  2239. scrnclone.Name = "@RemoveThis"
  2240.  
  2241. end))
  2242.  
  2243. end
  2244.  
  2245.  
  2246.  
  2247. findtab.Parent = backdrop
  2248.  
  2249. findtab.Position = UDim2.new(0, 0, 0, -canvy)
  2250.  
  2251. findtab:TweenPosition(UDim2.new(0,0,0,0), "Out", style, 1)
  2252.  
  2253.  
  2254.  
  2255. if loc == "Menu" then
  2256.  
  2257. LeaveMenu()
  2258.  
  2259. tab = tab + 1
  2260.  
  2261. end
  2262.  
  2263. loc = tabname
  2264.  
  2265. DispTopBar()
  2266.  
  2267.  
  2268.  
  2269. end
  2270.  
  2271. end
  2272.  
  2273.  
  2274.  
  2275.  
  2276.  
  2277. function NewScreen(bgcol, screen_name) -- Add background image option
  2278.  
  2279. local findtab = Tabs:FindFirstChild(screen_name)
  2280.  
  2281.  
  2282.  
  2283. if tab < 8 and not findtab then
  2284.  
  2285. local screen = Instance.new("Frame", backdrop)
  2286.  
  2287. screen.Name = screen_name
  2288.  
  2289. screen.Size = UDim2.new(0,canvx,0,canvy)
  2290.  
  2291. screen.Position = UDim2.new(0,0,0,-canvy)
  2292.  
  2293. screen.BackgroundColor3 = bgcol
  2294.  
  2295. screen.ZIndex = tab
  2296.  
  2297. tab = tab+1
  2298.  
  2299. if tab > 3 then -- there are tabs open already.
  2300.  
  2301. for _,v in pairs(Tabs:GetChildren()) do
  2302.  
  2303. local ncond = "BottomBar" or "TopBar" or "MenuScreen" or "@RemoveThis" or "@clone"
  2304.  
  2305. if v.Name ~= ncond then
  2306.  
  2307. v.Parent = Tabs
  2308.  
  2309. end
  2310.  
  2311. end
  2312.  
  2313. end
  2314.  
  2315.  
  2316.  
  2317. screen.Parent = backdrop
  2318.  
  2319. screen:TweenPosition(UDim2.new(0,0,0,0), "Out", style, 1)
  2320.  
  2321.  
  2322.  
  2323. if loc == "Menu" then
  2324.  
  2325. LeaveMenu()
  2326.  
  2327. end
  2328.  
  2329. loc = screen_name
  2330.  
  2331. DispTopBar()
  2332.  
  2333.  
  2334.  
  2335. return screen
  2336.  
  2337. elseif findtab then
  2338.  
  2339.  
  2340.  
  2341. GetTab(findtab.Name)
  2342.  
  2343.  
  2344.  
  2345. else
  2346.  
  2347. print("You have too many tabs!")
  2348.  
  2349. if tabslab and not tabsblinking then
  2350.  
  2351. tabsblinking = true
  2352.  
  2353. local bcount = 0
  2354.  
  2355. repeat
  2356.  
  2357. tabslab.ImageTransparency = 1
  2358.  
  2359. wait(.15)
  2360.  
  2361. tabslab.ImageTransparency = 0
  2362.  
  2363. wait(.15)
  2364.  
  2365. bcount = bcount + 1
  2366.  
  2367. until bcount == 4 or not tabslab
  2368.  
  2369. tabsblinking = false
  2370.  
  2371. end
  2372.  
  2373. end
  2374.  
  2375. end
  2376.  
  2377.  
  2378.  
  2379. function UpdateAllTabs(screen) -- For the "All Tabs" Frame
  2380.  
  2381. print("Doing")
  2382.  
  2383.  
  2384.  
  2385. local YPos_Start = 10
  2386.  
  2387. local thistabsizeY = canvy/14
  2388.  
  2389. local between = 3
  2390.  
  2391. for amt,v in pairs(Tabs:GetChildren()) do
  2392.  
  2393. print(v.Name)
  2394.  
  2395.  
  2396.  
  2397. local thistab = Instance.new("Frame", screen)
  2398.  
  2399. thistab.Name = v.Name
  2400.  
  2401. thistab.ZIndex = tab+1
  2402.  
  2403. thistab.Size = UDim2.new(1, 0, 0, thistabsizeY)
  2404.  
  2405. thistab.BackgroundColor3 = Color3.new()
  2406.  
  2407. thistab.Position = UDim2.new(0, 0, 0, -thistabsizeY)
  2408.  
  2409. local thistabdest = YPos_Start + amt*thistabsizeY + amt*between
  2410.  
  2411.  
  2412.  
  2413. local appicon = Instance.new("ImageLabel", thistab)
  2414.  
  2415. appicon.Position = UDim2.new(0, 0, 0, 0)
  2416.  
  2417. appicon.Size = UDim2.new(0, canvx/10, 0, thistabsizeY)
  2418.  
  2419. appicon.Image = asset..APPS[v.Name]["Icon"]
  2420.  
  2421. appicon.ZIndex = thistab.ZIndex
  2422.  
  2423. local tabtext = Instance.new("TextButton", thistab)
  2424.  
  2425. tabtext.ZIndex = thistab.ZIndex
  2426.  
  2427. tabtext.Position = UDim2.new(0, appicon.Size.X.Offset + 5, 0, 0)
  2428.  
  2429. tabtext.Size = UDim2.new(.5, 0, 1, 0)
  2430.  
  2431. tabtext.BackgroundTransparency = 1
  2432.  
  2433. tabtext.TextColor3 = white
  2434.  
  2435. tabtext.Text = v.Name
  2436.  
  2437. tabtext.FontSize = "Size18"
  2438.  
  2439. local exitTab = tabtext:Clone()
  2440.  
  2441. exitTab.Name = "RemoveTab"
  2442.  
  2443. exitTab.Parent = thistab
  2444.  
  2445. exitTab.Size = UDim2.new(0, canvx/10, 1, 0)
  2446.  
  2447. exitTab.Position = UDim2.new(0, canvx - (canvx/10)*2, 0, 0)
  2448.  
  2449. exitTab.BackgroundColor3 = Color3.new(0, 0, 0)
  2450.  
  2451. exitTab.BorderColor3 = white
  2452.  
  2453. exitTab.BorderSizePixel = 1
  2454.  
  2455. exitTab.Text = "X"
  2456.  
  2457.  
  2458.  
  2459. thistab.Position = UDim2.new(0,0,0,thistabdest)
  2460.  
  2461.  
  2462.  
  2463. makeButton(thistab)
  2464.  
  2465. makeButton(exitTab, function() if Tabs:FindFirstChild(v.Name) then
  2466.  
  2467. DestroyScreen(Tabs[v.Name])
  2468.  
  2469. thistab:Destroy()
  2470.  
  2471. UpdateAllTabs()
  2472.  
  2473. end
  2474.  
  2475. end)
  2476.  
  2477. end
  2478.  
  2479. end
  2480.  
  2481.  
  2482.  
  2483. function ShowTabs()
  2484.  
  2485. tabs_name = "All Tabs"
  2486.  
  2487.  
  2488.  
  2489. if loc ~= tabs_name then
  2490.  
  2491. if loc and loc ~= "Menu" and backdrop:FindFirstChild(loc) then
  2492.  
  2493. coroutine.resume(coroutine.create(function()
  2494.  
  2495. local scrnclone = backdrop[loc]:Clone()
  2496.  
  2497. scrnclone:ClearAllChildren()
  2498.  
  2499. scrnclone.Parent = backdrop
  2500.  
  2501. scrnclone.Name = "@clone"
  2502.  
  2503. scrnclone.ZIndex = 9
  2504.  
  2505. scrnclone:TweenPosition(UDim2.new(0, 0, 0, -canvy), "Out", "Sine", 1)
  2506.  
  2507. backdrop[loc].Parent = Tabs
  2508.  
  2509.  
  2510.  
  2511. scrnclone.Name = "@RemoveThis"
  2512.  
  2513. tab = tab-1 -- Cancels out extra tab made from NewScreen Function
  2514.  
  2515. end))
  2516.  
  2517. elseif loc == "Menu" then
  2518.  
  2519. LeaveMenu()
  2520.  
  2521. end
  2522.  
  2523. loc = tabs_name
  2524.  
  2525. DispTopBar()
  2526.  
  2527.  
  2528.  
  2529. local nscrn = NewScreen(Color3.new(.1, .1, .1), tabs_name)
  2530.  
  2531. if nscrn then
  2532.  
  2533. local YPos_Start = 10
  2534.  
  2535. local thistabsizeY = canvy/14
  2536.  
  2537. local between = 3
  2538.  
  2539. for amt,v in pairs(Tabs:GetChildren()) do
  2540.  
  2541. print(v.Name.." in Tabs list.")
  2542.  
  2543.  
  2544.  
  2545. local thistab = Instance.new("Frame", nscrn)
  2546.  
  2547. thistab.Name = v.Name
  2548.  
  2549. thistab.ZIndex = tab+1
  2550.  
  2551. thistab.Size = UDim2.new(1, 0, 0, thistabsizeY)
  2552.  
  2553. thistab.BackgroundColor3 = Color3.new()
  2554.  
  2555. thistab.Position = UDim2.new(0, 0, 0, -thistabsizeY)
  2556.  
  2557. local thistabdest = YPos_Start + amt*thistabsizeY + amt*between
  2558.  
  2559.  
  2560.  
  2561. local appicon = Instance.new("ImageLabel", thistab)
  2562.  
  2563. appicon.Position = UDim2.new(0, 0, 0, 0)
  2564.  
  2565. appicon.Size = UDim2.new(0, canvx/10, 0, thistabsizeY)
  2566.  
  2567. appicon.Image = asset..APPS[v.Name]["Icon"]
  2568.  
  2569. appicon.ZIndex = thistab.ZIndex
  2570.  
  2571. local tabtext = Instance.new("TextButton", thistab)
  2572.  
  2573. tabtext.ZIndex = thistab.ZIndex
  2574.  
  2575. tabtext.Position = UDim2.new(0, appicon.Size.X.Offset + 5, 0, 0)
  2576.  
  2577. tabtext.Size = UDim2.new(.5, 0, 1, 0)
  2578.  
  2579. tabtext.BackgroundTransparency = 1
  2580.  
  2581. tabtext.TextColor3 = white
  2582.  
  2583. tabtext.Text = v.Name
  2584.  
  2585. tabtext.FontSize = "Size18"
  2586.  
  2587. local exitTab = tabtext:Clone()
  2588.  
  2589. exitTab.Name = "RemoveTab"
  2590.  
  2591. exitTab.Parent = thistab
  2592.  
  2593. exitTab.Size = UDim2.new(0, canvx/10, 1, 0)
  2594.  
  2595. exitTab.Position = UDim2.new(0, canvx - (canvx/10)*2, 0, 0)
  2596.  
  2597. exitTab.BackgroundColor3 = Color3.new(0, 0, 0)
  2598.  
  2599. exitTab.BorderColor3 = white
  2600.  
  2601. exitTab.BorderSizePixel = 1
  2602.  
  2603. exitTab.Text = "X"
  2604.  
  2605.  
  2606.  
  2607. local findsound = phone:FindFirstChild(thistab.Name)
  2608.  
  2609. if findsound then
  2610.  
  2611. local audioicon = appicon:Clone()
  2612.  
  2613. audioicon.Parent = thistab
  2614.  
  2615. audioicon.BackgroundTransparency = 1
  2616.  
  2617. audioicon.Size = UDim2.new(0, canvx/10 - 20, 0, thistabsizeY - 20)
  2618.  
  2619. audioicon.Position = UDim2.new(0, (canvx/10)*1.5, 0, 10)
  2620.  
  2621. audioicon.Image = asset..Textures["Audio"]
  2622.  
  2623. end
  2624.  
  2625.  
  2626.  
  2627. thistab.Position = UDim2.new(0,0,0,thistabdest)
  2628.  
  2629.  
  2630.  
  2631. makeButton(thistab)
  2632.  
  2633. makeButton(exitTab, function() if Tabs:FindFirstChild(v.Name) then
  2634.  
  2635. DestroyScreen(Tabs[v.Name])
  2636.  
  2637. thistab:Destroy()
  2638.  
  2639. UpdateAllTabs()
  2640.  
  2641. RemoveTrash()
  2642.  
  2643. end
  2644.  
  2645. end)
  2646.  
  2647. end
  2648.  
  2649.  
  2650.  
  2651. end
  2652.  
  2653. end
  2654.  
  2655. end
  2656.  
  2657.  
  2658.  
  2659. function RemoveTrash()
  2660.  
  2661. for _,v in pairs(backdrop:GetChildren()) do
  2662.  
  2663. if v.Name == "@clone" or v.Name == "@RemoveThis" then
  2664.  
  2665. v:Destroy()
  2666.  
  2667. end
  2668.  
  2669. end
  2670.  
  2671. end
  2672.  
  2673.  
  2674.  
  2675. function makeCustomButton(button, enterfunc, leavefunc, func)
  2676.  
  2677.  
  2678.  
  2679.  
  2680.  
  2681. button.MouseEnter:connect(function()
  2682.  
  2683. selected = button.Name
  2684.  
  2685. if func then
  2686.  
  2687. selectedFunc = func
  2688.  
  2689. end
  2690.  
  2691. enterfunc()
  2692.  
  2693. end)
  2694.  
  2695.  
  2696.  
  2697. button.MouseLeave:connect(function()
  2698.  
  2699. if selected == button.Name then
  2700.  
  2701. selected = nil
  2702.  
  2703. selectedFunc = nil
  2704.  
  2705. end
  2706.  
  2707. leavefunc()
  2708.  
  2709. end)
  2710.  
  2711.  
  2712.  
  2713. end
  2714.  
  2715.  
  2716.  
  2717.  
  2718.  
  2719.  
  2720.  
  2721. function makeButton(button, func, func2)
  2722.  
  2723.  
  2724.  
  2725. bottom_buttons = "HomeMenu" or "GoBack" or "Tabs"
  2726.  
  2727. if button.Name ~= bottom_buttons then
  2728.  
  2729. atBottom = false
  2730.  
  2731. end
  2732.  
  2733.  
  2734.  
  2735. button.MouseEnter:connect(function()
  2736.  
  2737.  
  2738.  
  2739. if not atBottom then
  2740.  
  2741. button.BackgroundTransparency = .5
  2742.  
  2743. end
  2744.  
  2745.  
  2746.  
  2747. selected = button.Name
  2748.  
  2749. if func then
  2750.  
  2751. selectedFunc = func
  2752.  
  2753. end
  2754.  
  2755. if func2 then
  2756.  
  2757. selectedFunc2 = func2
  2758.  
  2759. end
  2760.  
  2761. print(selected)
  2762.  
  2763. end)
  2764.  
  2765.  
  2766.  
  2767. button.MouseLeave:connect(function()
  2768.  
  2769.  
  2770.  
  2771. if not atBottom then
  2772.  
  2773. button.BackgroundTransparency = 1
  2774.  
  2775. end
  2776.  
  2777. if selected == button.Name then
  2778.  
  2779. selected = nil
  2780.  
  2781. selectedFunc = nil
  2782.  
  2783. selectedFunc2 = nil
  2784.  
  2785. end
  2786.  
  2787. end)
  2788.  
  2789.  
  2790.  
  2791. end
  2792.  
  2793.  
  2794.  
  2795. function makeTextbox(button)
  2796.  
  2797.  
  2798.  
  2799. bottom_buttons = "HomeMenu" or "GoBack" or "Tabs"
  2800.  
  2801. if button.Name ~= bottom_buttons then
  2802.  
  2803. atBottom = false
  2804.  
  2805. end
  2806.  
  2807.  
  2808.  
  2809. button.MouseEnter:connect(function()
  2810.  
  2811.  
  2812.  
  2813. if not atBottom then
  2814.  
  2815. button.BackgroundTransparency = .5
  2816.  
  2817. end
  2818.  
  2819.  
  2820.  
  2821. selected = "Textbox"
  2822.  
  2823. selectedFunc = function()
  2824.  
  2825. curtbox = button
  2826.  
  2827. end
  2828.  
  2829. end)
  2830.  
  2831.  
  2832.  
  2833. button.MouseLeave:connect(function()
  2834.  
  2835.  
  2836.  
  2837. if not atBottom then
  2838.  
  2839. button.BackgroundTransparency = 1
  2840.  
  2841. end
  2842.  
  2843. if selected == button.Name then
  2844.  
  2845. selected = nil
  2846.  
  2847. selectedFunc = nil
  2848.  
  2849. end
  2850.  
  2851. end)
  2852.  
  2853.  
  2854.  
  2855. end
  2856.  
  2857.  
  2858.  
  2859.  
  2860.  
  2861. function newSound(name)
  2862.  
  2863. local ns = Instance.new("Sound", phone)
  2864.  
  2865. ns.Name = name
  2866.  
  2867. ns.Volume = volume
  2868.  
  2869. return ns
  2870.  
  2871. end
  2872.  
  2873.  
  2874.  
  2875.  
  2876.  
  2877. function DispTopBar()
  2878.  
  2879. coroutine.resume(coroutine.create(function()
  2880.  
  2881. top:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Quad", .5, true)
  2882.  
  2883. title.Text = loc
  2884.  
  2885. topbarwait = 10
  2886.  
  2887. repeat
  2888.  
  2889. wait(1)
  2890.  
  2891. topbarwait = topbarwait - 1
  2892.  
  2893. until topbarwait <= 0
  2894.  
  2895.  
  2896.  
  2897. top:TweenPosition(UDim2.new(0, 0, 0, -top.Size.Y.Offset), "Out", "Quad", .5, true)
  2898.  
  2899. end))
  2900.  
  2901. end
  2902.  
  2903.  
  2904.  
  2905. function topBar()
  2906.  
  2907. top = Instance.new("Frame", backdrop)
  2908.  
  2909. top.Name = "TopBar"
  2910.  
  2911. top.Size = UDim2.new(0, canvy, 0, canvy/15)
  2912.  
  2913. top.Position = UDim2.new(0, 0, 0, -top.Size.Y.Offset)
  2914.  
  2915. top.BackgroundColor3 = Color3.new(0,0,0)
  2916.  
  2917. top.BackgroundTransparency = .6
  2918.  
  2919. top.ZIndex = 10
  2920.  
  2921. topbar = top
  2922.  
  2923. --topdown = false
  2924.  
  2925. local top2 = top:Clone()
  2926.  
  2927. top2.Parent = top.Parent
  2928.  
  2929. top2.BackgroundTransparency = 1
  2930.  
  2931. top2.Position = UDim2.new()
  2932.  
  2933. top2.Active = true
  2934.  
  2935.  
  2936.  
  2937. title = Instance.new("TextLabel", top)
  2938.  
  2939. title.BackgroundTransparency = 1
  2940.  
  2941. title.Size = UDim2.new(0, canvx/10, 1, 0)
  2942.  
  2943. title.Position = UDim2.new(0, canvx - canvx/2 - title.Size.X.Offset/2, 0, 0)
  2944.  
  2945. title.ZIndex = 10
  2946.  
  2947. title.FontSize = "Size18"
  2948.  
  2949. title.TextColor3 = white
  2950.  
  2951.  
  2952.  
  2953. clock = Instance.new("TextLabel", top)
  2954.  
  2955. clock.BackgroundTransparency = 1
  2956.  
  2957. clock.Size = UDim2.new(0, canvx/10, 1, 0)
  2958.  
  2959. clock.Position = UDim2.new(0, canvx - clock.Size.X.Offset*2, 0, 0)
  2960.  
  2961. clock.ZIndex = 10
  2962.  
  2963. clock.FontSize = "Size18"
  2964.  
  2965. clock.TextColor3 = white
  2966.  
  2967.  
  2968.  
  2969. bars = Instance.new("ImageLabel", topbar)
  2970.  
  2971. bars.Size = UDim2.new(.1, 0, .8, 0)
  2972.  
  2973. bars.Position = UDim2.new(.05, 0, .1, 0)
  2974.  
  2975. bars.BackgroundTransparency = 1
  2976.  
  2977. bars.ZIndex = 10
  2978.  
  2979.  
  2980.  
  2981. CheckHTTPConnection()
  2982.  
  2983. updateClock()
  2984.  
  2985.  
  2986.  
  2987. top2.MouseEnter:connect(function()
  2988.  
  2989. DispTopBar()
  2990.  
  2991. end)
  2992.  
  2993.  
  2994.  
  2995. end
  2996.  
  2997.  
  2998.  
  2999. function bottomBar()
  3000.  
  3001. local bottom = Instance.new("SurfaceGui", phone)
  3002.  
  3003. bottom.Name = "BottomBar"
  3004.  
  3005. bottom.CanvasSize = Vector2.new(800, 200)
  3006.  
  3007. bottom.Face = "Back"
  3008.  
  3009.  
  3010.  
  3011. bottomFrame = Instance.new("Frame", bottom)
  3012.  
  3013. bottomFrame.Name = "BottomFrame"
  3014.  
  3015. bottomFrame.Size = UDim2.new(0, 760, 0, 15)
  3016.  
  3017. bottomFrame.Position = UDim2.new(0, 20, 0, 180)
  3018.  
  3019. bottomFrame.ZIndex = 10
  3020.  
  3021. bottomFrame.BackgroundColor3 = Color3.new()
  3022.  
  3023. bottomFrame.BackgroundTransparency = 0
  3024.  
  3025. bottomFrame.Active = true
  3026.  
  3027.  
  3028.  
  3029. local homelab = Instance.new("ImageLabel", bottomFrame) -- ImageLabel for the Home Menu
  3030.  
  3031. homelab.Name = "HomeMenu"
  3032.  
  3033. homelab.Size = UDim2.new(.15, 0, 1, 0)
  3034.  
  3035. homelab.BackgroundTransparency = 1
  3036.  
  3037. homelab.Position = UDim2.new(.45, 0, 0, 0)
  3038.  
  3039. homelab.Image = asset..Textures["Home Button"]
  3040.  
  3041. homelab.Active = true
  3042.  
  3043. homelab.ZIndex = 10
  3044.  
  3045.  
  3046.  
  3047. homebutt = Instance.new("ImageLabel", backdrop)
  3048.  
  3049. homebutt.Name = "HomeMenu"
  3050.  
  3051. homebutt.Size = UDim2.new(0, 50, 0, 40)
  3052.  
  3053. homebutt.Position = UDim2.new(0, 176, 0, 469)
  3054.  
  3055. homebutt.BackgroundTransparency = 1
  3056.  
  3057. homebutt.ZIndex = 10
  3058.  
  3059.  
  3060.  
  3061. makeButton(homebutt)
  3062.  
  3063.  
  3064.  
  3065. tabslab = homelab:Clone()
  3066.  
  3067. tabslab.Parent = bottomFrame
  3068.  
  3069. tabslab.Name = "Tabs"
  3070.  
  3071. tabslab.Image = asset..Textures["Tabs Icon"]
  3072.  
  3073. tabslab.Position = UDim2.new(.82, 0, 0, 0)
  3074.  
  3075.  
  3076.  
  3077. tabsbutt = Instance.new("ImageLabel", backdrop)
  3078.  
  3079. tabsbutt.Name = "Tabs"
  3080.  
  3081. tabsbutt.Size = UDim2.new(0, 50, 0, 40)
  3082.  
  3083. tabsbutt.Position = UDim2.new(0, 330, 0, 463)
  3084.  
  3085. tabsbutt.BackgroundTransparency = 1
  3086.  
  3087. tabsbutt.ZIndex = 10
  3088.  
  3089.  
  3090.  
  3091. makeButton(tabsbutt)
  3092.  
  3093.  
  3094.  
  3095. bottombar = bottom
  3096.  
  3097. --bottomdown = false
  3098.  
  3099. end
  3100.  
  3101.  
  3102.  
  3103.  
  3104.  
  3105. function updateClock()
  3106.  
  3107.  
  3108.  
  3109. local time_zone = -5 -- Time zone, offset from GMT.
  3110.  
  3111. local secondsInDay = 60*60*24
  3112.  
  3113. local tick = math.fmod(tick(),secondsInDay)
  3114.  
  3115. local hour = math.floor(tick/3600) + 5 + time_zone
  3116.  
  3117. local minute = math.floor(tick/60 - 60*hour)
  3118.  
  3119. local second = math.floor(math.fmod(tick,60))
  3120.  
  3121.  
  3122.  
  3123. if clock then
  3124.  
  3125. if minute < 10 then
  3126.  
  3127. minute = "0"..minute
  3128.  
  3129. end
  3130.  
  3131. clock.Text = hour..":"..minute
  3132.  
  3133. end
  3134.  
  3135. end
  3136.  
  3137.  
  3138.  
  3139. function CheckHTTPConnection()
  3140.  
  3141. if topbar then
  3142.  
  3143. --httpserv = game:FindFirstChild("HttpService")
  3144.  
  3145. if httpserv and bars then
  3146.  
  3147. bars.Image = asset..Textures["Wireless_Bars"]
  3148.  
  3149. elseif bars then
  3150.  
  3151. bars.Image = asset..Textures["No Signal"]
  3152.  
  3153. end
  3154.  
  3155. end
  3156.  
  3157. end
  3158.  
  3159.  
  3160.  
  3161. function chat(msg)
  3162.  
  3163. local lowmsg = string.lower(msg)
  3164.  
  3165. if loc == "My Music" and string.sub(lowmsg, 1, 5) == "play:" then
  3166.  
  3167. lowmsg = string.gsub(lowmsg, " ", "")
  3168.  
  3169. local id = string.sub(lowmsg, 6)
  3170.  
  3171. backdrop["My Music"]["Custom"]["desc"].Text = "ID: "..id
  3172.  
  3173. MusicList["Custom"]["SNDAsset"] = asset..id
  3174.  
  3175. end
  3176.  
  3177. end
  3178.  
  3179.  
  3180.  
  3181. plyr.Chatted:connect(chat)
  3182.  
  3183.  
  3184.  
  3185. function KDown(key)
  3186.  
  3187.  
  3188.  
  3189. char = plyr.Character
  3190.  
  3191. head = char:FindFirstChild("Head")
  3192.  
  3193. ra = char:FindFirstChild("Right Arm")
  3194.  
  3195. torso = char:FindFirstChild("Torso")
  3196.  
  3197. local hasAllParts = char and head and ra and torso
  3198.  
  3199.  
  3200.  
  3201. print("Curtbox = ",curtbox)
  3202.  
  3203.  
  3204.  
  3205. if not typing then
  3206.  
  3207. if key == "g" and hasAllParts and phoneOut == false then
  3208.  
  3209. oldcount = gcount
  3210.  
  3211. takeOutPhone()
  3212.  
  3213. bottomBar()
  3214.  
  3215. wait(.4)
  3216.  
  3217. if oldcount == gcount then
  3218.  
  3219. DoIntro()
  3220.  
  3221. end
  3222.  
  3223. topBar()
  3224.  
  3225. if oldcount == gcount then
  3226.  
  3227. DispMenu()
  3228.  
  3229. end
  3230.  
  3231.  
  3232.  
  3233. elseif key == "g" and hasAllParts and phoneOut == true then
  3234.  
  3235. putAwayPhone()
  3236.  
  3237. loc = nil
  3238.  
  3239.  
  3240.  
  3241. if looking then
  3242.  
  3243. looking = false
  3244.  
  3245. torso.Anchored = false
  3246.  
  3247. end
  3248.  
  3249.  
  3250.  
  3251.  
  3252.  
  3253. elseif key == "0" and phoneOut and torso and torso.Anchored == false and not looking then
  3254.  
  3255. looking = true
  3256.  
  3257. torso.Anchored = true
  3258.  
  3259.  
  3260.  
  3261. if foneweld then
  3262.  
  3263. foneweld.C0 = CFrame.new(0, -.8, 1.2) * CFrame.Angles(math.rad(30), 0, 0)
  3264.  
  3265. end
  3266.  
  3267.  
  3268.  
  3269.  
  3270.  
  3271.  
  3272.  
  3273. local spd = .1
  3274.  
  3275. repeat
  3276.  
  3277. cam.FieldOfView = cam.FieldOfView - spd
  3278.  
  3279. spd = spd + .1
  3280.  
  3281. wait(0)
  3282.  
  3283. until cam.FieldOfView < 55 or not looking
  3284.  
  3285.  
  3286.  
  3287.  
  3288.  
  3289. elseif key == "0" and phoneOut and torso and torso.Anchored == true then
  3290.  
  3291. looking = false
  3292.  
  3293. torso.Anchored = false
  3294.  
  3295.  
  3296.  
  3297.  
  3298.  
  3299. if foneweld then
  3300.  
  3301. foneweld.C0 = CFrame.new(-.5, -.8, 1.2) * CFrame.Angles(math.rad(30), 0, 0)
  3302.  
  3303. end
  3304.  
  3305.  
  3306.  
  3307.  
  3308.  
  3309. local spd = .1
  3310.  
  3311. repeat
  3312.  
  3313. cam.FieldOfView = cam.FieldOfView + spd
  3314.  
  3315. spd = spd + .1
  3316.  
  3317. wait(0)
  3318.  
  3319. until cam.FieldOfView >= 70 or looking
  3320.  
  3321.  
  3322.  
  3323. elseif key == "n" and volume > 0 then
  3324.  
  3325. volume = volume - .1
  3326.  
  3327. for _,v in pairs(phone:GetChildren()) do
  3328.  
  3329. if v.ClassName == "Sound" then
  3330.  
  3331. v.Volume = volume
  3332.  
  3333. end
  3334.  
  3335. end
  3336.  
  3337. elseif key == "m" and volume < 1 then
  3338.  
  3339. volume = volume + .1
  3340.  
  3341. for _,v in pairs(phone:GetChildren()) do
  3342.  
  3343. if v.ClassName == "Sound" then
  3344.  
  3345. v.Volume = volume
  3346.  
  3347. end
  3348.  
  3349. end
  3350.  
  3351. end
  3352.  
  3353.  
  3354.  
  3355. elseif string.byte(key) == 13 and typing then
  3356.  
  3357. typing = false
  3358.  
  3359. curtbox = nil
  3360.  
  3361. char.Humanoid.WalkSpeed = normWS
  3362.  
  3363.  
  3364.  
  3365. elseif typing and curtbox and string.byte(key) == 8 then -- Backspace
  3366.  
  3367. curtbox.Text = string.sub(curtbox.Text, 1, string.len(curtbox)-1)
  3368.  
  3369.  
  3370.  
  3371. elseif typing and curtbox then -- Type to the textbox
  3372.  
  3373.  
  3374.  
  3375. curtbox.Text = curtbox.Text..key
  3376.  
  3377.  
  3378.  
  3379. end
  3380.  
  3381. end
  3382.  
  3383.  
  3384.  
  3385. plyr:GetMouse().KeyDown:connect(KDown)
  3386.  
  3387.  
  3388.  
  3389.  
  3390.  
  3391. function MDown()
  3392.  
  3393. print(selected)
  3394.  
  3395. keylist["M1"] = true
  3396.  
  3397.  
  3398.  
  3399. if selectedFunc then
  3400.  
  3401.  
  3402.  
  3403. selectedFunc()
  3404.  
  3405.  
  3406.  
  3407. elseif selected ~= nil then
  3408.  
  3409. if APPS[selected] and loc == "Menu" then
  3410.  
  3411. APPS[selected]["Code"]()
  3412.  
  3413. elseif APPS[selected] and loc == "All Tabs" then -- If
  3414.  
  3415. if Tabs:FindFirstChild(selected) then
  3416.  
  3417. GetTab(selected)
  3418.  
  3419. end
  3420.  
  3421. elseif selected == "HomeMenu" and loc ~= "Menu" then
  3422.  
  3423. DispMenu()
  3424.  
  3425. elseif selected == "Tabs" then
  3426.  
  3427. ShowTabs()
  3428.  
  3429. --[[
  3430.  
  3431. elseif selected == "Textbox" then
  3432.  
  3433. normWS = char.Humanoid.WalkSpeed
  3434.  
  3435. char.Humanoid.WalkSpeed = 0
  3436.  
  3437. typing = true
  3438.  
  3439. ]]
  3440.  
  3441. end
  3442.  
  3443. end
  3444.  
  3445.  
  3446.  
  3447. end
  3448.  
  3449. plyr:GetMouse().Button1Down:connect(MDown)
  3450.  
  3451.  
  3452.  
  3453. function MUp()
  3454.  
  3455. keylist["M1"] = nil
  3456.  
  3457. end
  3458.  
  3459. plyr:GetMouse().Button1Up:connect(MUp)
  3460.  
  3461.  
  3462.  
  3463. function M2Down()
  3464.  
  3465. keylist["M2"] = true
  3466.  
  3467. if selectedFunc2 then
  3468.  
  3469. selectedFunc2()
  3470.  
  3471. end
  3472.  
  3473. end
  3474.  
  3475. plyr:GetMouse().Button2Down:connect(M2Down)
  3476.  
  3477.  
  3478.  
  3479. function M2Up()
  3480.  
  3481. keylist["M2"] = nil
  3482.  
  3483. end
  3484.  
  3485. plyr:GetMouse().Button2Up:connect(M2Up)
  3486.  
  3487.  
  3488.  
  3489. while true do
  3490.  
  3491. --CheckHTTPConnection()
  3492.  
  3493. updateClock()
  3494.  
  3495. wait()
  3496.  
  3497. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement