SHOW:
|
|
- or go back to the newest paste.
| 1 | capbricks = {}
| |
| 2 | game.Players.contentdeleted93726 | |
| 3 | - | hint = Instance.new("Hint",workspace)
|
| 3 | + | part = Instance.new("Part")
|
| 4 | - | hint.Text = "Tsunami incoming!" |
| 4 | + | |
| 5 | - | part = Instance.new("Part",workspace)
|
| 5 | + | |
| 6 | part.CFrame = CFrame.new(14, 61, 1322.5) | |
| 7 | part.BrickColor = BrickColor.Blue() | |
| 8 | part.Material = Enum.Material.Granite | |
| 9 | part.Transparency = 0.5 | |
| 10 | part.CanCollide = false | |
| 11 | part.Touched:connect(function(hit) | |
| 12 | table.insert(capbricks,hit) | |
| 13 | hit:BreakJoints() | |
| 14 | hit.BrickColor = BrickColor.Blue() | |
| 15 | hit.Transparency = 0.5 | |
| 16 | hit.Material = Enum.Material.Granite | |
| 17 | end) | |
| 18 | for a=1, 280 do | |
| 19 | print("Tsunami ticker: Tick "..a.." out of 280")
| |
| 20 | wait(0.01) | |
| 21 | part.CFrame = CFrame.new(part.CFrame.Z, part.CFrame.Y, part.CFrame.Z-5) | |
| 22 | part.Size = Vector3.new(part.Size.X, part.Size.Y+5, part.Size.Z) | |
| 23 | end | |
| 24 | for a=1, 450 do | |
| 25 | print("Tsunami ticker: Tick "..a.." out of 450")
| |
| 26 | wait(0.01) | |
| 27 | part.CFrame = CFrame.new(part.CFrame.Z, part.CFrame.Y, part.CFrame.Z-5) | |
| 28 | part.Size = Vector3.new(part.Size.X, part.Size.Y-5, part.Size.Z) | |
| 29 | end | |
| 30 | wait(2) | |
| 31 | for d=1, #capbricks do | |
| 32 | - | hint.Text = "Tsunami ended!" |
| 32 | + | |
| 33 | capbricks[d]:Destroy() | |
| 34 | - | hint.Text = "Bricks captured by tsunami are now deleted!" |
| 34 | + | |
| 35 | end | |
| 36 | part:Destroy() | |
| 37 | hint:Destroy() |