Advertisement
Guest User

Roblox | Tsunami script

a guest
Jan 29th, 2018
9,489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. capbricks = {}
  2. if game.Players.LocalPlayer ~= nil then
  3. error("Please run the tsunami script not as a localscript! Thank you.")
  4. end
  5. hint = Instance.new("Hint",workspace)
  6. hint.Text = "Tsunami incoming!"
  7. part = Instance.new("Part",workspace)
  8. part.Anchored = true
  9. part.Size = Vector3.new(870, 1, 615)
  10. part.CFrame = CFrame.new(14, 61, 1322.5)
  11. part.BrickColor = BrickColor.Blue()
  12. part.Material = Enum.Material.Granite
  13. part.Transparency = 0.5
  14. part.CanCollide = false
  15. part.Touched:connect(function(hit)
  16. table.insert(capbricks,hit)
  17. hit:BreakJoints()
  18. hit.BrickColor = BrickColor.Blue()
  19. hit.Transparency = 0.5
  20. hit.Material = Enum.Material.Granite
  21. end)
  22. for a=1, 280 do
  23. print("Tsunami ticker: Tick "..a.." out of 280")
  24. wait(0.01)
  25. part.CFrame = CFrame.new(part.CFrame.Z, part.CFrame.Y, part.CFrame.Z-5)
  26. part.Size = Vector3.new(part.Size.X, part.Size.Y+5, part.Size.Z)
  27. end
  28. for a=1, 450 do
  29. print("Tsunami ticker: Tick "..a.." out of 450")
  30. wait(0.01)
  31. part.CFrame = CFrame.new(part.CFrame.Z, part.CFrame.Y, part.CFrame.Z-5)
  32. part.Size = Vector3.new(part.Size.X, part.Size.Y-5, part.Size.Z)
  33. end
  34. hint.Text = "Tsunami ended!"
  35. wait(2)
  36. hint.Text = "Bricks captured by tsunami are now deleted!"
  37. wait(2)
  38. for d=1, #capbricks do
  39. wait(0.01)
  40. if capbricks[d] ~= nil then
  41. capbricks[d]:Destroy()
  42. end
  43. end
  44. part:Destroy()
  45. hint:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement