SHOW:
|
|
- or go back to the newest paste.
| 1 | --Oh you naughty boi why you found this D: | |
| 2 | o1 = Instance.new("Part")
| |
| 3 | o1.Name = "WAVE" | |
| 4 | o1.Parent = workspace | |
| 5 | o1.Material = Enum.Material.Sand | |
| 6 | - | o1.Transparency = 0.5 |
| 6 | + | |
| 7 | o1.Transparency = 1 | |
| 8 | o1.Position = Vector3.new(-277.570068, 15.4718628, -1565.60864) | |
| 9 | o1.Anchored = true | |
| 10 | o1.CanCollide = false | |
| 11 | o1.Size = Vector3.new(2048, 155.029999, 1968.98999) | |
| 12 | o1.CFrame = CFrame.new(-277.570068, 15.4718628, -1565.60864, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 13 | o1.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 14 | o1.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 15 | o1.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 16 | o1.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 17 | o1.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 18 | o1.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
| 19 | o1.Color = Color3.new(0.0352941, 0.537255, 0.811765) | |
| 20 | ||
| 21 | function FLOAT (part) | |
| 22 | for i,v in pairs(part:GetChildren()) do | |
| 23 | if v:IsA("BodyPosition") then
| |
| 24 | v:Destroy() | |
| 25 | end | |
| 26 | end | |
| 27 | local m = Instance.new("BodyPosition")
| |
| 28 | ||
| 29 | m.Parent = part | |
| 30 | ||
| 31 | m.maxForce = Vector3.new(4e+006,4e+006,4e+006) | |
| 32 | ||
| 33 | m.position = Vector3.new(part.Position.X,workspace.WAVE.Position.Y,part.Position.Z) | |
| 34 | end | |
| 35 | function DestroyHorrible (part) | |
| 36 | if part.Name ~= "Baseplate" then | |
| 37 | if part.Transparency < .5 then | |
| 38 | FLOAT(part) | |
| 39 | part.Anchored = false part.Size = part.Size/1.5 | |
| 40 | for i=1,4 do | |
| 41 | part:Clone() | |
| 42 | end | |
| 43 | local o1g = Instance.new("Sound")
| |
| 44 | - | o1g.SoundId = "rbxassetid://516789356" |
| 44 | + | |
| 45 | o1g.SoundId = "rbxassetid://0" | |
| 46 | o1g:Play() | |
| 47 | elseif part.Material == "Wood" or part.Material == "WoodPlanks" then | |
| 48 | part.Anchored = false part.Size = part.Size/1.5 | |
| 49 | FLOAT(part) | |
| 50 | for i=1,4 do | |
| 51 | part:Clone() | |
| 52 | end | |
| 53 | local o1j = Instance.new("Sound")
| |
| 54 | o1j.Parent = part | |
| 55 | - | o1j.SoundId = "rbxassetid://516777998" |
| 55 | + | |
| 56 | o1j.SoundId = "rbxassetid://0" | |
| 57 | o1j:Play() | |
| 58 | else | |
| 59 | FLOAT(part) | |
| 60 | part.Anchored = false part.Size = part.Size/1.5 | |
| 61 | for i=1,4 do | |
| 62 | part:Clone() | |
| 63 | end | |
| 64 | local go1 = Instance.new("Sound")
| |
| 65 | go1.Parent = part | |
| 66 | - | go1.SoundId = "rbxassetid://516777998" |
| 66 | + | |
| 67 | go1.SoundId = "rbxassetid://0" | |
| 68 | go1:Play() | |
| 69 | end | |
| 70 | end | |
| 71 | end | |
| 72 | myears = Instance.new('Sound')
| |
| 73 | myears.Parent = workspace | |
| 74 | myears.Looped = false | |
| 75 | myears.Name = "Ruski" | |
| 76 | - | myears.SoundId = "rbxassetid://198890953" |
| 76 | + | |
| 77 | myears.SoundId = "rbxassetid://0" | |
| 78 | myears.Volume = 10 | |
| 79 | myears.TimePosition = 0 | |
| 80 | myears:Play() | |
| 81 | workspace.WAVE.Touched:Connect(DestroyHorrible) | |
| 82 | workspace.WAVE.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(-2200,0,0) | |
| 83 | o1 = Instance.new("Sound")
| |
| 84 | - | o1.SoundId = "rbxassetid://135560679" |
| 84 | + | |
| 85 | o1.SoundId = "rbxassetid://0" | |
| 86 | o1.Volume = 1 | |
| 87 | o1:Play() | |
| 88 | h = 0 | |
| 89 | j = 1 | |
| 90 | for i=1,2000 do | |
| 91 | j = j+1 | |
| 92 | wait() | |
| 93 | workspace.WAVE.CFrame = workspace.WAVE.CFrame + Vector3.new(4,0,0) | |
| 94 | if j == 400 then | |
| 95 | game.workspace.Terrain:FillBlock(workspace.WAVE.CFrame,workspace.WAVE.Size,Enum.Material.Water) | |
| 96 | a = function(instance) | |
| 97 | for i,v in pairs(instance:GetChildren()) do | |
| 98 | if v.className == "Part" and v.Name ~="Baseplate" then | |
| 99 | v.Anchored = false | |
| 100 | end | |
| 101 | a(v) | |
| 102 | end | |
| 103 | end | |
| 104 | a(workspace) | |
| 105 | end | |
| 106 | end | |
| 107 | workspace.WAVE:Destroy() |