Advertisement
gecksad

Untitled

Nov 22nd, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.79 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. wait()
  97. Player = owner
  98. Object = Player.Character.HumanoidRootPart
  99. Arm1 = Player.Character["Right Arm"]
  100. PreviousA1 = Arm1.CFrame.p
  101. Arm2 = Player.Character["Left Arm"]
  102. PreviousA2 = Arm2.CFrame.p
  103.  
  104. Leg1 = Player.Character["Right Leg"]
  105. PreviousL1 = Leg1.CFrame.p
  106. Leg2 = Player.Character["Left Leg"]
  107. PreviousL2 = Leg2.CFrame.p
  108.  
  109. Run = game["Run Service"]
  110.  
  111. PreviousP = Object.CFrame.p
  112. Running = false
  113. Phase = false
  114. PhaseActive = false
  115. Morph = false
  116. MorphActive = false
  117. Tornado = false
  118. TornadoRadius = 50
  119. TornadoActive = false
  120. Portal = false
  121. PortalEnd = false
  122. MaxZ = 15
  123. MinZ = -15
  124. LightMaxX = 3
  125. LightMinX = 1
  126. LightMaxX2 = -1
  127. LightMinX2 = -3
  128. LightMaxY = 3
  129. LightMinY = -1
  130. Rotation = 0
  131. Length = 10
  132. Color = BrickColor.Yellow()
  133. PColor = Color3.new(255,255,0)
  134. PrevPoint1 = nil
  135. PrevPoint2 = nil
  136. PrevPoint3 = nil
  137. PrevPoint4 = nil
  138. PrevPoint5 = nil
  139. PrevPoint6 = nil
  140. PrevPoint7 = nil
  141. PrevPoint8 = nil
  142. PrevPoint9 = nil
  143. PrevPoint10 = nil
  144. PrevPoint11 = nil
  145. PrevPoint12 = nil
  146. angle = 0
  147. Player.Character.Humanoid.WalkSpeed = 100
  148.  
  149. Nil = function()
  150. PrevPoint1 = "Empty"
  151. PrevPoint2 = "Empty"
  152. PrevPoint3 = "Empty"
  153. PrevPoint4 = "Empty"
  154. PrevPoint5 = "Empty"
  155. PrevPoint6 = "Empty"
  156. PrevPoint7 = "Empty"
  157. PrevPoint8 = "Empty"
  158. PrevPoint9 = "Empty"
  159. PrevPoint10 = "Empty"
  160. PrevPoint11 = "Empty"
  161. PrevPoint12 = "Empty"
  162. end
  163.  
  164. local Lightning = coroutine.wrap(function()
  165. while wait() do
  166. if Portal == false then
  167. angle = angle + 0.6
  168. local Model = Instance.new("Model",workspace)
  169. Model.Name = "Lightning"
  170. local Point1 = Instance.new("Part",Model)
  171. Point1.Transparency = 1
  172. Point1.Size = Vector3.new(0.2,0.2,0.2)
  173. Point1.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point1.Size.Z/2))
  174. Point1.Anchored = true
  175. Point1.CanCollide = false
  176. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  177.  
  178. local Point2 = Instance.new("Part",Model)
  179. Point2.Transparency = 1
  180. Point2.Size = Vector3.new(0.2,0.2,0.2)
  181. Point2.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point2.Size.Z/2))
  182. Point2.Anchored = true
  183. Point2.CanCollide = false
  184. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  185.  
  186. local Point3 = Instance.new("Part",Model)
  187. Point3.Transparency = 1
  188. Point3.Size = Vector3.new(0.2,0.2,0.2)
  189. Point3.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point3.Size.Z/2))
  190. Point3.Anchored = true
  191. Point3.CanCollide = false
  192. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
  193.  
  194. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  195. local Light = Instance.new("Part",Model)
  196. local PointLight = Instance.new("PointLight",Light)
  197. PointLight.Range = 5
  198. PointLight.Color = PColor
  199. Light.Transparency = 0.5
  200. Light.BrickColor = Color
  201. Light.Material = "Neon"
  202. Light.Size = Vector3.new(0.25,0.25,distance)
  203. Light.Anchored = true
  204. Light.CanCollide = false
  205. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  206.  
  207. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  208. local Light = Instance.new("Part",Model)
  209. local PointLight = Instance.new("PointLight",Light)
  210. PointLight.Range = 5
  211. PointLight.Color = PColor
  212. Light.Transparency = 0.5
  213. Light.BrickColor = Color
  214. Light.Material = "Neon"
  215. Light.Size = Vector3.new(0.25,0.25,distance2)
  216. Light.Anchored = true
  217. Light.CanCollide = false
  218. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  219.  
  220. local Point1 = Instance.new("Part",Model)
  221. Point1.Transparency = 1
  222. Point1.Size = Vector3.new(0.2,0.2,0.2)
  223. Point1.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point1.Size.Z/2))
  224. Point1.Anchored = true
  225. Point1.CanCollide = false
  226. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  227.  
  228. local Point2 = Instance.new("Part",Model)
  229. Point2.Transparency = 1
  230. Point2.Size = Vector3.new(0.2,0.2,0.2)
  231. Point2.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point2.Size.Z/2))
  232. Point2.Anchored = true
  233. Point2.CanCollide = false
  234. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  235.  
  236. local Point3 = Instance.new("Part",Model)
  237. Point3.Transparency = 1
  238. Point3.Size = Vector3.new(0.2,0.2,0.2)
  239. Point3.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point3.Size.Z/2))
  240. Point3.Anchored = true
  241. Point3.CanCollide = false
  242. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
  243.  
  244. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  245. local Light = Instance.new("Part",Model)
  246. local PointLight = Instance.new("PointLight",Light)
  247. PointLight.Range = 5
  248. PointLight.Color = PColor
  249. Light.Transparency = 0.5
  250. Light.BrickColor = Color
  251. Light.Material = "Neon"
  252. Light.Size = Vector3.new(0.25,0.25,distance)
  253. Light.Anchored = true
  254. Light.CanCollide = false
  255. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  256.  
  257. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  258. local Light = Instance.new("Part",Model)
  259. local PointLight = Instance.new("PointLight",Light)
  260. PointLight.Range = 5
  261. PointLight.Color = PColor
  262. Light.Transparency = 0.5
  263. Light.BrickColor = Color
  264. Light.Material = "Neon"
  265. Light.Size = Vector3.new(0.3,0.3,distance2)
  266. Light.Anchored = true
  267. Light.CanCollide = false
  268. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  269.  
  270. local Point1 = Instance.new("Part",Model)
  271. Point1.Transparency = 1
  272. Point1.Size = Vector3.new(0.2,0.2,0.2)
  273. Point1.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  274. Point1.Anchored = true
  275. Point1.CanCollide = false
  276. Point1.CFrame = Point1.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  277.  
  278. local Point2 = Instance.new("Part",Model)
  279. Point2.Transparency = 1
  280. Point2.Size = Vector3.new(0.2,0.2,0.2)
  281. Point2.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  282. Point2.Anchored = true
  283. Point2.CanCollide = false
  284. Point2.CFrame = Point2.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  285.  
  286. local Point3 = Instance.new("Part",Model)
  287. Point3.Transparency = 1
  288. Point3.Size = Vector3.new(0.2,0.2,0.2)
  289. Point3.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
  290. Point3.Anchored = true
  291. Point3.CanCollide = false
  292. Point3.CFrame = Point3.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
  293.  
  294. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  295. local Light = Instance.new("Part",Model)
  296. local PointLight = Instance.new("PointLight",Light)
  297. PointLight.Range = 5
  298. PointLight.Color = PColor
  299. Light.Transparency = 0.5
  300. Light.BrickColor = Color
  301. Light.Material = "Neon"
  302. Light.Size = Vector3.new(0.25,0.25,distance)
  303. Light.Anchored = true
  304. Light.CanCollide = false
  305. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  306.  
  307. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  308. local Light = Instance.new("Part",Model)
  309. local PointLight = Instance.new("PointLight",Light)
  310. PointLight.Range = 5
  311. PointLight.Color = PColor
  312. Light.Transparency = 0.5
  313. Light.BrickColor = Color
  314. Light.Material = "Neon"
  315. Light.Size = Vector3.new(0.25,0.25,distance2)
  316. Light.Anchored = true
  317. Light.CanCollide = false
  318. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  319.  
  320. local Point1 = Instance.new("Part",Model)
  321. Point1.Transparency = 1
  322. Point1.Size = Vector3.new(0.2,0.2,0.2)
  323. Point1.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  324. Point1.Anchored = true
  325. Point1.CanCollide = false
  326. Point1.CFrame = Point1.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  327.  
  328. local Point2 = Instance.new("Part",Model)
  329. Point2.Transparency = 1
  330. Point2.Size = Vector3.new(0.2,0.2,0.2)
  331. Point2.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  332. Point2.Anchored = true
  333. Point2.CanCollide = false
  334. Point2.CFrame = Point2.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  335.  
  336. local Point3 = Instance.new("Part",Model)
  337. Point3.Transparency = 1
  338. Point3.Size = Vector3.new(0.2,0.2,0.2)
  339. Point3.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
  340. Point3.Anchored = true
  341. Point3.CanCollide = false
  342. Point3.CFrame = Point3.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
  343.  
  344. local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
  345. local Light = Instance.new("Part",Model)
  346. local PointLight = Instance.new("PointLight",Light)
  347. PointLight.Range = 5
  348. PointLight.Color = PColor
  349. Light.Transparency = 0.5
  350. Light.BrickColor = Color
  351. Light.Material = "Neon"
  352. Light.Size = Vector3.new(0.25,0.25,distance)
  353. Light.Anchored = true
  354. Light.CanCollide = false
  355. Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2)
  356.  
  357. local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
  358. local Light = Instance.new("Part",Model)
  359. local PointLight = Instance.new("PointLight",Light)
  360. PointLight.Range = 5
  361. PointLight.Color = PColor
  362. Light.Transparency = 0.5
  363. Light.BrickColor = Color
  364. Light.Material = "Neon"
  365. Light.Size = Vector3.new(0.25,0.25,distance2)
  366. Light.Anchored = true
  367. Light.CanCollide = false
  368. Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2)
  369.  
  370. local Children = Model:GetChildren()
  371. wait(0.1)
  372. for i = 1,#Children do
  373. if Children[i]:IsA("Part") then
  374. Children[i].Transparency = 1
  375. end
  376. game.Debris:AddItem(Children[i],0)
  377. end
  378.  
  379. end
  380. end
  381. end)
  382. Lightning()
  383.  
  384. TornadoFunction = function()
  385. local TornadoModel = Instance.new("Model",workspace)
  386. local Center = Instance.new("Part",TornadoModel)
  387. Center.Anchored = true
  388. Center.CanCollide = false
  389. Center.Transparency = 1
  390. Center.Size = Vector3.new(2,2,2)
  391. Center.CFrame = Object.CFrame * CFrame.new(0,0,-20)
  392. local Death = Instance.new("Part",TornadoModel)
  393. Death.Anchored = true
  394. Death.CanCollide = false
  395. Death.Transparency = 1
  396. Death.Size = Vector3.new(TornadoRadius+10,TornadoRadius+10,TornadoRadius+10)
  397. Death.CFrame = Center.CFrame
  398. Death.Touched:connect(function(Touch)
  399. if Touch.Parent:FindFirstChild("Humanoid") ~= nil and Touch.Parent.Name ~= Player.Name then
  400. Touch.Parent.Humanoid.Health = 0
  401. end
  402. end)
  403. local TornadoFunc = function()
  404. local Tornanimation = coroutine.wrap(function()
  405. while Run.Stepped:wait() do
  406. if Tornado == false then Death:Destroy() break end
  407. angle = angle + 0.1
  408. Object.Anchored = false
  409. Object.CFrame = Center.CFrame * CFrame.Angles(0,angle,0) * CFrame.new(0,0,TornadoRadius)
  410. Object.CFrame = Object.CFrame * CFrame.Angles(0,-math.rad(90),0)
  411. end
  412. end)
  413. Tornanimation()
  414. end
  415. TornadoFunc()
  416. end
  417.  
  418. PhaseFunction = function()
  419. local Phase = coroutine.wrap(function()
  420. while wait() do
  421. if Phase == false then break end
  422. if Player.Character.Humanoid.WalkSpeed > 50 and Phase == true then
  423. Object.CFrame = Object.CFrame * CFrame.new(0,0,-Player.Character.Humanoid.WalkSpeed/20)
  424. end
  425. end
  426. end)
  427. Phase()
  428. end
  429.  
  430.  
  431. PortalFunction = function()
  432. local PortalBlock = Instance.new("Part",workspace)
  433. PortalBlock.CFrame = Object.CFrame * CFrame.new(0,0,-100)
  434. PortalBlock.Transparency = 1
  435. PortalBlock.Anchored = true
  436. PortalBlock.CanCollide = false
  437. PortalBlock.Size = Vector3.new(20,20,0.2)
  438. PortalBlock.CFrame = PortalBlock.CFrame * CFrame.new(0,(PortalBlock.Size.Y/2),0)
  439. local Gui = Instance.new("SurfaceGui",PortalBlock)
  440. local Img = Instance.new("ImageLabel",Gui)
  441. Img.Size = UDim2.new(2,0,2,0)
  442. Img.Position = UDim2.new(-0.5,0,-0.5,0)
  443. Img.Transparency = 1
  444. Img.Image = "http://www.roblox.com/asset/?id=21315275"
  445. local Gui = Instance.new("SurfaceGui",PortalBlock)
  446. Gui.Face = "Back"
  447. local Img = Instance.new("ImageLabel",Gui)
  448. Img.Size = UDim2.new(2,0,2,0)
  449. Img.Position = UDim2.new(-0.5,0,-0.5,0)
  450. Img.Transparency = 1
  451. Img.Image = "http://www.roblox.com/asset/?id=21315275"
  452. Object.CFrame = PortalBlock.CFrame
  453. local Face = Object.Parent.Head.face.Texture
  454. local ObjectC = Object.Parent:GetChildren()
  455. for i = 1,#ObjectC do
  456. if ObjectC[i]:IsA("Part") and ObjectC[i].Name ~= "HumanoidRootPart" then
  457. ObjectC[i].Transparency = 1
  458. elseif ObjectC[i]:IsA("Hat") then
  459. ObjectC[i].Handle.Transparency = 1
  460. end
  461. if ObjectC[i].Name == "Head" then
  462. ObjectC[i].face.Texture = ""
  463. end
  464. end
  465.  
  466. local PortalR = coroutine.wrap(function()
  467. wait(0.1)
  468. Portal = true
  469. PortalEnd = true
  470. while wait(0.001) do
  471. if Portal == false then
  472. break
  473. end
  474. Nil()
  475. PortalBlock.CFrame = PortalBlock.CFrame * CFrame.Angles(0,0,-0.1)
  476. wait(0.01)
  477. end
  478. PortalBlock:Destroy()
  479. for i = 1,#ObjectC do
  480. if ObjectC[i]:IsA("Part") and ObjectC[i].Name ~= "HumanoidRootPart" then
  481. ObjectC[i].Transparency = 0
  482. elseif ObjectC[i]:IsA("Hat") then
  483. ObjectC[i].Handle.Transparency = 0
  484. end
  485. if ObjectC[i].Name == "Head" then
  486. ObjectC[i].face.Texture = Face
  487. end
  488. end
  489. game.Players.owner.Character.Part.Transparency = 50
  490. local PortalBlock = Instance.new("Part",workspace)
  491. PortalBlock.CFrame = Object.CFrame * CFrame.new(0,0,0)
  492. PortalBlock.Transparency = 1
  493. PortalBlock.Anchored = true
  494. PortalBlock.CanCollide = false
  495. PortalBlock.Size = Vector3.new(20,20,0.2)
  496. PortalBlock.CFrame = PortalBlock.CFrame * CFrame.new(0,(PortalBlock.Size.Y/2),0)
  497. local Gui = Instance.new("SurfaceGui",PortalBlock)
  498. local Img = Instance.new("ImageLabel",Gui)
  499. Img.Size = UDim2.new(2,0,2,0)
  500. Img.Position = UDim2.new(-0.5,0,-0.5,0)
  501. Img.Transparency = 1
  502. Img.Image = "http://www.roblox.com/asset/?id=21315275"
  503. local Gui = Instance.new("SurfaceGui",PortalBlock)
  504. Gui.Face = "Back"
  505. local Img = Instance.new("ImageLabel",Gui)
  506. Img.Size = UDim2.new(2,0,2,0)
  507. Img.Position = UDim2.new(-0.5,0,-0.5,0)
  508. Img.Transparency = 1
  509. Img.Image = "http://www.roblox.com/asset/?id=21315275"
  510. Object.CFrame = PortalBlock.CFrame
  511. PreviousA1 = Arm1.CFrame.p
  512. PreviousA2 = Arm2.CFrame.p
  513. PreviousL1 = Leg1.CFrame.p
  514. PreviousL2 = Leg2.CFrame.p
  515. PreviousP = Object.CFrame.p
  516. PortalEnd = false
  517. wait(2)
  518. PortalBlock:Destroy()
  519. end)
  520. PortalR()
  521. end
  522.  
  523. MorphFunction = function()
  524. local MaxX = 100
  525. local MinX = -100
  526. local MaxY = 100
  527. local MinY = -100
  528. local MaxZ = 100
  529. local MinZ = -100
  530. local Morph = coroutine.wrap(function()
  531. while Run.Stepped:wait(0.1) do
  532. if Morph == false then break end
  533. local Model = Instance.new("Model",workspace)
  534. if Player.Character:FindFirstChild("Shirt") then
  535. local Shirt = Player.Character.Shirt:Clone()
  536. Shirt.Parent = Model
  537. end
  538. if Player.Character:FindFirstChild("Pants") then
  539. local Pants = Player.Character.Pants:Clone()
  540. Pants.Parent = Model
  541. end
  542. local Humanoid = Instance.new("Humanoid",Model)
  543. local LeftArm = Player.Character["Left Arm"]:Clone()
  544. LeftArm.Parent = Model
  545. LeftArm.Transparency = 0.4
  546. LeftArm.Anchored = true
  547. 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)
  548. local RightArm = Player.Character["Right Arm"]:Clone()
  549. RightArm.Parent = Model
  550. RightArm.Transparency = 0.4
  551. RightArm.Anchored = true
  552. 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)
  553. local LeftLeg = Player.Character["Left Leg"]:Clone()
  554. LeftLeg.Parent = Model
  555. LeftLeg.Transparency = 0.4
  556. LeftLeg.Anchored = true
  557. 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)
  558. local RightLeg = Player.Character["Right Leg"]:Clone()
  559. RightLeg.Parent = Model
  560. RightLeg.Transparency = 0.4
  561. RightLeg.Anchored = true
  562. 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)
  563. local Children = Model:GetChildren()
  564. wait(0.01)
  565. for i = 1,#Children do
  566. if Children[i]:IsA("Part") then
  567. Children[i].Transparency = 1
  568. end
  569. game.Debris:AddItem(Children[i],0)
  570. end
  571. end
  572. end)
  573. Morph()
  574. end
  575.  
  576. local Guis = coroutine.wrap(function()
  577. local Gui = Instance.new("ScreenGui",Player.PlayerGui)
  578. local TextBox = Instance.new("TextBox",Gui)
  579. TextBox.Text = "Speed"
  580. TextBox.BackgroundColor3 = Color3.new(255,255,255)
  581. TextBox.BorderColor3 = Color3.new(0,0,0)
  582. TextBox.Size = UDim2.new(0,200,0,25)
  583. TextBox.Position = UDim2.new(0,10,0.5,-12.5)
  584. TextBox.FocusLost:connect(function(EnterPressed)
  585. if EnterPressed then
  586. Player.Character.Humanoid.WalkSpeed = TextBox.Text
  587. end
  588. end)
  589. local Flash = Instance.new("TextButton",Gui)
  590. Flash.BackgroundColor3 = Color3.new(255,255,255)
  591. Flash.BorderColor3 = Color3.new(0,0,0)
  592. Flash.Size = UDim2.new(0,200,0,25)
  593. Flash.Position = UDim2.new(0,10,0.5,22.5)
  594. Flash.Text = "The Flash"
  595. Flash.MouseButton1Click:connect(function()
  596. Color = BrickColor.Yellow()
  597. PColor = Color3.new(255,255,0)
  598. end)
  599. local RFlash = Instance.new("TextButton",Gui)
  600. RFlash.BackgroundColor3 = Color3.new(255,255,255)
  601. RFlash.BorderColor3 = Color3.new(0,0,0)
  602. RFlash.Size = UDim2.new(0,200,0,25)
  603. RFlash.Position = UDim2.new(0,10,0.5,57.5)
  604. RFlash.Text = "The Reverse Flash"
  605. RFlash.MouseButton1Click:connect(function()
  606. Color = BrickColor.new("Really red")
  607. PColor = Color3.new(255,0,0)
  608. end)
  609. local Zoom = Instance.new("TextButton",Gui)
  610. Zoom.BackgroundColor3 = Color3.new(255,255,255)
  611. Zoom.BorderColor3 = Color3.new(0,0,0)
  612. Zoom.Size = UDim2.new(0,200,0,25)
  613. Zoom.Position = UDim2.new(0,10,0.5,92.5)
  614. Zoom.Text = "Zoom"
  615. Zoom.MouseButton1Click:connect(function()
  616. Color = BrickColor.new("Cyan")
  617. PColor = Color3.new(0,170,255)
  618. end)
  619. local Radius = Instance.new("TextBox",Gui)
  620. Radius.Text = "Tornado Radius"
  621. Radius.BackgroundColor3 = Color3.new(255,255,255)
  622. Radius.BorderColor3 = Color3.new(0,0,0)
  623. Radius.Size = UDim2.new(0,200,0,25)
  624. Radius.Position = UDim2.new(0,10,0.5,127.5)
  625. Radius.FocusLost:connect(function(EnterPressed)
  626. if EnterPressed then
  627. TornadoRadius = Radius.Text
  628. end
  629. end)
  630. Mouse.KeyDown:connect(function(Key)
  631. if Key == "f" then
  632. if Portal == false then
  633. PortalFunction()
  634. Nil()
  635. else
  636. Portal = false
  637. end
  638. end
  639. if Key == "r" then
  640. if Phase == false then
  641. Phase = true
  642. PhaseFunction()
  643. print "PhaseFunction"
  644. else
  645. Phase = false
  646. end
  647. end
  648. if Key == "e" then
  649. if Tornado == false then
  650. Tornado = true
  651. TornadoFunction()
  652. else
  653. Tornado = false
  654. end
  655. end
  656. if Key == "t" then
  657. if Morph == false then
  658. Morph = true
  659. MorphFunction()
  660. else
  661. Morph = false
  662. end
  663. end
  664. end)
  665. end)
  666. Guis()
  667.  
  668. Run.RenderStepped:connect(function()
  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