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