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