Hugo1234cool

Untitled

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