Advertisement
Guest User

Untitled

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