Advertisement
DDDDDtuij

Flash for you guys (:

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