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