Advertisement
iceeeeeaa

aa

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