SHOW:
|
|
- or go back to the newest paste.
1 | --------------------------------------------------- | |
2 | ---------------The mysterious button--------------- | |
3 | --------------------------------------------------- | |
4 | ||
5 | --Made by mrfunnylaughs4. This sure is some weird button. | |
6 | ||
7 | local debounce = false | |
8 | ||
9 | --------------------------------------------------- | |
10 | ---------------------Functions--------------------- | |
11 | --------------------------------------------------- | |
12 | ||
13 | local function SmoothPart(part) | |
14 | part.TopSurface = "Smooth" | |
15 | part.BottomSurface = "Smooth" | |
16 | part.LeftSurface = "Smooth" | |
17 | part.RightSurface = "Smooth" | |
18 | part.FrontSurface = "Smooth" | |
19 | part.BackSurface = "Smooth" | |
20 | end | |
21 | ||
22 | local function Effect(Length, Type, SizeStart, SizeEnd, Position, Colour, Parent, CanCollide) | |
23 | local part = Instance.new("Part") | |
24 | part.Name = Type | |
25 | part.CFrame = Position | |
26 | part.CanCollide = CanCollide or false | |
27 | part.Size = SizeStart | |
28 | part.Anchored = true | |
29 | part.BrickColor = BrickColor.new(tostring(Colour)) | |
30 | part.Parent = Parent or workspace | |
31 | if Type == "Block" then | |
32 | SmoothPart(part) | |
33 | end | |
34 | if Type == "Sphere" then | |
35 | part.Shape = Enum.PartType.Ball | |
36 | SmoothPart(part) | |
37 | end | |
38 | if Type == "TwirlSwirl" then | |
39 | local mesh = Instance.new("SpecialMesh") | |
40 | mesh.MeshType = Enum.MeshType.FileMesh | |
41 | mesh.MeshId = "rbxassetid://662585058" | |
42 | mesh.Name = "SwirlMesh" | |
43 | mesh.Scale = SizeStart / Vector3.new(500, 500, 500) | |
44 | mesh.Parent = part | |
45 | end | |
46 | if Type == "Wave" or Type == "SpiralWave" then | |
47 | local mesh = Instance.new("SpecialMesh") | |
48 | mesh.MeshType = Enum.MeshType.FileMesh | |
49 | mesh.MeshId = "rbxassetid://20329976" | |
50 | mesh.Name = "WaveMesh" | |
51 | mesh.Scale = SizeStart / Vector3.new(4, 4, 4) | |
52 | mesh.Parent = part | |
53 | end | |
54 | if Type == "MeshSphere" then | |
55 | local mesh = Instance.new("SpecialMesh") | |
56 | mesh.MeshType = Enum.MeshType.Sphere | |
57 | mesh.Parent = part | |
58 | SmoothPart(part) | |
59 | end | |
60 | spawn(function() | |
61 | local TwirlAngle = math.random(-250, 250) / 1000 | |
62 | local WaveAngle = math.random(-500, 500) / 1000 | |
63 | for i = 1, Length do | |
64 | game:GetService("RunService").Heartbeat:Wait() | |
65 | part.Transparency = part.Transparency + 1 / Length | |
66 | part.Size = part.Size + SizeEnd / Vector3.new(Length, Length, Length) | |
67 | if Type == "TwirlSwirl" then | |
68 | part.CFrame = part.CFrame * CFrame.Angles(TwirlAngle, TwirlAngle, TwirlAngle) | |
69 | part.SwirlMesh.Scale = part.SwirlMesh.Scale + SizeEnd / Vector3.new(Length * 500, Length * 500, Length * 500) | |
70 | end | |
71 | if Type == "SpiralWave" then | |
72 | part.CFrame = part.CFrame * CFrame.Angles(WaveAngle, WaveAngle, WaveAngle) | |
73 | part.WaveMesh.Scale = part.WaveMesh.Scale + SizeEnd / Vector3.new(Length * 4, Length * 4, Length * 4) | |
74 | end | |
75 | if Type == "Wave" then | |
76 | part.CFrame = part.CFrame * CFrame.Angles(0, WaveAngle, 0) | |
77 | part.WaveMesh.Scale = part.WaveMesh.Scale + SizeEnd / Vector3.new(Length * 4, Length * 4, Length * 4) | |
78 | end | |
79 | end | |
80 | part:Destroy() | |
81 | end) | |
82 | end | |
83 | ||
84 | --------------------------------------------------- | |
85 | - | -----------------Making the button----------------- |
85 | + | -----------------Making the button and home of loseers----------------- |
86 | --------------------------------------------------- | |
87 | ||
88 | local model = Instance.new("Model") | |
89 | model.Name = "Button" | |
90 | model.Parent = workspace | |
91 | local base = Instance.new("Part") | |
92 | base.Name = "Base" | |
93 | base.Size = Vector3.new(1, 4, 4) | |
94 | base.Shape = Enum.PartType.Cylinder | |
95 | base.CFrame = CFrame.new(0, 0.5, 0, 0, 0, 1, -1, 0, 0, 0, -1, 0) | |
96 | base.BrickColor = BrickColor.new("Medium stone grey") | |
97 | base.Anchored = true | |
98 | base.Locked = true | |
99 | SmoothPart(base) | |
100 | base.Parent = model | |
101 | local button = Instance.new("Part") | |
102 | button.Name = "Button" | |
103 | button.Size = Vector3.new(1, 3.4, 3.4) | |
104 | button.Shape = Enum.PartType.Cylinder | |
105 | button.CFrame = CFrame.new(1.49011612e-08, 0.799999952, 0, -0, -0, 1, -1, -0, 0, -0, -1, 0) | |
106 | button.BrickColor = BrickColor.new("Bright red") | |
107 | button.Anchored = true | |
108 | button.Locked = true | |
109 | SmoothPart(button) | |
110 | button.Parent = model | |
111 | local click = Instance.new("ClickDetector") | |
112 | click.Name = "MouseClickDetect" | |
113 | click.MaxActivationDistance = 8 | |
114 | click.Parent = button | |
115 | ||
116 | local Model = Instance.new("Model", workspace) | |
117 | local part = Instance.new("Part") | |
118 | local part_2 = Instance.new("Part") | |
119 | local part_3 = Instance.new("Part") | |
120 | local part_4 = Instance.new("Part") | |
121 | local part_5 = Instance.new("Part") | |
122 | local tele = Instance.new("Part") | |
123 | local part_6 = Instance.new("Part") | |
124 | local part_7 = Instance.new("Part") | |
125 | local part_8 = Instance.new("Part") | |
126 | local surfacelight = Instance.new("SurfaceLight") | |
127 | local part_9 = Instance.new("Part") | |
128 | local part_10 = Instance.new("Part") | |
129 | local part_11 = Instance.new("Part") | |
130 | local decal = Instance.new("Decal") | |
131 | local part_12 = Instance.new("Part") | |
132 | local part_13 = Instance.new("Part") | |
133 | local part_14 = Instance.new("Part") | |
134 | local decal_2 = Instance.new("Decal") | |
135 | local part_15 = Instance.new("Part") | |
136 | local part_16 = Instance.new("Part") | |
137 | local part_17 = Instance.new("Part") | |
138 | local part_18 = Instance.new("Part") | |
139 | local part_19 = Instance.new("Part") | |
140 | local part_20 = Instance.new("Part") | |
141 | local part_21 = Instance.new("Part") | |
142 | ||
143 | part.Anchored = true | |
144 | part.Size = Vector3.new(1, 25, 56) | |
145 | - | local choice = math.random(1, 4) |
145 | + | part.BottomSurface = Enum.SurfaceType.Smooth |
146 | part.Material = Enum.Material.Wood | |
147 | part.Color = Color3.new(0.627451, 0.372549, 0.207843) | |
148 | part.TopSurface = Enum.SurfaceType.Smooth | |
149 | part.BrickColor = BrickColor.new("Dark orange") | |
150 | part.Parent = Model | |
151 | part.CFrame = CFrame.new(2873.5, 1692.5, -5646) | |
152 | part_2.Anchored = true | |
153 | part_2.Size = Vector3.new(29, 25, 1) | |
154 | part_2.BottomSurface = Enum.SurfaceType.Smooth | |
155 | part_2.Material = Enum.Material.Wood | |
156 | part_2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
157 | part_2.TopSurface = Enum.SurfaceType.Smooth | |
158 | part_2.BrickColor = BrickColor.new("Really black") | |
159 | part_2.Parent = Model | |
160 | part_2.CFrame = CFrame.new(2887.5, 1692.5, -5617.5) | |
161 | part_3.Anchored = true | |
162 | part_3.Size = Vector3.new(1, 25, 56) | |
163 | part_3.BottomSurface = Enum.SurfaceType.Smooth | |
164 | part_3.Material = Enum.Material.Wood | |
165 | part_3.Color = Color3.new(0.627451, 0.372549, 0.207843) | |
166 | part_3.TopSurface = Enum.SurfaceType.Smooth | |
167 | part_3.BrickColor = BrickColor.new("Dark orange") | |
168 | part_3.Parent = Model | |
169 | part_3.CFrame = CFrame.new(2901.5, 1692.5, -5646) | |
170 | part_4.Anchored = true | |
171 | part_4.Size = Vector3.new(28, 1, 22) | |
172 | part_4.BottomSurface = Enum.SurfaceType.Smooth | |
173 | part_4.Material = Enum.Material.Wood | |
174 | part_4.Color = Color3.new(0.627451, 0.372549, 0.207843) | |
175 | part_4.TopSurface = Enum.SurfaceType.Smooth | |
176 | part_4.BrickColor = BrickColor.new("Dark orange") | |
177 | part_4.Parent = Model | |
178 | part_4.CFrame = CFrame.new(2888, 1704.5, -5629) | |
179 | part_5.Anchored = true | |
180 | part_5.Size = Vector3.new(28, 1, 24) | |
181 | part_5.BottomSurface = Enum.SurfaceType.Smooth | |
182 | part_5.Material = Enum.Material.Wood | |
183 | part_5.Color = Color3.new(0.627451, 0.372549, 0.207843) | |
184 | part_5.TopSurface = Enum.SurfaceType.Smooth | |
185 | part_5.BrickColor = BrickColor.new("Dark orange") | |
186 | part_5.Parent = Model | |
187 | part_5.CFrame = CFrame.new(2888, 1704.5, -5662) | |
188 | tele.Anchored = true | |
189 | tele.CanCollide = false | |
190 | tele.Size = Vector3.new(1, 1, 1) | |
191 | tele.Orientation = Vector3.new(0, 90, 0) | |
192 | tele.BottomSurface = Enum.SurfaceType.Smooth | |
193 | tele.Material = Enum.Material.Wood | |
194 | tele.Name = "TELE" | |
195 | tele.Transparency = 1 | |
196 | tele.TopSurface = Enum.SurfaceType.Smooth | |
197 | tele.BrickColor = BrickColor.new("Really black") | |
198 | tele.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
199 | tele.Parent = Model | |
200 | tele.CFrame = CFrame.new(2887, 1737.5, -5645) * CFrame.Angles(0, 1.571, 0) | |
201 | part_6.Anchored = true | |
202 | part_6.Size = Vector3.new(1, 43, 10) | |
203 | part_6.BottomSurface = Enum.SurfaceType.Smooth | |
204 | part_6.Material = Enum.Material.Wood | |
205 | part_6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
206 | part_6.TopSurface = Enum.SurfaceType.Smooth | |
207 | part_6.BrickColor = BrickColor.new("Really black") | |
208 | part_6.Parent = Model | |
209 | part_6.CFrame = CFrame.new(2881.5, 1726.5, -5645) | |
210 | part_7.Anchored = true | |
211 | part_7.Size = Vector3.new(29, 1, 56) | |
212 | part_7.BottomSurface = Enum.SurfaceType.Smooth | |
213 | part_7.Material = Enum.Material.Wood | |
214 | part_7.Color = Color3.new(0.627451, 0.372549, 0.207843) | |
215 | part_7.TopSurface = Enum.SurfaceType.Smooth | |
216 | part_7.BrickColor = BrickColor.new("Dark orange") | |
217 | part_7.Parent = Model | |
218 | part_7.CFrame = CFrame.new(2887.5, 1680.5, -5646) | |
219 | part_8.Anchored = true | |
220 | part_8.CanCollide = false | |
221 | part_8.Size = Vector3.new(27, 1, 54) | |
222 | part_8.Material = Enum.Material.Wood | |
223 | part_8.BottomSurface = Enum.SurfaceType.Smooth | |
224 | part_8.BrickColor = BrickColor.new("Dark orange") | |
225 | part_8.TopSurface = Enum.SurfaceType.Smooth | |
226 | part_8.Transparency = 1 | |
227 | part_8.Color = Color3.new(0.627451, 0.372549, 0.207843) | |
228 | part_8.Parent = Model | |
229 | part_8.CFrame = CFrame.new(2887.5, 1681.5, -5646) | |
230 | surfacelight.Angle = 180 | |
231 | surfacelight.Range = 60 | |
232 | surfacelight.Brightness = 10 | |
233 | surfacelight.Face = Enum.NormalId.Top | |
234 | surfacelight.Parent = part_8 | |
235 | part_9.Anchored = true | |
236 | part_9.Size = Vector3.new(1, 43, 10) | |
237 | part_9.Orientation = Vector3.new(0, 90, 0) | |
238 | part_9.Material = Enum.Material.Wood | |
239 | part_9.BottomSurface = Enum.SurfaceType.Smooth | |
240 | part_9.BrickColor = BrickColor.new("Really black") | |
241 | part_9.TopSurface = Enum.SurfaceType.Smooth | |
242 | part_9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
243 | part_9.Parent = Model | |
244 | part_9.CFrame = CFrame.new(2887, 1726.5, -5639.5) * CFrame.Angles(0, 1.571, 0) | |
245 | part_10.Anchored = true | |
246 | part_10.Size = Vector3.new(1, 43, 10) | |
247 | part_10.Orientation = Vector3.new(0, 90, 0) | |
248 | part_10.Material = Enum.Material.Wood | |
249 | part_10.BottomSurface = Enum.SurfaceType.Smooth | |
250 | part_10.BrickColor = BrickColor.new("Really black") | |
251 | part_10.TopSurface = Enum.SurfaceType.Smooth | |
252 | part_10.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
253 | part_10.Parent = Model | |
254 | part_10.CFrame = CFrame.new(2887, 1726.5, -5650.5) * CFrame.Angles(0, 1.571, 0) | |
255 | part_11.Anchored = true | |
256 | part_11.Size = Vector3.new(15, 12, 1) | |
257 | part_11.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
258 | part_11.BrickColor = BrickColor.new("Really black") | |
259 | part_11.BottomSurface = Enum.SurfaceType.Smooth | |
260 | part_11.TopSurface = Enum.SurfaceType.Smooth | |
261 | part_11.Parent = Model | |
262 | part_11.CFrame = CFrame.new(2888.5, 1694, -5673.5) | |
263 | decal.Texture = "http://www.roblox.com/asset/?id=560997999" | |
264 | decal.Face = Enum.NormalId.Back | |
265 | decal.Parent = part_11 | |
266 | part_12.Anchored = true | |
267 | part_12.Size = Vector3.new(9, 1, 56) | |
268 | part_12.BottomSurface = Enum.SurfaceType.Smooth | |
269 | part_12.Material = Enum.Material.Wood | |
270 | part_12.Color = Color3.new(0.627451, 0.372549, 0.207843) | |
271 | part_12.TopSurface = Enum.SurfaceType.Smooth | |
272 | part_12.BrickColor = BrickColor.new("Dark orange") | |
273 | part_12.Parent = Model | |
274 | part_12.CFrame = CFrame.new(2877.5, 1704.5, -5646) | |
275 | part_13.Anchored = true | |
276 | part_13.Size = Vector3.new(1, 25, 56) | |
277 | part_13.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
278 | part_13.BrickColor = BrickColor.new("Really black") | |
279 | part_13.BottomSurface = Enum.SurfaceType.Smooth | |
280 | part_13.TopSurface = Enum.SurfaceType.Smooth | |
281 | part_13.Parent = Model | |
282 | part_13.CFrame = CFrame.new(2902.5, 1692.5, -5646) | |
283 | part_14.Anchored = true | |
284 | part_14.Size = Vector3.new(18, 11, 1) | |
285 | part_14.Orientation = Vector3.new(0, 180, 0) | |
286 | part_14.BottomSurface = Enum.SurfaceType.Smooth | |
287 | part_14.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
288 | part_14.TopSurface = Enum.SurfaceType.Smooth | |
289 | part_14.BrickColor = BrickColor.new("Really black") | |
290 | part_14.Parent = Model | |
291 | part_14.CFrame = CFrame.new(2888, 1693.5, -5618.5) * CFrame.Angles(-3.142, 0, -3.142) | |
292 | decal_2.Texture = "http://www.roblox.com/asset/?id=2197740511" | |
293 | decal_2.Face = Enum.NormalId.Back | |
294 | decal_2.Parent = part_14 | |
295 | part_15.Anchored = true | |
296 | part_15.Size = Vector3.new(29, 25, 1) | |
297 | part_15.BottomSurface = Enum.SurfaceType.Smooth | |
298 | part_15.Material = Enum.Material.Wood | |
299 | part_15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
300 | part_15.TopSurface = Enum.SurfaceType.Smooth | |
301 | part_15.BrickColor = BrickColor.new("Really black") | |
302 | part_15.Parent = Model | |
303 | part_15.CFrame = CFrame.new(2887.5, 1692.5, -5674.5) | |
304 | part_16.Anchored = true | |
305 | part_16.Size = Vector3.new(29, 25, 1) | |
306 | part_16.BottomSurface = Enum.SurfaceType.Smooth | |
307 | part_16.Material = Enum.Material.Wood | |
308 | part_16.Color = Color3.new(0.627451, 0.372549, 0.207843) | |
309 | part_16.TopSurface = Enum.SurfaceType.Smooth | |
310 | part_16.BrickColor = BrickColor.new("Dark orange") | |
311 | part_16.Parent = Model | |
312 | part_16.CFrame = CFrame.new(2887.5, 1692.5, -5618.5) | |
313 | part_17.Anchored = true | |
314 | part_17.Size = Vector3.new(10, 1, 56) | |
315 | part_17.BottomSurface = Enum.SurfaceType.Smooth | |
316 | part_17.Material = Enum.Material.Wood | |
317 | part_17.Color = Color3.new(0.627451, 0.372549, 0.207843) | |
318 | part_17.TopSurface = Enum.SurfaceType.Smooth | |
319 | part_17.BrickColor = BrickColor.new("Dark orange") | |
320 | part_17.Parent = Model | |
321 | part_17.CFrame = CFrame.new(2897, 1704.5, -5646) | |
322 | part_18.Anchored = true | |
323 | part_18.Size = Vector3.new(1, 25, 56) | |
324 | part_18.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
325 | part_18.BrickColor = BrickColor.new("Really black") | |
326 | part_18.BottomSurface = Enum.SurfaceType.Smooth | |
327 | part_18.TopSurface = Enum.SurfaceType.Smooth | |
328 | part_18.Parent = Model | |
329 | part_18.CFrame = CFrame.new(2872.5, 1692.5, -5646) | |
330 | part_19.Anchored = true | |
331 | part_19.Size = Vector3.new(29, 25, 1) | |
332 | part_19.BottomSurface = Enum.SurfaceType.Smooth | |
333 | part_19.Material = Enum.Material.Wood | |
334 | part_19.Color = Color3.new(0.627451, 0.372549, 0.207843) | |
335 | part_19.TopSurface = Enum.SurfaceType.Smooth | |
336 | part_19.BrickColor = BrickColor.new("Dark orange") | |
337 | part_19.Parent = Model | |
338 | part_19.CFrame = CFrame.new(2887.5, 1692.5, -5673.5) | |
339 | part_20.Anchored = true | |
340 | part_20.Size = Vector3.new(1, 43, 10) | |
341 | part_20.BottomSurface = Enum.SurfaceType.Smooth | |
342 | part_20.Material = Enum.Material.Wood | |
343 | part_20.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
344 | part_20.TopSurface = Enum.SurfaceType.Smooth | |
345 | part_20.BrickColor = BrickColor.new("Really black") | |
346 | part_20.Parent = Model | |
347 | part_20.CFrame = CFrame.new(2892.5, 1726.5, -5645) | |
348 | part_21.Anchored = true | |
349 | part_21.Size = Vector3.new(12, 1, 12) | |
350 | part_21.Orientation = Vector3.new(0, 90, 0) | |
351 | part_21.Material = Enum.Material.Wood | |
352 | part_21.BottomSurface = Enum.SurfaceType.Smooth | |
353 | part_21.BrickColor = BrickColor.new("Really black") | |
354 | part_21.TopSurface = Enum.SurfaceType.Smooth | |
355 | part_21.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
356 | part_21.Parent = Model | |
357 | part_21.CFrame = CFrame.new(2887, 1747.5, -5645) * CFrame.Angles(0, 1.571, 0) | |
358 | --------------------------------------------------- | |
359 | ----------------------Attacks---------------------- | |
360 | --------------------------------------------------- | |
361 | ||
362 | game:GetService("RunService").Heartbeat:Connect(function() | |
363 | if not click:FindFirstChild("EventHooked") then | |
364 | local val = Instance.new("BoolValue") | |
365 | val.Name = "EventHooked" | |
366 | val.Parent = click | |
367 | click.MouseClick:Connect(function(player) | |
368 | if debounce == false then | |
369 | debounce = true | |
370 | local sound = Instance.new("Sound") | |
371 | sound.SoundId = "rbxassetid://1677936333" | |
372 | sound.Volume = 5 | |
373 | sound.Parent = button | |
374 | sound:Play() | |
375 | button.CFrame = button.CFrame + Vector3.new(0, -0.15, 0) | |
376 | wait(0.2) | |
377 | button.CFrame = button.CFrame + Vector3.new(0, 0.15, 0) | |
378 | wait(0.05) | |
379 | local sound2 = Instance.new("Sound") | |
380 | sound2.SoundId = "rbxassetid://1274525620" | |
381 | sound2.Volume = 5 | |
382 | sound2.Parent = button | |
383 | sound2:Play() | |
384 | wait(1.55) | |
385 | sound:Destroy() | |
386 | sound2:Destroy() | |
387 | local choice = math.random(1, 5) | |
388 | if choice == 1 then | |
389 | local Char = player.Character | |
390 | local sound = Instance.new("Sound") | |
391 | sound.SoundId = "rbxassetid://130972023" | |
392 | sound.Volume = 5 | |
393 | sound.Parent = Char.HumanoidRootPart | |
394 | sound:Play() | |
395 | Effect(40, "Sphere", Vector3.new(2, 2, 2), Vector3.new(15, 15, 15), Char.HumanoidRootPart.CFrame, BrickColor.new("Really black"), Char) | |
396 | for i = 1, 4 do | |
397 | Effect(40, "SpiralWave", Vector3.new(10, 2, 10), Vector3.new(40, 8, 40), Char.HumanoidRootPart.CFrame, BrickColor.new("Really black"), Char) | |
398 | end | |
399 | for i,v in pairs(Char:GetChildren()) do | |
400 | if v:IsA("BasePart") and not v:IsA("Terrain") then | |
401 | v:BreakJoints() | |
402 | v.Velocity = Vector3.new(math.random(-25, 25), 30, math.random(-25, 25)) | |
403 | end | |
404 | end | |
405 | elseif choice == 2 then | |
406 | local Char = player.Character | |
407 | local sound = Instance.new("Sound") | |
408 | sound.SoundId = "rbxassetid://1368583274" | |
409 | sound.Volume = 5 | |
410 | sound.Parent = Char.HumanoidRootPart | |
411 | sound:Play() | |
412 | for i = 1, 120 do | |
413 | game:GetService("RunService").Heartbeat:Wait() | |
414 | sound.Volume = sound.Volume - 5 / 120 | |
415 | Effect(15, "Wave", Vector3.new(7, 1, 7), Vector3.new(20, 4, 20), Char.HumanoidRootPart.CFrame + Vector3.new(0, -2.5, 0), BrickColor.new("Mid gray"), Char) | |
416 | end | |
417 | sound:Destroy() | |
418 | local sound = Instance.new("Sound") | |
419 | sound.SoundId = "rbxassetid://165970126" | |
420 | sound.Volume = 2 | |
421 | sound.Parent = Char.HumanoidRootPart | |
422 | sound:Play() | |
423 | Effect(20, "MeshSphere", Vector3.new(5, 15, 5), Vector3.new(8, 90, 8), Char.HumanoidRootPart.CFrame, BrickColor.new("Institutional white"), Char) | |
424 | for i = 1, 4 do | |
425 | Effect(30, "Wave", Vector3.new(7, 1, 7), Vector3.new(40, 8, 40), Char.HumanoidRootPart.CFrame + Vector3.new(0, -2.5, 0), BrickColor.new("Mid gray"), Char) | |
426 | end | |
427 | local vel = Instance.new("BodyVelocity") | |
428 | vel.MaxForce = Vector3.new(1e9, 1e9, 1e9) | |
429 | vel.Velocity = Vector3.new(0, 300, 0) | |
430 | vel.Parent = Char.HumanoidRootPart | |
431 | spawn(function() | |
432 | wait(0.5) | |
433 | vel:Destroy() | |
434 | end) | |
435 | elseif choice == 3 then | |
436 | local Char = player.Character | |
437 | local hole = Instance.new("Part") | |
438 | hole.Name = "Hole" | |
439 | hole.Color = Color3.new(0, 0, 0) | |
440 | hole.Shape = Enum.PartType.Cylinder | |
441 | hole.CFrame = Char.HumanoidRootPart.CFrame * CFrame.new(0, -3.04, 0) * CFrame.Angles(0, 0, math.pi / 2) | |
442 | hole.Size = Vector3.new(0.1, 0, 0) | |
443 | hole.Anchored = true | |
444 | hole.Locked = true | |
445 | hole.Material = Enum.Material.Neon | |
446 | hole.CanCollide = false | |
447 | SmoothPart(hole) | |
448 | hole.Parent = Char | |
449 | Char.Head.Anchored = true | |
450 | for i = 1, 35 do | |
451 | game:GetService("RunService").Heartbeat:Wait() | |
452 | hole.Size = hole.Size + Vector3.new(0, 0.2 * Char.HumanoidRootPart.Size.Z, 0.2 * Char.HumanoidRootPart.Size.Z) | |
453 | end | |
454 | local sound = Instance.new("Sound") | |
455 | sound.SoundId = "rbxassetid://838038142" | |
456 | sound.Volume = 2 | |
457 | sound.Parent = Char.HumanoidRootPart | |
458 | sound:Play() | |
459 | repeat | |
460 | game:GetService("RunService").Heartbeat:Wait() | |
461 | Char:SetPrimaryPartCFrame(Char.Head.CFrame * CFrame.new(0, -0.05, 0)) | |
462 | hole.CFrame = hole.CFrame + Vector3.new(0, 0.05, 0) | |
463 | until Char.HumanoidRootPart.Position.Y < hole.Position.Y - 3.4 * Char.HumanoidRootPart.Size.Z | |
464 | sound:Destroy() | |
465 | for i = 1, 35 do | |
466 | game:GetService("RunService").Heartbeat:Wait() | |
467 | hole.Size = hole.Size - Vector3.new(0, 0.2 * Char.HumanoidRootPart.Size.Z, 0.2 * Char.HumanoidRootPart.Size.Z) | |
468 | end | |
469 | hole:Destroy() | |
470 | Char:BreakJoints() | |
471 | elseif choice == 4 then | |
472 | local Char = player.Character | |
473 | local sound = Instance.new("Sound") | |
474 | sound.SoundId = "rbxassetid://130972023" | |
475 | sound.Volume = 5 | |
476 | sound.Parent = Char.HumanoidRootPart | |
477 | sound:Play() | |
478 | if Char:FindFirstChildOfClass("Humanoid") then | |
479 | for i = 1, 5 do | |
480 | Effect(30, "Wave", Vector3.new(7, 1, 7), Vector3.new(20, 4, 20), Char.HumanoidRootPart.CFrame + Vector3.new(0, -2.5, 0), BrickColor.new("Mid gray"), Char) | |
481 | end | |
482 | Char:FindFirstChildOfClass("Humanoid").PlatformStand = true | |
483 | else | |
484 | for i = 1, 5 do | |
485 | Effect(30, "Wave", Vector3.new(7, 1, 7), Vector3.new(20, 4, 20), Char.HumanoidRootPart.CFrame + Vector3.new(0, -2.5, 0), BrickColor.new("Mid gray"), Char) | |
486 | end | |
487 | local bodyforce = Instance.new("BodyForce") | |
488 | bodyforce.Force = Vector3.new(0, -500000, 0) | |
489 | bodyforce.Parent = Char.Head | |
490 | end | |
491 | elseif choice == 5 then | |
492 | local Char = player.Character | |
493 | local hole = Instance.new("Part") | |
494 | hole.Name = "Hole" | |
495 | hole.Color = Color3.new(0, 0, 0) | |
496 | hole.Shape = Enum.PartType.Cylinder | |
497 | hole.CFrame = Char.HumanoidRootPart.CFrame * CFrame.new(0, -3.04, 0) * CFrame.Angles(0, 0, math.pi / 2) | |
498 | hole.Size = Vector3.new(0.1, 0, 0) | |
499 | hole.Anchored = true | |
500 | hole.Locked = true | |
501 | hole.Material = Enum.Material.Neon | |
502 | hole.CanCollide = false | |
503 | SmoothPart(hole) | |
504 | hole.Parent = Char | |
505 | Char.Head.Anchored = true | |
506 | for i = 1, 35 do | |
507 | game:GetService("RunService").Heartbeat:Wait() | |
508 | hole.Size = hole.Size + Vector3.new(0, 0.2 * Char.HumanoidRootPart.Size.Z, 0.2 * Char.HumanoidRootPart.Size.Z) | |
509 | end | |
510 | local sound = Instance.new("Sound") | |
511 | sound.SoundId = "rbxassetid://838038142" | |
512 | sound.Volume = 2 | |
513 | sound.Parent = Char.HumanoidRootPart | |
514 | sound:Play() | |
515 | repeat | |
516 | game:GetService("RunService").Heartbeat:Wait() | |
517 | Char:SetPrimaryPartCFrame(Char.Head.CFrame * CFrame.new(0, -0.05, 0)) | |
518 | hole.CFrame = hole.CFrame + Vector3.new(0, 0.05, 0) | |
519 | until Char.HumanoidRootPart.Position.Y < hole.Position.Y - 3.4 * Char.HumanoidRootPart.Size.Z | |
520 | sound:Destroy() | |
521 | for i = 1, 35 do | |
522 | game:GetService("RunService").Heartbeat:Wait() | |
523 | hole.Size = hole.Size - Vector3.new(0, 0.2 * Char.HumanoidRootPart.Size.Z, 0.2 * Char.HumanoidRootPart.Size.Z) | |
524 | end | |
525 | hole:Destroy() | |
526 | Char.Head.Anchored = false | |
527 | Char:moveTo(tele.Position) | |
528 | end | |
529 | debounce = false | |
530 | end | |
531 | end) | |
532 | end | |
533 | end) | |
534 | ||
535 | --------------------------------------------------- | |
536 | --------------------Wrapping up-------------------- | |
537 | --------------------------------------------------- | |
538 | ||
539 | while game:GetService("RunService").Heartbeat:Wait() do | |
540 | if model.Parent ~= workspace then | |
541 | model = Instance.new("Model") | |
542 | model.Name = "Button" | |
543 | base = Instance.new("Part") | |
544 | base.Name = "Base" | |
545 | base.Size = Vector3.new(1, 4, 4) | |
546 | base.Shape = Enum.PartType.Cylinder | |
547 | base.CFrame = CFrame.new(0, 0.5, 0, 0, 0, 1, -1, 0, 0, 0, -1, 0) | |
548 | base.BrickColor = BrickColor.new("Medium stone grey") | |
549 | base.Anchored = true | |
550 | base.Locked = true | |
551 | SmoothPart(base) | |
552 | base.Parent = model | |
553 | button = Instance.new("Part") | |
554 | button.Name = "Button" | |
555 | button.Size = Vector3.new(1, 3.4, 3.4) | |
556 | button.Shape = Enum.PartType.Cylinder | |
557 | button.CFrame = CFrame.new(1.49011612e-08, 0.799999952, 0, -0, -0, 1, -1, -0, 0, -0, -1, 0) | |
558 | button.BrickColor = BrickColor.new("Bright red") | |
559 | button.Anchored = true | |
560 | button.Locked = true | |
561 | SmoothPart(button) | |
562 | button.Parent = model | |
563 | click = Instance.new("ClickDetector") | |
564 | click.Name = "MouseClickDetect" | |
565 | click.MaxActivationDistance = 8 | |
566 | click.Parent = button | |
567 | model.Parent = workspace | |
568 | end | |
569 | if base.Parent ~= model then | |
570 | base = Instance.new("Part") | |
571 | base.Name = "Base" | |
572 | base.Size = Vector3.new(1, 4, 4) | |
573 | base.Shape = Enum.PartType.Cylinder | |
574 | base.CFrame = CFrame.new(0, 0.5, 0, 0, 0, 1, -1, 0, 0, 0, -1, 0) | |
575 | base.BrickColor = BrickColor.new("Medium stone grey") | |
576 | base.Anchored = true | |
577 | base.Locked = true | |
578 | SmoothPart(base) | |
579 | base.Parent = model | |
580 | end | |
581 | if button.Parent ~= model then | |
582 | button = Instance.new("Part") | |
583 | button.Name = "Button" | |
584 | button.Size = Vector3.new(1, 3.4, 3.4) | |
585 | button.Shape = Enum.PartType.Cylinder | |
586 | button.CFrame = CFrame.new(1.49011612e-08, 0.799999952, 0, -0, -0, 1, -1, -0, 0, -0, -1, 0) | |
587 | button.BrickColor = BrickColor.new("Bright red") | |
588 | button.Anchored = true | |
589 | button.Locked = true | |
590 | SmoothPart(button) | |
591 | button.Parent = model | |
592 | end | |
593 | if click.Parent ~= button then | |
594 | click = Instance.new("ClickDetector") | |
595 | click.Name = "MouseClickDetect" | |
596 | click.MaxActivationDistance = 8 | |
597 | click.Parent = button | |
598 | model.Parent = workspace | |
599 | end | |
600 | end |