Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = game.Players.LocalPlayer
- char = player.Character
- cam = Workspace.CurrentCamera
- MusicList = {["Fracture"] = {
- ["Artist"] = "Heyeaheyeaheyeah",
- ["Image"] = "170940501",
- ["SNDAsset"] = "155869694"},
- ["Professional Griefers"] = {
- ["Artist"] = "DeadMau5",
- ["Image"] = "74028542",
- ["SNDAsset"] = "142285269"},
- ["Custom"] = {
- ["Artist"] = "YOU!",
- ["Image"] = "",
- ["SNDAsset"] = ""},
- ["Awwsome"] = {
- ["Artist"] = "Shy Glizzy",
- ["Image"] = "170143162",
- ["SNDAsset"] = "163830723"},
- ["IGNITE"] = {
- ["Artist"] = "Eir Aoi",
- ["Image"] = "144879739",
- ["SNDAsset"] = "164856392"}
- }
- SettingOptions = {"Background and Color",
- "Styles",
- "Apps Management",
- "Ringtones",
- "Date and Time",
- "Region",
- "Phone Updates",
- "Phone Lock",
- "About your Phone"}
- style = "Bounce"
- ringtone = nil
- region = "US"
- auto_updates = false
- phonelocked = false
- APPS = {["My Music"] = {["Icon"] = "12297005",
- ["Code"] = function()
- local nscrn = NewScreen(Color3.new(.35, .35, .35), "My Music")
- if nscrn then
- if phone:FindFirstChild(nscrn.Name) then
- phone[nscrn.Name]:Destroy()
- end
- local newsound = newSound(nscrn.Name)
- local playing = nil
- local YPos_Start = 15
- local itemsizeY = canvy/7
- local between = 3
- local amt = 0
- for i,v in pairs(MusicList) do
- amt = amt+1
- local musicItem = Instance.new("Frame", nscrn)
- musicItem.Name = i
- musicItem.Size = UDim2.new(1, 0, 0, canvy/7)
- musicItem.Position = UDim2.new(0, 0, 0, itemsizeY*amt)
- musicItem.BackgroundColor3 = bgCol
- musicItem.BackgroundTransparency = .7
- musicItem.BorderColor3 = bgCol
- musicItem.ZIndex = tab+1
- local coverImg = Instance.new("ImageLabel", musicItem)
- coverImg.Name = " "
- coverImg.Image = asset..v["Image"]
- coverImg.BorderSizePixel = 0
- coverImg.Size = UDim2.new(0.2,0, 1, 0)
- coverImg.Position = UDim2.new(0,0,0,0)
- coverImg.ZIndex = tab+1
- local DescText = Instance.new("TextLabel", musicItem)
- DescText.Name = "desc"
- DescText.Size = UDim2.new(.3, 0, 1, 0)
- DescText.Position = UDim2.new(.25, 0, 0, 0)
- DescText.BackgroundTransparency = 1
- DescText.TextColor3 = white
- DescText.FontSize = "Size18"
- DescText.TextScaled = true
- DescText.Text = i.." - By: "..v["Artist"]
- DescText.ZIndex = tab+1
- local playIcon = nil
- musicItem.MouseEnter:connect(function()
- musicItem.BackgroundTransparency = .5
- local sndasset = asset..v["SNDAsset"]
- playIcon = Instance.new("ImageLabel")
- playIcon.Name = "PlayIcon"..amt
- playIcon.BackgroundTransparency = 1
- playIcon.Size = UDim2.new(.2, 0, 1, 0)
- playIcon.Position = UDim2.new(.7,0,0,0)
- playIcon.ZIndex = musicItem.ZIndex+1
- if newsound.SoundId ~= sndasset then
- playIcon.Image = asset..Textures["Play Music"]
- elseif newsound.SoundId == sndasset then
- playIcon.Image = asset..Textures["Pause Music"]
- else
- playIcon.Image = ""
- end
- playIcon.Parent = musicItem
- selected = playIcon.Name
- selectedFunc = function(playmusic)
- musicItem.Transparency = .5
- if newsound.SoundId ~= sndasset then
- newsound:Stop()
- newsound.SoundId = sndasset
- newsound:Play()
- elseif newsound.SoundId == sndasset then
- newsound:Stop()
- newsound.SoundId = ""
- if musicItem:FindFirstChild(playIcon.Name) then
- musicItem[playIcon.Name].Image = ""
- end
- end
- --[[
- if musicItem:FindFirstChild(playIcon.Name) then
- musicItem.playIcon:Destroy()
- end]]
- end
- end)
- musicItem.MouseLeave:connect(function()
- if musicItem:FindFirstChild(playIcon.Name) then
- musicItem[playIcon.Name]:Destroy()
- end
- musicItem.Transparency = .7
- if selected == playIcon.Name then
- selected = nil
- selectedFunc = nil
- end
- end)
- end
- end
- end},
- ["BloxTube"] = {["Icon"] = "2164890",
- ["Code"] = function() print("Do shet") end},
- ["Settings"] = {["Icon"] = "132769544",
- ["Code"] = function()
- local nscrn = NewScreen(Color3.new(.08, .08, .08), "Settings")
- if nscrn then
- local ovrscrn = Instance.new("ScrollingFrame", nscrn)
- ovrscrn.Name = "Overscreen"
- ovrscrn.Size = UDim2.new(0, 380, 0, 535)
- ovrscrn.ScrollBarThickness = 16
- ovrscrn.BackgroundTransparency = 1
- ovrscrn.MidImage = asset.."171011914"
- ovrscrn.ZIndex = tab + 1
- local curwin = nil
- local win = nil
- function MakeWindow(heading)
- if curwin == nil then
- win = nscrn:Clone()
- win:ClearAllChildren()
- win.Name = heading
- win.Position = UDim2.new(1, 0, 0, 0)
- win.Parent = nscrn
- win.BorderSizePixel = 2
- win.BorderColor3 = white
- win.ZIndex = tab + 2
- win:TweenPosition(UDim2.new(), "Out", "Sine", 1)
- ovrscrn:TweenPosition(UDim2.new(1, 0, 0, 0), "Out", "Sine", 1)
- curwin = win
- return win
- else
- print("Returned nil")
- return nil
- end
- end
- function LeaveWin(this)
- if this then
- for _,v in pairs(this:GetChildren()) do
- v:Destroy()
- end
- this:TweenPosition(UDim2.new(1, 0, 0, 0), "Out", "Sine", 1)
- curwin = nil
- end
- end
- local YPos_Start = 75
- local itemsizeY = canvy/12
- local between = 3
- local amt = 0
- --local toolItem = nil
- ovrscrn.Position = UDim2.new(0, 0, 0, YPos_Start)
- function DispAllSettings()
- for i,v in pairs(SettingOptions) do
- amt = amt+1
- local toolItem = Instance.new("Frame", ovrscrn)
- toolItem.Name = v
- toolItem.Size = UDim2.new(1, 0, 0, itemsizeY)
- toolItem.Position = UDim2.new(0, 0, 0, -1)
- toolItem.BackgroundColor3 = Color3.new()
- toolItem.BackgroundTransparency = 0
- toolItem.BorderColor3 = white
- toolItem.ZIndex = tab+1
- local DescText = Instance.new("TextLabel", toolItem)
- DescText.Name = v
- DescText.Size = UDim2.new(.5, 0, 1, 0)
- DescText.Position = UDim2.new(.2, 0, 0, 0)
- DescText.BackgroundTransparency = 1
- DescText.TextColor3 = white
- DescText.FontSize = "Size18"
- DescText.Text = v
- DescText.TextXAlignment = "Left"
- DescText.ZIndex = tab+1
- local scrntitle = DescText:Clone()
- scrntitle.Parent = nscrn
- scrntitle.Name = "ScreenTitle"
- scrntitle.Size = UDim2.new(.3, 0, 0, canvy/15)
- scrntitle.Position = UDim2.new(0, 10, 0, 40)
- scrntitle.Text = "__ Settings __"
- scrntitle.TextScaled = false
- toolItem.MouseEnter:connect(function()
- toolItem.BackgroundColor3 = white
- DescText.TextColor3 = Color3.new()
- selected = toolItem.Name
- selectedFunc = function()
- local new_win = MakeWindow(toolItem.Name)
- if new_win then
- local wintitle = Instance.new("TextLabel", new_win)
- wintitle.Name = "Title"
- wintitle.Size = UDim2.new(.3, 0, .1, 0)
- wintitle.Position = UDim2.new(0, 0, 0, 40)
- wintitle.BackgroundTransparency = 1
- wintitle.TextColor3 = white
- wintitle.FontSize = "Size24"
- wintitle.Text = " "..toolItem.Name
- wintitle.TextXAlignment = "Left"
- wintitle.ZIndex = new_win.ZIndex + 1
- if toolItem.Name == "Background and Color" then
- local desc = wintitle:Clone()
- desc.Parent = new_win
- desc.FontSize = "Size18"
- desc.Position = UDim2.new(0, 20, 0, 95)
- desc.Size = UDim2.new(.9, 0, .2, 0)
- desc.TextXAlignment = "Center"
- desc.TextScaled = true
- desc.Text = "Change your theme color using the item below."
- local pbox = Instance.new("Frame", new_win)
- pbox.Name = "ColorBox"
- pbox.Size = UDim2.new(0, 50, 0, 50)
- pbox.Position = UDim2.new(0, 80, 0, 210)
- pbox.BorderSizePixel = 2
- pbox.BorderColor3 = white
- pbox.BackgroundColor3 = bgCol
- pbox.ZIndex = new_win.ZIndex+1
- local distbtwn = 60
- local R = pbox:Clone()
- R.Parent = new_win
- R.Name = "RValue"
- R.Position = UDim2.new(0, 160, 0, 210)
- R.BackgroundColor3 = Color3.new()
- local G = R:Clone()
- G.Parent = new_win
- G.Name = "GValue"
- G.Position = UDim2.new(0, 160+distbtwn, 0, 210)
- local GTbox = Instance.new("TextLabel", G)
- GTbox.Name = "Textbox"
- GTbox.Size = UDim2.new(1, 0, 1, 0)
- GTbox.TextColor3 = white
- GTbox.BackgroundTransparency = 1
- GTbox.FontSize = "Size18"
- GTbox.Text = math.floor(bgCol.g*255)
- GTbox.ZIndex = R.ZIndex + 1
- makeButton(GTbox, function(upval)
- coroutine.resume(coroutine.create(function()
- while keylist["M1"] do
- if tonumber(GTbox.Text) < 255 then
- GTbox.Text = tonumber(GTbox.Text) + 1
- end
- wait(.1)
- end
- end))
- end,
- function(downval)
- coroutine.resume(coroutine.create(function()
- while keylist["M2"] do
- if tonumber(GTbox.Text) > 0 then
- GTbox.Text = tonumber(GTbox.Text) - 1
- end
- wait(.1)
- end
- end))
- end)
- --makeTextbox(GTbox)
- local B = R:Clone()
- B.Parent = new_win
- B.Name = "BValue"
- B.Position = UDim2.new(0, 220+distbtwn, 0, 210)
- local BTbox = Instance.new("TextLabel", B)
- BTbox.Name = "Textbox"
- BTbox.Size = UDim2.new(1, 0, 1, 0)
- BTbox.TextColor3 = white
- BTbox.BackgroundTransparency = 1
- BTbox.FontSize = "Size18"
- BTbox.Text = math.floor(bgCol.b*255)
- BTbox.ZIndex = R.ZIndex + 1
- makeButton(BTbox, function(upval)
- coroutine.resume(coroutine.create(function()
- while keylist["M1"] do
- if tonumber(BTbox.Text) < 255 then
- BTbox.Text = tonumber(BTbox.Text) + 1
- end
- wait(.1)
- end
- end))
- end,
- function(downval)
- coroutine.resume(coroutine.create(function()
- while keylist["M2"] do
- if tonumber(BTbox.Text) > 0 then
- BTbox.Text = tonumber(BTbox.Text) - 1
- end
- wait(.1)
- end
- end))
- end)
- --makeTextbox(BTbox)
- local RTbox = Instance.new("TextLabel", R)
- RTbox.Name = "Textbox"
- RTbox.Size = UDim2.new(1, 0, 1, 0)
- RTbox.TextColor3 = white
- RTbox.BackgroundTransparency = 1
- RTbox.FontSize = "Size18"
- RTbox.Text = math.floor(bgCol.r*255)
- RTbox.ZIndex = R.ZIndex + 1
- makeButton(RTbox, function(upval)
- coroutine.resume(coroutine.create(function()
- while keylist["M1"] do
- if tonumber(RTbox.Text) < 255 then
- RTbox.Text = tonumber(RTbox.Text) + 1
- end
- wait(.1)
- end
- end))
- end,
- function(downval)
- coroutine.resume(coroutine.create(function()
- while keylist["M2"] do
- if tonumber(RTbox.Text) > 0 then
- RTbox.Text = tonumber(RTbox.Text) - 1
- end
- wait(.1)
- end
- end))
- end)
- --makeTextbox(RTbox)
- function refreshcol()
- local rcol = RTbox.Text
- local gcol = GTbox.Text
- local bcol = BTbox.Text
- pbox.BackgroundColor3 = Color3.new(rcol/255, gcol/255, bcol/255)
- bgCol = Color3.new(rcol/255, gcol/255, bcol/255)
- end
- RTbox.Changed:connect(refreshcol)
- GTbox.Changed:connect(refreshcol)
- BTbox.Changed:connect(refreshcol)
- end
- end
- end
- end)
- toolItem.MouseLeave:connect(function()
- toolItem.BackgroundColor3 = Color3.new()
- DescText.TextColor3 = white
- selected = nil
- selectedFunc = nil
- end)
- toolItem:TweenPosition(UDim2.new(0, 0, 0, itemsizeY*amt), "Out", "Quart", 1)
- end
- end
- DispAllSettings()
- end
- end},
- ["Explorer"] = {["Icon"] = "99368131",
- ["Code"] = function() print("Do shet") end},
- ["Players"] = {["Icon"] = "132279861",
- ["Code"] = function()
- local nscrn = NewScreen(Color3.new(.7, .8, 1), "Players")
- if nscrn then
- local YPos_Start = 15
- local itemsizeY = canvy/7
- local between = 3
- local amt = 0
- local playerItem = nil
- function refreshPlayers()
- for i,v in pairs(game.Players:GetPlayers()) do
- amt = amt+1
- playerItem = Instance.new("Frame", nscrn)
- playerItem.Name = v.Name
- playerItem.Size = UDim2.new(1, 0, 0, canvy/7)
- playerItem.Position = UDim2.new(0, 0, 0, -1)
- playerItem.BackgroundColor3 = bgCol
- playerItem.BackgroundTransparency = .7
- playerItem.BorderColor3 = bgCol
- playerItem.ZIndex = tab+1
- local coverImg = Instance.new("ImageLabel", playerItem)
- coverImg.Name = i
- coverImg.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..v.Name
- coverImg.BorderSizePixel = 0
- coverImg.Size = UDim2.new(0.2,0, 1, 0)
- coverImg.Position = UDim2.new(0,0,0,0)
- coverImg.BackgroundTransparency = .5
- coverImg.ZIndex = tab+1
- local DescText = Instance.new("TextLabel", playerItem)
- DescText.Name = i
- DescText.Size = UDim2.new(.3, 0, 1, 0)
- DescText.Position = UDim2.new(.25, 0, 0, 0)
- DescText.BackgroundTransparency = 1
- DescText.TextColor3 = white
- DescText.FontSize = "Size18"
- DescText.TextScaled = true
- DescText.Text = "Player: "..v.Name
- DescText.ZIndex = tab+1
- local scrntitle = DescText:Clone()
- scrntitle.Parent = nscrn
- scrntitle.Name = "ScreenTitle"
- scrntitle.Size = UDim2.new(.3, 0, 0, canvy/15)
- scrntitle.Position = UDim2.new(0, 10, 0, 40)
- scrntitle.TextStrokeColor3 = bgCol
- scrntitle.TextStrokeTransparency = .8
- scrntitle.Text = "Players List"
- scrntitle.TextScaled = false
- playerItem:TweenPosition(UDim2.new(0, 0, 0, itemsizeY*amt), "Out", "Quart", 1)
- end
- end
- refreshPlayers()
- game.Players.PlayerRemoving:connect(function(plr)
- for _,v in pairs(nscrn:GetChildren()) do
- if v.ClassName == "Frame" then
- v:Destroy()
- end
- end
- refreshPlayers()
- end)
- playerItem.MouseEnter:connect(function()
- playerItem.BackgroundTransparency = .5
- selected = playerItem.Name
- selectedFunc = nil
- end)
- playerItem.MouseLeave:connect(function()
- playerItem.Transparency = .7
- if selected == playerItem.Name then
- selected = nil
- selectedFunc = nil
- end
- end)
- end
- end},
- ["BloxTube"] = {["Icon"] = "2164890",
- ["Code"] = function() print("Do shet") end},
- ["Head Asploder"] = {["Icon"] = "171700393",
- ["Code"] = function()
- local nscrn = NewScreen(BrickColor.new("Br. yellowish orange").Color, "Head Asploder")
- if nscrn then
- local titleimg = Instance.new("ImageLabel", nscrn)
- titleimg.Size = UDim2.new(.7, 0, .7, 0)
- titleimg.BackgroundTransparency = 1
- titleimg.Image = asset..171700393
- titleimg.Position = UDim2.new(.12, 0, .1)
- titleimg.ZIndex = nscrn.ZIndex +1
- local title = Instance.new("TextLabel", nscrn)
- title.Size = UDim2.new(0, 380, .4, 0)
- title.Position = UDim2.new(0, 0, .5, 0)
- title.BackgroundTransparency = 1
- title.FontSize = "Size48"
- title.TextColor3 = white
- title.TextStrokeColor3 = BrickColor.new("Bright red").Color
- title.TextStrokeTransparency = .2
- title.Text = "Head Asploder"
- title.TextWrapped = true
- title.ZIndex = titleimg.ZIndex
- wait(2)
- title:Destroy()
- titleimg.Image = asset..Textures["bloxxer"]
- nscrn.BackgroundColor3 = Color3.new(0.57745, 0.32254, 0.15784)
- local vict = Instance.new("TextLabel", nscrn)
- vict.Size = UDim2.new(.4, 0, 0, canvy/7)
- vict.Position = UDim2.new(0, 0 ,0, canvy/7)
- vict.Text = "Victim:"
- vict.FontSize = "Size24"
- vict.Font = "Legacy"
- vict.TextColor3 = white
- vict.TextStrokeTransparency = .2
- vict.TextStrokeColor3 = BrickColor.new("Bright red").Color
- vict.BackgroundTransparency = 1
- vict.ZIndex = titleimg.ZIndex + 1
- local victpic = Instance.new("ImageLabel", nscrn)
- victpic.Size = UDim2.new(.4, 0, .3, 0)
- victpic.Position = UDim2.new(0, 0, 0, canvy/7*2)
- victpic.Image = ""
- victpic.BackgroundTransparency = .7
- victpic.BackgroundColor3 = BrickColor.new("Neon orange").Color
- victpic.BorderColor3 = BrickColor.new("Br. yellowish orange").Color
- victpic.ZIndex = titleimg.ZIndex + 1
- local tim = Instance.new("TextLabel", nscrn)
- tim.Name = "Textbox"
- tim.Size = UDim2.new(0, 40, 0, 49)
- tim.Position = UDim2.new(.15, 0, .6, 0)
- tim.TextColor3 = white
- tim.BackgroundTransparency = 1
- tim.FontSize = "Size18"
- tim.Text = 5
- tim.ZIndex = titleimg.ZIndex + 1
- makeButton(tim, function(upval)
- coroutine.resume(coroutine.create(function()
- if tonumber(tim.Text) < 10 then
- tim.Text = tonumber(tim.Text) + 1
- end
- wait(.1)
- end))
- end,
- function(downval)
- coroutine.resume(coroutine.create(function()
- if tonumber(tim.Text) > 0 then
- tim.Text = tonumber(tim.Text) - 1
- end
- wait(.1)
- end))
- end)
- local YPos_Start = 15
- local itemsizeY = canvy/7
- local between = 3
- local amt = 0
- --local playerItem = nil
- local victim = nil
- local exploding = false
- function refreshPlayers()
- for i,v in pairs(game.Players:GetPlayers()) do
- amt = amt+1
- local playerItem = Instance.new("Frame", nscrn)
- playerItem.Name = v.Name
- playerItem.Size = UDim2.new(.6, 0, 0, canvy/10)
- playerItem.Position = UDim2.new(.39, 0, 0, -1)
- playerItem.BackgroundColor3 = BrickColor.new("Neon orange").Color
- playerItem.BackgroundTransparency = .7
- playerItem.BorderColor3 = bgCol
- playerItem.ZIndex = titleimg.ZIndex+1
- local coverImg = Instance.new("ImageLabel", playerItem)
- coverImg.Name = i
- coverImg.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..v.Name
- coverImg.BorderSizePixel = 0
- coverImg.Size = UDim2.new(0.2,0, 1, 0)
- coverImg.Position = UDim2.new(0,0,0,0)
- coverImg.BackgroundTransparency = .5
- coverImg.ZIndex = titleimg.ZIndex+1
- local DescText = Instance.new("TextLabel", playerItem)
- DescText.Name = i
- DescText.Size = UDim2.new(.3, 0, 1, 0)
- DescText.Position = UDim2.new(.25, 0, 0, 0)
- DescText.BackgroundTransparency = 1
- DescText.TextColor3 = white
- DescText.FontSize = "Size18"
- DescText.TextScaled = true
- DescText.Text = "Victim, "..v.Name
- DescText.ZIndex = titleimg.ZIndex+1
- local scrntitle = DescText:Clone()
- scrntitle.Parent = nscrn
- scrntitle.Name = "ScreenTitle"
- scrntitle.Size = UDim2.new(.6, 0, 0, canvy/15)
- scrntitle.Position = UDim2.new(0, 10, 0, 40)
- scrntitle.TextStrokeColor3 = BrickColor.new("Neon orange").Color
- scrntitle.TextStrokeTransparency = .8
- scrntitle.TextXAlignment = "Left"
- scrntitle.Text = "Head Asploder"
- scrntitle.TextScaled = false
- playerItem:TweenPosition(UDim2.new(.39, 0, 0, itemsizeY*amt), "Out", "Quart", 1)
- playerItem.MouseEnter:connect(function()
- playerItem.BackgroundTransparency = .5
- selected = playerItem.Name
- selectedFunc = function()
- victim = playerItem.Name
- victpic.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&username="..victim
- victpic.Name = victim
- end
- end)
- playerItem.MouseLeave:connect(function()
- playerItem.Transparency = .7
- if selected == playerItem.Name then
- selected = nil
- selectedFunc = nil
- end
- end)
- end
- end
- function remakebody(guy)
- local fake = Instance.new("Model")
- for _,v in pairs(guy:GetChildren()) do
- if v.ClassName == "Part" and v.Name ~= "Head" then
- v:Clone().Parent = fake
- end
- end
- if fake:FindFirstChild("Torso") then
- fake.Torso.LeftSurface = "Weld"
- fake.Torso.RightSurface = "Weld"
- fake.Torso.BottomSurface = "Weld"
- if fake:FindFirstChild("Right Arm") then
- fake["Right Arm"].CFrame = fake.Torso.CFrame * CFrame.new(1.5, 0, 0)
- end
- if fake:FindFirstChild("Left Arm") then
- fake["Left Arm"].CFrame = fake.Torso.CFrame * CFrame.new(-1.5, 0, 0)
- end
- if fake:FindFirstChild("Right Leg") then
- fake["Right Leg"].CFrame = fake.Torso.CFrame * CFrame.new(.5, -2, 0)
- end
- if fake:FindFirstChild("Left Leg") then
- fake["Left Leg"].CFrame = fake.Torso.CFrame * CFrame.new(-.5, -2, 0)
- end
- fake.Parent = Workspace
- fake.Torso.Position = guy.Torso.Position
- fake:MakeJoints()
- for _,v in pairs(guy:GetChildren()) do
- if v.ClassName == "Part" and v.Name ~= "Head" then
- v:Destroy()
- elseif v.Name == "Head" then
- v.Name = "AsplodedHead"
- end
- end
- end
- end
- function doExplode(who, timelim)
- print("Doing")
- local count = timelim
- repeat
- wait(count)
- if who:FindFirstChild("Head") then
- who.Head.Mesh.Scale = Vector3.new(1.50, 1.50, 1.50)
- wait(.05)
- who.Head.Mesh.Scale = Vector3.new(1.25, 1.25, 1.25)
- end
- count = count - .3
- until count <= 0
- if who:FindFirstChild("Head") then
- local ex = Instance.new("Explosion", Workspace)
- ex.Position = who.Head.Position
- wait()
- remakebody(who)
- else
- print("Couldn't find a head!")
- end
- victpic.Image = ""
- victim = nil
- exploding = false
- end
- refreshPlayers()
- game.Players.PlayerRemoving:connect(function(plr)
- for _,v in pairs(nscrn:GetChildren()) do
- if v.ClassName == "Frame" then
- v:Destroy()
- end
- end
- if victim == plr.Name then
- victim = nil
- victpic.Name = "None"
- victpic.Image = ""
- end
- refreshPlayers()
- end)
- game.Players.PlayerAdded:connect(function(plr)
- for _,v in pairs(nscrn:GetChildren()) do
- if v.ClassName == "Frame" then
- v:Destroy()
- end
- end
- refreshPlayers()
- end)
- victpic.MouseEnter:connect(function()
- victpic.BackgroundTransparency = .5
- if victim then
- local asplode = Instance.new("TextLabel", nscrn)
- asplode.Size = UDim2.new(.4, 0, .1, 0)
- asplode.BackgroundTransparency = 1
- asplode.TextColor3 = white
- asplode.TextStrokeColor3 = BrickColor.new("Bright red").Color
- asplode.TextStrokeTransparency = .2
- asplode.Font = "ArialBold"
- asplode.FontSize = "Size36"
- asplode.Rotation = 50
- asplode.ZIndex = victpic.ZIndex +1
- asplode.Text = "ASPLODE!!!1!"
- asplode.Position = victpic.Position + UDim2.new(0, 0, victpic.Size.Y.Scale/3, 0)
- asplode.Name = "asplode"
- end
- selected = victpic.Name
- selectedFunc = function()
- if nscrn:FindFirstChild("asplode") then
- nscrn.asplode:Destroy()
- end
- local look4 = game.Players:FindFirstChild(victpic.Name)
- if look4 and look4.Character and exploding == false then
- doExplode(look4.Character, nscrn.Textbox.Text)
- end
- end
- end)
- victpic.MouseLeave:connect(function()
- victpic.Transparency = .7
- if nscrn:FindFirstChild("asplode") then
- nscrn.asplode:Destroy()
- end
- if selected == victpic.Name then
- selected = nil
- selectedFunc = nil
- end
- end)
- end
- end}
- }
- Tabs = Instance.new("Backpack")
- Tabs.Name = "Tabs"
- tab = 2
- Textures = {["Home Button"] = "170940873",
- ["Wireless_Bars"] = "170989162",
- ["No Signal"] = "171007724",
- ["Tabs Icon"] = "171009648",
- ["Play Music"] = "51811789",
- ["Pause Music"] = "61994669",
- ["Rewind Music"] = "142546687",
- ["Audio"] = "72625616",
- ["white_scroll_mid"] = "158362264",
- ["bloxxer"] = "36493098"}
- -- Screen Savers --
- ScnSavers = {["Space Earth"] = "171011490",
- ["Flower Field"] = "171011914"}
- keylist = {}
- asset = "http://www.roblox.com/asset/?id="
- raweld = nil
- foneweld = nil
- phone = nil
- menu = nil
- tabslab = nil
- loc = nil
- selected = nil
- selectedFunc = nil
- selectedFunc2 = nil
- normWS = 16
- typing = false
- curtbox = nil
- clock = nil
- tab = 2 -- Base tab will be 3 because Menu tab is 2. Use this for ZIndex.
- curtab = nil -- This is the current tab being displayed.
- topbarwait = 0
- tabsblinking = false
- volume = .5
- playing = nil
- bgCol = Color3.new() --Color3.new(.20, .30, .50)
- white = Color3.new(1,1,1)
- gcount = 0
- looking = false
- canvx = 600/1.5
- canvy = 800/1.5
- phoneOut = false
- function takeOutPhone()
- phoneOut = true
- ra = char["Right Arm"]
- torso = char.Torso
- torso["Right Shoulder"].Part0 = nil
- torso["Right Shoulder"].Part1 = nil
- torso["Right Shoulder"].Name = "RSBlank"
- raweld = Instance.new("Weld", ra)
- raweld.Part0 = raweld.Parent
- raweld.Part1 = char.Torso
- raweld.C0 = CFrame.new(-1.5, .5, .5)
- * CFrame.Angles(math.rad(-60), 0, 0)
- --* CFrame.Angles(0, -.45, 0)
- --* CFrame.new(0, 0, -.5)
- torso.Neck.C0 = torso.Neck.C0 * CFrame.Angles(math.rad(15), 0, math.rad(-5))
- phone = Instance.new("Part", Workspace)
- phone.Name = "Phone"
- phone.FormFactor = "Custom"
- phone.Size = Vector3.new(1, 1.4, .2)
- phone.Position = char.Torso.Position
- phone.TopSurface = "Smooth"
- phone.BrickColor = BrickColor.new("Black")
- sg = Instance.new("SurfaceGui", phone)
- --sg.Adornee = phone
- sg.Name = "Surface"
- sg.Face = "Back"
- surface = sg
- surface.CanvasSize = Vector2.new(canvx, canvy)
- sound = Instance.new("Sound", phone)
- sound2 = Instance.new("Sound", phone)
- fr = Instance.new("Frame", sg)
- fr.Size = UDim2.new(.95, 0, .95, 0)
- fr.Position = UDim2.new(.025, 0, .025, 0)
- fr.Name ="Backdrop"
- fr.BackgroundColor3 = Color3.new(.2, .2, .2)
- fr.ClipsDescendants = true
- fr.Active = true
- Tabs.Parent = backdrop
- backdrop = fr
- foneweld = Instance.new("Weld", phone)
- foneweld.Part0 = foneweld.Parent
- foneweld.Part1 = char.Torso
- foneweld.C0 = CFrame.new(-.5, -.8, 1.2) * CFrame.Angles(math.rad(30), 0, 0)
- end
- function putAwayPhone()
- phoneOut = false
- torso.Neck.C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- if foneweld then
- foneweld:Destroy()
- end
- if phone then
- phone:Remove()
- end
- if raweld then
- raweld:Destroy()
- end
- typing = false
- if char.Torso:FindFirstChild("RSBlank") then
- rsweld = char.Torso.RSBlank
- rsweld.Name = "Right Shoulder"
- rsweld.Part0 = torso
- rsweld.Part1 = ra
- end
- end
- function DoIntro()
- local img = Instance.new("ImageLabel", backdrop)
- img.ZIndex = 2
- img.Size = UDim2.new(0,canvx/3, 0, canvy/3)
- img.Position = UDim2.new(0, canvx/2, 0, canvy)
- img.BackgroundTransparency = 1
- img.Image = "http://www.roblox.com/asset/?id=65732094"
- local txt = Instance.new("TextLabel", backdrop)
- txt.ZIndex = 3
- txt.Size = UDim2.new(0,canvx/2,0,canvy/4)
- txt.Position = UDim2.new(0,canvx/4.5,0,-txt.Size.Y.Offset)
- txt.BackgroundTransparency = 1
- txt.TextStrokeTransparency = 0
- txt.TextStrokeColor3 = Color3.new(231/255,0/255,3/255)
- txt.TextColor3 = white
- txt.FontSize = "Size48"
- txt.Text = "G.o.C"
- local txt2 = txt:Clone()
- txt2.Parent = txt.Parent
- txt2.FontSize = "Size36"
- txt2.Position = UDim2.new(0, canvx/4.5, 0, canvy/2.3)
- txt2.Text = "Phone OS"
- txt2.TextTransparency = 1
- txt2.TextStrokeTransparency = 1
- txt:TweenPosition(UDim2.new(0, canvx/4.5, 0, canvy/3), "Out", "Quart", 2, true)
- wait(1.7)
- repeat
- txt2.TextTransparency = txt2.TextTransparency - .01
- wait(0)
- until txt2.TextTransparency < 0
- wait(1)
- repeat
- txt2.TextTransparency = txt2.TextTransparency + .01
- txt.TextTransparency = txt.TextTransparency + .01
- txt.TextStrokeTransparency = txt.TextStrokeTransparency + .01
- wait(0)
- until txt2.TextTransparency > 1 and txt.TextTransparency > 1
- wait(.5)
- end
- function DispMenu()
- if loc ~= "Menu" then
- if loc and backdrop:FindFirstChild(loc) then
- coroutine.resume(coroutine.create(function()
- local scrnclone = backdrop[loc]:Clone()
- scrnclone.Parent = backdrop
- scrnclone.Name = "@clone"
- scrnclone.ZIndex = 9
- scrnclone:TweenPosition(UDim2.new(0, 0, 0, -canvy), "Out", "Sine", 1)
- if APPS[loc] then -- If last tab was "All Tabs" then delete it for good. Else, put it in Tabs.
- backdrop[loc].Parent = Tabs
- else
- backdrop[loc]:Destroy()
- end
- tab = tab - 1
- print("Variable 'tab' = "..tab)
- scrnclone.Name = "@RemoveThis"
- scrnclone:ClearAllChildren()
- end))
- end
- loc = "Menu"
- DispTopBar()
- end
- bg = Instance.new("Frame", backdrop)
- bg.ZIndex = 2
- bg.Name = "MenuScreen"
- bg.Size = UDim2.new(1, 0, 5, 0)
- bg.Position = UDim2.new(0,0,0,0)
- bg.BackgroundTransparency = 1
- bg.BackgroundColor3 = bgCol
- bg.ClipsDescendants = true
- menu = bg
- bg.BackgroundTransparency = 1
- coroutine.resume(coroutine.create(function()
- repeat
- bg.BackgroundTransparency = bg.BackgroundTransparency - .05
- wait(0)
- until bg.BackgroundTransparency <= 0 or loc ~= "Menu"
- end))
- local row = 0
- local col = 0
- local btwnx = 32
- local btwny = 40
- for i,v in pairs(APPS) do
- local frame = Instance.new("Frame", bg)
- frame.BackgroundTransparency = 1
- frame.Size = UDim2.new(0, canvx/6, 0, canvy/6)
- frame.Name = i
- local icon = Instance.new("ImageButton", frame)
- icon.Name = i --.."Button"
- icon.Size = UDim2.new(1, 0, 1, 0)--UDim2.new(0, canvx/6, 0, canvy/6)
- appname = Instance.new("TextLabel", frame)
- appname.Size = UDim2.new(1, 0, .4, 0)
- appname.Position = UDim2.new(0, 0, .8, 0)
- appname.BackgroundColor3 = white
- appname.BackgroundTransparency = .7
- appname.ZIndex = bg.ZIndex+2
- appname.TextXAlignment = "Center"
- appname.FontSize = "Size14"
- --appname.TextScaled = true
- appname.TextColor3 = Color3.new(1, 1, 1)
- appname.Text = i
- frame.Position = UDim2.new(0,btwnx + col*btwnx + col*canvx/8, 0, btwny + row*btwny + row*canvy/8 - canvy)
- local dest = frame.Position.Y.Offset + canvy
- icon.BackgroundTransparency = 1
- icon.BackgroundColor3 = Color3.new(1, 1, 1)
- icon.Image = asset..v["Icon"]
- icon.ZIndex = bg.ZIndex+1
- frame.ZIndex = bg.ZIndex+1
- frame:TweenPosition(UDim2.new(0, frame.Position.X.Offset, 0, dest), "Out", style, 1.5, true)
- icon.MouseEnter:connect(function(glow)
- icon.BackgroundTransparency = .5
- selected = icon.Name
- print(selected)
- end)
- icon.MouseLeave:connect(function(unglow)
- icon.BackgroundTransparency = 1
- if selected == icon.Name then
- selected = nil
- end
- end)
- col = col + 1
- if col > 3 then
- col = 0
- row = row + 1
- end
- end
- end
- function LeaveMenu()
- if menu then
- for _,v in pairs(menu:GetChildren()) do
- v:Destroy()
- end
- menu.Name = "@RemoveThis"
- end
- end
- function DestroyScreen(scrn)
- if scrn then
- for _,v in pairs(phone:GetChildren()) do
- if v.Name == scrn.Name then
- if v.ClassName == "Sound" then
- v:Stop()
- end
- v:Destroy()
- end
- end
- scrn:Destroy()
- if loc ~= "All Tabs" then
- ShowTabs()
- tab = tab - 1
- end
- end
- end
- function GetTab(tabname) -- Use to get a tab currently running
- if Tabs:FindFirstChild(tabname) then
- local findtab = Tabs[tabname]
- -- REMOVE CURRENT TAB (Most Likely 'All Tabs' Tab) --
- if backdrop:FindFirstChild(loc) then
- coroutine.resume(coroutine.create(function()
- local scrnclone = backdrop[loc]:Clone()
- scrnclone.Parent = backdrop
- scrnclone.Name = "@clone"
- scrnclone.ZIndex = 9
- scrnclone:TweenPosition(UDim2.new(0, 0, 0, -canvy), "Out", "Sine", 1)
- if APPS[loc] then -- If last tab was "All Tabs" then delete it for good. Else, put it in Tabs.
- backdrop[loc].Parent = Tabs
- else
- backdrop[loc]:Destroy()
- end
- tab = tab
- print("Variable 'tab' = "..tab)
- scrnclone.Name = "@RemoveThis"
- end))
- end
- findtab.Parent = backdrop
- findtab.Position = UDim2.new(0, 0, 0, -canvy)
- findtab:TweenPosition(UDim2.new(0,0,0,0), "Out", style, 1)
- if loc == "Menu" then
- LeaveMenu()
- tab = tab + 1
- end
- loc = tabname
- DispTopBar()
- end
- end
- function NewScreen(bgcol, screen_name) -- Add background image option
- local findtab = Tabs:FindFirstChild(screen_name)
- if tab < 8 and not findtab then
- local screen = Instance.new("Frame", backdrop)
- screen.Name = screen_name
- screen.Size = UDim2.new(0,canvx,0,canvy)
- screen.Position = UDim2.new(0,0,0,-canvy)
- screen.BackgroundColor3 = bgcol
- screen.ZIndex = tab
- tab = tab+1
- if tab > 3 then -- there are tabs open already.
- for _,v in pairs(Tabs:GetChildren()) do
- local ncond = "BottomBar" or "TopBar" or "MenuScreen" or "@RemoveThis" or "@clone"
- if v.Name ~= ncond then
- v.Parent = Tabs
- end
- end
- end
- screen.Parent = backdrop
- screen:TweenPosition(UDim2.new(0,0,0,0), "Out", style, 1)
- if loc == "Menu" then
- LeaveMenu()
- end
- loc = screen_name
- DispTopBar()
- return screen
- elseif findtab then
- GetTab(findtab.Name)
- else
- print("You have too many tabs!")
- if tabslab and not tabsblinking then
- tabsblinking = true
- local bcount = 0
- repeat
- tabslab.ImageTransparency = 1
- wait(.15)
- tabslab.ImageTransparency = 0
- wait(.15)
- bcount = bcount + 1
- until bcount == 4 or not tabslab
- tabsblinking = false
- end
- end
- end
- function UpdateAllTabs(screen) -- For the "All Tabs" Frame
- print("Doing")
- local YPos_Start = 10
- local thistabsizeY = canvy/14
- local between = 3
- for amt,v in pairs(Tabs:GetChildren()) do
- print(v.Name)
- local thistab = Instance.new("Frame", screen)
- thistab.Name = v.Name
- thistab.ZIndex = tab+1
- thistab.Size = UDim2.new(1, 0, 0, thistabsizeY)
- thistab.BackgroundColor3 = Color3.new()
- thistab.Position = UDim2.new(0, 0, 0, -thistabsizeY)
- local thistabdest = YPos_Start + amt*thistabsizeY + amt*between
- local appicon = Instance.new("ImageLabel", thistab)
- appicon.Position = UDim2.new(0, 0, 0, 0)
- appicon.Size = UDim2.new(0, canvx/10, 0, thistabsizeY)
- appicon.Image = asset..APPS[v.Name]["Icon"]
- appicon.ZIndex = thistab.ZIndex
- local tabtext = Instance.new("TextButton", thistab)
- tabtext.ZIndex = thistab.ZIndex
- tabtext.Position = UDim2.new(0, appicon.Size.X.Offset + 5, 0, 0)
- tabtext.Size = UDim2.new(.5, 0, 1, 0)
- tabtext.BackgroundTransparency = 1
- tabtext.TextColor3 = white
- tabtext.Text = v.Name
- tabtext.FontSize = "Size18"
- local exitTab = tabtext:Clone()
- exitTab.Name = "RemoveTab"
- exitTab.Parent = thistab
- exitTab.Size = UDim2.new(0, canvx/10, 1, 0)
- exitTab.Position = UDim2.new(0, canvx - (canvx/10)*2, 0, 0)
- exitTab.BackgroundColor3 = Color3.new(0, 0, 0)
- exitTab.BorderColor3 = white
- exitTab.BorderSizePixel = 1
- exitTab.Text = "X"
- thistab.Position = UDim2.new(0,0,0,thistabdest)
- makeButton(thistab)
- makeButton(exitTab, function() if Tabs:FindFirstChild(v.Name) then
- DestroyScreen(Tabs[v.Name])
- thistab:Destroy()
- UpdateAllTabs()
- end
- end)
- end
- end
- function ShowTabs()
- tabs_name = "All Tabs"
- if loc ~= tabs_name then
- if loc and loc ~= "Menu" and backdrop:FindFirstChild(loc) then
- coroutine.resume(coroutine.create(function()
- local scrnclone = backdrop[loc]:Clone()
- scrnclone:ClearAllChildren()
- scrnclone.Parent = backdrop
- scrnclone.Name = "@clone"
- scrnclone.ZIndex = 9
- scrnclone:TweenPosition(UDim2.new(0, 0, 0, -canvy), "Out", "Sine", 1)
- backdrop[loc].Parent = Tabs
- scrnclone.Name = "@RemoveThis"
- tab = tab-1 -- Cancels out extra tab made from NewScreen Function
- end))
- elseif loc == "Menu" then
- LeaveMenu()
- end
- loc = tabs_name
- DispTopBar()
- local nscrn = NewScreen(Color3.new(.1, .1, .1), tabs_name)
- if nscrn then
- local YPos_Start = 10
- local thistabsizeY = canvy/14
- local between = 3
- for amt,v in pairs(Tabs:GetChildren()) do
- print(v.Name.." in Tabs list.")
- local thistab = Instance.new("Frame", nscrn)
- thistab.Name = v.Name
- thistab.ZIndex = tab+1
- thistab.Size = UDim2.new(1, 0, 0, thistabsizeY)
- thistab.BackgroundColor3 = Color3.new()
- thistab.Position = UDim2.new(0, 0, 0, -thistabsizeY)
- local thistabdest = YPos_Start + amt*thistabsizeY + amt*between
- local appicon = Instance.new("ImageLabel", thistab)
- appicon.Position = UDim2.new(0, 0, 0, 0)
- appicon.Size = UDim2.new(0, canvx/10, 0, thistabsizeY)
- appicon.Image = asset..APPS[v.Name]["Icon"]
- appicon.ZIndex = thistab.ZIndex
- local tabtext = Instance.new("TextButton", thistab)
- tabtext.ZIndex = thistab.ZIndex
- tabtext.Position = UDim2.new(0, appicon.Size.X.Offset + 5, 0, 0)
- tabtext.Size = UDim2.new(.5, 0, 1, 0)
- tabtext.BackgroundTransparency = 1
- tabtext.TextColor3 = white
- tabtext.Text = v.Name
- tabtext.FontSize = "Size18"
- local exitTab = tabtext:Clone()
- exitTab.Name = "RemoveTab"
- exitTab.Parent = thistab
- exitTab.Size = UDim2.new(0, canvx/10, 1, 0)
- exitTab.Position = UDim2.new(0, canvx - (canvx/10)*2, 0, 0)
- exitTab.BackgroundColor3 = Color3.new(0, 0, 0)
- exitTab.BorderColor3 = white
- exitTab.BorderSizePixel = 1
- exitTab.Text = "X"
- local findsound = phone:FindFirstChild(thistab.Name)
- if findsound then
- local audioicon = appicon:Clone()
- audioicon.Parent = thistab
- audioicon.BackgroundTransparency = 1
- audioicon.Size = UDim2.new(0, canvx/10 - 20, 0, thistabsizeY - 20)
- audioicon.Position = UDim2.new(0, (canvx/10)*1.5, 0, 10)
- audioicon.Image = asset..Textures["Audio"]
- end
- thistab.Position = UDim2.new(0,0,0,thistabdest)
- makeButton(thistab)
- makeButton(exitTab, function() if Tabs:FindFirstChild(v.Name) then
- DestroyScreen(Tabs[v.Name])
- thistab:Destroy()
- UpdateAllTabs()
- RemoveTrash()
- end
- end)
- end
- end
- end
- end
- function RemoveTrash()
- for _,v in pairs(backdrop:GetChildren()) do
- if v.Name == "@clone" or v.Name == "@RemoveThis" then
- v:Destroy()
- end
- end
- end
- function makeCustomButton(button, enterfunc, leavefunc, func)
- button.MouseEnter:connect(function()
- selected = button.Name
- if func then
- selectedFunc = func
- end
- enterfunc()
- end)
- button.MouseLeave:connect(function()
- if selected == button.Name then
- selected = nil
- selectedFunc = nil
- end
- leavefunc()
- end)
- end
- function makeButton(button, func, func2)
- bottom_buttons = "HomeMenu" or "GoBack" or "Tabs"
- if button.Name ~= bottom_buttons then
- atBottom = false
- end
- button.MouseEnter:connect(function()
- if not atBottom then
- button.BackgroundTransparency = .5
- end
- selected = button.Name
- if func then
- selectedFunc = func
- end
- if func2 then
- selectedFunc2 = func2
- end
- print(selected)
- end)
- button.MouseLeave:connect(function()
- if not atBottom then
- button.BackgroundTransparency = 1
- end
- if selected == button.Name then
- selected = nil
- selectedFunc = nil
- selectedFunc2 = nil
- end
- end)
- end
- function makeTextbox(button)
- bottom_buttons = "HomeMenu" or "GoBack" or "Tabs"
- if button.Name ~= bottom_buttons then
- atBottom = false
- end
- button.MouseEnter:connect(function()
- if not atBottom then
- button.BackgroundTransparency = .5
- end
- selected = "Textbox"
- selectedFunc = function()
- curtbox = button
- end
- end)
- button.MouseLeave:connect(function()
- if not atBottom then
- button.BackgroundTransparency = 1
- end
- if selected == button.Name then
- selected = nil
- selectedFunc = nil
- end
- end)
- end
- function newSound(name)
- local ns = Instance.new("Sound", phone)
- ns.Name = name
- ns.Volume = volume
- return ns
- end
- function DispTopBar()
- coroutine.resume(coroutine.create(function()
- top:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Quad", .5, true)
- title.Text = loc
- topbarwait = 10
- repeat
- wait(1)
- topbarwait = topbarwait - 1
- until topbarwait <= 0
- top:TweenPosition(UDim2.new(0, 0, 0, -top.Size.Y.Offset), "Out", "Quad", .5, true)
- end))
- end
- function topBar()
- top = Instance.new("Frame", backdrop)
- top.Name = "TopBar"
- top.Size = UDim2.new(0, canvy, 0, canvy/15)
- top.Position = UDim2.new(0, 0, 0, -top.Size.Y.Offset)
- top.BackgroundColor3 = Color3.new(0,0,0)
- top.BackgroundTransparency = .6
- top.ZIndex = 10
- topbar = top
- --topdown = false
- local top2 = top:Clone()
- top2.Parent = top.Parent
- top2.BackgroundTransparency = 1
- top2.Position = UDim2.new()
- top2.Active = true
- title = Instance.new("TextLabel", top)
- title.BackgroundTransparency = 1
- title.Size = UDim2.new(0, canvx/10, 1, 0)
- title.Position = UDim2.new(0, canvx - canvx/2 - title.Size.X.Offset/2, 0, 0)
- title.ZIndex = 10
- title.FontSize = "Size18"
- title.TextColor3 = white
- clock = Instance.new("TextLabel", top)
- clock.BackgroundTransparency = 1
- clock.Size = UDim2.new(0, canvx/10, 1, 0)
- clock.Position = UDim2.new(0, canvx - clock.Size.X.Offset*2, 0, 0)
- clock.ZIndex = 10
- clock.FontSize = "Size18"
- clock.TextColor3 = white
- bars = Instance.new("ImageLabel", topbar)
- bars.Size = UDim2.new(.1, 0, .8, 0)
- bars.Position = UDim2.new(.05, 0, .1, 0)
- bars.BackgroundTransparency = 1
- bars.ZIndex = 10
- CheckHTTPConnection()
- updateClock()
- top2.MouseEnter:connect(function()
- DispTopBar()
- end)
- end
- function bottomBar()
- local bottom = Instance.new("SurfaceGui", phone)
- bottom.Name = "BottomBar"
- bottom.CanvasSize = Vector2.new(800, 200)
- bottom.Face = "Back"
- bottomFrame = Instance.new("Frame", bottom)
- bottomFrame.Name = "BottomFrame"
- bottomFrame.Size = UDim2.new(0, 760, 0, 15)
- bottomFrame.Position = UDim2.new(0, 20, 0, 180)
- bottomFrame.ZIndex = 10
- bottomFrame.BackgroundColor3 = Color3.new()
- bottomFrame.BackgroundTransparency = 0
- bottomFrame.Active = true
- local homelab = Instance.new("ImageLabel", bottomFrame) -- ImageLabel for the Home Menu
- homelab.Name = "HomeMenu"
- homelab.Size = UDim2.new(.15, 0, 1, 0)
- homelab.BackgroundTransparency = 1
- homelab.Position = UDim2.new(.45, 0, 0, 0)
- homelab.Image = asset..Textures["Home Button"]
- homelab.Active = true
- homelab.ZIndex = 10
- homebutt = Instance.new("ImageLabel", backdrop)
- homebutt.Name = "HomeMenu"
- homebutt.Size = UDim2.new(0, 50, 0, 40)
- homebutt.Position = UDim2.new(0, 176, 0, 469)
- homebutt.BackgroundTransparency = 1
- homebutt.ZIndex = 10
- makeButton(homebutt)
- tabslab = homelab:Clone()
- tabslab.Parent = bottomFrame
- tabslab.Name = "Tabs"
- tabslab.Image = asset..Textures["Tabs Icon"]
- tabslab.Position = UDim2.new(.82, 0, 0, 0)
- tabsbutt = Instance.new("ImageLabel", backdrop)
- tabsbutt.Name = "Tabs"
- tabsbutt.Size = UDim2.new(0, 50, 0, 40)
- tabsbutt.Position = UDim2.new(0, 330, 0, 463)
- tabsbutt.BackgroundTransparency = 1
- tabsbutt.ZIndex = 10
- makeButton(tabsbutt)
- bottombar = bottom
- --bottomdown = false
- end
- function updateClock()
- local time_zone = -5 -- Time zone, offset from GMT.
- local secondsInDay = 60*60*24
- local tick = math.fmod(tick(),secondsInDay)
- local hour = math.floor(tick/3600) + 5 + time_zone
- local minute = math.floor(tick/60 - 60*hour)
- local second = math.floor(math.fmod(tick,60))
- if clock then
- if minute < 10 then
- minute = "0"..minute
- end
- clock.Text = hour..":"..minute
- end
- end
- function CheckHTTPConnection()
- if topbar then
- --httpserv = game:FindFirstChild("HttpService")
- if httpserv and bars then
- bars.Image = asset..Textures["Wireless_Bars"]
- elseif bars then
- bars.Image = asset..Textures["No Signal"]
- end
- end
- end
- function chat(msg)
- local lowmsg = string.lower(msg)
- if loc == "My Music" and string.sub(lowmsg, 1, 5) == "play:" then
- lowmsg = string.gsub(lowmsg, " ", "")
- local id = string.sub(lowmsg, 6)
- backdrop["My Music"]["Custom"]["desc"].Text = "ID: "..id
- MusicList["Custom"]["SNDAsset"] = asset..id
- end
- end
- plyr.Chatted:connect(chat)
- function KDown(key)
- char = plyr.Character
- head = char:FindFirstChild("Head")
- ra = char:FindFirstChild("Right Arm")
- torso = char:FindFirstChild("Torso")
- local hasAllParts = char and head and ra and torso
- print("Curtbox = ",curtbox)
- if not typing then
- if key == "g" and hasAllParts and phoneOut == false then
- oldcount = gcount
- takeOutPhone()
- bottomBar()
- wait(.4)
- if oldcount == gcount then
- DoIntro()
- end
- topBar()
- if oldcount == gcount then
- DispMenu()
- end
- elseif key == "g" and hasAllParts and phoneOut == true then
- putAwayPhone()
- loc = nil
- if looking then
- looking = false
- torso.Anchored = false
- end
- elseif key == "0" and phoneOut and torso and torso.Anchored == false and not looking then
- looking = true
- torso.Anchored = true
- if foneweld then
- foneweld.C0 = CFrame.new(0, -.8, 1.2) * CFrame.Angles(math.rad(30), 0, 0)
- end
- local spd = .1
- repeat
- cam.FieldOfView = cam.FieldOfView - spd
- spd = spd + .1
- wait(0)
- until cam.FieldOfView < 55 or not looking
- elseif key == "0" and phoneOut and torso and torso.Anchored == true then
- looking = false
- torso.Anchored = false
- if foneweld then
- foneweld.C0 = CFrame.new(-.5, -.8, 1.2) * CFrame.Angles(math.rad(30), 0, 0)
- end
- local spd = .1
- repeat
- cam.FieldOfView = cam.FieldOfView + spd
- spd = spd + .1
- wait(0)
- until cam.FieldOfView >= 70 or looking
- elseif key == "n" and volume > 0 then
- volume = volume - .1
- for _,v in pairs(phone:GetChildren()) do
- if v.ClassName == "Sound" then
- v.Volume = volume
- end
- end
- elseif key == "m" and volume < 1 then
- volume = volume + .1
- for _,v in pairs(phone:GetChildren()) do
- if v.ClassName == "Sound" then
- v.Volume = volume
- end
- end
- end
- elseif string.byte(key) == 13 and typing then
- typing = false
- curtbox = nil
- char.Humanoid.WalkSpeed = normWS
- elseif typing and curtbox and string.byte(key) == 8 then -- Backspace
- curtbox.Text = string.sub(curtbox.Text, 1, string.len(curtbox)-1)
- elseif typing and curtbox then -- Type to the textbox
- curtbox.Text = curtbox.Text..key
- end
- end
- plyr:GetMouse().KeyDown:connect(KDown)
- function MDown()
- print(selected)
- keylist["M1"] = true
- if selectedFunc then
- selectedFunc()
- elseif selected ~= nil then
- if APPS[selected] and loc == "Menu" then
- APPS[selected]["Code"]()
- elseif APPS[selected] and loc == "All Tabs" then -- If
- if Tabs:FindFirstChild(selected) then
- GetTab(selected)
- end
- elseif selected == "HomeMenu" and loc ~= "Menu" then
- DispMenu()
- elseif selected == "Tabs" then
- ShowTabs()
- --[[
- elseif selected == "Textbox" then
- normWS = char.Humanoid.WalkSpeed
- char.Humanoid.WalkSpeed = 0
- typing = true
- ]]
- end
- end
- end
- plyr:GetMouse().Button1Down:connect(MDown)
- function MUp()
- keylist["M1"] = nil
- end
- plyr:GetMouse().Button1Up:connect(MUp)
- function M2Down()
- keylist["M2"] = true
- if selectedFunc2 then
- selectedFunc2()
- end
- end
- plyr:GetMouse().Button2Down:connect(M2Down)
- function M2Up()
- keylist["M2"] = nil
- end
- plyr:GetMouse().Button2Up:connect(M2Up)
- while true do
- --CheckHTTPConnection()
- updateClock()
- wait()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement