Advertisement
Guest User

Untitled

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