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