SHOW:
|
|
- or go back to the newest paste.
1 | Create = function(itemClass,tabl) | |
2 | local item = Instance.new(itemClass) | |
3 | for i,v in pairs(tabl) do | |
4 | local a,b = ypcall(function() return item[i] end) | |
5 | if a then | |
6 | item[i] = tabl[i] | |
7 | end | |
8 | end | |
9 | return item | |
10 | end | |
11 | function runDummyScript(f,scri) | |
12 | local oldenv = getfenv(f) | |
13 | local newenv = setmetatable({}, { | |
14 | __index = function(_, k) | |
15 | if k:lower() == 'script' then | |
16 | return scri | |
17 | else | |
18 | return oldenv[k] | |
19 | end | |
20 | end | |
21 | }) | |
22 | setfenv(f, newenv) | |
23 | ypcall(function() f() end) | |
24 | end | |
25 | cors = {} | |
26 | mas = Instance.new("Model",game:GetService("Lighting")) | |
27 | mas.Name = "CompiledModel" | |
28 | o1 = Create("Model",{ | |
29 | ["Name"] = "DankTrap", | |
30 | ["Parent"] = mas, | |
31 | }) | |
32 | o2 = Create("Part",{ | |
33 | ["Parent"] = o1, | |
34 | ["Material"] = Enum.Material.CorrodedMetal, | |
35 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
36 | ["Position"] = Vector3.new(34.9750824, 2.55002475, 5.42144966), | |
37 | ["Rotation"] = Vector3.new(90, 0, -180), | |
38 | ["Anchored"] = true, | |
39 | ["CFrame"] = CFrame.new(34.9750824, 2.55002475, 5.42144966, -1, 0, 0, 0, 0, -1, 0, -1, 0), | |
40 | ["CanCollide"] = false, | |
41 | ["Size"] = Vector3.new(1.04999578, 1.19999599, 2.0857048), | |
42 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
43 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
44 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
45 | }) | |
46 | o3 = Create("SpecialMesh",{ | |
47 | ["Parent"] = o2, | |
48 | ["MeshType"] = Enum.MeshType.Wedge, | |
49 | }) | |
50 | o4 = Create("Part",{ | |
51 | ["Parent"] = o1, | |
52 | ["Material"] = Enum.Material.CorrodedMetal, | |
53 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
54 | ["Position"] = Vector3.new(29.2000694, 1.35001421, 5.42108631), | |
55 | ["Rotation"] = Vector3.new(0, 90, 0), | |
56 | ["Anchored"] = true, | |
57 | ["CFrame"] = CFrame.new(29.2000694, 1.35001421, 5.42108631, 0, 0, 1, 0, 1, 0, -1, 0, 0), | |
58 | ["CanCollide"] = false, | |
59 | ["Size"] = Vector3.new(1.04999578, 2.39999199, 2.0857048), | |
60 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
61 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
62 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
63 | }) | |
64 | o5 = Create("Part",{ | |
65 | ["Parent"] = o1, | |
66 | ["Material"] = Enum.Material.CorrodedMetal, | |
67 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
68 | ["Position"] = Vector3.new(29.2000694, 0.750063419, 8.02873993), | |
69 | ["Rotation"] = Vector3.new(0, 90, 0), | |
70 | ["Anchored"] = true, | |
71 | ["CFrame"] = CFrame.new(29.2000694, 0.750063419, 8.02873993, 0, 0, 1, 0, 1, 0, -1, 0, 0), | |
72 | ["CanCollide"] = false, | |
73 | ["Size"] = Vector3.new(4.19998312, 1.19999599, 2.0857048), | |
74 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
75 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
76 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
77 | }) | |
78 | o6 = Create("Part",{ | |
79 | ["Parent"] = o1, | |
80 | ["Material"] = Enum.Material.CorrodedMetal, | |
81 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
82 | ["Position"] = Vector3.new(32.35009, 0.750017643, 5.42144966), | |
83 | ["Rotation"] = Vector3.new(-0, -90, 0), | |
84 | ["Anchored"] = true, | |
85 | ["CFrame"] = CFrame.new(32.35009, 0.750017643, 5.42144966, 0, 0, -1, 0, 1, 0, 1, 0, 0), | |
86 | ["CanCollide"] = false, | |
87 | ["Size"] = Vector3.new(1.04999578, 1.19999599, 4.17140961), | |
88 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
89 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
90 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
91 | }) | |
92 | o7 = Create("Part",{ | |
93 | ["Parent"] = o1, | |
94 | ["Material"] = Enum.Material.CorrodedMetal, | |
95 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
96 | ["Position"] = Vector3.new(34.9750824, 2.55002475, 7.50711298), | |
97 | ["Rotation"] = Vector3.new(90, 0, -180), | |
98 | ["Anchored"] = true, | |
99 | ["CFrame"] = CFrame.new(34.9750824, 2.55002475, 7.50711298, -1, 0, 0, 0, 0, -1, 0, -1, 0), | |
100 | ["CanCollide"] = false, | |
101 | ["Size"] = Vector3.new(1.04999578, 1.19999599, 2.0857048), | |
102 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
103 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
104 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
105 | }) | |
106 | o8 = Create("SpecialMesh",{ | |
107 | ["Parent"] = o7, | |
108 | ["MeshType"] = Enum.MeshType.Wedge, | |
109 | }) | |
110 | o9 = Create("Part",{ | |
111 | ["Parent"] = o1, | |
112 | ["Material"] = Enum.Material.CorrodedMetal, | |
113 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
114 | ["Position"] = Vector3.new(26.0500488, 0.750017643, 5.42144966), | |
115 | ["Rotation"] = Vector3.new(0, 90, 0), | |
116 | ["Anchored"] = true, | |
117 | ["CFrame"] = CFrame.new(26.0500488, 0.750017643, 5.42144966, 0, 0, 1, 0, 1, 0, -1, 0, 0), | |
118 | ["CanCollide"] = false, | |
119 | ["Size"] = Vector3.new(1.04999578, 1.19999599, 4.17140961), | |
120 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
121 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
122 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
123 | }) | |
124 | o10 = Create("Part",{ | |
125 | ["Parent"] = o1, | |
126 | ["Material"] = Enum.Material.CorrodedMetal, | |
127 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
128 | ["Position"] = Vector3.new(34.9750824, 2.55002475, 9.59277821), | |
129 | ["Rotation"] = Vector3.new(90, 0, -180), | |
130 | ["Anchored"] = true, | |
131 | ["CFrame"] = CFrame.new(34.9750824, 2.55002475, 9.59277821, -1, 0, 0, 0, 0, -1, 0, -1, 0), | |
132 | ["CanCollide"] = false, | |
133 | ["Size"] = Vector3.new(1.04999578, 1.19999599, 2.0857048), | |
134 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
135 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
136 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
137 | }) | |
138 | o11 = Create("SpecialMesh",{ | |
139 | ["Parent"] = o10, | |
140 | ["MeshType"] = Enum.MeshType.Wedge, | |
141 | }) | |
142 | o12 = Create("Part",{ | |
143 | ["Parent"] = o1, | |
144 | ["Material"] = Enum.Material.CorrodedMetal, | |
145 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
146 | ["Position"] = Vector3.new(34.9750824, 2.55002475, 11.6785498), | |
147 | ["Rotation"] = Vector3.new(90, 0, -180), | |
148 | ["Anchored"] = true, | |
149 | ["CFrame"] = CFrame.new(34.9750824, 2.55002475, 11.6785498, -1, 0, 0, 0, 0, -1, 0, -1, 0), | |
150 | ["CanCollide"] = false, | |
151 | ["Size"] = Vector3.new(1.04999578, 1.19999599, 2.0857048), | |
152 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
153 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
154 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
155 | }) | |
156 | o13 = Create("SpecialMesh",{ | |
157 | ["Parent"] = o12, | |
158 | ["MeshType"] = Enum.MeshType.Wedge, | |
159 | }) | |
160 | o14 = Create("Part",{ | |
161 | ["Name"] = "Trap", | |
162 | ["Parent"] = o1, | |
163 | ["Material"] = Enum.Material.CorrodedMetal, | |
164 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
165 | ["Position"] = Vector3.new(29.2000008, 0.400000006, 12.1999998), | |
166 | ["Rotation"] = Vector3.new(0, 90, 0), | |
167 | ["Anchored"] = true, | |
168 | ["CFrame"] = CFrame.new(29.2000008, 0.400000006, 12.1999998, 0, 0, 1, 0, 1, 0, -1, 0, 0), | |
169 | ["Size"] = Vector3.new(4.19999981, 0.5, 4.171), | |
170 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
171 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
172 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
173 | }) | |
174 | o15 = Create("Part",{ | |
175 | ["Parent"] = o1, | |
176 | ["Material"] = Enum.Material.CorrodedMetal, | |
177 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
178 | ["Position"] = Vector3.new(34.9750824, 0.750017643, 12.199954), | |
179 | ["Anchored"] = true, | |
180 | ["CFrame"] = CFrame.new(34.9750824, 0.750017643, 12.199954, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
181 | ["CanCollide"] = false, | |
182 | ["Size"] = Vector3.new(1.04999578, 1.19999599, 14.5999355), | |
183 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
184 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
185 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
186 | }) | |
187 | o16 = Create("Part",{ | |
188 | ["Parent"] = o1, | |
189 | ["Material"] = Enum.Material.CorrodedMetal, | |
190 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
191 | ["Position"] = Vector3.new(34.9750824, 2.55002475, 13.7642593), | |
192 | ["Rotation"] = Vector3.new(90, 0, -180), | |
193 | ["Anchored"] = true, | |
194 | ["CFrame"] = CFrame.new(34.9750824, 2.55002475, 13.7642593, -1, 0, 0, 0, 0, -1, 0, -1, 0), | |
195 | ["CanCollide"] = false, | |
196 | ["Size"] = Vector3.new(1.04999578, 1.19999599, 2.0857048), | |
197 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
198 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
199 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
200 | }) | |
201 | o17 = Create("SpecialMesh",{ | |
202 | ["Parent"] = o16, | |
203 | ["MeshType"] = Enum.MeshType.Wedge, | |
204 | }) | |
205 | o18 = Create("Part",{ | |
206 | ["Parent"] = o1, | |
207 | ["Material"] = Enum.Material.CorrodedMetal, | |
208 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
209 | ["Position"] = Vector3.new(23.4250603, 2.55002475, 12.7213879), | |
210 | ["Rotation"] = Vector3.new(90, 0, -0), | |
211 | ["Anchored"] = true, | |
212 | ["CFrame"] = CFrame.new(23.4250603, 2.55002475, 12.7213879, 1, 0, 0, 0, 0, -1, 0, 1, 0), | |
213 | ["CanCollide"] = false, | |
214 | ["Size"] = Vector3.new(1.04999578, 1.19999599, 2.0857048), | |
215 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
216 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
217 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
218 | }) | |
219 | o19 = Create("SpecialMesh",{ | |
220 | ["Parent"] = o18, | |
221 | ["MeshType"] = Enum.MeshType.Wedge, | |
222 | }) | |
223 | o20 = Create("Part",{ | |
224 | ["Parent"] = o1, | |
225 | ["Material"] = Enum.Material.CorrodedMetal, | |
226 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
227 | ["Position"] = Vector3.new(23.4250603, 2.55002475, 10.6357126), | |
228 | ["Rotation"] = Vector3.new(90, 0, -0), | |
229 | ["Anchored"] = true, | |
230 | ["CFrame"] = CFrame.new(23.4250603, 2.55002475, 10.6357126, 1, 0, 0, 0, 0, -1, 0, 1, 0), | |
231 | ["CanCollide"] = false, | |
232 | ["Size"] = Vector3.new(1.04999578, 1.19999599, 2.0857048), | |
233 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
234 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
235 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
236 | }) | |
237 | o21 = Create("SpecialMesh",{ | |
238 | ["Parent"] = o20, | |
239 | ["MeshType"] = Enum.MeshType.Wedge, | |
240 | }) | |
241 | o22 = Create("Part",{ | |
242 | ["Parent"] = o1, | |
243 | ["Material"] = Enum.Material.CorrodedMetal, | |
244 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
245 | ["Position"] = Vector3.new(23.4250603, 2.55002475, 14.8070908), | |
246 | ["Rotation"] = Vector3.new(90, 0, -0), | |
247 | ["Anchored"] = true, | |
248 | ["CFrame"] = CFrame.new(23.4250603, 2.55002475, 14.8070908, 1, 0, 0, 0, 0, -1, 0, 1, 0), | |
249 | ["CanCollide"] = false, | |
250 | ["Size"] = Vector3.new(1.04999578, 1.19999599, 2.0857048), | |
251 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
252 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
253 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
254 | }) | |
255 | o23 = Create("SpecialMesh",{ | |
256 | ["Parent"] = o22, | |
257 | ["MeshType"] = Enum.MeshType.Wedge, | |
258 | }) | |
259 | o24 = Create("Part",{ | |
260 | ["Parent"] = o1, | |
261 | ["Material"] = Enum.Material.CorrodedMetal, | |
262 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
263 | ["Position"] = Vector3.new(23.4250603, 2.55002475, 6.4642868), | |
264 | ["Rotation"] = Vector3.new(90, 0, -0), | |
265 | ["Anchored"] = true, | |
266 | ["CFrame"] = CFrame.new(23.4250603, 2.55002475, 6.4642868, 1, 0, 0, 0, 0, -1, 0, 1, 0), | |
267 | ["CanCollide"] = false, | |
268 | ["Size"] = Vector3.new(1.04999578, 1.19999599, 2.0857048), | |
269 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
270 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
271 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
272 | }) | |
273 | o25 = Create("SpecialMesh",{ | |
274 | ["Parent"] = o24, | |
275 | ["MeshType"] = Enum.MeshType.Wedge, | |
276 | }) | |
277 | o26 = Create("Part",{ | |
278 | ["Parent"] = o1, | |
279 | ["Material"] = Enum.Material.CorrodedMetal, | |
280 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
281 | ["Position"] = Vector3.new(23.4250603, 2.55002475, 8.54999828), | |
282 | ["Rotation"] = Vector3.new(90, 0, -0), | |
283 | ["Anchored"] = true, | |
284 | ["CFrame"] = CFrame.new(23.4250603, 2.55002475, 8.54999828, 1, 0, 0, 0, 0, -1, 0, 1, 0), | |
285 | ["CanCollide"] = false, | |
286 | ["Size"] = Vector3.new(1.04999578, 1.19999599, 2.0857048), | |
287 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
288 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
289 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
290 | }) | |
291 | o27 = Create("SpecialMesh",{ | |
292 | ["Parent"] = o26, | |
293 | ["MeshType"] = Enum.MeshType.Wedge, | |
294 | }) | |
295 | o28 = Create("Part",{ | |
296 | ["Parent"] = o1, | |
297 | ["Material"] = Enum.Material.CorrodedMetal, | |
298 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
299 | ["Position"] = Vector3.new(32.35009, 0.750017643, 18.9785271), | |
300 | ["Rotation"] = Vector3.new(-0, -90, 0), | |
301 | ["Anchored"] = true, | |
302 | ["CFrame"] = CFrame.new(32.35009, 0.750017643, 18.9785271, 0, 0, -1, 0, 1, 0, 1, 0, 0), | |
303 | ["CanCollide"] = false, | |
304 | ["Size"] = Vector3.new(1.04999578, 1.19999599, 4.17140961), | |
305 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
306 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
307 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
308 | }) | |
309 | o29 = Create("Part",{ | |
310 | ["Parent"] = o1, | |
311 | ["Material"] = Enum.Material.CorrodedMetal, | |
312 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
313 | ["Position"] = Vector3.new(29.2000694, 0.750017643, 16.3713951), | |
314 | ["Rotation"] = Vector3.new(0, 90, 0), | |
315 | ["Anchored"] = true, | |
316 | ["CFrame"] = CFrame.new(29.2000694, 0.750017643, 16.3713951, 0, 0, 1, 0, 1, 0, -1, 0, 0), | |
317 | ["CanCollide"] = false, | |
318 | ["Size"] = Vector3.new(4.19998312, 1.19999599, 2.0857048), | |
319 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
320 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
321 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
322 | }) | |
323 | o30 = Create("Part",{ | |
324 | ["Parent"] = o1, | |
325 | ["Material"] = Enum.Material.CorrodedMetal, | |
326 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
327 | ["Position"] = Vector3.new(23.4249001, 2.55002475, 18.9786224), | |
328 | ["Rotation"] = Vector3.new(90, 0, -0), | |
329 | ["Anchored"] = true, | |
330 | ["CFrame"] = CFrame.new(23.4249001, 2.55002475, 18.9786224, 1, 0, 0, 0, 0, -1, 0, 1, 0), | |
331 | ["CanCollide"] = false, | |
332 | ["Size"] = Vector3.new(1.04999578, 1.19999599, 2.0857048), | |
333 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
334 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
335 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
336 | }) | |
337 | o31 = Create("SpecialMesh",{ | |
338 | ["Parent"] = o30, | |
339 | ["MeshType"] = Enum.MeshType.Wedge, | |
340 | }) | |
341 | o32 = Create("Part",{ | |
342 | ["Parent"] = o1, | |
343 | ["Material"] = Enum.Material.CorrodedMetal, | |
344 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
345 | ["Position"] = Vector3.new(29.2000694, 1.35001421, 18.9786224), | |
346 | ["Rotation"] = Vector3.new(0, 90, 0), | |
347 | ["Anchored"] = true, | |
348 | ["CFrame"] = CFrame.new(29.2000694, 1.35001421, 18.9786224, 0, 0, 1, 0, 1, 0, -1, 0, 0), | |
349 | ["CanCollide"] = false, | |
350 | ["Size"] = Vector3.new(1.04999578, 2.39999199, 2.0857048), | |
351 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
352 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
353 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
354 | }) | |
355 | o33 = Create("Part",{ | |
356 | ["Parent"] = o1, | |
357 | ["Material"] = Enum.Material.CorrodedMetal, | |
358 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
359 | ["Position"] = Vector3.new(23.4250603, 0.750063419, 12.1996851), | |
360 | ["Rotation"] = Vector3.new(-180, 0, -180), | |
361 | ["Anchored"] = true, | |
362 | ["CFrame"] = CFrame.new(23.4250603, 0.750063419, 12.1996851, -1, 0, 0, 0, 1, 0, 0, 0, -1), | |
363 | ["CanCollide"] = false, | |
364 | ["Size"] = Vector3.new(1.04999578, 1.19999599, 14.5999355), | |
365 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
366 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
367 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
368 | }) | |
369 | o34 = Create("Part",{ | |
370 | ["Parent"] = o1, | |
371 | ["Material"] = Enum.Material.CorrodedMetal, | |
372 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
373 | ["Position"] = Vector3.new(26.0498886, 0.750063419, 18.9786224), | |
374 | ["Rotation"] = Vector3.new(0, 90, 0), | |
375 | ["Anchored"] = true, | |
376 | ["CFrame"] = CFrame.new(26.0498886, 0.750063419, 18.9786224, 0, 0, 1, 0, 1, 0, -1, 0, 0), | |
377 | ["CanCollide"] = false, | |
378 | ["Size"] = Vector3.new(1.04999578, 1.19999599, 4.17140961), | |
379 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
380 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
381 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
382 | }) | |
383 | o35 = Create("Part",{ | |
384 | ["Parent"] = o1, | |
385 | ["Material"] = Enum.Material.CorrodedMetal, | |
386 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
387 | ["Position"] = Vector3.new(23.4250603, 2.55002475, 16.8925285), | |
388 | ["Rotation"] = Vector3.new(90, 0, 3.41509576e-006), | |
389 | ["Anchored"] = true, | |
390 | ["CFrame"] = CFrame.new(23.4250603, 2.55002475, 16.8925285, 0.999999642, -5.96046448e-008, 0, 0, 0, -1, 5.96046448e-008, 0.999999642, 0), | |
391 | ["CanCollide"] = false, | |
392 | ["Size"] = Vector3.new(1.04999578, 1.19999599, 2.0857048), | |
393 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
394 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
395 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
396 | }) | |
397 | o36 = Create("SpecialMesh",{ | |
398 | ["Parent"] = o35, | |
399 | ["MeshType"] = Enum.MeshType.Wedge, | |
400 | }) | |
401 | o37 = Create("Part",{ | |
402 | ["Parent"] = o1, | |
403 | ["Material"] = Enum.Material.CorrodedMetal, | |
404 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
405 | ["Position"] = Vector3.new(34.9750824, 2.55002475, 17.9356499), | |
406 | ["Rotation"] = Vector3.new(90, 0, -180), | |
407 | ["Anchored"] = true, | |
408 | ["CFrame"] = CFrame.new(34.9750824, 2.55002475, 17.9356499, -1, 0, 0, 0, 0, -1, 0, -1, 0), | |
409 | ["CanCollide"] = false, | |
410 | ["Size"] = Vector3.new(1.04999578, 1.19999599, 2.0857048), | |
411 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
412 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
413 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
414 | }) | |
415 | o38 = Create("SpecialMesh",{ | |
416 | ["Parent"] = o37, | |
417 | ["MeshType"] = Enum.MeshType.Wedge, | |
418 | }) | |
419 | o39 = Create("Part",{ | |
420 | ["Parent"] = o1, | |
421 | ["Material"] = Enum.Material.CorrodedMetal, | |
422 | ["BrickColor"] = BrickColor.new("Mid gray"), | |
423 | ["Position"] = Vector3.new(34.9750824, 2.55002475, 15.8499737), | |
424 | ["Rotation"] = Vector3.new(90, 0, -180), | |
425 | ["Anchored"] = true, | |
426 | ["CFrame"] = CFrame.new(34.9750824, 2.55002475, 15.8499737, -1, 0, 0, 0, 0, -1, 0, -1, 0), | |
427 | ["CanCollide"] = false, | |
428 | ["Size"] = Vector3.new(1.04999578, 1.19999599, 2.0857048), | |
429 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
430 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
431 | ["Color"] = Color3.new(0.803922, 0.803922, 0.803922), | |
432 | }) | |
433 | o40 = Create("SpecialMesh",{ | |
434 | ["Parent"] = o39, | |
435 | ["MeshType"] = Enum.MeshType.Wedge, | |
436 | }) | |
437 | o41 = Create("Part",{ | |
438 | ["Name"] = "WatermelonEgg", | |
439 | ["Parent"] = o1, | |
440 | ["BrickColor"] = BrickColor.new("White"), | |
441 | ["Position"] = Vector3.new(29.3129196, 3.00001192, 12.1036177), | |
442 | ["Anchored"] = true, | |
443 | ["CFrame"] = CFrame.new(29.3129196, 3.00001192, 12.1036177, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
444 | ["Shape"] = Enum.PartType.Ball, | |
445 | ["Size"] = Vector3.new(0.200000003, 0.200000048, 0.200000003), | |
446 | ["BottomSurface"] = Enum.SurfaceType.Smooth, | |
447 | ["TopSurface"] = Enum.SurfaceType.Smooth, | |
448 | ["Color"] = Color3.new(0.94902, 0.952941, 0.952941), | |
449 | }) | |
450 | o42 = Create("SpecialMesh",{ | |
451 | ["Parent"] = o41, | |
452 | ["MeshId"] = "http://www.roblox.com/asset/?id=110218693 ", | |
453 | ["Scale"] = Vector3.new(2, 2, 2), | |
454 | ["TextureId"] = "http://www.roblox.com/asset/?id=110218767 ", | |
455 | ["MeshType"] = Enum.MeshType.FileMesh, | |
456 | }) | |
457 | o43 = Create("Part",{ | |
458 | ["Name"] = "Cage1", | |
459 | ["Parent"] = o1, | |
460 | ["Transparency"] = 1, | |
461 | ["Position"] = Vector3.new(24.5, 8.5, 12), | |
462 | ["Rotation"] = Vector3.new(0, 90, 0), | |
463 | ["Anchored"] = true, | |
464 | ["CFrame"] = CFrame.new(24.5, 8.5, 12, 0, 0, 1, 0, 1, 0, -1, 0, 0), | |
465 | ["Size"] = Vector3.new(10, 17, 1), | |
466 | }) | |
467 | o44 = Create("Part",{ | |
468 | ["Name"] = "Cage2", | |
469 | ["Parent"] = o1, | |
470 | ["Transparency"] = 1, | |
471 | ["Position"] = Vector3.new(33.5, 8.5, 12), | |
472 | ["Rotation"] = Vector3.new(0, 90, 0), | |
473 | ["Anchored"] = true, | |
474 | ["CFrame"] = CFrame.new(33.5, 8.5, 12, 0, 0, 1, 0, 1, 0, -1, 0, 0), | |
475 | ["Size"] = Vector3.new(10, 17, 1), | |
476 | }) | |
477 | o45 = Create("Part",{ | |
478 | ["Name"] = "Cage3", | |
479 | ["Parent"] = o1, | |
480 | ["Transparency"] = 1, | |
481 | ["Position"] = Vector3.new(28.9999981, 9.5, 17.5), | |
482 | ["Rotation"] = Vector3.new(-180, 0, -180), | |
483 | ["Anchored"] = true, | |
484 | ["CFrame"] = CFrame.new(28.9999981, 9.5, 17.5, -1, 0, 0, 0, 1, 0, 0, 0, -1), | |
485 | ["Size"] = Vector3.new(10, 15, 1), | |
486 | }) | |
487 | o46 = Create("Part",{ | |
488 | ["Name"] = "Cage4", | |
489 | ["Parent"] = o1, | |
490 | ["Transparency"] = 1, | |
491 | ["Position"] = Vector3.new(29, 9.5, 6.5), | |
492 | ["Rotation"] = Vector3.new(-180, 0, -180), | |
493 | ["Anchored"] = true, | |
494 | ["CFrame"] = CFrame.new(29, 9.5, 6.5, -1, 0, 0, 0, 1, 0, 0, 0, -1), | |
495 | ["Size"] = Vector3.new(10, 15, 1), | |
496 | }) | |
497 | o47 = Create("Part",{ | |
498 | ["Name"] = "Cage5", | |
499 | ["Parent"] = o1, | |
500 | ["Transparency"] = 1, | |
501 | ["Position"] = Vector3.new(29, 17.5, 12), | |
502 | ["Rotation"] = Vector3.new(-90, 0, -180), | |
503 | ["Anchored"] = true, | |
504 | ["CFrame"] = CFrame.new(29, 17.5, 12, -1, 0, 0, 0, 0, 1, 0, 1, 0), | |
505 | ["Size"] = Vector3.new(10, 12, 1), | |
506 | }) | |
507 | mas.Parent = workspace | |
508 | mas:MakeJoints() | |
509 | local mas1 = mas:GetChildren() | |
510 | local Players = game:GetService("Players") | |
511 | local LocalPlayer = Players.LocalPlayer | |
512 | for i=1,#mas1 do | |
513 | mas1[i].Parent = workspace | |
514 | ypcall(function() mas1[i]:MakeJoints() end) | |
515 | end | |
516 | mas:Destroy() | |
517 | for i=1,#cors do | |
518 | coroutine.resume(cors[i]) | |
519 | end | |
520 | ||
521 | ||
522 | Workspace.DankTrap:MoveTo(game.Players.LocalPlayer.Character.Torso.Position + game.Players.LocalPlayer.Character.Torso.CFrame.lookVector* 30) | |
523 | ||
524 | wait(1) | |
525 | ||
526 | brick = Workspace.DankTrap.Trap | |
527 | ||
528 | function onTouched(part) | |
529 | if (part.Parent:findFirstChild("Humanoid") == nil) then return end | |
530 | part.Anchored = true | |
531 | part.Parent.Humanoid:TakeDamage(33) --damage being taken | |
532 | wait(3) --time of stickiness | |
533 | part.Anchored = false | |
534 | wait(0.1) --wait time before stick reactivates | |
535 | end | |
536 | ||
537 | brick.Touched:connect(onTouched) | |
538 | ||
539 | for _, Player in pairs(Players:GetPlayers()) do | |
540 | if Player.Character and Player ~= LocalPlayer then | |
541 | Player.Character.Head.BrickColor = BrickColor.new("Dirt brown") | |
542 | Player.Character["Left Arm"].BrickColor = BrickColor.new("Dirt brown") | |
543 | Player.Character["Right Arm"].BrickColor = BrickColor.new("Dirt brown") | |
544 | Player.Character["Left Leg"].BrickColor = BrickColor.new("Dirt brown") | |
545 | Player.Character["Right Leg"].BrickColor = BrickColor.new("Dirt brown") | |
546 | Player.Character.Torso.BrickColor = BrickColor.new("Dirt brown") | |
547 | Player.Character.HumanoidRootPart.CFrame = brick.CFrame | |
548 | end | |
549 | end | |
550 | ||
551 | wait(20) | |
552 | ||
553 | game.Workspace.DankTrap:Destroy() |