Guest User

Untitled

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