Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- Part4 = Instance.new("Part")
- Part5 = Instance.new("Part")
- SpotLight6 = Instance.new("SpotLight")
- Part7 = Instance.new("Part")
- Part8 = Instance.new("Part")
- Part9 = Instance.new("Part")
- Part10 = Instance.new("Part")
- Part11 = Instance.new("Part")
- Part12 = Instance.new("Part")
- SurfaceGui13 = Instance.new("SurfaceGui")
- TextLabel14 = Instance.new("TextBox")
- Part15 = Instance.new("Part")
- Part16 = Instance.new("Part")
- Part17 = Instance.new("Part")
- Part18 = Instance.new("Part")
- Part19 = Instance.new("Part")
- Part20 = Instance.new("Part")
- Part21 = Instance.new("Part")
- Part22 = Instance.new("Part")
- Part23 = Instance.new("Part")
- Part24 = Instance.new("Part")
- Tool0.Name = "Phone"
- Tool0.Parent = owner['Backpack']
- Tool0.Grip = CFrame.new(0.243938446, 0, 0.234091938, -5.21253064e-16, 1, 4.37113883e-08, -1.19248806e-08, -4.37113883e-08, 1, 0.99999994, 0, 1.19248798e-08)
- Tool0.GripForward = Vector3.new(-4.37113883e-08, -1, -1.19248798e-08)
- Tool0.GripPos = Vector3.new(0.243938446, 0, 0.234091938)
- Tool0.GripRight = Vector3.new(-5.21253064e-16, -1.19248806e-08, 0.99999994)
- Tool0.GripUp = Vector3.new(1, -4.37113883e-08, 0)
- Part1.Name = "home button"
- Part1.Parent = Tool0
- Part1.CFrame = CFrame.new(1.98599994, 10.0500002, 14.7819996, 0, -1, 0, 1, 0, -0, 0, 0, 1)
- Part1.Orientation = Vector3.new(0, 0, 90)
- Part1.Position = Vector3.new(1.98599994, 10.0500002, 14.7819996)
- Part1.Rotation = Vector3.new(0, 0, 90)
- Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part1.Size = Vector3.new(0.0500000007, 0.100000001, 0.100000001)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Institutional white")
- Part1.CanCollide = false
- Part1.Material = Enum.Material.SmoothPlastic
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Institutional white")
- Part1.Shape = Enum.PartType.Cylinder
- Part2.Name = "back lens glass"
- Part2.Parent = Tool0
- Part2.CFrame = CFrame.new(3.21600008, 10.0459995, 14.9919996, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- Part2.Orientation = Vector3.new(0, 0, -90)
- Part2.Position = Vector3.new(3.21600008, 10.0459995, 14.9919996)
- Part2.Rotation = Vector3.new(0, 0, -90)
- Part2.Color = Color3.new(0.705882, 0.501961, 1)
- Part2.Transparency = 0.60000002384186
- Part2.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Alder")
- Part2.CanCollide = false
- Part2.Material = Enum.Material.Glass
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Alder")
- Part2.Shape = Enum.PartType.Cylinder
- Part3.Name = "front lens border"
- Part3.Parent = Tool0
- Part3.CFrame = CFrame.new(3.16599989, 10.0040007, 14.7719994, 0, -1, 0, 1, 0, -0, 0, 0, 1)
- Part3.Orientation = Vector3.new(0, 0, 90)
- Part3.Position = Vector3.new(3.16599989, 10.0040007, 14.7719994)
- Part3.Rotation = Vector3.new(0, 0, 90)
- Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part3.Size = Vector3.new(0.0500000007, 0.140000001, 0.140000001)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.BrickColor = BrickColor.new("Institutional white")
- Part3.CanCollide = false
- Part3.Material = Enum.Material.SmoothPlastic
- Part3.Reflectance = 0.69999998807907
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Institutional white")
- Part3.Shape = Enum.PartType.Cylinder
- Part4.Name = "flash border"
- Part4.Parent = Tool0
- Part4.CFrame = CFrame.new(3.16599989, 10.0040007, 14.9120026, 0, -1, 0, 1, 0, -0, 0, 0, 1)
- Part4.Orientation = Vector3.new(0, 0, 90)
- Part4.Position = Vector3.new(3.16599989, 10.0040007, 14.9120026)
- Part4.Rotation = Vector3.new(0, 0, 90)
- Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part4.Size = Vector3.new(0.0500000007, 0.100000001, 0.0700000003)
- Part4.BottomSurface = Enum.SurfaceType.Smooth
- Part4.BrickColor = BrickColor.new("Institutional white")
- Part4.CanCollide = false
- Part4.Material = Enum.Material.SmoothPlastic
- Part4.Reflectance = 0.69999998807907
- Part4.TopSurface = Enum.SurfaceType.Smooth
- Part4.brickColor = BrickColor.new("Institutional white")
- Part5.Name = "flash inside"
- Part5.Parent = Tool0
- Part5.CFrame = CFrame.new(3.16568017, 10.0026464, 14.9117937, 0, -1, 0, 1, 0, -0, 0, 0, 1)
- Part5.Orientation = Vector3.new(0, 0, 90)
- Part5.Position = Vector3.new(3.16568017, 10.0026464, 14.9117937)
- Part5.Rotation = Vector3.new(0, 0, 90)
- Part5.Color = Color3.new(1, 1, 0)
- Part5.Transparency = 0.60000002384186
- Part5.Size = Vector3.new(0.0500000007, 0.0799999982, 0.0500000007)
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.BrickColor = BrickColor.new("New Yeller")
- Part5.CanCollide = false
- Part5.Material = Enum.Material.Neon
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.brickColor = BrickColor.new("New Yeller")
- SpotLight6.Name = "flash"
- SpotLight6.Parent = Part5
- SpotLight6.Color = Color3.new(0.666667, 1, 0)
- SpotLight6.Enabled = false
- SpotLight6.Face = Enum.NormalId.Left
- SpotLight6.Range = 25
- SpotLight6.Brightness = 10
- SpotLight6.Shadows = true
- Part7.Name = "screen"
- Part7.Parent = Tool0
- Part7.CFrame = CFrame.new(2.62514257, 10.042161, 14.7765141, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part7.Position = Vector3.new(2.62514257, 10.042161, 14.7765141)
- Part7.Color = Color3.new(0.0705882, 0.933333, 0.831373)
- Part7.Size = Vector3.new(1.1106236, 0.0500000007, 0.612685621)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.BrickColor = BrickColor.new("Teal")
- Part7.CanCollide = false
- Part7.Material = Enum.Material.Neon
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.brickColor = BrickColor.new("Teal")
- Part8.Name = "Skin"
- Part8.Parent = Tool0
- Part8.CFrame = CFrame.new(2.59499931, 10.0270004, 14.4700003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part8.Position = Vector3.new(2.59499931, 10.0270004, 14.4700003)
- Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part8.Size = Vector3.new(1.32500005, 0.0799999982, 0.0799999982)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.BrickColor = BrickColor.new("Really black")
- Part8.CanCollide = false
- Part8.Material = Enum.Material.SmoothPlastic
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.brickColor = BrickColor.new("Really black")
- Part8.Shape = Enum.PartType.Cylinder
- Part9.Name = "Skin"
- Part9.Parent = Tool0
- Part9.CFrame = CFrame.new(2.59499764, 10.0270004, 15.0800142, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part9.Position = Vector3.new(2.59499764, 10.0270004, 15.0800142)
- Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part9.Size = Vector3.new(1.32500005, 0.0799999982, 0.0799999982)
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.BrickColor = BrickColor.new("Really black")
- Part9.CanCollide = false
- Part9.Material = Enum.Material.SmoothPlastic
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.brickColor = BrickColor.new("Really black")
- Part9.Shape = Enum.PartType.Cylinder
- Part10.Name = "Handle"
- Part10.Parent = Tool0
- Part10.CFrame = CFrame.new(2.00999999, 10.0270004, 14.7770004, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part10.Position = Vector3.new(2.00999999, 10.0270004, 14.7770004)
- Part10.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part10.Size = Vector3.new(0.155000001, 0.0799999982, 0.612999976)
- Part10.BottomSurface = Enum.SurfaceType.Smooth
- Part10.BrickColor = BrickColor.new("Really black")
- Part10.CanCollide = false
- Part10.Material = Enum.Material.SmoothPlastic
- Part10.TopSurface = Enum.SurfaceType.Smooth
- Part10.brickColor = BrickColor.new("Really black")
- Part11.Name = "Skin"
- Part11.Parent = Tool0
- Part11.CFrame = CFrame.new(2.70514441, 10.0125122, 14.7765141, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part11.Orientation = Vector3.new(0, 90, 0)
- Part11.Position = Vector3.new(2.70514441, 10.0125122, 14.7765141)
- Part11.Rotation = Vector3.new(0, 90, 0)
- Part11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part11.Size = Vector3.new(0.612999976, 0.0500000007, 0.730000019)
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.BrickColor = BrickColor.new("Really black")
- Part11.CanCollide = false
- Part11.Material = Enum.Material.SmoothPlastic
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Part11.brickColor = BrickColor.new("Really black")
- Part12.Name = "Logo Name"
- Part12.Parent = Tool0
- Part12.CFrame = CFrame.new(3.21499896, 10.0270004, 14.7770004, -1, 0, 0, 0, 1, 0, 0, 0, -1)
- Part12.Orientation = Vector3.new(0, 180, 0)
- Part12.Position = Vector3.new(3.21499896, 10.0270004, 14.7770004)
- Part12.Rotation = Vector3.new(-180, 0, -180)
- Part12.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part12.Size = Vector3.new(0.0799999982, 0.0799999982, 0.612999976)
- Part12.BottomSurface = Enum.SurfaceType.Smooth
- Part12.BrickColor = BrickColor.new("Really black")
- Part12.CanCollide = false
- Part12.Material = Enum.Material.SmoothPlastic
- Part12.TopSurface = Enum.SurfaceType.Smooth
- Part12.brickColor = BrickColor.new("Really black")
- SurfaceGui13.Parent = Part12
- SurfaceGui13.LightInfluence = 1
- SurfaceGui13.Face = Enum.NormalId.Top
- SurfaceGui13.ClipsDescendants = true
- SurfaceGui13.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- SurfaceGui13.Adornee = Part12
- TextLabel14.Parent = SurfaceGui13
- TextLabel14.Size = UDim2.new(1, 0, 1, 0)
- TextLabel14.BackgroundColor = BrickColor.new("Institutional white")
- TextLabel14.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel14.BackgroundTransparency = 1
- TextLabel14.Font = Enum.Font.GothamSemibold
- TextLabel14.FontSize = Enum.FontSize.Size14
- TextLabel14.Text = "Krypto ™"
- TextLabel14.TextColor = BrickColor.new("Institutional white")
- TextLabel14.TextColor3 = Color3.new(1, 1, 1)
- TextLabel14.TextScaled = true
- TextLabel14.TextSize = 14
- TextLabel14.TextStrokeTransparency = 0
- TextLabel14.TextWrap = true
- TextLabel14.TextWrapped = true
- Part15.Name = "Skin"
- Part15.Parent = Tool0
- Part15.CFrame = CFrame.new(2.20514202, 10.0125122, 14.7765141, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part15.Orientation = Vector3.new(0, 90, 0)
- Part15.Position = Vector3.new(2.20514202, 10.0125122, 14.7765141)
- Part15.Rotation = Vector3.new(0, 90, 0)
- Part15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part15.Size = Vector3.new(0.612999976, 0.0500000007, 0.271000355)
- Part15.BottomSurface = Enum.SurfaceType.Smooth
- Part15.BrickColor = BrickColor.new("Really black")
- Part15.CanCollide = false
- Part15.Material = Enum.Material.SmoothPlastic
- Part15.TopSurface = Enum.SurfaceType.Smooth
- Part15.brickColor = BrickColor.new("Really black")
- Part16.Name = "Skin"
- Part16.Parent = Tool0
- Part16.CFrame = CFrame.new(3.12064266, 10.0125122, 14.7765141, 0, 0, 1, 0, 1, 0, -1, 0, 0)
- Part16.Orientation = Vector3.new(0, 90, 0)
- Part16.Position = Vector3.new(3.12064266, 10.0125122, 14.7765141)
- Part16.Rotation = Vector3.new(0, 90, 0)
- Part16.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part16.Size = Vector3.new(0.612999976, 0.0500000007, 0.119999997)
- Part16.BottomSurface = Enum.SurfaceType.Smooth
- Part16.BrickColor = BrickColor.new("Really black")
- Part16.CanCollide = false
- Part16.Material = Enum.Material.SmoothPlastic
- Part16.TopSurface = Enum.SurfaceType.Smooth
- Part16.brickColor = BrickColor.new("Really black")
- Part17.Name = "Skin"
- Part17.Parent = Tool0
- Part17.CFrame = CFrame.new(3.25550008, 10.0270004, 14.4700003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part17.Position = Vector3.new(3.25550008, 10.0270004, 14.4700003)
- Part17.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part17.Size = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
- Part17.BottomSurface = Enum.SurfaceType.Smooth
- Part17.BrickColor = BrickColor.new("Really black")
- Part17.CanCollide = false
- Part17.Material = Enum.Material.SmoothPlastic
- Part17.TopSurface = Enum.SurfaceType.Smooth
- Part17.brickColor = BrickColor.new("Really black")
- Part17.Shape = Enum.PartType.Ball
- Part18.Name = "Skin"
- Part18.Parent = Tool0
- Part18.CFrame = CFrame.new(3.25550008, 10.0270004, 15.0800114, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part18.Position = Vector3.new(3.25550008, 10.0270004, 15.0800114)
- Part18.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part18.Size = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
- Part18.BottomSurface = Enum.SurfaceType.Smooth
- Part18.BrickColor = BrickColor.new("Really black")
- Part18.CanCollide = false
- Part18.Material = Enum.Material.SmoothPlastic
- Part18.TopSurface = Enum.SurfaceType.Smooth
- Part18.brickColor = BrickColor.new("Really black")
- Part18.Shape = Enum.PartType.Ball
- Part19.Name = "Skin"
- Part19.Parent = Tool0
- Part19.CFrame = CFrame.new(3.25499988, 10.0270004, 14.7770004, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
- Part19.Orientation = Vector3.new(0, 90, 0)
- Part19.Position = Vector3.new(3.25499988, 10.0270004, 14.7770004)
- Part19.Rotation = Vector3.new(0, 90, 0)
- Part19.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part19.Size = Vector3.new(0.611999989, 0.0799999982, 0.0799999982)
- Part19.BottomSurface = Enum.SurfaceType.Smooth
- Part19.BrickColor = BrickColor.new("Really black")
- Part19.CanCollide = false
- Part19.Material = Enum.Material.SmoothPlastic
- Part19.TopSurface = Enum.SurfaceType.Smooth
- Part19.brickColor = BrickColor.new("Really black")
- Part19.Shape = Enum.PartType.Cylinder
- Part20.Name = "Skin"
- Part20.Parent = Tool0
- Part20.CFrame = CFrame.new(1.93550086, 10.0270004, 14.4700003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part20.Position = Vector3.new(1.93550086, 10.0270004, 14.4700003)
- Part20.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part20.Size = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
- Part20.BottomSurface = Enum.SurfaceType.Smooth
- Part20.BrickColor = BrickColor.new("Really black")
- Part20.CanCollide = false
- Part20.Material = Enum.Material.SmoothPlastic
- Part20.TopSurface = Enum.SurfaceType.Smooth
- Part20.brickColor = BrickColor.new("Really black")
- Part20.Shape = Enum.PartType.Ball
- Part21.Name = "Skin"
- Part21.Parent = Tool0
- Part21.CFrame = CFrame.new(1.93550086, 10.0270004, 15.0800114, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part21.Position = Vector3.new(1.93550086, 10.0270004, 15.0800114)
- Part21.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part21.Size = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
- Part21.BottomSurface = Enum.SurfaceType.Smooth
- Part21.BrickColor = BrickColor.new("Really black")
- Part21.CanCollide = false
- Part21.Material = Enum.Material.SmoothPlastic
- Part21.TopSurface = Enum.SurfaceType.Smooth
- Part21.brickColor = BrickColor.new("Really black")
- Part21.Shape = Enum.PartType.Ball
- Part22.Name = "Skin"
- Part22.Parent = Tool0
- Part22.CFrame = CFrame.new(1.93500066, 10.0270004, 14.7770004, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
- Part22.Orientation = Vector3.new(0, 90, 0)
- Part22.Position = Vector3.new(1.93500066, 10.0270004, 14.7770004)
- Part22.Rotation = Vector3.new(0, 90, 0)
- Part22.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part22.Size = Vector3.new(0.611999989, 0.0799999982, 0.0799999982)
- Part22.BottomSurface = Enum.SurfaceType.Smooth
- Part22.BrickColor = BrickColor.new("Really black")
- Part22.CanCollide = false
- Part22.Material = Enum.Material.SmoothPlastic
- Part22.TopSurface = Enum.SurfaceType.Smooth
- Part22.brickColor = BrickColor.new("Really black")
- Part22.Shape = Enum.PartType.Cylinder
- Part23.Name = "front lens glass"
- Part23.Parent = Tool0
- Part23.CFrame = CFrame.new(3.16568017, 10.0026464, 14.7717905, 0, -1, 0, 1, 0, -0, 0, 0, 1)
- Part23.Orientation = Vector3.new(0, 0, 90)
- Part23.Position = Vector3.new(3.16568017, 10.0026464, 14.7717905)
- Part23.Rotation = Vector3.new(0, 0, 90)
- Part23.Color = Color3.new(0.705882, 0.501961, 1)
- Part23.Transparency = 0.60000002384186
- Part23.Size = Vector3.new(0.0500000007, 0.119999997, 0.119999997)
- Part23.BottomSurface = Enum.SurfaceType.Smooth
- Part23.BrickColor = BrickColor.new("Alder")
- Part23.CanCollide = false
- Part23.Material = Enum.Material.Glass
- Part23.TopSurface = Enum.SurfaceType.Smooth
- Part23.brickColor = BrickColor.new("Alder")
- Part23.Shape = Enum.PartType.Cylinder
- Part24.Name = "back lens border"
- Part24.Parent = Tool0
- Part24.CFrame = CFrame.new(3.21600008, 10.0450001, 14.9919996, 0, 1, 0, -1, 0, 0, 0, 0, 1)
- Part24.Orientation = Vector3.new(0, 0, -90)
- Part24.Position = Vector3.new(3.21600008, 10.0450001, 14.9919996)
- Part24.Rotation = Vector3.new(0, 0, -90)
- Part24.Color = Color3.new(0.972549, 0.972549, 0.972549)
- Part24.Size = Vector3.new(0.0500000007, 0.0700000003, 0.074000001)
- Part24.BottomSurface = Enum.SurfaceType.Smooth
- Part24.BrickColor = BrickColor.new("Institutional white")
- Part24.CanCollide = false
- Part24.Material = Enum.Material.SmoothPlastic
- Part24.Reflectance = 0.69999998807907
- Part24.TopSurface = Enum.SurfaceType.Smooth
- Part24.brickColor = BrickColor.new("Institutional white")
- Part24.Shape = Enum.PartType.Cylinder
- local plr = owner
- local char = plr.Character
- local torso = char:FindFirstChild('Torso') or char:FindFirstChild('HumanoidRootPart')
- local hum = char:FindFirstChildOfClass('Humanoid')
- local tool = Tool0
- local handle = Part10
- local flashpart = nil
- local flash = nil
- local screen = nil
- local front_lens,back_lens = nil,nil
- local connection = nil
- local destruct = false
- local calling = false
- local taking_pic = false
- local equipped = false
- local on = false
- local light = false
- local updating_picture = false
- local sguis = {}
- local galary = game:GetService("DataStoreService"):GetDataStore('Photo Galary'):GetAsync(plr.UserId)
- local photo_id = 0
- local app = 0
- if not galary then
- photo_id = 0
- else
- galary = game:GetService("HttpService"):JSONDecode(galary)
- photo_id = #galary
- end
- for i,v in pairs(tool:GetChildren()) do
- if v:IsA("BasePart") and v ~= handle then
- if v.Name == 'Logo Name' then
- local sgui = v:FindFirstChild('SurfaceGui')
- if sgui then
- sgui.SizingMode = Enum.SurfaceGuiSizingMode.PixelsPerStud
- sgui.PixelsPerStud = 1080
- end
- end
- if v.Name == 'flash inside' then
- flashpart = v
- flash = flashpart:FindFirstChild('flash')
- elseif v.Name == 'screen' then
- screen = v
- screen.Material = Enum.Material.SmoothPlastic
- screen.Color = Color3.fromRGB(0, 0, 0)
- elseif v.Name == 'front lens glass' then
- front_lens = v
- elseif v.Name == 'back lens glass' then
- back_lens = v
- end
- local weld = Instance.new("Weld")
- weld.Part0 = handle
- weld.Part1 = v
- weld.C0 = handle.CFrame:Inverse()
- weld.C1 = v.CFrame:Inverse()
- weld.Parent = v
- end
- end
- tool.Grip = CFrame.new(-0.406414032, 1.77635684e-15, 0.152208254, -5.21253064e-16, 1, 4.37113883e-08, -1.19248806e-08, -4.37113883e-08, 1, 0.99999994, 0, 1.19248798e-08)
- tool.CanBeDropped = false
- local click = Instance.new("Sound")
- click.SoundId = 'rbxassetid://537744814'
- click.Volume = 1
- click.Parent = handle
- local ring = Instance.new("Sound")
- ring.SoundId = 'rbxassetid://152841131'
- ring.Volume = 1
- ring.Parent = handle
- local call = Instance.new("Sound")
- call.SoundId = 'rbxassetid://1500107704'
- call.Volume = 1
- call.Parent = handle
- local shutter = Instance.new("Sound")
- shutter.SoundId = 'rbxassetid://278060974'
- shutter.Volume = 1
- shutter.Parent = handle
- local key_tap = Instance.new("Sound")
- key_tap.SoundId = 'rbxassetid://4740147336'
- key_tap.Volume = 1
- key_tap.Parent = handle
- local remote = Instance.new("RemoteEvent")
- remote.Name = ('phone remote')
- remote.Parent = tool
- code = [[
- local plr = game:GetService("Players").LocalPlayer
- local char = plr.Character
- mouse = plr:GetMouse()
- tool = script.Parent
- remote = tool:FindFirstChild('phone remote')
- tool.Equipped:Connect(function(mouse)
- char = tool.Parent
- plr = game:GetService("Players"):GetPlayerFromCharacter(char)
- if plr and char then
- mouse = plr:GetMouse()
- mouse.KeyDown:Connect(function(key)
- if key == 'e' then
- remote:FireServer(1)
- elseif key == 'q' then
- remote:FireServer(2)
- elseif key == 'f' then
- remote:FireServer(3)
- elseif key == 'r' then
- remote:FireServer(4)
- elseif key == 't' then
- remote:FireServer(5)
- elseif key == 'y' then
- remote:FireServer(6)
- end
- end)
- end
- end)
- ]]
- NLS(code,tool)
- remote.OnServerEvent:Connect(function(lplr,mode)
- if (plr == lplr) and equipped and on then else return end
- key_tap.PlaybackSpeed = 1.2
- key_tap:Play()
- if mode == 5 or mode == 6 then
- if mode == 5 then
- switch_photo(1)
- elseif mode == 6 then
- switch_photo(2)
- end
- else
- if mode ~= 4 then
- app = mode
- else
- app = 0
- end
- if app == 1 or app == 2 then
- toggle_sguis(true)
- else
- toggle_sguis(false)
- end
- end
- end)
- function alive()
- local r = false
- if plr and char and char.Parent and torso and torso.Parent and hum and hum.Parent and hum.Health > 0 then
- r = true
- end
- return r
- end
- function switch_photo(mode)
- local last_photo_id = photo_id
- app = 1
- toggle_sguis(true)
- if mode == 1 then
- photo_id = photo_id - 1
- elseif mode == 2 then
- photo_id = photo_id + 1
- end
- if 0 >= photo_id then
- photo_id = 1
- elseif (galary and photo_id >= #galary) then
- photo_id = #galary
- else
- photo_id = last_photo_id
- return
- end
- table.foreach(galary,print)
- if last_photo_id ~= photo_id then
- update_screen()
- end
- end
- function clear_old_photos()
- for i,v in pairs(sguis) do if v then v:Destroy(); end; table.remove(sguis,i); end;
- for i,v in pairs(game:GetService('Players'):GetPlayers()) do
- for i,v in pairs(v['PlayerGui']:GetChildren()) do
- local photo_owner_id = v:FindFirstChild('Photo Owner Id')
- local phone_id = v:FindFirstChild('Phone Id')
- --[[
- if photo_owner_id then
- print'a'
- end
- if phone_id then
- print'b'
- end
- ]]
- if photo_owner_id and (photo_owner_id.Value == nil or photo_owner_id.Value == plr) and phone_id and (phone_id.Value == nil or phone_id.Value == tool) then
- --warn(v.Name)
- v:Destroy()
- end
- end
- end
- end
- function update_screen()
- if not updating_picture then else return end
- updating_picture = true
- clear_old_photos()
- local current_photo_id = photo_id
- local photo = galary['photo #' .. current_photo_id]
- if photo then else return end
- if connection then connection:Disconnect(); connection = nil; end;
- for i,v in pairs(game:GetService("Players"):GetPlayers()) do
- if photo_id == current_photo_id then
- local c = photo:Clone()
- table.insert(sguis,1,c)
- c.Adornee = screen
- c.Parent = v['PlayerGui']
- end
- end
- connection = game:GetService("Players").PlayerAdded:Connect(function(v)
- if photo_id == current_photo_id then
- local c = photo:Clone()
- table.insert(sguis,1,c)
- c.Adornee = screen
- c.Parent = v['PlayerGui']
- end
- end)
- updating_picture = false
- end
- function toggle_light()
- if light == false then
- light = true
- flashpart.Transparency = 0
- flash.Enabled = true
- elseif light == true then
- light = false
- flashpart.Transparency = 0.6
- flash.Enabled = false
- end
- end
- function check(p)
- p.Archivable = true
- if p:IsA('Humanoid') then
- p.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
- p.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOff
- end
- if p:IsA('ScreenGui') or p:IsA('SurfaceGui') or p:IsA('BillboardGui') then
- p.Enabled = false
- end
- if p:IsA('Script') or p:IsA('LocalScript') then
- p.Disabled = true
- end
- if p:IsA('Sound') or p:IsA('BodyColors') then
- p:Destroy()
- end
- if p:IsA('BasePart') or p:IsA('UnionOperation') then
- p.Anchored = true
- p.Locked = true
- end
- end
- function fix(p)
- if p then else return end
- check(p)
- for i,v in pairs(p:GetDescendants()) do
- check(v)
- end
- end
- function toggle_sguis(mode)
- if mode == true then
- screen.Reflectance = 1
- screen.Material = Enum.Material.SmoothPlastic
- elseif mode == false then
- screen.Reflectance = 0
- screen.Material = Enum.Material.Neon
- end
- for i,v in pairs(sguis) do if v then v.Enabled = mode; end; end;
- end
- function vframe_clone(p,vframe,mode)
- if p then else return end
- pcall(function()
- if mode == 1 then
- local c = p:Clone()
- if c then
- fix(c)
- c.Parent = vframe
- end
- elseif mode == 2 then
- p.Archivable = true
- local c = p:Clone()
- if c then
- fix(c)
- c.Parent = vframe
- end
- p.Archivable = false
- end
- end)
- end
- function snap(mode)
- if galary then
- photo_id = #galary + 1
- else
- photo_id = photo_id + 1
- end
- local current_photo_id = photo_id
- local sgui = Instance.new("SurfaceGui")
- sgui.Name = ('photo #' .. current_photo_id)
- sgui.SizingMode = Enum.SurfaceGuiSizingMode.PixelsPerStud
- sgui.PixelsPerStud = 1080
- sgui.Face = 'Top'
- sgui.Adornee = nil
- if galary then
- local og = galary
- table.insert(og,1,sgui)
- game:GetService("DataStoreService"):GetDataStore('Photo Galary'):SetAsync(plr.UserId,game:GetService("HttpService"):JSONEncode(og))
- galary = og
- else
- local og = {}
- table.insert(og,1,sgui)
- game:GetService("DataStoreService"):GetDataStore('Photo Galary'):SetAsync(plr.UserId,game:GetService("HttpService"):JSONEncode(og))
- galary = og
- end
- local photo_owner_id = Instance.new("ObjectValue")
- photo_owner_id.Name = ('Photo Owner Id')
- photo_owner_id.Value = plr
- photo_owner_id.Parent = sgui
- local phone_id = Instance.new("ObjectValue")
- phone_id.Name = ('Phone Id')
- phone_id.Value = tool
- phone_id.Parent = sgui
- local vframe = Instance.new("ViewportFrame")
- local camera = Instance.new("Camera")
- camera.FieldOfView = 70
- camera.CameraType = Enum.CameraType.Scriptable
- if mode == 1 then
- camera.CFrame = front_lens.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0, math.rad(90), 0)
- elseif mode == 2 then
- camera.CFrame = back_lens.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0, math.rad(90), math.rad(180)) -- *CFrame.new(0,0,-1.5)
- end
- camera.Parent = vframe
- vframe.Ambient = game:GetService("Lighting").OutdoorAmbient
- vframe.BackgroundTransparency = 1
- vframe.CurrentCamera = camera
- vframe.Size = UDim2.new(1,0,1,0)
- vframe.Parent = sgui
- for i,v in pairs(workspace:GetChildren()) do
- if not v:IsA('Camera') and not v:IsA('Terrain') then
- if v.Archivable == false then
- vframe_clone(v,vframe,2)
- else
- vframe_clone(v,vframe,1)
- end
- end
- end
- update_screen()
- end
- function pic(mode)
- if not taking_pic then
- taking_pic = true
- shutter:Play()
- if mode == 1 then
- for i = 0,1,1 do
- flashpart.Transparency = 0
- flash.Enabled = true
- wait(0.05)
- flashpart.Transparency = 0.6
- flash.Enabled = false
- wait(0.05)
- end
- if light then
- flashpart.Transparency = 0
- flash.Enabled = true
- end
- elseif mode == 2 then
- wait(0.2)
- end
- snap(mode)
- repeat wait() until not shutter.IsPlaying
- wait()
- taking_pic = false
- end
- end
- tool.Equipped:Connect(function()
- char = tool.Parent
- plr = game:GetService("Players"):GetPlayerFromCharacter(char)
- torso = char:FindFirstChild('Torso') or char:FindFirstChild('HumanoidRootPart')
- hum = char:FindFirstChildOfClass('Humanoid')
- if alive() then else tool.Parent = workspace; return; end;
- equipped = true
- if app == 1 or app == 2 then
- toggle_sguis(true)
- end
- end)
- tool.Unequipped:Connect(function()
- equipped = false
- toggle_sguis(false)
- end)
- tool.Activated:Connect(function()
- if app == 0 then
- key_tap.PlaybackSpeed = 1
- key_tap:Play()
- else
- key_tap.PlaybackSpeed = 1.2
- key_tap:Play()
- end
- if app == 0 then
- on = not on
- if on then
- screen.Material = Enum.Material.Neon
- screen.Color = Color3.fromRGB(18, 238, 212)
- elseif not on then
- screen.Material = Enum.Material.SmoothPlastic
- screen.Color = Color3.fromRGB(0, 0, 0)
- end
- elseif app == 1 then
- pic(1)
- elseif app == 2 then
- pic(2)
- elseif app == 3 then
- toggle_light()
- end
- end)
- clear_old_photos()
- warn([[
- Loaded KrY's Phone v2.0
- - Added photo galary
- - Front and back camera
- - Remade the system.
- [-|KEYBINDS|-]
- - e for front camera
- - q for selfie camera
- - f for flash light
- - t to goto previous picture in galary
- - y to goto next picture in galary
- - r for home menu (to turn on phone)
- ]])
Add Comment
Please, Sign In to add comment