Advertisement
Lolerzz

The Flash Roblox(edit test)

Nov 21st, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 42.03 KB | None | 0 0
  1. --[[
  2. ______ __ __ ____ __ ______
  3. / _/ _/ / \/ \ / __/___ __ _______/ /_ / / /
  4. / // / / /\/ /\ \ __/ /_/ __ \/ / / / ___/ __ \ / // /
  5. / // / / / /_/ \ \/_ __/ /_/ / /_/ / / / /_/ / / // /
  6. / // / /_/ \_\/_/ \____/\__,_/_/ /_.___/ _/ // /
  7. /__/__/ /__/__/
  8.  
  9. --]]
  10. wait (1)
  11. local music = Instance.new("Sound", game.Workspace)
  12. music.SoundId = "http://www.roblox.com/Asset/?id=214465446"
  13. music.Looped = false
  14. music:Play()
  15.  
  16. wait()
  17. Player = game.Players.LocalPlayer
  18. Object = Player.Character.HumanoidRootPart
  19. Arm1 = Player.Character["Right Arm"]
  20. PreviousA1 = Arm1.CFrame.p
  21. Arm2 = Player.Character["Left Arm"]
  22. PreviousA2 = Arm2.CFrame.p
  23.  
  24. Leg1 = Player.Character["Right Leg"]
  25. PreviousL1 = Leg1.CFrame.p
  26. Leg2 = Player.Character["Left Leg"]
  27. PreviousL2 = Leg2.CFrame.p
  28.  
  29. Run = game["Run Service"]
  30.  
  31. PreviousP = Object.CFrame.p
  32. Running = false
  33. Phase = false
  34. PhaseActive = false
  35. Morph = false
  36. MorphActive = false
  37. Tornado = false
  38. TornadoRadius = 50
  39. TornadoActive = false
  40. Portal = false
  41. PortalEnd = false
  42. MaxZ = 15
  43. MinZ = -15
  44. LightMaxX = 3
  45. LightMinX = 1
  46. LightMaxX2 = -1
  47. LightMinX2 = -3
  48. LightMaxY = 3
  49. LightMinY = -1
  50. Rotation = 0
  51. Length = 10
  52. Color = BrickColor.Yellow()
  53. PColor = Color3.new(255,255,0)
  54. PrevPoint1 = nil
  55. PrevPoint2 = nil
  56. PrevPoint3 = nil
  57. PrevPoint4 = nil
  58. PrevPoint5 = nil
  59. PrevPoint6 = nil
  60. PrevPoint7 = nil
  61. PrevPoint8 = nil
  62. PrevPoint9 = nil
  63. PrevPoint10 = nil
  64. PrevPoint11 = nil
  65. PrevPoint12 = nil
  66. angle = 0
  67. Mouse = Player:GetMouse()
  68. Player.Character.Humanoid.WalkSpeed = 300
  69.  
  70. Nil = function()
  71. PrevPoint1 = "Empty"
  72. PrevPoint2 = "Empty"
  73. PrevPoint3 = "Empty"
  74. PrevPoint4 = "Empty"
  75. PrevPoint5 = "Empty"
  76. PrevPoint6 = "Empty"
  77. PrevPoint7 = "Empty"
  78. PrevPoint8 = "Empty"
  79. PrevPoint9 = "Empty"
  80. PrevPoint10 = "Empty"
  81. PrevPoint11 = "Empty"
  82. PrevPoint12 = "Empty"
  83. end
  84.  
  85. local Lightning = coroutine.wrap(function()
  86. while wait() do
  87. if Portal == false then
  88. angle = angle + 0.6
  89. local Model = Instance.new("Model",workspace)
  90. Model.Name = "Lightning"
  91. local Point1 = Instance.new("Part",Model)
  92. Point1.Transparency = 1
  93. Point1.Size = Vector3.new(0.2,0.2,0.2)
  94. Point1.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point1.Size.Z/2))
  95. Point1.Anchored = true
  96. Point1.CanCollide = false
  97. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  98.  
  99. local Point2 = Instance.new("Part",Model)
  100. Point2.Transparency = 1
  101. Point2.Size = Vector3.new(0.2,0.2,0.2)
  102. Point2.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point2.Size.Z/2))
  103. Point2.Anchored = true
  104. Point2.CanCollide = false
  105. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  106.  
  107. local Point3 = Instance.new("Part",Model)
  108. Point3.Transparency = 1
  109. Point3.Size = Vector3.new(0.2,0.2,0.2)
  110. Point3.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point3.Size.Z/2))
  111. Point3.Anchored = true
  112. Point3.CanCollide = false
  113. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  114.  
  115. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  116. local Light = Instance.new("Part",Model)
  117. local PointLight = Instance.new("PointLight",Light)
  118. PointLight.Range = 5
  119. PointLight.Color = PColor
  120. Light.Transparency = 0.5
  121. Light.BrickColor = Color
  122. Light.Material = "Neon"
  123. Light.Size = Vector3.new(0.25,0.25,distance)
  124. Light.Anchored = true
  125. Light.CanCollide = false
  126. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  127.  
  128. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  129. local Light = Instance.new("Part",Model)
  130. local PointLight = Instance.new("PointLight",Light)
  131. PointLight.Range = 5
  132. PointLight.Color = PColor
  133. Light.Transparency = 0.5
  134. Light.BrickColor = Color
  135. Light.Material = "Neon"
  136. Light.Size = Vector3.new(0.25,0.25,distance2)
  137. Light.Anchored = true
  138. Light.CanCollide = false
  139. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  140.  
  141. local Point1 = Instance.new("Part",Model)
  142. Point1.Transparency = 1
  143. Point1.Size = Vector3.new(0.2,0.2,0.2)
  144. Point1.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point1.Size.Z/2))
  145. Point1.Anchored = true
  146. Point1.CanCollide = false
  147. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  148.  
  149. local Point2 = Instance.new("Part",Model)
  150. Point2.Transparency = 1
  151. Point2.Size = Vector3.new(0.2,0.2,0.2)
  152. Point2.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point2.Size.Z/2))
  153. Point2.Anchored = true
  154. Point2.CanCollide = false
  155. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  156.  
  157. local Point3 = Instance.new("Part",Model)
  158. Point3.Transparency = 1
  159. Point3.Size = Vector3.new(0.2,0.2,0.2)
  160. Point3.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point3.Size.Z/2))
  161. Point3.Anchored = true
  162. Point3.CanCollide = false
  163. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  164.  
  165. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  166. local Light = Instance.new("Part",Model)
  167. local PointLight = Instance.new("PointLight",Light)
  168. PointLight.Range = 5
  169. PointLight.Color = PColor
  170. Light.Transparency = 0.5
  171. Light.BrickColor = Color
  172. Light.Material = "Neon"
  173. Light.Size = Vector3.new(0.25,0.25,distance)
  174. Light.Anchored = true
  175. Light.CanCollide = false
  176. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  177.  
  178. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  179. local Light = Instance.new("Part",Model)
  180. local PointLight = Instance.new("PointLight",Light)
  181. PointLight.Range = 5
  182. PointLight.Color = PColor
  183. Light.Transparency = 0.5
  184. Light.BrickColor = Color
  185. Light.Material = "Neon"
  186. Light.Size = Vector3.new(0.3,0.3,distance2)
  187. Light.Anchored = true
  188. Light.CanCollide = false
  189. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  190.  
  191. local Point1 = Instance.new("Part",Model)
  192. Point1.Transparency = 1
  193. Point1.Size = Vector3.new(0.2,0.2,0.2)
  194. Point1.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  195. Point1.Anchored = true
  196. Point1.CanCollide = false
  197. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  198.  
  199. local Point2 = Instance.new("Part",Model)
  200. Point2.Transparency = 1
  201. Point2.Size = Vector3.new(0.2,0.2,0.2)
  202. Point2.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  203. Point2.Anchored = true
  204. Point2.CanCollide = false
  205. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  206.  
  207. local Point3 = Instance.new("Part",Model)
  208. Point3.Transparency = 1
  209. Point3.Size = Vector3.new(0.2,0.2,0.2)
  210. Point3.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  211. Point3.Anchored = true
  212. Point3.CanCollide = false
  213. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  214.  
  215. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  216. local Light = Instance.new("Part",Model)
  217. local PointLight = Instance.new("PointLight",Light)
  218. PointLight.Range = 5
  219. PointLight.Color = PColor
  220. Light.Transparency = 0.5
  221. Light.BrickColor = Color
  222. Light.Material = "Neon"
  223. Light.Size = Vector3.new(0.25,0.25,distance)
  224. Light.Anchored = true
  225. Light.CanCollide = false
  226. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  227.  
  228. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  229. local Light = Instance.new("Part",Model)
  230. local PointLight = Instance.new("PointLight",Light)
  231. PointLight.Range = 5
  232. PointLight.Color = PColor
  233. Light.Transparency = 0.5
  234. Light.BrickColor = Color
  235. Light.Material = "Neon"
  236. Light.Size = Vector3.new(0.25,0.25,distance2)
  237. Light.Anchored = true
  238. Light.CanCollide = false
  239. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  240.  
  241. local Point1 = Instance.new("Part",Model)
  242. Point1.Transparency = 1
  243. Point1.Size = Vector3.new(0.2,0.2,0.2)
  244. Point1.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  245. Point1.Anchored = true
  246. Point1.CanCollide = false
  247. Point1.CFrame = Point1.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  248.  
  249. local Point2 = Instance.new("Part",Model)
  250. Point2.Transparency = 1
  251. Point2.Size = Vector3.new(0.2,0.2,0.2)
  252. Point2.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  253. Point2.Anchored = true
  254. Point2.CanCollide = false
  255. Point2.CFrame = Point2.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  256.  
  257. local Point3 = Instance.new("Part",Model)
  258. Point3.Transparency = 1
  259. Point3.Size = Vector3.new(0.2,0.2,0.2)
  260. Point3.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  261. Point3.Anchored = true
  262. Point3.CanCollide = false
  263. Point3.CFrame = Point3.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  264.  
  265. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  266. local Light = Instance.new("Part",Model)
  267. local PointLight = Instance.new("PointLight",Light)
  268. PointLight.Range = 5
  269. PointLight.Color = PColor
  270. Light.Transparency = 0.5
  271. Light.BrickColor = Color
  272. Light.Material = "Neon"
  273. Light.Size = Vector3.new(0.25,0.25,distance)
  274. Light.Anchored = true
  275. Light.CanCollide = false
  276. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  277.  
  278. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  279. local Light = Instance.new("Part",Model)
  280. local PointLight = Instance.new("PointLight",Light)
  281. PointLight.Range = 5
  282. PointLight.Color = PColor
  283. Light.Transparency = 0.5
  284. Light.BrickColor = Color
  285. Light.Material = "Neon"
  286. Light.Size = Vector3.new(0.25,0.25,distance2)
  287. Light.Anchored = true
  288. Light.CanCollide = false
  289. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  290.  
  291. local Children = Model:GetChildren()
  292. wait(0.1)
  293. for i = 1,#Children do
  294. if Children[i]:IsA("Part") then
  295. Children[i].Transparency = 1
  296. end
  297. game.Debris:AddItem(Children[i],0)
  298. end
  299.  
  300. end
  301. end
  302. end)
  303. Lightning()
  304.  
  305. TornadoFunction = function()
  306. local TornadoModel = Instance.new("Model",workspace)
  307. local Center = Instance.new("Part",TornadoModel)
  308. Center.Anchored = true
  309. Center.CanCollide = false
  310. Center.Transparency = 1
  311. Center.Size = Vector3.new(2,2,2)
  312. Center.CFrame = Object.CFrame * CFrame.new(0,0,-20)
  313. local Death = Instance.new("Part",TornadoModel)
  314. Death.Anchored = true
  315. Death.CanCollide = false
  316. Death.Transparency = 1
  317. Death.Size = Vector3.new(TornadoRadius+10,TornadoRadius+10,TornadoRadius+10)
  318. Death.CFrame = Center.CFrame
  319. Death.Touched:connect(function(Touch)
  320. if Touch.Parent:FindFirstChild("Humanoid") ~= nil and Touch.Parent.Name ~= Player.Name then
  321. Touch.Parent.Humanoid.Health = 0
  322. end
  323. end)
  324. local TornadoFunc = function()
  325. local Tornanimation = coroutine.wrap(function()
  326. while Run.Stepped:wait() do
  327. if Tornado == false then Death:Destroy() break end
  328. angle = angle + 0.1
  329. Object.Anchored = false
  330. Object.CFrame = Center.CFrame * CFrame.Angles(0,angle,0) * CFrame.new(0,0,TornadoRadius)
  331. Object.CFrame = Object.CFrame * CFrame.Angles(0,-math.rad(90),0)
  332. end
  333. end)
  334. Tornanimation()
  335. end
  336. TornadoFunc()
  337. end
  338.  
  339. PhaseFunction = function()
  340. local Phase = coroutine.wrap(function()
  341. while wait() do
  342. if Phase == false then break end
  343. if Player.Character.Humanoid.WalkSpeed > 50 and Phase == true then
  344. Object.CFrame = Object.CFrame * CFrame.new(0,0,-Player.Character.Humanoid.WalkSpeed/20)
  345. end
  346. end
  347. end)
  348. Phase()
  349. end
  350.  
  351.  
  352. PortalFunction = function()
  353. local PortalBlock = Instance.new("Part",workspace)
  354. PortalBlock.CFrame = Object.CFrame * CFrame.new(0,0,-100)
  355. PortalBlock.Transparency = 1
  356. PortalBlock.Anchored = true
  357. PortalBlock.CanCollide = false
  358. PortalBlock.Size = Vector3.new(20,20,0.2)
  359. PortalBlock.CFrame = PortalBlock.CFrame * CFrame.new(0,(PortalBlock.Size.Y/2),0)
  360. local Gui = Instance.new("SurfaceGui",PortalBlock)
  361. local Img = Instance.new("ImageLabel",Gui)
  362. Img.Size = UDim2.new(2,0,2,0)
  363. Img.Position = UDim2.new(-0.5,0,-0.5,0)
  364. Img.Transparency = 1
  365. Img.Image = "http://www.roblox.com/asset/?id=21315275"
  366. local Gui = Instance.new("SurfaceGui",PortalBlock)
  367. Gui.Face = "Back"
  368. local Img = Instance.new("ImageLabel",Gui)
  369. Img.Size = UDim2.new(2,0,2,0)
  370. Img.Position = UDim2.new(-0.5,0,-0.5,0)
  371. Img.Transparency = 1
  372. Img.Image = "http://www.roblox.com/asset/?id=21315275"
  373. Object.CFrame = PortalBlock.CFrame
  374. local Face = Object.Parent.Head.face.Texture
  375. local ObjectC = Object.Parent:GetChildren()
  376. for i = 1,#ObjectC do
  377. if ObjectC[i]:IsA("Part") and ObjectC[i].Name ~= "HumanoidRootPart" then
  378. ObjectC[i].Transparency = 1
  379. elseif ObjectC[i]:IsA("Hat") then
  380. ObjectC[i].Handle.Transparency = 1
  381. end
  382. if ObjectC[i].Name == "Head" then
  383. ObjectC[i].face.Texture = ""
  384. end
  385. end
  386.  
  387. local PortalR = coroutine.wrap(function()
  388. wait(0.1)
  389. Portal = true
  390. PortalEnd = true
  391. while wait(0.001) do
  392. if Portal == false then
  393. break
  394. end
  395. Nil()
  396. PortalBlock.CFrame = PortalBlock.CFrame * CFrame.Angles(0,0,-0.1)
  397. wait(0.01)
  398. end
  399. PortalBlock:Destroy()
  400. for i = 1,#ObjectC do
  401. if ObjectC[i]:IsA("Part") and ObjectC[i].Name ~= "HumanoidRootPart" then
  402. ObjectC[i].Transparency = 0
  403. elseif ObjectC[i]:IsA("Hat") then
  404. ObjectC[i].Handle.Transparency = 0
  405. end
  406. if ObjectC[i].Name == "Head" then
  407. ObjectC[i].face.Texture = Face
  408. end
  409. end
  410. game.Players.LocalPlayer.Character.Part.Transparency = 1
  411. local PortalBlock = Instance.new("Part",workspace)
  412. PortalBlock.CFrame = Object.CFrame * CFrame.new(0,0,0)
  413. PortalBlock.Transparency = 1
  414. PortalBlock.Anchored = true
  415. PortalBlock.CanCollide = false
  416. PortalBlock.Size = Vector3.new(20,20,0.2)
  417. PortalBlock.CFrame = PortalBlock.CFrame * CFrame.new(0,(PortalBlock.Size.Y/2),0)
  418. local Gui = Instance.new("SurfaceGui",PortalBlock)
  419. local Img = Instance.new("ImageLabel",Gui)
  420. Img.Size = UDim2.new(2,0,2,0)
  421. Img.Position = UDim2.new(-0.5,0,-0.5,0)
  422. Img.Transparency = 1
  423. Img.Image = "http://www.roblox.com/asset/?id=21315275"
  424. local Gui = Instance.new("SurfaceGui",PortalBlock)
  425. Gui.Face = "Back"
  426. local Img = Instance.new("ImageLabel",Gui)
  427. Img.Size = UDim2.new(2,0,2,0)
  428. Img.Position = UDim2.new(-0.5,0,-0.5,0)
  429. Img.Transparency = 1
  430. Img.Image = "http://www.roblox.com/asset/?id=21315275"
  431. Object.CFrame = PortalBlock.CFrame
  432. PreviousA1 = Arm1.CFrame.p
  433. PreviousA2 = Arm2.CFrame.p
  434. PreviousL1 = Leg1.CFrame.p
  435. PreviousL2 = Leg2.CFrame.p
  436. PreviousP = Object.CFrame.p
  437. PortalEnd = false
  438. wait(2)
  439. PortalBlock:Destroy()
  440. end)
  441. PortalR()
  442. end
  443.  
  444. MorphFunction = function()
  445. local MaxX = 100
  446. local MinX = -100
  447. local MaxY = 100
  448. local MinY = -100
  449. local MaxZ = 100
  450. local MinZ = -100
  451. local Morph = coroutine.wrap(function()
  452. while Run.Stepped:wait(0.1) do
  453. if Morph == false then break end
  454. local Model = Instance.new("Model",workspace)
  455. if Player.Character:FindFirstChild("Shirt") then
  456. local Shirt = Player.Character.Shirt:Clone()
  457. Shirt.Parent = Model
  458. end
  459. if Player.Character:FindFirstChild("Pants") then
  460. local Pants = Player.Character.Pants:Clone()
  461. Pants.Parent = Model
  462. end
  463. local Humanoid = Instance.new("Humanoid",Model)
  464. local LeftArm = Player.Character["Left Arm"]:Clone()
  465. LeftArm.Parent = Model
  466. LeftArm.Transparency = 0.4
  467. LeftArm.Anchored = true
  468. LeftArm.CFrame = Player.Character["Left Arm"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
  469. local RightArm = Player.Character["Right Arm"]:Clone()
  470. RightArm.Parent = Model
  471. RightArm.Transparency = 0.4
  472. RightArm.Anchored = true
  473. RightArm.CFrame = Player.Character["Right Arm"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
  474. local LeftLeg = Player.Character["Left Leg"]:Clone()
  475. LeftLeg.Parent = Model
  476. LeftLeg.Transparency = 0.4
  477. LeftLeg.Anchored = true
  478. LeftLeg.CFrame = Player.Character["Left Leg"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
  479. local RightLeg = Player.Character["Right Leg"]:Clone()
  480. RightLeg.Parent = Model
  481. RightLeg.Transparency = 0.4
  482. RightLeg.Anchored = true
  483. RightLeg.CFrame = Player.Character["Right Leg"].CFrame * CFrame.new(math.random(MinX,MaxX)*0.003,math.random(MinY,MaxY)*0.003,math.random(MinZ,MaxZ)*0.003)
  484. local Children = Model:GetChildren()
  485. wait(0.01)
  486. for i = 1,#Children do
  487. if Children[i]:IsA("Part") then
  488. Children[i].Transparency = 1
  489. end
  490. game.Debris:AddItem(Children[i],0)
  491. end
  492. end
  493. end)
  494. Morph()
  495. end
  496.  
  497. local Guis = coroutine.wrap(function()
  498. local Gui = Instance.new("ScreenGui",Player.PlayerGui)
  499. local TextBox = Instance.new("TextBox",Gui)
  500. TextBox.Text = "Speed"
  501. TextBox.BackgroundColor3 = Color3.new(255,255,255)
  502. TextBox.BorderColor3 = Color3.new(0,0,0)
  503. TextBox.Size = UDim2.new(0,200,0,25)
  504. TextBox.Position = UDim2.new(0,10,0.5,-12.5)
  505. TextBox.FocusLost:connect(function(EnterPressed)
  506. if EnterPressed then
  507. Player.Character.Humanoid.WalkSpeed = TextBox.Text
  508. end
  509. end)
  510. local Flash = Instance.new("TextButton",Gui)
  511. Flash.BackgroundColor3 = Color3.new(255,255,255)
  512. Flash.BorderColor3 = Color3.new(0,0,0)
  513. Flash.Size = UDim2.new(0,200,0,25)
  514. Flash.Position = UDim2.new(0,10,0.5,22.5)
  515. Flash.Text = "The Flash"
  516. Flash.MouseButton1Click:connect(function()
  517. Color = BrickColor.Yellow()
  518. PColor = Color3.new(255,255,0)
  519. end)
  520. local RFlash = Instance.new("TextButton",Gui)
  521. RFlash.BackgroundColor3 = Color3.new(255,255,255)
  522. RFlash.BorderColor3 = Color3.new(0,0,0)
  523. RFlash.Size = UDim2.new(0,200,0,25)
  524. RFlash.Position = UDim2.new(0,10,0.5,57.5)
  525. RFlash.Text = "The Reverse Flash"
  526. RFlash.MouseButton1Click:connect(function()
  527. Color = BrickColor.new("Really red")
  528. PColor = Color3.new(255,0,0)
  529. end)
  530. local Zoom = Instance.new("TextButton",Gui)
  531. Zoom.BackgroundColor3 = Color3.new(255,255,255)
  532. Zoom.BorderColor3 = Color3.new(0,0,0)
  533. Zoom.Size = UDim2.new(0,200,0,25)
  534. Zoom.Position = UDim2.new(0,10,0.5,92.5)
  535. Zoom.Text = "Savitar"
  536. Zoom.MouseButton1Click:connect(function()
  537. Color = BrickColor.new("Toothpaste")
  538. PColor = Color3.new(0,170,255)
  539. end)
  540. local Radius = Instance.new("TextBox",Gui)
  541. Radius.Text = "Tornado Radius"
  542. Radius.BackgroundColor3 = Color3.new(255,255,255)
  543. Radius.BorderColor3 = Color3.new(0,0,0)
  544. Radius.Size = UDim2.new(0,200,0,25)
  545. Radius.Position = UDim2.new(0,10,0.5,127.5)
  546. Radius.FocusLost:connect(function(EnterPressed)
  547. if EnterPressed then
  548. TornadoRadius = Radius.Text
  549. end
  550. end)
  551. Mouse.KeyDown:connect(function(Key)
  552. if Key == "f" then
  553. if Portal == false then
  554. PortalFunction()
  555. Nil()
  556. else
  557. Portal = false
  558. end
  559. end
  560. if Key == "r" then
  561. if Phase == false then
  562. Phase = true
  563. PhaseFunction()
  564. print "PhaseFunction"
  565. else
  566. Phase = false
  567. end
  568. end
  569. if Key == "e" then
  570. if Tornado == false then
  571. Tornado = true
  572. TornadoFunction()
  573. else
  574. Tornado = false
  575. end
  576. end
  577. if Key == "t" then
  578. if Morph == false then
  579. Morph = true
  580. MorphFunction()
  581. else
  582. Morph = false
  583. end
  584. end
  585. end)
  586. end)
  587. Guis()
  588.  
  589. Run.RenderStepped:connect(function()
  590. if (Object.CFrame.p - PreviousP).magnitude > 7 and Player.Character.Humanoid.WalkSpeed > 25 and Portal == false and PortalEnd == false then
  591. local Model = Instance.new("Model",workspace)
  592. Model.Name = "Ray"
  593. local Humanoid = Instance.new("Humanoid",Model)
  594. if Player.Character:FindFirstChild("Shirt") ~= nil then
  595. Player.Character.Shirt:Clone().Parent = Model
  596. end
  597. if Player.Character:FindFirstChild("Pants") ~= nil then
  598. Player.Character.Pants:Clone().Parent = Model
  599. end
  600. local distance = (Object.CFrame.p - PreviousP).magnitude
  601. local Light = Instance.new("Part",Model)
  602. Light.Anchored = true
  603. Light.CanCollide = false
  604. Light.TopSurface = "SmoothNoOutlines"
  605. Light.BottomSurface = "SmoothNoOutlines"
  606. Light.BackSurface = "SmoothNoOutlines"
  607. Light.FrontSurface = "SmoothNoOutlines"
  608. Light.LeftSurface = "SmoothNoOutlines"
  609. Light.RightSurface = "SmoothNoOutlines"
  610. Light.Transparency = 1
  611. Light.BrickColor = BrickColor.Black()
  612. Light.Size = Vector3.new(2,2,distance)
  613. Light.CFrame = CFrame.new(Object.CFrame.p , PreviousP) * CFrame.new(0,0,-distance/2)
  614.  
  615. local PointLight = Instance.new("PointLight",Light)
  616. PointLight.Range = 15
  617. PointLight.Brightness = 100
  618. PointLight.Color = PColor
  619.  
  620. local distance = (Arm1.CFrame.p - PreviousA1).magnitude
  621.  
  622. local Arm1Light = Instance.new("Part",Model)
  623. Arm1Light.Name = "Right Arm"
  624. Arm1Light.Anchored = true
  625. Arm1Light.CanCollide = false
  626. Arm1Light.TopSurface = "SmoothNoOutlines"
  627. Arm1Light.BottomSurface = "SmoothNoOutlines"
  628. Arm1Light.BackSurface = "SmoothNoOutlines"
  629. Arm1Light.FrontSurface = "SmoothNoOutlines"
  630. Arm1Light.LeftSurface = "SmoothNoOutlines"
  631. Arm1Light.RightSurface = "SmoothNoOutlines"
  632. Arm1Light.Transparency = 0.5
  633. Arm1Light.BrickColor = BrickColor.Black()
  634. Arm1Light.Size = Vector3.new(1,2,distance)
  635. Arm1Light.CFrame = CFrame.new(Arm1.CFrame.p , PreviousA1) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
  636.  
  637. local distance = (Arm2.CFrame.p - PreviousA2).magnitude
  638.  
  639. local Arm2Light = Instance.new("Part",Model)
  640. Arm2Light.Name = "Left Arm"
  641. Arm2Light.Anchored = true
  642. Arm2Light.CanCollide = false
  643. Arm2Light.TopSurface = "SmoothNoOutlines"
  644. Arm2Light.BottomSurface = "SmoothNoOutlines"
  645. Arm2Light.BackSurface = "SmoothNoOutlines"
  646. Arm2Light.FrontSurface = "SmoothNoOutlines"
  647. Arm2Light.LeftSurface = "SmoothNoOutlines"
  648. Arm2Light.RightSurface = "SmoothNoOutlines"
  649. Arm2Light.Transparency = 0.5
  650. Arm2Light.BrickColor = BrickColor.Black()
  651. Arm2Light.Size = Vector3.new(1,2,distance)
  652. Arm2Light.CFrame = CFrame.new(Arm2.CFrame.p , PreviousA2) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
  653.  
  654. local distance = (Leg1.CFrame.p - PreviousL1).magnitude
  655.  
  656. local Leg1Light = Instance.new("Part",Model)
  657. Leg1Light.Name = "Right Leg"
  658. Leg1Light.Anchored = true
  659. Leg1Light.CanCollide = false
  660. Leg1Light.TopSurface = "SmoothNoOutlines"
  661. Leg1Light.BottomSurface = "SmoothNoOutlines"
  662. Leg1Light.BackSurface = "SmoothNoOutlines"
  663. Leg1Light.FrontSurface = "SmoothNoOutlines"
  664. Leg1Light.LeftSurface = "SmoothNoOutlines"
  665. Leg1Light.RightSurface = "SmoothNoOutlines"
  666. Leg1Light.Transparency = 0.5
  667. Leg1Light.BrickColor = BrickColor.Black()
  668. Leg1Light.Size = Vector3.new(1,2,distance)
  669. Leg1Light.CFrame = CFrame.new(Leg1.CFrame.p , PreviousL1) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
  670.  
  671. local distance = (Leg2.CFrame.p - PreviousL2).magnitude
  672.  
  673. local Leg1Light = Instance.new("Part",Model)
  674. Leg1Light.Name = "Left Leg"
  675. Leg1Light.Anchored = true
  676. Leg1Light.CanCollide = false
  677. Leg1Light.TopSurface = "SmoothNoOutlines"
  678. Leg1Light.BottomSurface = "SmoothNoOutlines"
  679. Leg1Light.BackSurface = "SmoothNoOutlines"
  680. Leg1Light.FrontSurface = "SmoothNoOutlines"
  681. Leg1Light.LeftSurface = "SmoothNoOutlines"
  682. Leg1Light.RightSurface = "SmoothNoOutlines"
  683. Leg1Light.Transparency = 0.5
  684. Leg1Light.BrickColor = BrickColor.Black()
  685. Leg1Light.Size = Vector3.new(1,2,distance)
  686. Leg1Light.CFrame = CFrame.new(Leg2.CFrame.p , PreviousL2) * CFrame.new(0,0,-distance/2) * CFrame.Angles(0,math.rad(180),0)
  687.  
  688. local Point1 = Instance.new("Part",Model)
  689. Point1.Transparency = 1
  690. Point1.Anchored = true
  691. Point1.CanCollide = false
  692. Point1.Size = Vector3.new(0.2,0.2,0.2)
  693. Point1.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
  694. * CFrame.new(Light.Size.X/2 ,0 ,0)
  695. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  696. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  697.  
  698. local Point2 = Instance.new("Part",Model)
  699. Point2.Transparency = 1
  700. Point2.Anchored = true
  701. Point2.CanCollide = false
  702. Point2.Size = Vector3.new(0.2,0.2,0.2)
  703. Point2.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
  704. * CFrame.new(Light.Size.X/2 ,0 ,0)
  705. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  706. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  707.  
  708. local Point5 = Instance.new("Part",Model)
  709. Point5.Transparency = 1
  710. Point5.Anchored = true
  711. Point5.CanCollide = false
  712. Point5.Size = Vector3.new(0.2,0.2,0.2)
  713. Point5.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
  714. * CFrame.new(Light.Size.X/2 ,0 ,0)
  715. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  716. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  717.  
  718. local Point6 = Instance.new("Part",Model)
  719. Point6.Transparency = 1
  720. Point6.Anchored = true
  721. Point6.CanCollide = false
  722. Point6.Size = Vector3.new(0.2,0.2,0.2)
  723. Point6.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
  724. * CFrame.new(Light.Size.X/2 ,0 ,0)
  725. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  726. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  727.  
  728. local Point3 = Instance.new("Part",Model)
  729. Point3.Transparency = 1
  730. Point3.Anchored = true
  731. Point3.CanCollide = false
  732. Point3.Size = Vector3.new(0.2,0.2,0.2)
  733. Point3.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
  734. * CFrame.new(-Light.Size.X/2 ,0 ,0)
  735. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  736. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  737.  
  738. local Point4 = Instance.new("Part",Model)
  739. Point4.Transparency = 1
  740. Point4.Anchored = true
  741. Point4.CanCollide = false
  742. Point4.Size = Vector3.new(0.2,0.2,0.2)
  743. Point4.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
  744. * CFrame.new(-Light.Size.X/2 ,0 ,0)
  745. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  746. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  747.  
  748. local Point7 = Instance.new("Part",Model)
  749. Point7.Transparency = 1
  750. Point7.Anchored = true
  751. Point7.CanCollide = false
  752. Point7.Size = Vector3.new(0.2,0.2,0.2)
  753. Point7.CFrame = Light.CFrame * CFrame.new(0,0,-Light.Size.Z/2)
  754. * CFrame.new(-Light.Size.X/2 ,0 ,0)
  755. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  756. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  757.  
  758. local Point8 = Instance.new("Part",Model)
  759. Point8.Transparency = 1
  760. Point8.Anchored = true
  761. Point8.CanCollide = false
  762. Point8.Size = Vector3.new(0.2,0.2,0.2)
  763. Point8.CFrame = Light.CFrame * CFrame.new(0,0,Light.Size.Z/2)
  764. * CFrame.new(-Light.Size.X/2 ,0 ,0)
  765. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  766. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  767.  
  768. local Point9 = Instance.new("Part",Model)
  769. Point9.Transparency = 1
  770. Point9.Anchored = true
  771. Point9.CanCollide = false
  772. Point9.Size = Vector3.new(0.2,0.2,0.2)
  773. Point9.CFrame = Light.CFrame * CFrame.new(0,-1,-Light.Size.Z/2)
  774. * CFrame.new(Light.Size.X/2 ,-2 ,0)
  775. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  776. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  777.  
  778. local Point10 = Instance.new("Part",Model)
  779. Point10.Transparency = 1
  780. Point10.Anchored = true
  781. Point10.CanCollide = false
  782. Point10.Size = Vector3.new(0.2,0.2,0.2)
  783. Point10.CFrame = Light.CFrame * CFrame.new(0,-1,Light.Size.Z/2)
  784. * CFrame.new(Light.Size.X/2 ,0 ,0)
  785. * CFrame.new(math.random(LightMinX,LightMaxX),0,0)
  786. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  787.  
  788. local Point11 = Instance.new("Part",Model)
  789. Point11.Transparency = 1
  790. Point11.Anchored = true
  791. Point11.CanCollide = false
  792. Point11.Size = Vector3.new(0.2,0.2,0.2)
  793. Point11.CFrame = Light.CFrame * CFrame.new(0,-1,-Light.Size.Z/2)
  794. * CFrame.new(Light.Size.X/2 ,-2 ,0)
  795. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  796. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  797.  
  798. local Point12 = Instance.new("Part",Model)
  799. Point12.Transparency = 1
  800. Point12.Anchored = true
  801. Point12.CanCollide = false
  802. Point12.Size = Vector3.new(0.2,0.2,0.2)
  803. Point12.CFrame = Light.CFrame * CFrame.new(0,-1,Light.Size.Z/2)
  804. * CFrame.new(Light.Size.X/2 ,-2 ,0)
  805. * CFrame.new(math.random(LightMinX2,LightMaxX2),0,0)
  806. * CFrame.new(0,math.random(LightMinY,LightMaxY),0)
  807.  
  808. if PrevPoint2 == nil or PrevPoint2 == "Empty" then
  809. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  810. local Light = Instance.new("Part",Model)
  811. Light.Anchored = true
  812. Light.CanCollide = false
  813. Light.TopSurface = "SmoothNoOutlines"
  814. Light.BottomSurface = "SmoothNoOutlines"
  815. Light.BackSurface = "SmoothNoOutlines"
  816. Light.FrontSurface = "SmoothNoOutlines"
  817. Light.LeftSurface = "SmoothNoOutlines"
  818. Light.RightSurface = "SmoothNoOutlines"
  819. Light.Transparency = 0
  820. Light.Size = Vector3.new(0.4,0.4,distance)
  821. Light.Material = "Neon"
  822. Light.BrickColor = Color
  823. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  824. elseif PrevPoint2 ~= nil then
  825. local distance = (Point2.CFrame.p - PrevPoint2).magnitude
  826. local Light = Instance.new("Part",Model)
  827. Light.Anchored = true
  828. Light.CanCollide = false
  829. Light.TopSurface = "SmoothNoOutlines"
  830. Light.BottomSurface = "SmoothNoOutlines"
  831. Light.BackSurface = "SmoothNoOutlines"
  832. Light.FrontSurface = "SmoothNoOutlines"
  833. Light.LeftSurface = "SmoothNoOutlines"
  834. Light.RightSurface = "SmoothNoOutlines"
  835. Light.Transparency = 0
  836. Light.Size = Vector3.new(0.4,0.4,distance)
  837. Light.Material = "Neon"
  838. Light.BrickColor = Color
  839. Light.CFrame = CFrame.new(Point2.CFrame.p , PrevPoint2) * CFrame.new(0,0,-distance/2)
  840. end
  841.  
  842. if PrevPoint4 == nil or PrevPoint4 == "Empty" then
  843. local distance = (Point4.CFrame.p - Point3.CFrame.p).magnitude
  844. local Light = Instance.new("Part",Model)
  845. Light.Anchored = true
  846. Light.CanCollide = false
  847. Light.TopSurface = "SmoothNoOutlines"
  848. Light.BottomSurface = "SmoothNoOutlines"
  849. Light.BackSurface = "SmoothNoOutlines"
  850. Light.FrontSurface = "SmoothNoOutlines"
  851. Light.LeftSurface = "SmoothNoOutlines"
  852. Light.RightSurface = "SmoothNoOutlines"
  853. Light.Transparency = 0
  854. Light.Size = Vector3.new(0.4,0.4,distance)
  855. Light.Material = "Neon"
  856. Light.BrickColor = Color
  857. Light.CFrame = CFrame.new(Point4.CFrame.p , Point3.CFrame.p) * CFrame.new(0,0,-distance/2)
  858. elseif PrevPoint4 ~= nil then
  859. local distance = (Point4.CFrame.p - PrevPoint4).magnitude
  860. local Light = Instance.new("Part",Model)
  861. Light.Anchored = true
  862. Light.CanCollide = false
  863. Light.TopSurface = "SmoothNoOutlines"
  864. Light.BottomSurface = "SmoothNoOutlines"
  865. Light.BackSurface = "SmoothNoOutlines"
  866. Light.FrontSurface = "SmoothNoOutlines"
  867. Light.LeftSurface = "SmoothNoOutlines"
  868. Light.RightSurface = "SmoothNoOutlines"
  869. Light.Transparency = 0
  870. Light.Size = Vector3.new(0.4,0.4,distance)
  871. Light.Material = "Neon"
  872. Light.BrickColor = Color
  873. Light.CFrame = CFrame.new(Point4.CFrame.p , PrevPoint4) * CFrame.new(0,0,-distance/2)
  874. end
  875.  
  876.  
  877. if PrevPoint6 == nil or PrevPoint6 == "Empty" then
  878. local distance = (Point6.CFrame.p - Point5.CFrame.p).magnitude
  879. local Light = Instance.new("Part",Model)
  880. Light.Anchored = true
  881. Light.CanCollide = false
  882. Light.TopSurface = "SmoothNoOutlines"
  883. Light.BottomSurface = "SmoothNoOutlines"
  884. Light.BackSurface = "SmoothNoOutlines"
  885. Light.FrontSurface = "SmoothNoOutlines"
  886. Light.LeftSurface = "SmoothNoOutlines"
  887. Light.RightSurface = "SmoothNoOutlines"
  888. Light.Transparency = 0
  889. Light.Size = Vector3.new(0.4,0.4,distance)
  890. Light.Material = "Neon"
  891. Light.BrickColor = Color
  892. Light.CFrame = CFrame.new(Point6.CFrame.p , Point5.CFrame.p) * CFrame.new(0,0,-distance/2)
  893. elseif PrevPoint6 ~= nil then
  894. local distance = (Point6.CFrame.p - PrevPoint6).magnitude
  895. local Light = Instance.new("Part",Model)
  896. Light.Anchored = true
  897. Light.CanCollide = false
  898. Light.TopSurface = "SmoothNoOutlines"
  899. Light.BottomSurface = "SmoothNoOutlines"
  900. Light.BackSurface = "SmoothNoOutlines"
  901. Light.FrontSurface = "SmoothNoOutlines"
  902. Light.LeftSurface = "SmoothNoOutlines"
  903. Light.RightSurface = "SmoothNoOutlines"
  904. Light.Transparency = 0
  905. Light.Size = Vector3.new(0.4,0.4,distance)
  906. Light.Material = "Neon"
  907. Light.BrickColor = Color
  908. Light.CFrame = CFrame.new(Point6.CFrame.p , PrevPoint6) * CFrame.new(0,0,-distance/2)
  909. end
  910.  
  911. if PrevPoint8 == nil or PrevPoint8 == "Empty" then
  912. local distance = (Point8.CFrame.p - Point7.CFrame.p).magnitude
  913. local Light = Instance.new("Part",Model)
  914. Light.Anchored = true
  915. Light.CanCollide = false
  916. Light.TopSurface = "SmoothNoOutlines"
  917. Light.BottomSurface = "SmoothNoOutlines"
  918. Light.BackSurface = "SmoothNoOutlines"
  919. Light.FrontSurface = "SmoothNoOutlines"
  920. Light.LeftSurface = "SmoothNoOutlines"
  921. Light.RightSurface = "SmoothNoOutlines"
  922. Light.Transparency = 0
  923. Light.Size = Vector3.new(0.4,0.4,distance)
  924. Light.Material = "Neon"
  925. Light.BrickColor = Color
  926. Light.CFrame = CFrame.new(Point8.CFrame.p , Point7.CFrame.p) * CFrame.new(0,0,-distance/2)
  927. elseif PrevPoint8 ~= nil then
  928. local distance = (Point8.CFrame.p - PrevPoint8).magnitude
  929. local Light = Instance.new("Part",Model)
  930. Light.Anchored = true
  931. Light.CanCollide = false
  932. Light.TopSurface = "SmoothNoOutlines"
  933. Light.BottomSurface = "SmoothNoOutlines"
  934. Light.BackSurface = "SmoothNoOutlines"
  935. Light.FrontSurface = "SmoothNoOutlines"
  936. Light.LeftSurface = "SmoothNoOutlines"
  937. Light.RightSurface = "SmoothNoOutlines"
  938. Light.Transparency = 0
  939. Light.Size = Vector3.new(0.4,0.4,distance)
  940. Light.Material = "Neon"
  941. Light.BrickColor = Color
  942. Light.CFrame = CFrame.new(Point8.CFrame.p , PrevPoint8) * CFrame.new(0,0,-distance/2)
  943. end
  944.  
  945. if PrevPoint10 == nil or PrevPoint10 == "Empty" then
  946. local distance = (Point10.CFrame.p - Point9.CFrame.p).magnitude
  947. local Light = Instance.new("Part",Model)
  948. Light.Anchored = true
  949. Light.CanCollide = false
  950. Light.TopSurface = "SmoothNoOutlines"
  951. Light.BottomSurface = "SmoothNoOutlines"
  952. Light.BackSurface = "SmoothNoOutlines"
  953. Light.FrontSurface = "SmoothNoOutlines"
  954. Light.LeftSurface = "SmoothNoOutlines"
  955. Light.RightSurface = "SmoothNoOutlines"
  956. Light.Transparency = 0
  957. Light.Size = Vector3.new(0.4,0.4,distance)
  958. Light.Material = "Neon"
  959. Light.BrickColor = Color
  960. Light.CFrame = CFrame.new(Point10.CFrame.p , Point9.CFrame.p) * CFrame.new(0,0,-distance/2)
  961. elseif PrevPoint10 ~= nil then
  962. local distance = (Point10.CFrame.p - PrevPoint10).magnitude
  963. local Light = Instance.new("Part",Model)
  964. Light.Anchored = true
  965. Light.CanCollide = false
  966. Light.TopSurface = "SmoothNoOutlines"
  967. Light.BottomSurface = "SmoothNoOutlines"
  968. Light.BackSurface = "SmoothNoOutlines"
  969. Light.FrontSurface = "SmoothNoOutlines"
  970. Light.LeftSurface = "SmoothNoOutlines"
  971. Light.RightSurface = "SmoothNoOutlines"
  972. Light.Transparency = 0
  973. Light.Size = Vector3.new(0.4,0.4,distance)
  974. Light.Material = "Neon"
  975. Light.BrickColor = Color
  976. Light.CFrame = CFrame.new(Point10.CFrame.p , PrevPoint10) * CFrame.new(0,0,-distance/2)
  977. end
  978.  
  979.  
  980. if PrevPoint12 == nil or PrevPoint12 == "Empty" then
  981. local distance = (Point12.CFrame.p - Point11.CFrame.p).magnitude
  982. local Light = Instance.new("Part",Model)
  983. Light.Anchored = true
  984. Light.CanCollide = false
  985. Light.TopSurface = "SmoothNoOutlines"
  986. Light.BottomSurface = "SmoothNoOutlines"
  987. Light.BackSurface = "SmoothNoOutlines"
  988. Light.FrontSurface = "SmoothNoOutlines"
  989. Light.LeftSurface = "SmoothNoOutlines"
  990. Light.RightSurface = "SmoothNoOutlines"
  991. Light.Transparency = 0
  992. Light.Size = Vector3.new(0.4,0.4,distance)
  993. Light.Material = "Neon"
  994. Light.BrickColor = Color
  995. Light.CFrame = CFrame.new(Point12.CFrame.p , Point11.CFrame.p) * CFrame.new(0,0,-distance/2)
  996. elseif PrevPoint12 ~= nil then
  997. local distance = (Point12.CFrame.p - PrevPoint12).magnitude
  998. local Light = Instance.new("Part",Model)
  999. Light.Anchored = true
  1000. Light.CanCollide = false
  1001. Light.TopSurface = "SmoothNoOutlines"
  1002. Light.BottomSurface = "SmoothNoOutlines"
  1003. Light.BackSurface = "SmoothNoOutlines"
  1004. Light.FrontSurface = "SmoothNoOutlines"
  1005. Light.LeftSurface = "SmoothNoOutlines"
  1006. Light.RightSurface = "SmoothNoOutlines"
  1007. Light.Transparency = 0
  1008. Light.Size = Vector3.new(0.4,0.4,distance)
  1009. Light.Material = "Neon"
  1010. Light.BrickColor = Color
  1011. Light.CFrame = CFrame.new(Point12.CFrame.p , PrevPoint12) * CFrame.new(0,0,-distance/2)
  1012. end
  1013. PreviousP = Object.CFrame.p
  1014. PreviousA1 = Arm1.CFrame.p
  1015. PreviousA2 = Arm2.CFrame.p
  1016. PreviousL1 = Leg1.CFrame.p
  1017. PreviousL2 = Leg2.CFrame.p
  1018. PrevPoint1 = Point1.CFrame.p
  1019. PrevPoint2 = Point2.CFrame.p
  1020. PrevPoint3 = Point3.CFrame.p
  1021. PrevPoint4 = Point4.CFrame.p
  1022. PrevPoint5 = Point5.CFrame.p
  1023. PrevPoint6 = Point6.CFrame.p
  1024. PrevPoint7 = Point7.CFrame.p
  1025. PrevPoint8 = Point8.CFrame.p
  1026. PrevPoint9 = Point9.CFrame.p
  1027. PrevPoint10 = Point10.CFrame.p
  1028. PrevPoint11 = Point11.CFrame.p
  1029. PrevPoint12 = Point12.CFrame.p
  1030. local Children = Model:GetChildren()
  1031. wait(1)
  1032. for i = 1,10 do
  1033. local Remove = coroutine.wrap(function()
  1034. for i = 1,#Children do
  1035. if Children[i]:IsA("Part") then
  1036. Children[i].Transparency = Children[i].Transparency + 0.1
  1037. if Children[i].Transparency >= 1 and Children[i] ~= Light and Children[i] ~= Point1 and Children[i] ~= Point2 and Children[i] ~= Point3
  1038. and Children[i] ~= Point4 and Children[i] ~= Point5 and Children[i] ~= Point6 and Children[i] ~= Point7 and Children[i] ~= Point8
  1039. and Children[i] ~= Point9 and Children[i] ~= Point10 and Children[i] ~= Point11 and Children[i] ~= Point12 then
  1040. game.Debris:AddItem(Children[i],0)
  1041. end
  1042. end
  1043. if Children[i].ClassName ~= "Part" then
  1044. game.Debris:AddItem(Children[i],0)
  1045. end
  1046. end
  1047. end)
  1048. Remove()
  1049. wait(0.05)
  1050. end
  1051. game.Debris:AddItem(Light,0)
  1052. game.Debris:AddItem(Point1,0)
  1053. game.Debris:AddItem(Point2,0)
  1054. game.Debris:AddItem(Point3,0)
  1055. game.Debris:AddItem(Point4,0)
  1056. game.Debris:AddItem(Point5,0)
  1057. game.Debris:AddItem(Point6,0)
  1058. game.Debris:AddItem(Point7,0)
  1059. game.Debris:AddItem(Point8,0)
  1060. game.Debris:AddItem(Point9,0)
  1061. game.Debris:AddItem(Point10,0)
  1062. game.Debris:AddItem(Point11,0)
  1063. game.Debris:AddItem(Point12,0)
  1064. end
  1065. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement