Advertisement
WagnerJunio07

Flash

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