Advertisement
gilward

Tsunami

Feb 20th, 2018
752
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.95 KB | None | 0 0
  1. --gilward
  2. --have fun xd
  3. o1 = Instance.new("Part")
  4. o1.Name = "WAVE"
  5. o1.Parent = workspace
  6. o1.Material = Enum.Material.Granite
  7. o1.BrickColor = BrickColor.new("Electric blue")
  8. o1.Transparency = 0.30000001192093
  9. o1.Position = Vector3.new(-277.570068, 15.4718628, -1565.60864)
  10. o1.Anchored = true
  11. o1.CanCollide = false
  12. o1.Size = Vector3.new(2048, 155.029999, 1968.98999)
  13. o1.CFrame = CFrame.new(-277.570068, 15.4718628, -1565.60864, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  14. o1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  15. o1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  16. o1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  17. o1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  18. o1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  19. o1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  20. o1.Color = Color3.new(0.0352941, 0.537255, 0.811765)
  21.  
  22. function FLOAT (part)
  23. for i,v in pairs(part:GetChildren()) do
  24. if v:IsA("BodyPosition") then
  25. v:Destroy()
  26. end
  27. end
  28. local m = Instance.new("BodyPosition")
  29.  
  30. m.Parent = part
  31.  
  32. m.maxForce = Vector3.new(4e+006,4e+006,4e+006)
  33.  
  34. m.position = Vector3.new(part.Position.X,workspace.WAVE.Position.Y,part.Position.Z)
  35. end
  36. function DestroyHorrible (part)
  37. if part.Name ~= "Baseplate" then
  38. if part.Transparency < .5 then
  39. FLOAT(part)
  40. part.Anchored = false part.Size = part.Size/1.5
  41. for i=1,4 do
  42. part:Clone()
  43. end
  44. local o1g = Instance.new("Sound")
  45. o1g.Parent = part
  46. o1g.SoundId = "rbxassetid://516789356"
  47. o1g:Play()
  48. elseif part.Material == "Wood" or part.Material == "WoodPlanks" then
  49. part.Anchored = false part.Size = part.Size/1.5
  50. FLOAT(part)
  51. for i=1,4 do
  52. part:Clone()
  53. end
  54. local o1j = Instance.new("Sound")
  55. o1j.Parent = part
  56. o1j.Volume = 2
  57. o1j.SoundId = "rbxassetid://516777998"
  58. o1j:Play()
  59. else
  60. FLOAT(part)
  61. part.Anchored = false part.Size = part.Size/1.5
  62. for i=1,4 do
  63. part:Clone()
  64. end
  65. local go1 = Instance.new("Sound")
  66. go1.Parent = part
  67. go1.Volume = 1
  68. go1.SoundId = "rbxassetid://516777998"
  69. go1:Play()
  70. end
  71. end
  72. end
  73. myears = Instance.new('Sound')
  74. myears.Parent = workspace
  75. myears.Looped = false
  76. myears.Name = "Ruski"
  77. myears.Playing = true
  78. myears.SoundId = "rbxassetid://557673018"
  79. myears.Volume = .5
  80. myears.TimePosition = 0
  81. myears:Play()
  82. workspace.WAVE.Touched:Connect(DestroyHorrible)
  83. workspace.WAVE.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(-2200,0,0)
  84. o1 = Instance.new("Sound")
  85. o1.Parent = workspace
  86. o1.SoundId = "rbxassetid://135560679"
  87. o1.Volume = 1
  88. o1:Play()
  89. h = 0
  90. j = 1
  91. for i=1,2000 do
  92. j = j+1
  93. wait()
  94. workspace.WAVE.CFrame = workspace.WAVE.CFrame + Vector3.new(4,0,0)
  95. if j == 400 then
  96. game.workspace.Terrain:FillBlock(workspace.WAVE.CFrame,workspace.WAVE.Size,Enum.Material.Water)
  97. a = function(instance)
  98. for i,v in pairs(instance:GetChildren()) do
  99. if v.className == "Part" and v.Name ~="Baseplate" then
  100. v.Anchored = false
  101. end
  102. a(v)
  103. end
  104. end
  105. a(workspace)
  106. end
  107. end
  108. workspace.WAVE:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement