Advertisement
cr8brooo

Untitled

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