codemen

flash v3 script [roblox]

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