Advertisement
BluCreeperGuy123

asd

Sep 21st, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.76 KB | None | 0 0
  1. -- Objects
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local TextButton = Instance.new("TextButton")
  6.  
  7. -- Properties
  8.  
  9. ScreenGui.Name = "TSUNAMI BUTTON"
  10. ScreenGui.Parent = game.CoreGui
  11.  
  12. Frame.Parent = ScreenGui
  13. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  14. Frame.Position = UDim2.new(0, 0, 0.551383376, 0)
  15. Frame.Size = UDim2.new(0, 201, 0, 51)
  16. Frame.Active = true
  17. Frame.Draggable = true
  18.  
  19. TextButton.Parent = Frame
  20. TextButton.BackgroundColor3 = Color3.new(1, 1, 0.498039)
  21. TextButton.Position = UDim2.new(0, 0, 0.020833334, 0)
  22. TextButton.Size = UDim2.new(0, 200, 0, 50)
  23. TextButton.Font = Enum.Font.SourceSans
  24. TextButton.FontSize = Enum.FontSize.Size14
  25. TextButton.Text = "CLICK FOR TSUNAMI!"
  26. TextButton.TextSize = 14
  27.  
  28. -- Functions
  29.  
  30. TextButton.MouseButton1Down:connect(function()
  31. o1 = Instance.new("Part")
  32. o1.Name = "WAVE"
  33. o1.Parent = workspace
  34. o1.Material = Enum.Material.Granite
  35. o1.BrickColor = BrickColor.new("Electric blue")
  36. o1.Transparency = 0.30000001192093
  37. o1.Position = Vector3.new(-277.570068, 15.4718628, -1565.60864)
  38. o1.Anchored = true
  39. o1.CanCollide = false
  40. o1.Size = Vector3.new(2048, 155.029999, 1968.98999)
  41. o1.CFrame = CFrame.new(-277.570068, 15.4718628, -1565.60864, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  42. o1.BackSurface = Enum.SurfaceType.SmoothNoOutlines
  43. o1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
  44. o1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
  45. o1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
  46. o1.RightSurface = Enum.SurfaceType.SmoothNoOutlines
  47. o1.TopSurface = Enum.SurfaceType.SmoothNoOutlines
  48. o1.Color = Color3.new(0.0352941, 0.537255, 0.811765)
  49.  
  50. function FLOAT (part)
  51. for i,v in pairs(part:GetChildren()) do
  52. if v:IsA("BodyPosition") then
  53. v:Destroy()
  54. end
  55. end
  56. local m = Instance.new("BodyPosition")
  57.  
  58. m.Parent = part
  59.  
  60. m.maxForce = Vector3.new(4e+006,4e+006,4e+006)
  61.  
  62. m.position = Vector3.new(part.Position.X,workspace.WAVE.Position.Y,part.Position.Z)
  63. end
  64. function DestroyHorrible (part)
  65. if part.Name ~= "Baseplate" then
  66. if part.Transparency < .5 then
  67. FLOAT(part)
  68. part.Anchored = false part.Size = part.Size/1.5
  69. for i=1,4 do
  70. part:Clone()
  71. end
  72. local o1g = Instance.new("Sound")
  73. o1g.Parent = part
  74. o1g.SoundId = "rbxassetid://516789356"
  75. o1g:Play()
  76. elseif part.Material == "Wood" or part.Material == "WoodPlanks" then
  77. part.Anchored = false part.Size = part.Size/1.5
  78. FLOAT(part)
  79. for i=1,4 do
  80. part:Clone()
  81. end
  82. local o1j = Instance.new("Sound")
  83. o1j.Parent = part
  84. o1j.Volume = 2
  85. o1j.SoundId = "rbxassetid://516777998"
  86. o1j:Play()
  87. else
  88. FLOAT(part)
  89. part.Anchored = false part.Size = part.Size/1.5
  90. for i=1,4 do
  91. part:Clone()
  92. end
  93. local go1 = Instance.new("Sound")
  94. go1.Parent = part
  95. go1.Volume = 1
  96. go1.SoundId = "rbxassetid://516777998"
  97. go1:Play()
  98. end
  99. end
  100. end
  101. myears = Instance.new('Sound')
  102. myears.Parent = workspace
  103. myears.Looped = false
  104. myears.Name = "Ruski"
  105. myears.Playing = true
  106. myears.SoundId = "rbxassetid://557673018"
  107. myears.Volume = .5
  108. myears.TimePosition = 0
  109. myears:Play()
  110. workspace.WAVE.Touched:Connect(DestroyHorrible)
  111. workspace.WAVE.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(-2200,0,0)
  112. o1 = Instance.new("Sound")
  113. o1.Parent = workspace
  114. o1.SoundId = "rbxassetid://135560679"
  115. o1.Volume = 1
  116. o1:Play()
  117. h = 0
  118. j = 1
  119. for i=1,2000 do
  120. j = j+1
  121. wait()
  122. workspace.WAVE.CFrame = workspace.WAVE.CFrame + Vector3.new(4,0,0)
  123. if j == 400 then
  124. game.workspace.Terrain:FillBlock(workspace.WAVE.CFrame,workspace.WAVE.Size,Enum.Material.Water)
  125. a = function(instance)
  126. for i,v in pairs(instance:GetChildren()) do
  127. if v.className == "Part" and v.Name ~="Baseplate" then
  128. v.Anchored = false
  129. end
  130. a(v)
  131. end
  132. end
  133. a(workspace)
  134. end
  135. end
  136. workspace.WAVE:Destroy()
  137. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement