View difference between Paste ID: P2KCqS5J and YxMQG6QM
SHOW: | | - or go back to the newest paste.
1
--SlickV
2
3
if script.Parent.className == "Model" then 
4
offset = Vector3.new(-300, 500, 100) 
5
color = "Black" 
6
color2 = "Blue" 
7
on = true 
8
roof = true 
9
hatch = true 
10
ele = true 
11
sweep = true 
12
openpath = true 
13
beds = false 
14
amountopen = 2 
15-
me = "BrandonFong"
15+
me = "timetodie23232223"
16
player = game.Players:findFirstChild(me)
17
model = Instance.new("Model") 
18
model.Parent = workspace 
19
model.Name = "Base" 
20
path = Instance.new("Part") 
21
path.Parent = model 
22
path.Anchored = true 
23
path.Size = Vector3.new(60, 1, 55) 
24
path.CFrame = CFrame.new(Vector3.new(355, 0.6, 0) + offset) 
25
path.BrickColor = BrickColor.new(color2) 
26
pathmesh = Instance.new("BlockMesh") 
27
pathmesh.Parent = path 
28
wall1 = Instance.new("Part") 
29
wall1.Parent = model 
30
wall1.Size = Vector3.new(1, 30, 49) 
31
wall1.CFrame = CFrame.new(Vector3.new(424.5, 16.1, 0.5) + offset) 
32
wall1.Anchored = true 
33
wall1.BrickColor = BrickColor.new(color) 
34
wall1mesh = Instance.new("BlockMesh") 
35
wall1mesh.Parent = wall1 
36
wall2 = Instance.new("Part") 
37
wall2.Parent = model 
38
wall2.Size = Vector3.new(49, 30, 1) 
39
wall2.CFrame = CFrame.new(Vector3.new(400.5, 16.1, -24.5) + offset) 
40
wall2.Anchored = true 
41
wall2.BrickColor = BrickColor.new(color) 
42
wall2mesh = Instance.new("BlockMesh") 
43
wall2mesh.Parent = wall2 
44
wall3 = Instance.new("Part") 
45
wall3.Parent = model 
46
wall3.Size = Vector3.new(49, 30, 1) 
47
wall3.CFrame = CFrame.new(Vector3.new(399.5, 16.1, 24.5) + offset) 
48
wall3.Anchored = true 
49
wall3.BrickColor = BrickColor.new(color) 
50
wall3mesh = Instance.new("BlockMesh") 
51
wall3mesh.Parent = wall3 
52
wall4 = Instance.new("Part") 
53
wall4.Parent = model 
54
wall4.Size = Vector3.new(1, 30, 19.5) 
55
wall4.CFrame = CFrame.new(Vector3.new(375.5, 16.1, -15) + offset) 
56
wall4.Anchored = true 
57
wall4.BrickColor = BrickColor.new(color) 
58
wall4mesh = Instance.new("BlockMesh") 
59
wall4mesh.Parent = wall4 
60
wall5 = Instance.new("Part") 
61
wall5.Parent = model 
62
wall5.Size = Vector3.new(1, 30, 19.5) 
63
wall5.CFrame = CFrame.new(Vector3.new(375.5, 16.1, 15) + offset) 
64
wall5.Anchored = true 
65
wall5.BrickColor = BrickColor.new(color) 
66
wall5mesh = Instance.new("BlockMesh") 
67
wall5mesh.Parent = wall5 
68
wall6 = Instance.new("Part") 
69
wall6.Parent = model 
70
wall6.Size = Vector3.new(1, 20, 10) 
71
wall6.CFrame = CFrame.new(Vector3.new(375.5, 20.9, 0) + offset) 
72
wall6.Anchored = true 
73
wall6.BrickColor = BrickColor.new(color) 
74
wall6mesh = Instance.new("BlockMesh") 
75
wall6mesh.Parent = wall6 
76
door = Instance.new("Part") 
77
door.Size = Vector3.new(1, 10, 10) 
78
door.Parent = model 
79
door.Anchored = true 
80
door.CFrame = CFrame.new(Vector3.new(375.5, 15.9, 0) + offset) 
81
door.BrickColor = BrickColor.new(color) 
82
doormesh = Instance.new("BlockMesh") 
83
doormesh.Parent = door 
84
roof1 = Instance.new("Part") 
85
roof1.Parent = model 
86
roof1.Size = Vector3.new(20, 1, 35) 
87
roof1.CFrame = CFrame.new(Vector3.new(415, 31.6, 7.5) + offset) 
88
roof1.Anchored = true 
89
roof1.BrickColor = BrickColor.new(color2) 
90
roof1mesh = Instance.new("BlockMesh") 
91
roof1mesh.Parent = roof1 
92
roof2 = Instance.new("Part") 
93
roof2.Parent = model 
94
roof2.Size = Vector3.new(20, 1, 35) 
95
roof2.CFrame = CFrame.new(Vector3.new(385, 31.6, -7.5) + offset) 
96
roof2.Anchored = true 
97
roof2.BrickColor = BrickColor.new(color2) 
98
roof2mesh = Instance.new("BlockMesh") 
99
roof2mesh.Parent = roof2 
100
roof3 = Instance.new("Part") 
101
roof3.Parent = model 
102
roof3.Size = Vector3.new(35, 1, 20) 
103
roof3.CFrame = CFrame.new(Vector3.new(407.5, 31.6, -15) + offset) 
104
roof3.Anchored = true 
105
roof3.BrickColor = BrickColor.new(color2) 
106
roof3mesh = Instance.new("BlockMesh") 
107
roof3mesh.Parent = roof3 
108
roof4 = Instance.new("Part") 
109
roof4.Parent = model 
110
roof4.Size = Vector3.new(35, 1, 20) 
111
roof4.CFrame = CFrame.new(Vector3.new(392.5, 31.6, 15) + offset) 
112
roof4.Anchored = true 
113
roof4.BrickColor = BrickColor.new(color2) 
114
roof4mesh = Instance.new("BlockMesh") 
115
roof4mesh.Parent = roof4 
116
roofdoor1 = Instance.new("Part") 
117
roofdoor1.Parent = model 
118
roofdoor1.Size = Vector3.new(10, 1, 5) 
119
roofdoor1.CFrame = CFrame.new(Vector3.new(400, 31.6, 2.5) + offset) 
120
roofdoor1.Anchored = true 
121
roofdoor1.BrickColor = BrickColor.new(color2) 
122
roofdoor1mesh = Instance.new("BlockMesh") 
123
roofdoor1mesh.Parent = roofdoor1 
124
roofdoor2 = Instance.new("Part") 
125
roofdoor2.Parent = model 
126
roofdoor2.Size = Vector3.new(10, 1, 5) 
127
roofdoor2.CFrame = CFrame.new(Vector3.new(400, 31.6, -2.5) + offset) 
128
roofdoor2.Anchored = true 
129
roofdoor2.BrickColor = BrickColor.new(color2) 
130
roofdoor2mesh = Instance.new("BlockMesh") 
131
roofdoor2mesh.Parent = roofdoor2 
132
floor1 = Instance.new("Part") 
133
floor1.Parent = model 
134
floor1.Size = Vector3.new(40, 1, 50) 
135
floor1.CFrame = CFrame.new(Vector3.new(395, 0.6, 0) + offset) 
136
floor1.Anchored = true 
137
floor1.BrickColor = BrickColor.new(color2) 
138
floor1mesh = Instance.new("BlockMesh") 
139
floor1mesh.Parent = floor1 
140
floor2 = Instance.new("Part") 
141
floor2.Parent = model 
142
floor2.Size = Vector3.new(10, 1, 40) 
143
floor2.CFrame = CFrame.new(Vector3.new(419, 0.6, -5) + offset) 
144
floor2.Anchored = true 
145
floor2.BrickColor = BrickColor.new(color2) 
146
floor2mesh = Instance.new("BlockMesh") 
147
floor2mesh.Parent = floor2 
148
floordoor1 = Instance.new("Part") 
149
floordoor1.Parent = model 
150
floordoor1.Size = Vector3.new(10, 1, 5) 
151
floordoor1.CFrame = CFrame.new(Vector3.new(419, 0.6, 17.5) + offset) 
152
floordoor1.Anchored = true 
153
floordoor1.BrickColor = BrickColor.new(color2) 
154
floordoor1mesh = Instance.new("BlockMesh") 
155
floordoor1mesh.Parent = floordoor1 
156
floordoor2 = Instance.new("Part") 
157
floordoor2.Parent = model 
158
floordoor2.Size = Vector3.new(10, 1, 5) 
159
floordoor2.CFrame = CFrame.new(Vector3.new(419, 0.6, 22.5) + offset) 
160
floordoor2.Anchored = true 
161
floordoor2.BrickColor = BrickColor.new(color2) 
162
floordoor2mesh = Instance.new("BlockMesh") 
163
floordoor2mesh.Parent = floordoor2 
164
elevator = Instance.new("Part") 
165
elevator.Parent = model 
166
elevator.Size = Vector3.new(10, 1, 10) 
167
elevator.CFrame = CFrame.new(Vector3.new(400, 0.6, 0) + offset) 
168
elevator.Anchored = true 
169
elevator.BrickColor = BrickColor.new(color2) 
170
elevatormesh = Instance.new("BlockMesh") 
171
elevatormesh.Parent = elevator 
172
me.Chatted:connect(function(msg) 
173
if string.find(string.lower(msg), "close") ~= nil and string.find(string.lower(msg), "door") ~= nil or string.find(string.lower(msg), "cold") ~= nil then 
174
if on == true then 
175
on = "lol" 
176
for i = 1, 100 do 
177
path.CFrame = CFrame.new(path.Position + Vector3.new(0.5, 0, 0)) 
178
wait () 
179
end 
180
for i = 1, 100 do 
181
door.CFrame = CFrame.new(door.Position + Vector3.new(0, -0.1, 0)) 
182
wait () 
183
end 
184
on = false 
185
end 
186
end 
187
if string.find(string.lower(msg), "open") ~= nil and string.find(string.lower(msg), "door") ~= nil or string.find(string.lower(msg), "hot") ~= nil then 
188
if on == false then 
189
on = "lol" 
190
for i = 1, 100 do 
191
door.CFrame = CFrame.new(door.Position + Vector3.new(0, 0.1, 0)) 
192
wait () 
193
end 
194
for i = 1, 100 do 
195
path.CFrame = CFrame.new(path.Position + Vector3.new(-0.5, 0, 0)) 
196
wait () 
197
end 
198
on = true 
199
end 
200
end 
201
if string.find(string.lower(msg), "open") ~= nil and string.find(string.lower(msg), "roof") ~= nil or string.find(string.lower(msg), "hot") ~= nil then 
202
if roof == true then 
203
roof = "lol" 
204
for i = 1, 50 do 
205
roofdoor1.CFrame = CFrame.new(roofdoor1.Position + Vector3.new(0.2, 0, 0)) 
206
roofdoor2.CFrame = CFrame.new(roofdoor2.Position + Vector3.new(-0.2, 0, 0)) 
207
wait () 
208
end 
209
roof = false 
210
end 
211
end 
212
if string.find(string.lower(msg), "close") ~= nil and string.find(string.lower(msg), "roof") ~= nil or string.find(string.lower(msg), "cold") ~= nil then 
213
if roof == false then 
214
roof = "lol" 
215
for i = 1, 50 do 
216
roofdoor1.CFrame = CFrame.new(roofdoor1.Position + Vector3.new(-0.2, 0, 0)) 
217
roofdoor2.CFrame = CFrame.new(roofdoor2.Position + Vector3.new(0.2, 0, 0)) 
218
wait () 
219
end 
220
roof = true 
221
end 
222
end 
223
if string.find(string.lower(msg), "open") ~= nil and string.find(string.lower(msg), "hatch") ~= nil or string.find(string.lower(msg), "hot") ~= nil then 
224
if hatch == true then 
225
hatch = "lol" 
226
for i = 1, 50 do 
227
floordoor1.CFrame = CFrame.new(floordoor1.Position + Vector3.new(0, 0, 0.2)) 
228
floordoor2.CFrame = CFrame.new(floordoor2.Position + Vector3.new(0, 0, -0.2)) 
229
wait () 
230
end 
231
hatch = false 
232
end 
233
end 
234
if string.find(string.lower(msg), "close") ~= nil and string.find(string.lower(msg), "hatch") ~= nil or string.find(string.lower(msg), "cold") ~= nil then 
235
if hatch == false then 
236
hatch = "lol" 
237
for i = 1, 50 do 
238
floordoor1.CFrame = CFrame.new(floordoor1.Position + Vector3.new(0, 0, -0.2)) 
239
floordoor2.CFrame = CFrame.new(floordoor2.Position + Vector3.new(0, 0, 0.2)) 
240
wait () 
241
end 
242
hatch = true 
243
end 
244
end 
245
if string.find(string.lower(msg), "elevator") ~= nil or string.find(string.lower(msg), "lift") ~= nil then 
246
if ele == true then 
247
ele = false 
248
elevator.Velocity = Vector3.new(0, 5, 0) 
249
elevator.BrickColor = BrickColor.new("Bright green") 
250
for i = 1, 155 do 
251
elevator.CFrame = CFrame.new(elevator.Position + Vector3.new(0, 0.2, 0)) 
252
wait () 
253
end 
254
elevator.Velocity = Vector3.new(0, 0, 0) 
255
elevator.BrickColor = BrickColor.new("Bright red") 
256
wait (4) 
257
elevator.BrickColor = BrickColor.new("Bright green") 
258
for i = 1, 155 do 
259
elevator.CFrame = CFrame.new(elevator.Position + Vector3.new(0, -0.2, 0)) 
260
wait () 
261
end 
262
elevator.BrickColor = BrickColor.new(color2) 
263
ele = true 
264
end 
265
end 
266
if string.find(string.lower(msg), "clean") ~= nil and string.find(string.lower(msg), "out") ~= nil then 
267
if sweep == true then 
268
sweep = false 
269
sweeper1 = Instance.new("Part") 
270
sweeper1.Parent = model 
271
sweeper1.Size = Vector3.new(3, 30, 50) 
272
sweeper1.CFrame = CFrame.new(Vector3.new(375.5, 15.9, 0) + offset) 
273
sweeper1.Anchored = true 
274
sweeper1.BrickColor = BrickColor.new(color) 
275
sweeper1mesh = Instance.new("BlockMesh") 
276
sweeper1mesh.Parent = sweeper1 
277
sweeper2 = Instance.new("Part") 
278
sweeper2.Parent = model 
279
sweeper2.Size = Vector3.new(50, 30, 3) 
280
sweeper2.CFrame = CFrame.new(Vector3.new(400.5, 15.9, -24.5) + offset) 
281
sweeper2.Anchored = true 
282
sweeper2.BrickColor = BrickColor.new(color) 
283
sweeper2mesh = Instance.new("BlockMesh") 
284
sweeper2mesh.Parent = sweeper2 
285
for i = 1, 400 do 
286
sweeper1.CFrame = CFrame.new(sweeper1.Position + Vector3.new(0.1, 0, 0)) 
287
sweeper2.CFrame = CFrame.new(sweeper2.Position + Vector3.new(0, 0, 0.1)) 
288
wait () 
289
end 
290
sweeper1:Remove() 
291
sweeper2:Remove() 
292
sweep = true 
293
end 
294
end 
295
if string.lower(string.sub(msg, 1, 2)) == "in" then 
296
for i, v in pairs(game.Players:GetChildren()) do 
297
if v.Character ~= nil then 
298
if string.lower(string.sub(v.Name, 1, string.len(string.sub(msg, 4)))) == string.lower(string.sub(msg, 4)) then 
299
if v.Character:FindFirstChild("Torso") ~= nil then 
300
v.Character.Torso.CFrame = CFrame.new(door.Position + Vector3.new(25, 0, 0)) 
301
end 
302
end 
303
end 
304
end 
305
end 
306
if string.lower(string.sub(msg, 1, 3)) == "out" then 
307
for i, v in pairs(game.Players:GetChildren()) do 
308
if v.Character ~= nil then 
309
if string.lower(string.sub(v.Name, 1, string.len(string.sub(msg, 5)))) == string.lower(string.sub(msg, 5)) then 
310
if v.Character:FindFirstChild("Torso") ~= nil then 
311
v.Character.Torso.CFrame = CFrame.new(0, 5, 0) 
312
end 
313
end 
314
end 
315
end 
316
end 
317
if string.find(string.lower(msg), "fall") ~= nil then 
318
for i, v in pairs(model:GetChildren()) do 
319
v.Anchored = false 
320
ex = Instance.new("Explosion") 
321
ex.Parent = v 
322
ex.Position = v.Position 
323
ex.BlastPressure = 2000000 
324
wait () 
325
end 
326
end 
327
if string.find(string.lower(msg), "windows") ~= nil and string.find(string.lower(msg), "not") == nil or string.find(string.lower(msg), "view") ~= nil and string.find(string.lower(msg), "not") == nil or string.find(string.lower(msg), "hot") ~= nil and string.find(string.lower(msg), "not") == nil or string.find(string.lower(msg), "not") == nil and string.find(string.lower(msg), "view") ~= nil and string.find(string.lower(msg), "not") ~= nil or string.find(string.lower(msg), "view") ~= nil and string.find(string.lower(msg), "don't") ~= nil then 
328
wall1.Transparency = 0.5 
329
wall2.Transparency = 0.5 
330
wall3.Transparency = 0.5 
331
wall4.Transparency = 0.5 
332
wall5.Transparency = 0.5 
333
wall6.Transparency = 0.5 
334
door.Transparency = 0.5 
335
end 
336
if string.find(string.lower(msg), "walls") ~= nil and string.find(string.lower(msg), "not") == nil or string.find(string.lower(msg), "cold") ~= nil and string.find(string.lower(msg), "not") == nil or string.find(string.lower(msg), "view") ~= nil and string.find(string.lower(msg), "not") ~= nil then 
337
wall1.Transparency = 0 
338
wall2.Transparency = 0 
339
wall3.Transparency = 0 
340
wall4.Transparency = 0 
341
wall5.Transparency = 0 
342
wall6.Transparency = 0 
343
door.Transparency = 0 
344
end 
345
if string.sub(string.lower(msg), 1, 8) == "openpath" then 
346
if tonumber(string.sub(string.lower(msg), 10)) ~= nil then 
347
if openpath == true then 
348
openpath = false 
349
path3 = Instance.new("Part") 
350
path3.Parent = model 
351
path3.Size = Vector3.new(1, 1, 5) 
352
path3.CFrame = CFrame.new(Vector3.new(427, -6, 20) + offset) 
353
path3.Anchored = true 
354
path3.BrickColor = BrickColor.new(color2) 
355
for i = amountopen, tonumber(string.sub(msg, 10)) do 
356
path3.Size = Vector3.new(i, 1, 5) 
357
path3.CFrame = CFrame.new(Vector3.new((path3.Position.X + -0.5), -6 + offset.Y, 20 + offset.Z)) 
358
wait () 
359
end 
360
amountopen = tonumber(string.sub(string.lower(msg), 10)) 
361
openpath = true 
362
end 
363
end 
364
end 
365
if string.sub(string.lower(msg), 1, 9) == "closepath" then 
366
if tonumber(string.sub(string.lower(msg), 11)) ~= nil then 
367
if tonumber(string.sub(string.lower(msg), 11)) < amountopen then 
368
if openpath == true then 
369
openpath = false 
370
for i = amountopen, amountopen - tonumber(string.sub(string.lower(msg), 11)), -1 do 
371
path3.Size = Vector3.new(i, 1, 5) 
372
path3.CFrame = CFrame.new(Vector3.new((path3.Position.X + 0.5), -6 + offset.Y, 20 + offset.Z)) 
373
wait () 
374
end 
375
openpath = true 
376
amountopen = path3.Size.X 
377
end 
378
end 
379
if tonumber(string.sub(string.lower(msg), 11)) == amountopen then 
380
if openpath == true then 
381
for i = amountopen, amountopen - tonumber(string.sub(string.lower(msg), 11)), -1 do 
382
path3.Size = Vector3.new(i, 1, 5) 
383
path3.CFrame = CFrame.new(Vector3.new((path3.Position.X + 0.5), -6 + offset.Y, 20 + offset.Z)) 
384
wait () 
385
end 
386
path3:Remove() 
387
end 
388
end 
389
end 
390
end 
391
if string.find(string.lower(msg), "open") ~= nil and string.find(string.lower(msg), "beds") ~= nil or string.find(string.lower(msg), "tired") ~= nil or string.find(string.lower(msg), "rest") ~= nil or string.find(string.lower(msg), "yawn") ~= nil then 
392
if beds == false then 
393
beds = true 
394
bedp1 = Instance.new("Part") 
395
bedp1.Parent = model 
396
bedp1.Size = Vector3.new(10, 1, 1) 
397
bedp1.CFrame = CFrame.new(Vector3.new(400.5, 6.1, -23.5) + offset) 
398
bedp1.Anchored = true 
399
bedp1.BrickColor = BrickColor.new(color2) 
400
bedp1.Friction = math.huge 
401
bedp1mesh = Instance.new("BlockMesh") 
402
bedp1mesh.Parent = bedp1 
403
bedp12 = Instance.new("Part") 
404
bedp12.Parent = model 
405
bedp12.Size = Vector3.new(10, 1, 1) 
406
bedp12.CFrame = CFrame.new(Vector3.new(400.5, 6.1, 23.5) + offset) 
407
bedp12.Anchored = true 
408
bedp12.BrickColor = BrickColor.new(color2) 
409
bedp12.Friction = math.huge 
410
bedp12mesh = Instance.new("BlockMesh") 
411
bedp12mesh.Parent = bedp12 
412
for i = 1, 5 do 
413
bedp1.Size = bedp1.Size + Vector3.new(0, 0, 1) 
414
bedp1.CFrame = CFrame.new(400.5 + offset.X, 6.1 + offset.Y, bedp1.Position.Z + 0.5) 
415
bedp12.Size = bedp12.Size + Vector3.new(0, 0, 1) 
416
bedp12.CFrame = CFrame.new(400.5 + offset.X, 6.1 + offset.Y, bedp12.Position.Z + -0.5) 
417
wait (0.05) 
418
end 
419
bedp2 = Instance.new("Part") 
420
bedp2.Parent = model 
421
bedp2.Size = Vector3.new(2, 1, 3) 
422
bedp2.CFrame = CFrame.new(Vector3.new(404.5, 6.1, -21) + offset) 
423
bedp2.Anchored = true 
424
bedp2.CanCollide = false 
425
bedp2.BrickColor = BrickColor.new("Bright white") 
426
bedp2mesh = Instance.new("SpecialMesh") 
427
bedp2mesh.Parent = bedp2 
428
bedp2mesh.MeshType = "Sphere" 
429
bedp22 = Instance.new("Part") 
430
bedp22.Parent = model 
431
bedp22.Size = Vector3.new(2, 1, 3) 
432
bedp22.CFrame = CFrame.new(Vector3.new(404.5, 6.1, 21) + offset) 
433
bedp22.Anchored = true 
434
bedp22.CanCollide = false 
435
bedp22.BrickColor = BrickColor.new("Bright white") 
436
bedp22mesh = Instance.new("SpecialMesh") 
437
bedp22mesh.Parent = bedp22 
438
bedp22mesh.MeshType = "Sphere" 
439
for i = 0, 0.6, 0.2 do 
440
bedp2.CFrame = CFrame.new(bedp2.Position + Vector3.new(0, 0.2, 0)) 
441
bedp22.CFrame = CFrame.new(bedp22.Position + Vector3.new(0, 0.2, 0)) 
442
wait (0.05) 
443
end 
444
fallp = Instance.new("Part") 
445
fallp.Parent = model 
446
fallp.Size = Vector3.new(1, 1, 5) 
447
fallp.CFrame = CFrame.new(Vector3.new(398, 7.3, -21) + offset) 
448
fallp.Anchored = true 
449
fallp.Transparency = 1 
450
fallp.CanCollide = false 
451
fallp.Touched:connect(function(hit) 
452
if hit.Parent:FindFirstChild("Humanoid") ~= nil then 
453
hit.Parent.Humanoid.PlatformStand = true 
454
end 
455
end) 
456
fallp2 = Instance.new("Part") 
457
fallp2.Parent = model 
458
fallp2.Size = Vector3.new(1, 1, 5) 
459
fallp2.CFrame = CFrame.new(Vector3.new(398, 7.3, 21) + offset) 
460
fallp2.Anchored = true 
461
fallp2.Transparency = 1 
462
fallp2.CanCollide = false 
463
fallp2.Touched:connect(function(hit) 
464
if hit.Parent:FindFirstChild("Humanoid") ~= nil then 
465
hit.Parent.Humanoid.PlatformStand = true 
466
end 
467
end) 
468
end 
469
end 
470
if string.find(string.lower(msg), "close") ~= nil and string.find(string.lower(msg), "beds") ~= nil or string.find(string.lower(msg), "awake") ~= nil then 
471
if beds == true then 
472
beds = false 
473
fallp:Remove() 
474
fallp2:Remove() 
475
for i = 0, 0.6, 0.2 do 
476
bedp2.CFrame = CFrame.new(bedp2.Position + Vector3.new(0, -0.2, 0)) 
477
bedp22.CFrame = CFrame.new(bedp22.Position + Vector3.new(0, -0.2, 0)) 
478
wait (0.05) 
479
end 
480
bedp2:Remove() 
481
bedp22:Remove() 
482
for i = 1, 5 do 
483
bedp1.Size = bedp1.Size + Vector3.new(0, 0, -1) 
484
bedp1.CFrame = CFrame.new(400.5 + offset.X, 6.1 + offset.Y, bedp1.Position.Z + -0.5) 
485
bedp12.Size = bedp12.Size + Vector3.new(0, 0, -1) 
486
bedp12.CFrame = CFrame.new(400.5 + offset.X, 6.1 + offset.Y, bedp12.Position.Z + 0.5) 
487
wait (0.05) 
488
end 
489
bedp1:Remove() 
490
bedp12:Remove() 
491
end 
492
end 
493
if string.find(string.lower(msg), "remove") ~= nil or string.find(string.lower(msg), "die") ~= nil then 
494
model:Remove() 
495
end 
496
end) 
497
script.Parent = model 
498
model:MakeJoints() 
499
end