KrYn0MoRe

datastore phone

Apr 29th, 2020
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 27.53 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 = game:GetService("DataStoreService"):GetDataStore('Photo Galary'):GetAsync(plr.UserId)
  381. local photo_id = 0
  382. local app = 0
  383.  
  384. if not galary then
  385.     photo_id = 0
  386. else
  387.     galary = game:GetService("HttpService"):JSONDecode(galary)
  388.     photo_id = #galary
  389. end
  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 (galary and photo_id >= #galary) then
  530.         photo_id = #galary
  531.     else
  532.         photo_id = last_photo_id
  533.         return
  534.     end
  535.     table.foreach(galary,print)
  536.     if last_photo_id ~= photo_id then
  537.         update_screen()
  538.     end
  539. end
  540.  
  541. function clear_old_photos()
  542.     for i,v in pairs(sguis) do if v then v:Destroy(); end; table.remove(sguis,i); end;
  543.     for i,v in pairs(game:GetService('Players'):GetPlayers()) do
  544.         for i,v in pairs(v['PlayerGui']:GetChildren()) do
  545.             local photo_owner_id = v:FindFirstChild('Photo Owner Id')
  546.             local phone_id = v:FindFirstChild('Phone Id')
  547.             --[[
  548.             if photo_owner_id then
  549.                 print'a'
  550.             end
  551.             if phone_id then
  552.                 print'b'
  553.             end
  554.             ]]
  555.             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
  556.                 --warn(v.Name)
  557.                 v:Destroy()
  558.             end
  559.         end
  560.     end
  561. end
  562.  
  563. function update_screen()
  564.     if not updating_picture then else return end
  565.     updating_picture = true
  566.     clear_old_photos()
  567.     local current_photo_id = photo_id
  568.     local photo = galary['photo #' .. current_photo_id]
  569.     if photo then else return end
  570.     if connection then connection:Disconnect(); connection = nil; end;
  571.     for i,v in pairs(game:GetService("Players"):GetPlayers()) do
  572.         if photo_id == current_photo_id then
  573.             local c = photo:Clone()
  574.             table.insert(sguis,1,c)
  575.             c.Adornee = screen
  576.             c.Parent = v['PlayerGui']
  577.         end
  578.     end
  579.     connection = game:GetService("Players").PlayerAdded:Connect(function(v)
  580.         if photo_id == current_photo_id then
  581.             local c = photo:Clone()
  582.             table.insert(sguis,1,c)
  583.             c.Adornee = screen
  584.             c.Parent = v['PlayerGui']
  585.         end
  586.     end)
  587.     updating_picture = false
  588. end
  589.  
  590. function toggle_light()
  591.     if light == false then
  592.         light = true
  593.         flashpart.Transparency = 0
  594.         flash.Enabled = true
  595.     elseif light == true then
  596.         light = false
  597.         flashpart.Transparency = 0.6
  598.         flash.Enabled = false
  599.     end
  600. end
  601.  
  602. function check(p)
  603.     p.Archivable = true
  604.     if p:IsA('Humanoid') then
  605.         p.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
  606.         p.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOff
  607.     end
  608.     if p:IsA('ScreenGui') or p:IsA('SurfaceGui') or p:IsA('BillboardGui') then
  609.         p.Enabled = false
  610.     end
  611.     if p:IsA('Script') or p:IsA('LocalScript') then
  612.         p.Disabled = true
  613.     end
  614.     if p:IsA('Sound') or p:IsA('BodyColors') then
  615.         p:Destroy()
  616.     end
  617.     if p:IsA('BasePart') or p:IsA('UnionOperation') then
  618.         p.Anchored = true
  619.         p.Locked = true
  620.     end
  621. end
  622.  
  623. function fix(p)
  624.     if p then else return end
  625.     check(p)
  626.     for i,v in pairs(p:GetDescendants()) do
  627.         check(v)
  628.     end
  629. end
  630.  
  631. function toggle_sguis(mode)
  632.     if mode == true then
  633.         screen.Reflectance = 1
  634.         screen.Material = Enum.Material.SmoothPlastic
  635.     elseif mode == false then
  636.         screen.Reflectance = 0
  637.         screen.Material = Enum.Material.Neon
  638.     end
  639.     for i,v in pairs(sguis) do if v then v.Enabled = mode; end; end;
  640. end
  641.  
  642. function vframe_clone(p,vframe,mode)
  643.     if p then else return end
  644.     pcall(function()
  645.     if mode == 1 then
  646.         local c = p:Clone()
  647.         if c then
  648.             fix(c)
  649.             c.Parent = vframe
  650.         end
  651.     elseif mode == 2 then
  652.         p.Archivable = true
  653.         local c = p:Clone()
  654.         if c then
  655.             fix(c)
  656.             c.Parent = vframe
  657.         end
  658.         p.Archivable = false
  659.     end
  660.     end)
  661. end
  662.  
  663. function snap(mode)
  664.     if galary then
  665.         photo_id = #galary + 1
  666.     else
  667.         photo_id = photo_id + 1
  668.     end
  669.     local current_photo_id = photo_id
  670.     local sgui = Instance.new("SurfaceGui")
  671.     sgui.Name = ('photo #' .. current_photo_id)
  672.     sgui.SizingMode = Enum.SurfaceGuiSizingMode.PixelsPerStud
  673.     sgui.PixelsPerStud = 1080
  674.     sgui.Face = 'Top'
  675.     sgui.Adornee = nil
  676.     if galary then
  677.         local og = galary
  678.         table.insert(og,1,sgui)
  679.         game:GetService("DataStoreService"):GetDataStore('Photo Galary'):SetAsync(plr.UserId,game:GetService("HttpService"):JSONEncode(og))
  680.         galary = og
  681.     else
  682.         local og = {}
  683.         table.insert(og,1,sgui)
  684.         game:GetService("DataStoreService"):GetDataStore('Photo Galary'):SetAsync(plr.UserId,game:GetService("HttpService"):JSONEncode(og))
  685.         galary = og
  686.     end
  687.     local photo_owner_id = Instance.new("ObjectValue")
  688.     photo_owner_id.Name = ('Photo Owner Id')
  689.     photo_owner_id.Value = plr
  690.     photo_owner_id.Parent = sgui
  691.     local phone_id = Instance.new("ObjectValue")
  692.     phone_id.Name = ('Phone Id')
  693.     phone_id.Value = tool
  694.     phone_id.Parent = sgui
  695.     local vframe = Instance.new("ViewportFrame")
  696.     local camera = Instance.new("Camera")
  697.     camera.FieldOfView = 70
  698.     camera.CameraType = Enum.CameraType.Scriptable
  699.     if mode == 1 then
  700.         camera.CFrame = front_lens.CFrame*CFrame.new(0,0,0)*CFrame.Angles(0, math.rad(90), 0)
  701.     elseif mode == 2 then
  702.         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)
  703.     end
  704.     camera.Parent = vframe
  705.     vframe.Ambient = game:GetService("Lighting").OutdoorAmbient
  706.     vframe.BackgroundTransparency = 1
  707.     vframe.CurrentCamera = camera
  708.     vframe.Size = UDim2.new(1,0,1,0)
  709.     vframe.Parent = sgui
  710.     for i,v in pairs(workspace:GetChildren()) do
  711.         if not v:IsA('Camera') and not v:IsA('Terrain') then
  712.             if v.Archivable == false then
  713.                 vframe_clone(v,vframe,2)
  714.             else
  715.                 vframe_clone(v,vframe,1)
  716.             end
  717.         end
  718.     end
  719.     update_screen()
  720. end
  721.  
  722. function pic(mode)
  723.     if not taking_pic then
  724.         taking_pic = true
  725.         shutter:Play()
  726.         if mode == 1 then
  727.             for i = 0,1,1 do
  728.                 flashpart.Transparency = 0
  729.                 flash.Enabled = true
  730.                 wait(0.05)
  731.                 flashpart.Transparency = 0.6
  732.                 flash.Enabled = false
  733.                 wait(0.05)
  734.             end
  735.             if light then
  736.                 flashpart.Transparency = 0
  737.                 flash.Enabled = true
  738.             end
  739.         elseif mode == 2 then
  740.             wait(0.2)
  741.         end
  742.         snap(mode)
  743.         repeat wait() until not shutter.IsPlaying
  744.         wait()
  745.         taking_pic = false
  746.     end
  747. end
  748.  
  749. tool.Equipped:Connect(function()
  750.     char = tool.Parent
  751.     plr = game:GetService("Players"):GetPlayerFromCharacter(char)
  752.     torso = char:FindFirstChild('Torso') or char:FindFirstChild('HumanoidRootPart')
  753.     hum = char:FindFirstChildOfClass('Humanoid')
  754.     if alive() then else tool.Parent = workspace; return; end;
  755.     equipped = true
  756.     if app == 1 or app == 2 then
  757.         toggle_sguis(true)
  758.     end
  759. end)
  760.  
  761. tool.Unequipped:Connect(function()
  762.     equipped = false
  763.     toggle_sguis(false)
  764. end)
  765.  
  766. tool.Activated:Connect(function()
  767.     if app == 0 then
  768.         key_tap.PlaybackSpeed = 1
  769.         key_tap:Play()
  770.     else
  771.         key_tap.PlaybackSpeed = 1.2
  772.         key_tap:Play()
  773.     end
  774.     if app == 0 then
  775.         on = not on
  776.         if on then
  777.             screen.Material = Enum.Material.Neon
  778.             screen.Color = Color3.fromRGB(18, 238, 212)
  779.         elseif not on then
  780.             screen.Material = Enum.Material.SmoothPlastic
  781.             screen.Color = Color3.fromRGB(0, 0, 0)
  782.         end
  783.     elseif app == 1 then
  784.         pic(1)
  785.     elseif app == 2 then
  786.         pic(2)
  787.     elseif app == 3 then
  788.         toggle_light()
  789.     end
  790. end)
  791.  
  792. clear_old_photos()
  793.  
  794. warn([[
  795. Loaded KrY's Phone v2.0
  796. - Added photo galary
  797. - Front and back camera
  798. - Remade the system.
  799. [-|KEYBINDS|-]
  800. - e for front camera
  801. - q for selfie camera
  802. - f for flash light
  803. - t to goto previous picture in galary
  804. - y to goto next picture in galary
  805. - r for home menu (to turn on phone)
  806. ]])
Add Comment
Please, Sign In to add comment