Advertisement
KrYn0MoRe

phone

Apr 22nd, 2020 (edited)
932
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 27.05 KB | None | 0 0
  1. Tool0 = Instance.new("Tool")
  2. Part1 = Instance.new("Part")
  3. Part2 = Instance.new("Part")
  4. Part3 = Instance.new("Part")
  5. Part4 = Instance.new("Part")
  6. Part5 = Instance.new("Part")
  7. SpotLight6 = Instance.new("SpotLight")
  8. Part7 = Instance.new("Part")
  9. Part8 = Instance.new("Part")
  10. Part9 = Instance.new("Part")
  11. Part10 = Instance.new("Part")
  12. Part11 = Instance.new("Part")
  13. Part12 = Instance.new("Part")
  14. SurfaceGui13 = Instance.new("SurfaceGui")
  15. TextLabel14 = Instance.new("TextBox")
  16. Part15 = Instance.new("Part")
  17. Part16 = Instance.new("Part")
  18. Part17 = Instance.new("Part")
  19. Part18 = Instance.new("Part")
  20. Part19 = Instance.new("Part")
  21. Part20 = Instance.new("Part")
  22. Part21 = Instance.new("Part")
  23. Part22 = Instance.new("Part")
  24. Part23 = Instance.new("Part")
  25. Part24 = Instance.new("Part")
  26. Tool0.Name = "Phone"
  27. Tool0.Parent = owner['Backpack']
  28. 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)
  29. Tool0.GripForward = Vector3.new(-4.37113883e-08, -1, -1.19248798e-08)
  30. Tool0.GripPos = Vector3.new(0.243938446, 0, 0.234091938)
  31. Tool0.GripRight = Vector3.new(-5.21253064e-16, -1.19248806e-08, 0.99999994)
  32. Tool0.GripUp = Vector3.new(1, -4.37113883e-08, 0)
  33. Part1.Name = "home button"
  34. Part1.Parent = Tool0
  35. Part1.CFrame = CFrame.new(1.98599994, 10.0500002, 14.7819996, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  36. Part1.Orientation = Vector3.new(0, 0, 90)
  37. Part1.Position = Vector3.new(1.98599994, 10.0500002, 14.7819996)
  38. Part1.Rotation = Vector3.new(0, 0, 90)
  39. Part1.Color = Color3.new(0.972549, 0.972549, 0.972549)
  40. Part1.Size = Vector3.new(0.0500000007, 0.100000001, 0.100000001)
  41. Part1.BottomSurface = Enum.SurfaceType.Smooth
  42. Part1.BrickColor = BrickColor.new("Institutional white")
  43. Part1.CanCollide = false
  44. Part1.Material = Enum.Material.SmoothPlastic
  45. Part1.TopSurface = Enum.SurfaceType.Smooth
  46. Part1.brickColor = BrickColor.new("Institutional white")
  47. Part1.Shape = Enum.PartType.Cylinder
  48. Part2.Name = "back lens glass"
  49. Part2.Parent = Tool0
  50. Part2.CFrame = CFrame.new(3.21600008, 10.0459995, 14.9919996, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  51. Part2.Orientation = Vector3.new(0, 0, -90)
  52. Part2.Position = Vector3.new(3.21600008, 10.0459995, 14.9919996)
  53. Part2.Rotation = Vector3.new(0, 0, -90)
  54. Part2.Color = Color3.new(0.705882, 0.501961, 1)
  55. Part2.Transparency = 0.60000002384186
  56. Part2.Size = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
  57. Part2.BottomSurface = Enum.SurfaceType.Smooth
  58. Part2.BrickColor = BrickColor.new("Alder")
  59. Part2.CanCollide = false
  60. Part2.Material = Enum.Material.Glass
  61. Part2.TopSurface = Enum.SurfaceType.Smooth
  62. Part2.brickColor = BrickColor.new("Alder")
  63. Part2.Shape = Enum.PartType.Cylinder
  64. Part3.Name = "front lens border"
  65. Part3.Parent = Tool0
  66. Part3.CFrame = CFrame.new(3.16599989, 10.0040007, 14.7719994, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  67. Part3.Orientation = Vector3.new(0, 0, 90)
  68. Part3.Position = Vector3.new(3.16599989, 10.0040007, 14.7719994)
  69. Part3.Rotation = Vector3.new(0, 0, 90)
  70. Part3.Color = Color3.new(0.972549, 0.972549, 0.972549)
  71. Part3.Size = Vector3.new(0.0500000007, 0.140000001, 0.140000001)
  72. Part3.BottomSurface = Enum.SurfaceType.Smooth
  73. Part3.BrickColor = BrickColor.new("Institutional white")
  74. Part3.CanCollide = false
  75. Part3.Material = Enum.Material.SmoothPlastic
  76. Part3.Reflectance = 0.69999998807907
  77. Part3.TopSurface = Enum.SurfaceType.Smooth
  78. Part3.brickColor = BrickColor.new("Institutional white")
  79. Part3.Shape = Enum.PartType.Cylinder
  80. Part4.Name = "flash border"
  81. Part4.Parent = Tool0
  82. Part4.CFrame = CFrame.new(3.16599989, 10.0040007, 14.9120026, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  83. Part4.Orientation = Vector3.new(0, 0, 90)
  84. Part4.Position = Vector3.new(3.16599989, 10.0040007, 14.9120026)
  85. Part4.Rotation = Vector3.new(0, 0, 90)
  86. Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
  87. Part4.Size = Vector3.new(0.0500000007, 0.100000001, 0.0700000003)
  88. Part4.BottomSurface = Enum.SurfaceType.Smooth
  89. Part4.BrickColor = BrickColor.new("Institutional white")
  90. Part4.CanCollide = false
  91. Part4.Material = Enum.Material.SmoothPlastic
  92. Part4.Reflectance = 0.69999998807907
  93. Part4.TopSurface = Enum.SurfaceType.Smooth
  94. Part4.brickColor = BrickColor.new("Institutional white")
  95. Part5.Name = "flash inside"
  96. Part5.Parent = Tool0
  97. Part5.CFrame = CFrame.new(3.16568017, 10.0026464, 14.9117937, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  98. Part5.Orientation = Vector3.new(0, 0, 90)
  99. Part5.Position = Vector3.new(3.16568017, 10.0026464, 14.9117937)
  100. Part5.Rotation = Vector3.new(0, 0, 90)
  101. Part5.Color = Color3.new(1, 1, 0)
  102. Part5.Transparency = 0.60000002384186
  103. Part5.Size = Vector3.new(0.0500000007, 0.0799999982, 0.0500000007)
  104. Part5.BottomSurface = Enum.SurfaceType.Smooth
  105. Part5.BrickColor = BrickColor.new("New Yeller")
  106. Part5.CanCollide = false
  107. Part5.Material = Enum.Material.Neon
  108. Part5.TopSurface = Enum.SurfaceType.Smooth
  109. Part5.brickColor = BrickColor.new("New Yeller")
  110. SpotLight6.Name = "flash"
  111. SpotLight6.Parent = Part5
  112. SpotLight6.Color = Color3.new(0.666667, 1, 0)
  113. SpotLight6.Enabled = false
  114. SpotLight6.Face = Enum.NormalId.Left
  115. SpotLight6.Range = 25
  116. SpotLight6.Brightness = 10
  117. SpotLight6.Shadows = true
  118. Part7.Name = "screen"
  119. Part7.Parent = Tool0
  120. Part7.CFrame = CFrame.new(2.62514257, 10.042161, 14.7765141, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  121. Part7.Position = Vector3.new(2.62514257, 10.042161, 14.7765141)
  122. Part7.Color = Color3.new(0.0705882, 0.933333, 0.831373)
  123. Part7.Size = Vector3.new(1.1106236, 0.0500000007, 0.612685621)
  124. Part7.BottomSurface = Enum.SurfaceType.Smooth
  125. Part7.BrickColor = BrickColor.new("Teal")
  126. Part7.CanCollide = false
  127. Part7.Material = Enum.Material.Neon
  128. Part7.TopSurface = Enum.SurfaceType.Smooth
  129. Part7.brickColor = BrickColor.new("Teal")
  130. Part8.Name = "Skin"
  131. Part8.Parent = Tool0
  132. Part8.CFrame = CFrame.new(2.59499931, 10.0270004, 14.4700003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  133. Part8.Position = Vector3.new(2.59499931, 10.0270004, 14.4700003)
  134. Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  135. Part8.Size = Vector3.new(1.32500005, 0.0799999982, 0.0799999982)
  136. Part8.BottomSurface = Enum.SurfaceType.Smooth
  137. Part8.BrickColor = BrickColor.new("Really black")
  138. Part8.CanCollide = false
  139. Part8.Material = Enum.Material.SmoothPlastic
  140. Part8.TopSurface = Enum.SurfaceType.Smooth
  141. Part8.brickColor = BrickColor.new("Really black")
  142. Part8.Shape = Enum.PartType.Cylinder
  143. Part9.Name = "Skin"
  144. Part9.Parent = Tool0
  145. Part9.CFrame = CFrame.new(2.59499764, 10.0270004, 15.0800142, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  146. Part9.Position = Vector3.new(2.59499764, 10.0270004, 15.0800142)
  147. Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  148. Part9.Size = Vector3.new(1.32500005, 0.0799999982, 0.0799999982)
  149. Part9.BottomSurface = Enum.SurfaceType.Smooth
  150. Part9.BrickColor = BrickColor.new("Really black")
  151. Part9.CanCollide = false
  152. Part9.Material = Enum.Material.SmoothPlastic
  153. Part9.TopSurface = Enum.SurfaceType.Smooth
  154. Part9.brickColor = BrickColor.new("Really black")
  155. Part9.Shape = Enum.PartType.Cylinder
  156. Part10.Name = "Handle"
  157. Part10.Parent = Tool0
  158. Part10.CFrame = CFrame.new(2.00999999, 10.0270004, 14.7770004, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  159. Part10.Position = Vector3.new(2.00999999, 10.0270004, 14.7770004)
  160. Part10.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  161. Part10.Size = Vector3.new(0.155000001, 0.0799999982, 0.612999976)
  162. Part10.BottomSurface = Enum.SurfaceType.Smooth
  163. Part10.BrickColor = BrickColor.new("Really black")
  164. Part10.CanCollide = false
  165. Part10.Material = Enum.Material.SmoothPlastic
  166. Part10.TopSurface = Enum.SurfaceType.Smooth
  167. Part10.brickColor = BrickColor.new("Really black")
  168. Part11.Name = "Skin"
  169. Part11.Parent = Tool0
  170. Part11.CFrame = CFrame.new(2.70514441, 10.0125122, 14.7765141, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  171. Part11.Orientation = Vector3.new(0, 90, 0)
  172. Part11.Position = Vector3.new(2.70514441, 10.0125122, 14.7765141)
  173. Part11.Rotation = Vector3.new(0, 90, 0)
  174. Part11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  175. Part11.Size = Vector3.new(0.612999976, 0.0500000007, 0.730000019)
  176. Part11.BottomSurface = Enum.SurfaceType.Smooth
  177. Part11.BrickColor = BrickColor.new("Really black")
  178. Part11.CanCollide = false
  179. Part11.Material = Enum.Material.SmoothPlastic
  180. Part11.TopSurface = Enum.SurfaceType.Smooth
  181. Part11.brickColor = BrickColor.new("Really black")
  182. Part12.Name = "Logo Name"
  183. Part12.Parent = Tool0
  184. Part12.CFrame = CFrame.new(3.21499896, 10.0270004, 14.7770004, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  185. Part12.Orientation = Vector3.new(0, 180, 0)
  186. Part12.Position = Vector3.new(3.21499896, 10.0270004, 14.7770004)
  187. Part12.Rotation = Vector3.new(-180, 0, -180)
  188. Part12.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  189. Part12.Size = Vector3.new(0.0799999982, 0.0799999982, 0.612999976)
  190. Part12.BottomSurface = Enum.SurfaceType.Smooth
  191. Part12.BrickColor = BrickColor.new("Really black")
  192. Part12.CanCollide = false
  193. Part12.Material = Enum.Material.SmoothPlastic
  194. Part12.TopSurface = Enum.SurfaceType.Smooth
  195. Part12.brickColor = BrickColor.new("Really black")
  196. SurfaceGui13.Parent = Part12
  197. SurfaceGui13.LightInfluence = 1
  198. SurfaceGui13.Face = Enum.NormalId.Top
  199. SurfaceGui13.ClipsDescendants = true
  200. SurfaceGui13.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  201. SurfaceGui13.Adornee = Part12
  202. TextLabel14.Parent = SurfaceGui13
  203. TextLabel14.Size = UDim2.new(1, 0, 1, 0)
  204. TextLabel14.BackgroundColor = BrickColor.new("Institutional white")
  205. TextLabel14.BackgroundColor3 = Color3.new(1, 1, 1)
  206. TextLabel14.BackgroundTransparency = 1
  207. TextLabel14.Font = Enum.Font.GothamSemibold
  208. TextLabel14.FontSize = Enum.FontSize.Size14
  209. TextLabel14.Text = "Krypto ™"
  210. TextLabel14.TextColor = BrickColor.new("Institutional white")
  211. TextLabel14.TextColor3 = Color3.new(1, 1, 1)
  212. TextLabel14.TextScaled = true
  213. TextLabel14.TextSize = 14
  214. TextLabel14.TextStrokeTransparency = 0
  215. TextLabel14.TextWrap = true
  216. TextLabel14.TextWrapped = true
  217. Part15.Name = "Skin"
  218. Part15.Parent = Tool0
  219. Part15.CFrame = CFrame.new(2.20514202, 10.0125122, 14.7765141, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  220. Part15.Orientation = Vector3.new(0, 90, 0)
  221. Part15.Position = Vector3.new(2.20514202, 10.0125122, 14.7765141)
  222. Part15.Rotation = Vector3.new(0, 90, 0)
  223. Part15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  224. Part15.Size = Vector3.new(0.612999976, 0.0500000007, 0.271000355)
  225. Part15.BottomSurface = Enum.SurfaceType.Smooth
  226. Part15.BrickColor = BrickColor.new("Really black")
  227. Part15.CanCollide = false
  228. Part15.Material = Enum.Material.SmoothPlastic
  229. Part15.TopSurface = Enum.SurfaceType.Smooth
  230. Part15.brickColor = BrickColor.new("Really black")
  231. Part16.Name = "Skin"
  232. Part16.Parent = Tool0
  233. Part16.CFrame = CFrame.new(3.12064266, 10.0125122, 14.7765141, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  234. Part16.Orientation = Vector3.new(0, 90, 0)
  235. Part16.Position = Vector3.new(3.12064266, 10.0125122, 14.7765141)
  236. Part16.Rotation = Vector3.new(0, 90, 0)
  237. Part16.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  238. Part16.Size = Vector3.new(0.612999976, 0.0500000007, 0.119999997)
  239. Part16.BottomSurface = Enum.SurfaceType.Smooth
  240. Part16.BrickColor = BrickColor.new("Really black")
  241. Part16.CanCollide = false
  242. Part16.Material = Enum.Material.SmoothPlastic
  243. Part16.TopSurface = Enum.SurfaceType.Smooth
  244. Part16.brickColor = BrickColor.new("Really black")
  245. Part17.Name = "Skin"
  246. Part17.Parent = Tool0
  247. Part17.CFrame = CFrame.new(3.25550008, 10.0270004, 14.4700003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  248. Part17.Position = Vector3.new(3.25550008, 10.0270004, 14.4700003)
  249. Part17.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  250. Part17.Size = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
  251. Part17.BottomSurface = Enum.SurfaceType.Smooth
  252. Part17.BrickColor = BrickColor.new("Really black")
  253. Part17.CanCollide = false
  254. Part17.Material = Enum.Material.SmoothPlastic
  255. Part17.TopSurface = Enum.SurfaceType.Smooth
  256. Part17.brickColor = BrickColor.new("Really black")
  257. Part17.Shape = Enum.PartType.Ball
  258. Part18.Name = "Skin"
  259. Part18.Parent = Tool0
  260. Part18.CFrame = CFrame.new(3.25550008, 10.0270004, 15.0800114, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  261. Part18.Position = Vector3.new(3.25550008, 10.0270004, 15.0800114)
  262. Part18.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  263. Part18.Size = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
  264. Part18.BottomSurface = Enum.SurfaceType.Smooth
  265. Part18.BrickColor = BrickColor.new("Really black")
  266. Part18.CanCollide = false
  267. Part18.Material = Enum.Material.SmoothPlastic
  268. Part18.TopSurface = Enum.SurfaceType.Smooth
  269. Part18.brickColor = BrickColor.new("Really black")
  270. Part18.Shape = Enum.PartType.Ball
  271. Part19.Name = "Skin"
  272. Part19.Parent = Tool0
  273. Part19.CFrame = CFrame.new(3.25499988, 10.0270004, 14.7770004, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
  274. Part19.Orientation = Vector3.new(0, 90, 0)
  275. Part19.Position = Vector3.new(3.25499988, 10.0270004, 14.7770004)
  276. Part19.Rotation = Vector3.new(0, 90, 0)
  277. Part19.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  278. Part19.Size = Vector3.new(0.611999989, 0.0799999982, 0.0799999982)
  279. Part19.BottomSurface = Enum.SurfaceType.Smooth
  280. Part19.BrickColor = BrickColor.new("Really black")
  281. Part19.CanCollide = false
  282. Part19.Material = Enum.Material.SmoothPlastic
  283. Part19.TopSurface = Enum.SurfaceType.Smooth
  284. Part19.brickColor = BrickColor.new("Really black")
  285. Part19.Shape = Enum.PartType.Cylinder
  286. Part20.Name = "Skin"
  287. Part20.Parent = Tool0
  288. Part20.CFrame = CFrame.new(1.93550086, 10.0270004, 14.4700003, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  289. Part20.Position = Vector3.new(1.93550086, 10.0270004, 14.4700003)
  290. Part20.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  291. Part20.Size = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
  292. Part20.BottomSurface = Enum.SurfaceType.Smooth
  293. Part20.BrickColor = BrickColor.new("Really black")
  294. Part20.CanCollide = false
  295. Part20.Material = Enum.Material.SmoothPlastic
  296. Part20.TopSurface = Enum.SurfaceType.Smooth
  297. Part20.brickColor = BrickColor.new("Really black")
  298. Part20.Shape = Enum.PartType.Ball
  299. Part21.Name = "Skin"
  300. Part21.Parent = Tool0
  301. Part21.CFrame = CFrame.new(1.93550086, 10.0270004, 15.0800114, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  302. Part21.Position = Vector3.new(1.93550086, 10.0270004, 15.0800114)
  303. Part21.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  304. Part21.Size = Vector3.new(0.0799999982, 0.0799999982, 0.0799999982)
  305. Part21.BottomSurface = Enum.SurfaceType.Smooth
  306. Part21.BrickColor = BrickColor.new("Really black")
  307. Part21.CanCollide = false
  308. Part21.Material = Enum.Material.SmoothPlastic
  309. Part21.TopSurface = Enum.SurfaceType.Smooth
  310. Part21.brickColor = BrickColor.new("Really black")
  311. Part21.Shape = Enum.PartType.Ball
  312. Part22.Name = "Skin"
  313. Part22.Parent = Tool0
  314. Part22.CFrame = CFrame.new(1.93500066, 10.0270004, 14.7770004, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
  315. Part22.Orientation = Vector3.new(0, 90, 0)
  316. Part22.Position = Vector3.new(1.93500066, 10.0270004, 14.7770004)
  317. Part22.Rotation = Vector3.new(0, 90, 0)
  318. Part22.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  319. Part22.Size = Vector3.new(0.611999989, 0.0799999982, 0.0799999982)
  320. Part22.BottomSurface = Enum.SurfaceType.Smooth
  321. Part22.BrickColor = BrickColor.new("Really black")
  322. Part22.CanCollide = false
  323. Part22.Material = Enum.Material.SmoothPlastic
  324. Part22.TopSurface = Enum.SurfaceType.Smooth
  325. Part22.brickColor = BrickColor.new("Really black")
  326. Part22.Shape = Enum.PartType.Cylinder
  327. Part23.Name = "front lens glass"
  328. Part23.Parent = Tool0
  329. Part23.CFrame = CFrame.new(3.16568017, 10.0026464, 14.7717905, 0, -1, 0, 1, 0, -0, 0, 0, 1)
  330. Part23.Orientation = Vector3.new(0, 0, 90)
  331. Part23.Position = Vector3.new(3.16568017, 10.0026464, 14.7717905)
  332. Part23.Rotation = Vector3.new(0, 0, 90)
  333. Part23.Color = Color3.new(0.705882, 0.501961, 1)
  334. Part23.Transparency = 0.60000002384186
  335. Part23.Size = Vector3.new(0.0500000007, 0.119999997, 0.119999997)
  336. Part23.BottomSurface = Enum.SurfaceType.Smooth
  337. Part23.BrickColor = BrickColor.new("Alder")
  338. Part23.CanCollide = false
  339. Part23.Material = Enum.Material.Glass
  340. Part23.TopSurface = Enum.SurfaceType.Smooth
  341. Part23.brickColor = BrickColor.new("Alder")
  342. Part23.Shape = Enum.PartType.Cylinder
  343. Part24.Name = "back lens border"
  344. Part24.Parent = Tool0
  345. Part24.CFrame = CFrame.new(3.21600008, 10.0450001, 14.9919996, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  346. Part24.Orientation = Vector3.new(0, 0, -90)
  347. Part24.Position = Vector3.new(3.21600008, 10.0450001, 14.9919996)
  348. Part24.Rotation = Vector3.new(0, 0, -90)
  349. Part24.Color = Color3.new(0.972549, 0.972549, 0.972549)
  350. Part24.Size = Vector3.new(0.0500000007, 0.0700000003, 0.074000001)
  351. Part24.BottomSurface = Enum.SurfaceType.Smooth
  352. Part24.BrickColor = BrickColor.new("Institutional white")
  353. Part24.CanCollide = false
  354. Part24.Material = Enum.Material.SmoothPlastic
  355. Part24.Reflectance = 0.69999998807907
  356. Part24.TopSurface = Enum.SurfaceType.Smooth
  357. Part24.brickColor = BrickColor.new("Institutional white")
  358. Part24.Shape = Enum.PartType.Cylinder
  359.  
  360. local plr = owner
  361. local char = plr.Character
  362. local torso = char:FindFirstChild('Torso') or char:FindFirstChild('HumanoidRootPart')
  363. local hum = char:FindFirstChildOfClass('Humanoid')
  364.  
  365. local tool = Tool0
  366. local handle = Part10
  367. local flashpart = nil
  368. local flash = nil
  369. local screen = nil
  370. local front_lens,back_lens = nil,nil
  371. local connection = nil
  372. local destruct = false
  373. local calling = false
  374. local taking_pic = false
  375. local equipped = false
  376. local on = false
  377. local light = false
  378. local updating_picture = false
  379. local sguis = {}
  380. local galary = _G[plr.UserId .. ' Photo Galary']
  381. local photo_id = 0
  382. local app = 0
  383.  
  384. if not galary then
  385.     _G[plr.UserId .. ' Photo Galary'] = Instance.new("Folder")
  386.     galary = _G[plr.UserId .. ' Photo Galary']
  387. end
  388.  
  389. photo_id = #galary:GetChildren()
  390.  
  391. for i,v in pairs(tool:GetChildren()) do
  392.     if v:IsA("BasePart") and v ~= handle then
  393.         if v.Name == 'Logo Name' then
  394.             local sgui = v:FindFirstChild('SurfaceGui')
  395.             if sgui then
  396.                 sgui.SizingMode = Enum.SurfaceGuiSizingMode.PixelsPerStud
  397.                 sgui.PixelsPerStud = 1080
  398.             end
  399.         end
  400.         if v.Name == 'flash inside' then
  401.             flashpart = v
  402.             flash = flashpart:FindFirstChild('flash')
  403.         elseif v.Name == 'screen' then
  404.             screen = v
  405.             screen.Material = Enum.Material.SmoothPlastic
  406.             screen.Color = Color3.fromRGB(0, 0, 0)
  407.         elseif v.Name == 'front lens glass' then
  408.             front_lens = v
  409.         elseif v.Name == 'back lens glass' then
  410.             back_lens = v
  411.         end
  412.         local weld = Instance.new("Weld")
  413.         weld.Part0 = handle
  414.         weld.Part1 = v
  415.         weld.C0 = handle.CFrame:Inverse()
  416.         weld.C1 = v.CFrame:Inverse()
  417.         weld.Parent = v
  418.     end
  419. end
  420.  
  421. 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)
  422. tool.CanBeDropped = false
  423.  
  424. local click = Instance.new("Sound")
  425. click.SoundId = 'rbxassetid://537744814'
  426. click.Volume = 1
  427. click.Parent = handle
  428.  
  429. local ring = Instance.new("Sound")
  430. ring.SoundId = 'rbxassetid://152841131'
  431. ring.Volume = 1
  432. ring.Parent = handle
  433.  
  434. local call = Instance.new("Sound")
  435. call.SoundId = 'rbxassetid://1500107704'
  436. call.Volume = 1
  437. call.Parent = handle
  438.  
  439. local shutter = Instance.new("Sound")
  440. shutter.SoundId = 'rbxassetid://278060974'
  441. shutter.Volume = 1
  442. shutter.Parent = handle
  443.  
  444. local key_tap = Instance.new("Sound")
  445. key_tap.SoundId = 'rbxassetid://4740147336'
  446. key_tap.Volume = 1
  447. key_tap.Parent = handle
  448.  
  449. local remote = Instance.new("RemoteEvent")
  450. remote.Name = ('phone remote')
  451. remote.Parent = tool
  452.  
  453. code = [[
  454. local plr = game:GetService("Players").LocalPlayer
  455. local char = plr.Character
  456. mouse = plr:GetMouse()
  457. tool = script.Parent
  458. remote = tool:FindFirstChild('phone remote')
  459.  
  460. tool.Equipped:Connect(function(mouse)
  461.     char = tool.Parent
  462.     plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  463.     if plr and char then
  464.         mouse = plr:GetMouse()
  465.         mouse.KeyDown:Connect(function(key)
  466.             if key == 'e' then
  467.                 remote:FireServer(1)
  468.             elseif key == 'q' then
  469.                 remote:FireServer(2)
  470.             elseif key == 'f' then
  471.                 remote:FireServer(3)
  472.             elseif key == 'r' then
  473.                 remote:FireServer(4)
  474.             elseif key == 't' then
  475.                 remote:FireServer(5)
  476.             elseif key == 'y' then
  477.                 remote:FireServer(6)
  478.             end
  479.         end)
  480.     end
  481. end)
  482. ]]
  483.  
  484. NLS(code,tool)
  485.  
  486. remote.OnServerEvent:Connect(function(lplr,mode)
  487.     if (plr == lplr) and equipped and on then else return end
  488.     key_tap.PlaybackSpeed = 1.2
  489.     key_tap:Play()
  490.     if mode == 5 or mode == 6 then
  491.         if mode == 5 then
  492.             switch_photo(1)
  493.         elseif mode == 6 then
  494.             switch_photo(2)
  495.         end
  496.     else
  497.         if mode ~= 4 then
  498.             app = mode
  499.         else
  500.             app = 0
  501.         end
  502.         if app == 1 or app == 2 then
  503.             toggle_sguis(true)
  504.         else
  505.             toggle_sguis(false)
  506.         end
  507.     end
  508. end)
  509.  
  510. function alive()
  511.     local r = false
  512.     if plr and char and char.Parent and torso and torso.Parent and hum and hum.Parent and hum.Health > 0 then
  513.         r = true
  514.     end
  515.     return r
  516. end
  517.  
  518. function switch_photo(mode)
  519.     local last_photo_id = photo_id
  520.     app = 1
  521.     toggle_sguis(true)
  522.     if mode == 1 then
  523.         photo_id = photo_id - 1
  524.     elseif mode == 2 then
  525.         photo_id = photo_id + 1
  526.     end
  527.     if 0 >= photo_id then
  528.         photo_id = 1
  529.     elseif photo_id >= #galary:GetChildren() then
  530.         photo_id = #galary:GetChildren()
  531.     end
  532.     if last_photo_id ~= photo_id then
  533.         update_screen()
  534.     end
  535. end
  536.  
  537. function clear_old_photos()
  538.     for i,v in pairs(sguis) do if v then v:Destroy(); end; table.remove(sguis,i); end;
  539.     for i,v in pairs(game:GetService('Players'):GetPlayers()) do
  540.         for i,v in pairs(v['PlayerGui']:GetChildren()) do
  541.             local photo_owner_id = v:FindFirstChild('Photo Owner Id')
  542.             local phone_id = v:FindFirstChild('Phone Id')
  543.             --[[
  544.             if photo_owner_id then
  545.                 print'a'
  546.             end
  547.             if phone_id then
  548.                 print'b'
  549.             end
  550.             ]]
  551.             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
  552.                 --warn(v.Name)
  553.                 v:Destroy()
  554.             end
  555.         end
  556.     end
  557. end
  558.  
  559. function update_screen()
  560.     if not updating_picture then else return end
  561.     updating_picture = true
  562.     clear_old_photos()
  563.     local current_photo_id = photo_id
  564.     local photo = galary:FindFirstChild('photo #' .. current_photo_id)
  565.     if photo then else return end
  566.     if connection then connection:Disconnect(); connection = nil; end;
  567.     for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  568.         if photo_id == current_photo_id then
  569.             local c = photo:Clone()
  570.             table.insert(sguis,1,c)
  571.             c.Adornee = screen
  572.             c.Parent = v['PlayerGui']
  573.         end
  574.     end
  575.     connection = game:GetService("Players").PlayerAdded:Connect(function(v)
  576.         if photo_id == current_photo_id then
  577.             local c = photo:Clone()
  578.             table.insert(sguis,1,c)
  579.             c.Adornee = screen
  580.             c.Parent = v['PlayerGui']
  581.         end
  582.     end)
  583.     updating_picture = false
  584. end
  585.  
  586. function toggle_light()
  587.     if light == false then
  588.         light = true
  589.         flashpart.Transparency = 0
  590.         flash.Enabled = true
  591.     elseif light == true then
  592.         light = false
  593.         flashpart.Transparency = 0.6
  594.         flash.Enabled = false
  595.     end
  596. end
  597.  
  598. function check(p)
  599.     p.Archivable = true
  600.     if p:IsA('Humanoid') then
  601.         p.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  602.         p.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOff
  603.     end
  604.     if p:IsA('ScreenGui') or p:IsA('SurfaceGui') or p:IsA('BillboardGui') then
  605.         p.Enabled = false
  606.     end
  607.     if p:IsA('Script') or p:IsA('LocalScript') then
  608.         p.Disabled = true
  609.     end
  610.     if p:IsA('Sound') or p:IsA('BodyColors') then
  611.         p:Destroy()
  612.     end
  613.     if p:IsA('BasePart') or p:IsA('UnionOperation') then
  614.         p.Anchored = true
  615.         p.Locked = true
  616.     end
  617. end
  618.  
  619. function fix(p)
  620.     if p then else return end
  621.     check(p)
  622.     for i,v in pairs(p:GetDescendants()) do
  623.         check(v)
  624.     end
  625. end
  626.  
  627. function toggle_sguis(mode)
  628.     if mode == true then
  629.         screen.Reflectance = 1
  630.         screen.Material = Enum.Material.SmoothPlastic
  631.     elseif mode == false then
  632.         screen.Reflectance = 0
  633.         screen.Material = Enum.Material.Neon
  634.     end
  635.     for i,v in pairs(sguis) do if v then v.Enabled = mode; end; end;
  636. end
  637.  
  638. function vframe_clone(p,vframe,mode)
  639.     if p then else return end
  640.     pcall(function()
  641.     if mode == 1 then
  642.         local c = p:Clone()
  643.         if c then
  644.             fix(c)
  645.             c.Parent = vframe
  646.         end
  647.     elseif mode == 2 then
  648.         p.Archivable = true
  649.         local c = p:Clone()
  650.         if c then
  651.             fix(c)
  652.             c.Parent = vframe
  653.         end
  654.         p.Archivable = false
  655.     end
  656.     end)
  657. end
  658.  
  659. function snap(mode)
  660.     photo_id = #galary:GetChildren() + 1
  661.     local current_photo_id = photo_id
  662.     local sgui = Instance.new("SurfaceGui")
  663.     sgui.Name = ('photo #' .. current_photo_id)
  664.     sgui.SizingMode = Enum.SurfaceGuiSizingMode.PixelsPerStud
  665.     sgui.PixelsPerStud = 1080
  666.     sgui.Face = 'Top'
  667.     sgui.Adornee = nil
  668.     sgui.Parent = galary
  669.     local photo_owner_id = Instance.new("ObjectValue")
  670.     photo_owner_id.Name = ('Photo Owner Id')
  671.     photo_owner_id.Value = plr
  672.     photo_owner_id.Parent = sgui
  673.     local phone_id = Instance.new("ObjectValue")
  674.     phone_id.Name = ('Phone Id')
  675.     phone_id.Value = tool
  676.     phone_id.Parent = sgui
  677.     local vframe = Instance.new("ViewportFrame")
  678.     local camera = Instance.new("Camera")
  679.     camera.FieldOfView = 70
  680.     camera.CameraType = Enum.CameraType.Scriptable
  681.     if mode == 1 then
  682.         camera.CFrame = front_lens.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0, math.rad(90), 0)
  683.     elseif mode == 2 then
  684.         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)
  685.     end
  686.     camera.Parent = vframe
  687.     vframe.Ambient = game:GetService("Lighting").OutdoorAmbient
  688.     vframe.BackgroundTransparency = 1
  689.     vframe.CurrentCamera = camera
  690.     vframe.Size = UDim2.new(1,0,1,0)
  691.     vframe.Parent = sgui
  692.     for i,v in pairs(workspace:GetChildren()) do
  693.         if not v:IsA('Camera') and not v:IsA('Terrain') then
  694.             if v.Archivable == false then
  695.                 vframe_clone(v,vframe,2)
  696.             else
  697.                 vframe_clone(v,vframe,1)
  698.             end
  699.         end
  700.     end
  701.     update_screen()
  702. end
  703.  
  704. function pic(mode)
  705.     if not taking_pic then
  706.         taking_pic = true
  707.         shutter:Play()
  708.         if mode == 1 then
  709.             for i = 0,1,1 do
  710.                 flashpart.Transparency = 0
  711.                 flash.Enabled = true
  712.                 wait(0.05)
  713.                 flashpart.Transparency = 0.6
  714.                 flash.Enabled = false
  715.                 wait(0.05)
  716.             end
  717.             if light then
  718.                 flashpart.Transparency = 0
  719.                 flash.Enabled = true
  720.             end
  721.         elseif mode == 2 then
  722.             wait(0.2)
  723.         end
  724.         snap(mode)
  725.         repeat wait() until not shutter.IsPlaying
  726.         wait()
  727.         taking_pic = false
  728.     end
  729. end
  730.  
  731. tool.Equipped:Connect(function()
  732.     char = tool.Parent
  733.     plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  734.     torso = char:FindFirstChild('Torso') or char:FindFirstChild('HumanoidRootPart')
  735.     hum = char:FindFirstChildOfClass('Humanoid')
  736.     if alive() then else tool.Parent = workspace; return; end;
  737.     equipped = true
  738.     if app == 1 or app == 2 then
  739.         toggle_sguis(true)
  740.     end
  741. end)
  742.  
  743. tool.Unequipped:Connect(function()
  744.     equipped = false
  745.     toggle_sguis(false)
  746. end)
  747.  
  748. tool.Activated:Connect(function()
  749.     if app == 0 then
  750.         key_tap.PlaybackSpeed = 1
  751.         key_tap:Play()
  752.     else
  753.         key_tap.PlaybackSpeed = 1.2
  754.         key_tap:Play()
  755.     end
  756.     if app == 0 then
  757.         on = not on
  758.         if on then
  759.             screen.Material = Enum.Material.Neon
  760.             screen.Color = Color3.fromRGB(18, 238, 212)
  761.         elseif not on then
  762.             screen.Material = Enum.Material.SmoothPlastic
  763.             screen.Color = Color3.fromRGB(0, 0, 0)
  764.         end
  765.     elseif app == 1 then
  766.         pic(1)
  767.     elseif app == 2 then
  768.         pic(2)
  769.     elseif app == 3 then
  770.         toggle_light()
  771.     end
  772. end)
  773.  
  774. clear_old_photos()
  775.  
  776. warn([[
  777. Loaded KrY's Phone v2.0
  778. - Added photo galary
  779. - Front and back camera
  780. - Remade the system.
  781. [-|KEYBINDS|-]
  782. - e for front camera
  783. - q for selfie camera
  784. - f for flash light
  785. - t to goto previous picture in galary
  786. - y to goto next picture in galary
  787. - r for home menu (to turn on phone)
  788. ]])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement