Advertisement
memelorrd23

oder exterminator

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