Guest User

Roblox Flash LVL 7 Script

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