Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- capbricks = {}
- if game.Players.LocalPlayer ~= nil then
- error("Please run the tsunami script not as a localscript! Thank you.")
- end
- hint = Instance.new("Hint",workspace)
- hint.Text = "Tsunami incoming!"
- part = Instance.new("Part",workspace)
- part.Anchored = true
- part.Size = Vector3.new(870, 1, 615)
- part.CFrame = CFrame.new(14, 61, 1322.5)
- part.BrickColor = BrickColor.Blue()
- part.Material = Enum.Material.Granite
- part.Transparency = 0.5
- part.CanCollide = false
- part.Touched:connect(function(hit)
- table.insert(capbricks,hit)
- hit:BreakJoints()
- hit.BrickColor = BrickColor.Blue()
- hit.Transparency = 0.5
- hit.Material = Enum.Material.Granite
- end)
- for a=1, 280 do
- print("Tsunami ticker: Tick "..a.." out of 280")
- wait(0.01)
- part.CFrame = CFrame.new(part.CFrame.Z, part.CFrame.Y, part.CFrame.Z-5)
- part.Size = Vector3.new(part.Size.X, part.Size.Y+5, part.Size.Z)
- end
- for a=1, 450 do
- print("Tsunami ticker: Tick "..a.." out of 450")
- wait(0.01)
- part.CFrame = CFrame.new(part.CFrame.Z, part.CFrame.Y, part.CFrame.Z-5)
- part.Size = Vector3.new(part.Size.X, part.Size.Y-5, part.Size.Z)
- end
- hint.Text = "Tsunami ended!"
- wait(2)
- hint.Text = "Bricks captured by tsunami are now deleted!"
- wait(2)
- for d=1, #capbricks do
- wait(0.01)
- if capbricks[d] ~= nil then
- capbricks[d]:Destroy()
- end
- end
- part:Destroy()
- hint:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement