Advertisement
memberhero

Tsunami Gui

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