View difference between Paste ID: cc4eXCA3 and XihQerTg
SHOW: | | - or go back to the newest paste.
1-
workspace.PGSPhysicsSolverEnabled = false --this to make it work
1+
2-
--ELEVATOR
2+
3
	local env = getfenv(func)
4
	local newenv = setmetatable({},{
5
		__index = function(self,k)
6
			if k=="script" then
7
				return var
8
			else
9
				return env[k]
10
			end
11
		end,
12
	})
13
	setfenv(func,newenv)
14
	return func
15
end
16
cors = {}
17
mas = Instance.new("Model",game:GetService("Lighting"))
18
Part0 = Instance.new("Part")
19
Model1 = Instance.new("Model")
20
Model2 = Instance.new("Model")
21
Model3 = Instance.new("Model")
22
Part4 = Instance.new("Part")
23
Decal5 = Instance.new("Decal")
24
BlockMesh6 = Instance.new("BlockMesh")
25
Part7 = Instance.new("Part")
26
BlockMesh8 = Instance.new("BlockMesh")
27
Part9 = Instance.new("Part")
28
SurfaceGui10 = Instance.new("SurfaceGui")
29
Frame11 = Instance.new("Frame")
30
TextLabel12 = Instance.new("TextLabel")
31
ImageLabel13 = Instance.new("ImageLabel")
32
BlockMesh14 = Instance.new("BlockMesh")
33
Part15 = Instance.new("Part")
34
Part16 = Instance.new("Part")
35
Part17 = Instance.new("Part")
36
Part18 = Instance.new("Part")
37
Part19 = Instance.new("Part")
38
Part20 = Instance.new("Part")
39
Decal21 = Instance.new("Decal")
40
IntValue22 = Instance.new("IntValue")
41
BlockMesh23 = Instance.new("BlockMesh")
42
Part24 = Instance.new("Part")
43
Decal25 = Instance.new("Decal")
44
BlockMesh26 = Instance.new("BlockMesh")
45
ClickDetector27 = Instance.new("ClickDetector")
46
Decal28 = Instance.new("Decal")
47
Part29 = Instance.new("Part")
48
BlockMesh30 = Instance.new("BlockMesh")
49
Part31 = Instance.new("Part")
50
Part32 = Instance.new("Part")
51
Model33 = Instance.new("Model")
52
Part34 = Instance.new("Part")
53
Part35 = Instance.new("Part")
54
Part36 = Instance.new("Part")
55
Part37 = Instance.new("Part")
56
Model38 = Instance.new("Model")
57
Part39 = Instance.new("Part")
58
Part40 = Instance.new("Part")
59
Model41 = Instance.new("Model")
60
Part42 = Instance.new("Part")
61
BlockMesh43 = Instance.new("BlockMesh")
62
Part44 = Instance.new("Part")
63
Part45 = Instance.new("Part")
64
Part46 = Instance.new("Part")
65
Part47 = Instance.new("Part")
66
Part48 = Instance.new("Part")
67
Part49 = Instance.new("Part")
68
Decal50 = Instance.new("Decal")
69
IntValue51 = Instance.new("IntValue")
70
BlockMesh52 = Instance.new("BlockMesh")
71
Part53 = Instance.new("Part")
72
Decal54 = Instance.new("Decal")
73
BlockMesh55 = Instance.new("BlockMesh")
74
ClickDetector56 = Instance.new("ClickDetector")
75
Decal57 = Instance.new("Decal")
76
Part58 = Instance.new("Part")
77
Part59 = Instance.new("Part")
78
Part60 = Instance.new("Part")
79
Part61 = Instance.new("Part")
80
Part62 = Instance.new("Part")
81
Part63 = Instance.new("Part")
82
Model64 = Instance.new("Model")
83
Part65 = Instance.new("Part")
84
Model66 = Instance.new("Model")
85
Part67 = Instance.new("Part")
86
Model68 = Instance.new("Model")
87
StringValue69 = Instance.new("StringValue")
88
BoolValue70 = Instance.new("BoolValue")
89
NumberValue71 = Instance.new("NumberValue")
90
Script72 = Instance.new("Script")
91
NumberValue73 = Instance.new("NumberValue")
92
Script74 = Instance.new("Script")
93
NumberValue75 = Instance.new("NumberValue")
94
NumberValue76 = Instance.new("NumberValue")
95
NumberValue77 = Instance.new("NumberValue")
96
Model78 = Instance.new("Model")
97
Part79 = Instance.new("Part")
98
Part80 = Instance.new("Part")
99
Part81 = Instance.new("Part")
100
Part82 = Instance.new("Part")
101
Part83 = Instance.new("Part")
102
Part84 = Instance.new("Part")
103
Part85 = Instance.new("Part")
104
Part86 = Instance.new("Part")
105
Part87 = Instance.new("Part")
106
Part88 = Instance.new("Part")
107
Part89 = Instance.new("Part")
108
BlockMesh90 = Instance.new("BlockMesh")
109
Decal91 = Instance.new("Decal")
110
Model92 = Instance.new("Model")
111
Part93 = Instance.new("Part")
112
Part94 = Instance.new("Part")
113
Part95 = Instance.new("Part")
114
PointLight96 = Instance.new("PointLight")
115
Part97 = Instance.new("Part")
116
Part98 = Instance.new("Part")
117
Part99 = Instance.new("Part")
118
Part100 = Instance.new("Part")
119
Part101 = Instance.new("Part")
120
Decal102 = Instance.new("Decal")
121
Part103 = Instance.new("Part")
122
Part104 = Instance.new("Part")
123
Part105 = Instance.new("Part")
124
Model106 = Instance.new("Model")
125
Part107 = Instance.new("Part")
126
Part108 = Instance.new("Part")
127
Part109 = Instance.new("Part")
128
Sound110 = Instance.new("Sound")
129
Sound111 = Instance.new("Sound")
130
BodyGyro112 = Instance.new("BodyGyro")
131
BodyPosition113 = Instance.new("BodyPosition")
132
BodyVelocity114 = Instance.new("BodyVelocity")
133
Sound115 = Instance.new("Sound")
134
Sound116 = Instance.new("Sound")
135
Sound117 = Instance.new("Sound")
136
Part118 = Instance.new("Part")
137
BlockMesh119 = Instance.new("BlockMesh")
138
Decal120 = Instance.new("Decal")
139
IntValue121 = Instance.new("IntValue")
140
Part122 = Instance.new("Part")
141
Part123 = Instance.new("Part")
142
Part124 = Instance.new("Part")
143
Part125 = Instance.new("Part")
144
Part126 = Instance.new("Part")
145
Part127 = Instance.new("Part")
146
Part128 = Instance.new("Part")
147
Decal129 = Instance.new("Decal")
148
BlockMesh130 = Instance.new("BlockMesh")
149
ClickDetector131 = Instance.new("ClickDetector")
150
Decal132 = Instance.new("Decal")
151
Decal133 = Instance.new("Decal")
152
Part134 = Instance.new("Part")
153
Decal135 = Instance.new("Decal")
154
BlockMesh136 = Instance.new("BlockMesh")
155
ClickDetector137 = Instance.new("ClickDetector")
156
Decal138 = Instance.new("Decal")
157
Decal139 = Instance.new("Decal")
158
Part140 = Instance.new("Part")
159
SurfaceGui141 = Instance.new("SurfaceGui")
160
Frame142 = Instance.new("Frame")
161
TextLabel143 = Instance.new("TextLabel")
162
ImageLabel144 = Instance.new("ImageLabel")
163
TextBox145 = Instance.new("TextBox")
164
Part146 = Instance.new("Part")
165
Part147 = Instance.new("Part")
166
Decal148 = Instance.new("Decal")
167
BlockMesh149 = Instance.new("BlockMesh")
168
ClickDetector150 = Instance.new("ClickDetector")
169
Decal151 = Instance.new("Decal")
170
Decal152 = Instance.new("Decal")
171
Part153 = Instance.new("Part")
172
Decal154 = Instance.new("Decal")
173
BlockMesh155 = Instance.new("BlockMesh")
174
ClickDetector156 = Instance.new("ClickDetector")
175
Decal157 = Instance.new("Decal")
176
Decal158 = Instance.new("Decal")
177
Part159 = Instance.new("Part")
178
Part160 = Instance.new("Part")
179
Script161 = Instance.new("Script")
180
BoolValue162 = Instance.new("BoolValue")
181
BoolValue163 = Instance.new("BoolValue")
182
NumberValue164 = Instance.new("NumberValue")
183
BoolValue165 = Instance.new("BoolValue")
184
BoolValue166 = Instance.new("BoolValue")
185
BoolValue167 = Instance.new("BoolValue")
186
Script168 = Instance.new("Script")
187
Model169 = Instance.new("Model")
188
Part170 = Instance.new("Part")
189
Model171 = Instance.new("Model")
190
Part172 = Instance.new("Part")
191
Model173 = Instance.new("Model")
192
Part174 = Instance.new("Part")
193
Part175 = Instance.new("Part")
194
Part176 = Instance.new("Part")
195
Part177 = Instance.new("Part")
196
Part178 = Instance.new("Part")
197
Part179 = Instance.new("Part")
198
Part180 = Instance.new("Part")
199
Part181 = Instance.new("Part")
200
Model182 = Instance.new("Model")
201
Part183 = Instance.new("Part")
202
Motor6D184 = Instance.new("Motor6D")
203
Part185 = Instance.new("Part")
204
Motor6D186 = Instance.new("Motor6D")
205
Motor6D187 = Instance.new("Motor6D")
206
Motor6D188 = Instance.new("Motor6D")
207
Motor6D189 = Instance.new("Motor6D")
208
Motor6D190 = Instance.new("Motor6D")
209
BodyForce191 = Instance.new("BodyForce")
210
Part192 = Instance.new("Part")
211
Part193 = Instance.new("Part")
212
Part194 = Instance.new("Part")
213
Part195 = Instance.new("Part")
214
Part196 = Instance.new("Part")
215
Decal197 = Instance.new("Decal")
216
SpecialMesh198 = Instance.new("SpecialMesh")
217
Humanoid199 = Instance.new("Humanoid")
218
Script200 = Instance.new("Script")
219
StringValue201 = Instance.new("StringValue")
220
Animation202 = Instance.new("Animation")
221
StringValue203 = Instance.new("StringValue")
222
Animation204 = Instance.new("Animation")
223
StringValue205 = Instance.new("StringValue")
224
Animation206 = Instance.new("Animation")
225
NumberValue207 = Instance.new("NumberValue")
226
Animation208 = Instance.new("Animation")
227
NumberValue209 = Instance.new("NumberValue")
228
StringValue210 = Instance.new("StringValue")
229
Animation211 = Instance.new("Animation")
230
StringValue212 = Instance.new("StringValue")
231
Animation213 = Instance.new("Animation")
232
StringValue214 = Instance.new("StringValue")
233
Animation215 = Instance.new("Animation")
234
StringValue216 = Instance.new("StringValue")
235
Animation217 = Instance.new("Animation")
236
Script218 = Instance.new("Script")
237
BillboardGui219 = Instance.new("BillboardGui")
238
TextLabel220 = Instance.new("TextLabel")
239
Configuration221 = Instance.new("Configuration")
240
Configuration222 = Instance.new("Configuration")
241
IntValue223 = Instance.new("IntValue")
242
BoolValue224 = Instance.new("BoolValue")
243
IntValue225 = Instance.new("IntValue")
244
IntValue226 = Instance.new("IntValue")
245
Configuration227 = Instance.new("Configuration")
246
Animation228 = Instance.new("Animation")
247
Animation229 = Instance.new("Animation")
248
CharacterMesh230 = Instance.new("CharacterMesh")
249
CharacterMesh231 = Instance.new("CharacterMesh")
250
CharacterMesh232 = Instance.new("CharacterMesh")
251
CharacterMesh233 = Instance.new("CharacterMesh")
252
CharacterMesh234 = Instance.new("CharacterMesh")
253
Sound235 = Instance.new("Sound")
254
BodyColors236 = Instance.new("BodyColors")
255
Model1.Name = "Teknikk FramCo Gen4 MRL"
256
Model1.Parent = mas
257
Model2.Name = "Floors"
258
Model2.Parent = Model1
259
Model3.Name = "Floor1"
260
Model3.Parent = Model2
261
Part4.Name = "DirIndUp2"
262
Part4.Parent = Model3
263
Part4.Material = Enum.Material.SmoothPlastic
264
Part4.BrickColor = BrickColor.new("Really black")
265
Part4.Transparency = 1
266
Part4.Rotation = Vector3.new(0, 90, 0)
267
Part4.FormFactor = Enum.FormFactor.Custom
268
Part4.Size = Vector3.new(0.200000003, 0.400000006, 0.699999988)
269
Part4.CFrame = CFrame.new(-5.18435812, 10.0125999, -3.73449302, 0, 0, 1, 1.14014131e-10, 1, 0, -1, -1.14014131e-10, 0)
270
Part4.BackSurface = Enum.SurfaceType.Weld
271
Part4.BottomSurface = Enum.SurfaceType.Smooth
272
Part4.RightSurface = Enum.SurfaceType.Weld
273
Part4.TopSurface = Enum.SurfaceType.Smooth
274
Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
275
Part4.Position = Vector3.new(-5.18435812, 10.0125999, -3.73449302)
276
Part4.Orientation = Vector3.new(0, 90, 0)
277
Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
278
Decal5.Parent = Part4
279
Decal5.Texture = "http://www.roblox.com/asset/?id=73327045"
280
Decal5.Face = Enum.NormalId.Left
281
BlockMesh6.Parent = Part4
282
BlockMesh6.Offset = Vector3.new(0.100000001, 0, 0)
283
BlockMesh6.Scale = Vector3.new(0.100000001, 1, 1)
284
BlockMesh6.Scale = Vector3.new(0.100000001, 1, 1)
285
Part7.Name = "DirectionInd"
286
Part7.Parent = Model3
287
Part7.Material = Enum.Material.SmoothPlastic
288
Part7.BrickColor = BrickColor.new("Black")
289
Part7.Rotation = Vector3.new(-180, 0, 180)
290
Part7.Anchored = true
291
Part7.FormFactor = Enum.FormFactor.Custom
292
Part7.Size = Vector3.new(0.800000727, 0.800000012, 0.200000003)
293
Part7.CFrame = CFrame.new(-7.18435812, 10.0125599, -3.93450594, -1.00000608, -8.60058753e-06, -5.36581501e-06, -8.60027285e-06, 1.00000346, 4.60103865e-06, 5.4250122e-06, 4.59702551e-06, -1.00000596)
294
Part7.BackSurface = Enum.SurfaceType.Weld
295
Part7.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
296
Part7.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
297
Part7.LeftSurface = Enum.SurfaceType.Weld
298
Part7.TopSurface = Enum.SurfaceType.Smooth
299
Part7.Color = Color3.new(0.105882, 0.164706, 0.207843)
300
Part7.Position = Vector3.new(-7.18435812, 10.0125599, -3.93450594)
301
Part7.Orientation = Vector3.new(0, -180, 0)
302
Part7.Color = Color3.new(0.105882, 0.164706, 0.207843)
303
BlockMesh8.Parent = Part7
304
BlockMesh8.Scale = Vector3.new(0.899999976, 0.800000012, 1)
305
BlockMesh8.Scale = Vector3.new(0.899999976, 0.800000012, 1)
306
Part9.Name = "FloorIndicator"
307
Part9.Parent = Model3
308
Part9.Material = Enum.Material.SmoothPlastic
309
Part9.BrickColor = BrickColor.new("Really black")
310
Part9.Rotation = Vector3.new(0, 90, 0)
311
Part9.FormFactor = Enum.FormFactor.Custom
312
Part9.Size = Vector3.new(0.200000003, 0.800000012, 1.20000005)
313
Part9.CFrame = CFrame.new(-6.18435812, 10.0125599, -3.93450594, -5.36558218e-06, -8.58379644e-06, 1, 4.58869863e-06, 1, 8.58382191e-06, -1, 4.58853492e-06, -5.36555308e-06)
314
Part9.BackSurface = Enum.SurfaceType.Weld
315
Part9.BottomSurface = Enum.SurfaceType.Weld
316
Part9.FrontSurface = Enum.SurfaceType.Weld
317
Part9.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
318
Part9.RightSurface = Enum.SurfaceType.Weld
319
Part9.TopSurface = Enum.SurfaceType.Weld
320
Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
321
Part9.Position = Vector3.new(-6.18435812, 10.0125599, -3.93450594)
322
Part9.Orientation = Vector3.new(0, 90, 0)
323
Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
324
SurfaceGui10.Parent = Part9
325
SurfaceGui10.Face = Enum.NormalId.Left
326
SurfaceGui10.CanvasSize = Vector2.new(100, 50)
327
Frame11.Parent = SurfaceGui10
328
Frame11.Transparency = 1
329
Frame11.Size = UDim2.new(1, 0, 0.75, 0)
330
Frame11.Position = UDim2.new(0, 0, 0.119999997, 0)
331
Frame11.BackgroundColor3 = Color3.new(0.364706, 0, 0)
332
Frame11.BackgroundTransparency = 1
333
Frame11.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
334
Frame11.BorderSizePixel = 0
335
Frame11.ClipsDescendants = true
336
TextLabel12.Name = "Indicator"
337
TextLabel12.Parent = Frame11
338
TextLabel12.Transparency = 1
339
TextLabel12.Size = UDim2.new(0, 50, 0, 34)
340
TextLabel12.Text = "1"
341
TextLabel12.Position = UDim2.new(0, 50, 0, 2)
342
TextLabel12.BackgroundColor3 = Color3.new(0.541176, 1, 0.0196078)
343
TextLabel12.BackgroundTransparency = 1
344
TextLabel12.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
345
TextLabel12.ZIndex = 2
346
TextLabel12.Font = Enum.Font.SourceSans
347
TextLabel12.FontSize = Enum.FontSize.Size48
348
TextLabel12.TextColor3 = Color3.new(0.298039, 1, 0)
349
ImageLabel13.Name = "Arrow"
350
ImageLabel13.Parent = Frame11
351
ImageLabel13.Transparency = 1
352
ImageLabel13.Size = UDim2.new(0, 16, 0, 34)
353
ImageLabel13.Position = UDim2.new(0, 1, 0, 2)
354
ImageLabel13.BackgroundColor3 = Color3.new(1, 1, 1)
355
ImageLabel13.BackgroundTransparency = 1
356
ImageLabel13.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
357
ImageLabel13.BorderSizePixel = 0
358
ImageLabel13.Image = "rbxassetid://0"
359
BlockMesh14.Parent = Part9
360
BlockMesh14.Scale = Vector3.new(1, 0.800000012, 1.07000005)
361
BlockMesh14.Scale = Vector3.new(1, 0.800000012, 1.07000005)
362
Part15.Name = "ShaftSupport"
363
Part15.Parent = Model3
364
Part15.Material = Enum.Material.SmoothPlastic
365
Part15.BrickColor = BrickColor.new("Dark stone grey")
366
Part15.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
367
Part15.Anchored = true
368
Part15.Elasticity = 0
369
Part15.FormFactor = Enum.FormFactor.Custom
370
Part15.Friction = 0
371
Part15.Size = Vector3.new(8.79999924, 2.4000001, 0.400000036)
372
Part15.CFrame = CFrame.new(-6.17221212, 10.6013279, -4.64062119, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
373
Part15.BottomSurface = Enum.SurfaceType.Smooth
374
Part15.TopSurface = Enum.SurfaceType.Smooth
375
Part15.Color = Color3.new(0.388235, 0.372549, 0.384314)
376
Part15.Position = Vector3.new(-6.17221212, 10.6013279, -4.64062119)
377
Part15.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
378
Part15.Color = Color3.new(0.388235, 0.372549, 0.384314)
379
Part16.Parent = Model3
380
Part16.Material = Enum.Material.SmoothPlastic
381
Part16.Transparency = 0.5
382
Part16.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
383
Part16.Anchored = true
384
Part16.FormFactor = Enum.FormFactor.Custom
385
Part16.Size = Vector3.new(10.8000021, 2.39999723, 0.400000036)
386
Part16.CFrame = CFrame.new(-6.1723938, 10.6001139, -4.24059677, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
387
Part16.TopSurface = Enum.SurfaceType.SmoothNoOutlines
388
Part16.Position = Vector3.new(-6.1723938, 10.6001139, -4.24059677)
389
Part16.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
390
Part17.Name = "ElevatorDoorFrame"
391
Part17.Parent = Model3
392
Part17.Material = Enum.Material.SmoothPlastic
393
Part17.BrickColor = BrickColor.new("Dark stone grey")
394
Part17.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
395
Part17.Anchored = true
396
Part17.FormFactor = Enum.FormFactor.Custom
397
Part17.Size = Vector3.new(4.80000067, 0.200000003, 0.400000036)
398
Part17.CFrame = CFrame.new(-6.1723938, 9.30062199, -4.24303818, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
399
Part17.BackSurface = Enum.SurfaceType.SmoothNoOutlines
400
Part17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
401
Part17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
402
Part17.LeftSurface = Enum.SurfaceType.Weld
403
Part17.TopSurface = Enum.SurfaceType.Weld
404
Part17.Color = Color3.new(0.388235, 0.372549, 0.384314)
405
Part17.Position = Vector3.new(-6.1723938, 9.30062199, -4.24303818)
406
Part17.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
407
Part17.Color = Color3.new(0.388235, 0.372549, 0.384314)
408
Part18.Name = "ShaftSupport"
409
Part18.Parent = Model3
410
Part18.Material = Enum.Material.SmoothPlastic
411
Part18.BrickColor = BrickColor.new("Dark stone grey")
412
Part18.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
413
Part18.Anchored = true
414
Part18.Elasticity = 0
415
Part18.FormFactor = Enum.FormFactor.Custom
416
Part18.Friction = 0
417
Part18.Size = Vector3.new(0.999998152, 11.7999964, 0.600000024)
418
Part18.CFrame = CFrame.new(-1.27212596, 5.90295982, -4.74725008, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
419
Part18.BottomSurface = Enum.SurfaceType.Smooth
420
Part18.TopSurface = Enum.SurfaceType.Smooth
421
Part18.Color = Color3.new(0.388235, 0.372549, 0.384314)
422
Part18.Position = Vector3.new(-1.27212596, 5.90295982, -4.74725008)
423
Part18.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
424
Part18.Color = Color3.new(0.388235, 0.372549, 0.384314)
425
Part19.Parent = Model3
426
Part19.Material = Enum.Material.SmoothPlastic
427
Part19.Transparency = 0.5
428
Part19.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
429
Part19.Anchored = true
430
Part19.FormFactor = Enum.FormFactor.Custom
431
Part19.Size = Vector3.new(3.00000429, 8.19999981, 0.400000036)
432
Part19.CFrame = CFrame.new(-2.27227807, 5.30211306, -4.2488389, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
433
Part19.TopSurface = Enum.SurfaceType.SmoothNoOutlines
434
Part19.Position = Vector3.new(-2.27227807, 5.30211306, -4.2488389)
435
Part19.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
436
Part20.Name = "DirIndUp1"
437
Part20.Parent = Model3
438
Part20.Material = Enum.Material.SmoothPlastic
439
Part20.BrickColor = BrickColor.new("Really black")
440
Part20.Transparency = 1
441
Part20.Rotation = Vector3.new(0, 90, 0)
442
Part20.FormFactor = Enum.FormFactor.Custom
443
Part20.Size = Vector3.new(0.200000003, 0.400000006, 0.699999988)
444
Part20.CFrame = CFrame.new(-7.18435812, 10.0125599, -3.73449302, -5.43447095e-06, -2.10475264e-08, 1, 4.60185311e-06, 1, 2.10720827e-08, -1, 4.60165847e-06, -5.43450005e-06)
445
Part20.BackSurface = Enum.SurfaceType.Weld
446
Part20.BottomSurface = Enum.SurfaceType.Smooth
447
Part20.RightSurface = Enum.SurfaceType.Weld
448
Part20.TopSurface = Enum.SurfaceType.Smooth
449
Part20.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
450
Part20.Position = Vector3.new(-7.18435812, 10.0125599, -3.73449302)
451
Part20.Orientation = Vector3.new(0, 90, 0)
452
Part20.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
453
Decal21.Parent = Part20
454
Decal21.Texture = "http://www.roblox.com/asset/?id=73327045"
455
Decal21.Face = Enum.NormalId.Left
456
IntValue22.Name = "Reverse"
457
IntValue22.Parent = Part20
458
BlockMesh23.Parent = Part20
459
BlockMesh23.Offset = Vector3.new(0.100000001, 0, 0)
460
BlockMesh23.Scale = Vector3.new(0.100000001, 1, 1)
461
BlockMesh23.Scale = Vector3.new(0.100000001, 1, 1)
462
Part24.Name = "CallButton"
463
Part24.Parent = Model3
464
Part24.Material = Enum.Material.SmoothPlastic
465
Part24.BrickColor = BrickColor.new("Black")
466
Part24.Transparency = 1
467
Part24.Rotation = Vector3.new(0.109999999, 90, 0)
468
Part24.Anchored = true
469
Part24.FormFactor = Enum.FormFactor.Custom
470
Part24.Size = Vector3.new(0.200000003, 0.400000036, 0.400000036)
471
Part24.CFrame = CFrame.new(-2.97207594, 4.80145884, -3.89617896, 0.000472320389, -9.25954828e-06, 1.00000703, 0.00190410239, 1.00000203, 8.35981155e-06, -1.00000536, 0.00190410228, 0.000472307322)
472
Part24.BackSurface = Enum.SurfaceType.SmoothNoOutlines
473
Part24.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
474
Part24.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
475
Part24.RightSurface = Enum.SurfaceType.Weld
476
Part24.TopSurface = Enum.SurfaceType.SmoothNoOutlines
477
Part24.Color = Color3.new(0.105882, 0.164706, 0.207843)
478
Part24.Position = Vector3.new(-2.97207594, 4.80145884, -3.89617896)
479
Part24.Orientation = Vector3.new(0, 89.9700012, 0.109999999)
480
Part24.Color = Color3.new(0.105882, 0.164706, 0.207843)
481
Decal25.Name = "Texture"
482
Decal25.Parent = Part24
483
Decal25.Texture = "http://www.roblox.com/asset/?id=144877756"
484
Decal25.Face = Enum.NormalId.Left
485
BlockMesh26.Parent = Part24
486
BlockMesh26.Offset = Vector3.new(0.100000001, 0, 0)
487
BlockMesh26.Scale = Vector3.new(0.0500000007, 1, 1)
488
BlockMesh26.Scale = Vector3.new(0.0500000007, 1, 1)
489
ClickDetector27.Parent = Part24
490
Decal28.Parent = Part24
491
Decal28.Texture = "http://www.roblox.com/asset/?id=145261845"
492
Decal28.Face = Enum.NormalId.Left
493
Part29.Name = "DirectionInd"
494
Part29.Parent = Model3
495
Part29.Material = Enum.Material.SmoothPlastic
496
Part29.BrickColor = BrickColor.new("Black")
497
Part29.Rotation = Vector3.new(-180, 0, 180)
498
Part29.Anchored = true
499
Part29.FormFactor = Enum.FormFactor.Custom
500
Part29.Size = Vector3.new(0.800000727, 0.800000012, 0.200000003)
501
Part29.CFrame = CFrame.new(-5.18435812, 10.0125599, -3.93456697, -1.00000608, -8.60058753e-06, -5.36581501e-06, -8.60027285e-06, 1.00000346, 4.60103865e-06, 5.4250122e-06, 4.59702551e-06, -1.00000596)
502
Part29.BackSurface = Enum.SurfaceType.Weld
503
Part29.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
504
Part29.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
505
Part29.LeftSurface = Enum.SurfaceType.Weld
506
Part29.TopSurface = Enum.SurfaceType.Smooth
507
Part29.Color = Color3.new(0.105882, 0.164706, 0.207843)
508
Part29.Position = Vector3.new(-5.18435812, 10.0125599, -3.93456697)
509
Part29.Orientation = Vector3.new(0, -180, 0)
510
Part29.Color = Color3.new(0.105882, 0.164706, 0.207843)
511
BlockMesh30.Parent = Part29
512
BlockMesh30.Scale = Vector3.new(0.899999976, 0.800000012, 1)
513
BlockMesh30.Scale = Vector3.new(0.899999976, 0.800000012, 1)
514
Part31.Name = "ElevatorDoorFrame"
515
Part31.Parent = Model3
516
Part31.Material = Enum.Material.SmoothPlastic
517
Part31.BrickColor = BrickColor.new("Dark stone grey")
518
Part31.Rotation = Vector3.new(0.109999999, -0.0299999993, 0)
519
Part31.Anchored = true
520
Part31.FormFactor = Enum.FormFactor.Custom
521
Part31.Size = Vector3.new(0.200000003, 7.99999809, 0.400000036)
522
Part31.CFrame = CFrame.new(-3.87234592, 5.20209408, -4.24981689, 0.999998987, -8.81036976e-06, -0.00047221221, 7.91110779e-06, 0.999998212, -0.00190430961, 0.00047222813, 0.00190430728, 0.999997199)
523
Part31.BackSurface = Enum.SurfaceType.SmoothNoOutlines
524
Part31.BottomSurface = Enum.SurfaceType.Weld
525
Part31.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
526
Part31.RightSurface = Enum.SurfaceType.Weld
527
Part31.TopSurface = Enum.SurfaceType.Weld
528
Part31.Color = Color3.new(0.388235, 0.372549, 0.384314)
529
Part31.Position = Vector3.new(-3.87234592, 5.20209408, -4.24981689)
530
Part31.Orientation = Vector3.new(0.109999999, -0.0299999993, 0)
531
Part31.Color = Color3.new(0.388235, 0.372549, 0.384314)
532
Part32.Name = "ElevatorDoorFrame"
533
Part32.Parent = Model3
534
Part32.Material = Enum.Material.SmoothPlastic
535
Part32.BrickColor = BrickColor.new("Dark stone grey")
536
Part32.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
537
Part32.Anchored = true
538
Part32.FormFactor = Enum.FormFactor.Custom
539
Part32.Size = Vector3.new(0.200000003, 7.99999809, 0.400000036)
540
Part32.CFrame = CFrame.new(-8.47232246, 5.20206308, -4.25195313, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
541
Part32.BackSurface = Enum.SurfaceType.SmoothNoOutlines
542
Part32.BottomSurface = Enum.SurfaceType.Weld
543
Part32.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
544
Part32.RightSurface = Enum.SurfaceType.Weld
545
Part32.TopSurface = Enum.SurfaceType.Weld
546
Part32.Color = Color3.new(0.388235, 0.372549, 0.384314)
547
Part32.Position = Vector3.new(-8.47232246, 5.20206308, -4.25195313)
548
Part32.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
549
Part32.Color = Color3.new(0.388235, 0.372549, 0.384314)
550
Model33.Name = "DoorLeft"
551
Model33.Parent = Model3
552
Part34.Name = "Door"
553
Part34.Parent = Model33
554
Part34.BrickColor = BrickColor.new("Mid gray")
555
Part34.Reflectance = 0.10000000149012
556
Part34.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
557
Part34.Anchored = true
558
Part34.FormFactor = Enum.FormFactor.Custom
559
Part34.Size = Vector3.new(2.1999917, 7.99999809, 0.400000006)
560
Part34.CFrame = CFrame.new(-5.06869602, 5.20306683, -4.64953184, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
561
Part34.BottomSurface = Enum.SurfaceType.Weld
562
Part34.TopSurface = Enum.SurfaceType.Weld
563
Part34.Color = Color3.new(0.803922, 0.803922, 0.803922)
564
Part34.Position = Vector3.new(-5.06869602, 5.20306683, -4.64953184)
565
Part34.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
566
Part34.Color = Color3.new(0.803922, 0.803922, 0.803922)
567
Part35.Parent = Model3
568
Part35.Material = Enum.Material.SmoothPlastic
569
Part35.Transparency = 0.5
570
Part35.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
571
Part35.Anchored = true
572
Part35.FormFactor = Enum.FormFactor.Custom
573
Part35.Size = Vector3.new(3.00000429, 8.19999981, 0.400000036)
574
Part35.CFrame = CFrame.new(-10.0722961, 5.30205107, -4.2524991, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
575
Part35.TopSurface = Enum.SurfaceType.SmoothNoOutlines
576
Part35.Position = Vector3.new(-10.0722961, 5.30205107, -4.2524991)
577
Part35.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
578
Part36.Parent = Model3
579
Part36.Material = Enum.Material.SmoothPlastic
580
Part36.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
581
Part36.Anchored = true
582
Part36.FormFactor = Enum.FormFactor.Custom
583
Part36.Size = Vector3.new(10.800005, 1.20000005, 0.400000036)
584
Part36.CFrame = CFrame.new(-6.17233419, 0.601597011, -4.25963879, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
585
Part36.BottomSurface = Enum.SurfaceType.Smooth
586
Part36.TopSurface = Enum.SurfaceType.SmoothNoOutlines
587
Part36.Position = Vector3.new(-6.17233419, 0.601597011, -4.25963879)
588
Part36.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
589
Part37.Name = "Level"
590
Part37.Parent = Model3
591
Part37.Material = Enum.Material.SmoothPlastic
592
Part37.BrickColor = BrickColor.new("Dark stone grey")
593
Part37.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
594
Part37.Anchored = true
595
Part37.Elasticity = 0
596
Part37.FormFactor = Enum.FormFactor.Custom
597
Part37.Friction = 0
598
Part37.Size = Vector3.new(8.80000114, 1.20000005, 0.400000036)
599
Part37.CFrame = CFrame.new(-6.17215014, 0.60236001, -4.65966415, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
600
Part37.BottomSurface = Enum.SurfaceType.Smooth
601
Part37.TopSurface = Enum.SurfaceType.Smooth
602
Part37.Color = Color3.new(0.388235, 0.372549, 0.384314)
603
Part37.Position = Vector3.new(-6.17215014, 0.60236001, -4.65966415)
604
Part37.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
605
Part37.Color = Color3.new(0.388235, 0.372549, 0.384314)
606
Model38.Name = "DoorRight"
607
Model38.Parent = Model3
608
Part39.Name = "Door"
609
Part39.Parent = Model38
610
Part39.BrickColor = BrickColor.new("Mid gray")
611
Part39.Reflectance = 0.10000000149012
612
Part39.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
613
Part39.Anchored = true
614
Part39.FormFactor = Enum.FormFactor.Custom
615
Part39.Size = Vector3.new(2.1999917, 7.99999809, 0.400000006)
616
Part39.CFrame = CFrame.new(-7.26870823, 5.20304108, -4.65056992, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
617
Part39.BottomSurface = Enum.SurfaceType.Weld
618
Part39.TopSurface = Enum.SurfaceType.Weld
619
Part39.Color = Color3.new(0.803922, 0.803922, 0.803922)
620
Part39.Position = Vector3.new(-7.26870823, 5.20304108, -4.65056992)
621
Part39.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
622
Part39.Color = Color3.new(0.803922, 0.803922, 0.803922)
623
Part40.Name = "ShaftSupport"
624
Part40.Parent = Model3
625
Part40.Material = Enum.Material.SmoothPlastic
626
Part40.BrickColor = BrickColor.new("Dark stone grey")
627
Part40.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
628
Part40.Anchored = true
629
Part40.Elasticity = 0
630
Part40.FormFactor = Enum.FormFactor.Custom
631
Part40.Friction = 0
632
Part40.Size = Vector3.new(0.999998152, 11.7999973, 0.600000024)
633
Part40.CFrame = CFrame.new(-11.072052, 5.90287924, -4.75182676, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
634
Part40.BottomSurface = Enum.SurfaceType.Smooth
635
Part40.TopSurface = Enum.SurfaceType.Smooth
636
Part40.Color = Color3.new(0.388235, 0.372549, 0.384314)
637
Part40.Position = Vector3.new(-11.072052, 5.90287924, -4.75182676)
638
Part40.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
639
Part40.Color = Color3.new(0.388235, 0.372549, 0.384314)
640
Model41.Name = "Floor2"
641
Model41.Parent = Model2
642
Part42.Name = "DirectionInd"
643
Part42.Parent = Model41
644
Part42.Material = Enum.Material.SmoothPlastic
645
Part42.BrickColor = BrickColor.new("Black")
646
Part42.Rotation = Vector3.new(-180, 0, 180)
647
Part42.Anchored = true
648
Part42.FormFactor = Enum.FormFactor.Custom
649
Part42.Size = Vector3.new(2.80000067, 0.800000012, 0.200000003)
650
Part42.CFrame = CFrame.new(-6.1844182, 21.8138103, -3.89837289, -1.00000608, -8.60058753e-06, -5.36581501e-06, -8.60027285e-06, 1.00000346, 4.60103865e-06, 5.4250122e-06, 4.59702551e-06, -1.00000596)
651
Part42.BackSurface = Enum.SurfaceType.Weld
652
Part42.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
653
Part42.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
654
Part42.LeftSurface = Enum.SurfaceType.Weld
655
Part42.TopSurface = Enum.SurfaceType.Smooth
656
Part42.Color = Color3.new(0.105882, 0.164706, 0.207843)
657
Part42.Position = Vector3.new(-6.1844182, 21.8138103, -3.89837289)
658
Part42.Orientation = Vector3.new(0, -180, 0)
659
Part42.Color = Color3.new(0.105882, 0.164706, 0.207843)
660
BlockMesh43.Parent = Part42
661
BlockMesh43.Scale = Vector3.new(0.899999976, 0.800000012, 1)
662
BlockMesh43.Scale = Vector3.new(0.899999976, 0.800000012, 1)
663
Part44.Name = "ShaftSupport"
664
Part44.Parent = Model41
665
Part44.Material = Enum.Material.SmoothPlastic
666
Part44.BrickColor = BrickColor.new("Dark stone grey")
667
Part44.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
668
Part44.Anchored = true
669
Part44.Elasticity = 0
670
Part44.FormFactor = Enum.FormFactor.Custom
671
Part44.Friction = 0
672
Part44.Size = Vector3.new(8.79999924, 2.4000001, 0.400000036)
673
Part44.CFrame = CFrame.new(-6.1723938, 22.4020882, -4.60443115, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
674
Part44.BottomSurface = Enum.SurfaceType.Smooth
675
Part44.TopSurface = Enum.SurfaceType.Smooth
676
Part44.Color = Color3.new(0.388235, 0.372549, 0.384314)
677
Part44.Position = Vector3.new(-6.1723938, 22.4020882, -4.60443115)
678
Part44.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
679
Part44.Color = Color3.new(0.388235, 0.372549, 0.384314)
680
Part45.Parent = Model41
681
Part45.Material = Enum.Material.SmoothPlastic
682
Part45.Transparency = 0.5
683
Part45.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
684
Part45.Anchored = true
685
Part45.FormFactor = Enum.FormFactor.Custom
686
Part45.Size = Vector3.new(10.8000021, 2.39999723, 0.400000036)
687
Part45.CFrame = CFrame.new(-6.17245579, 22.3970032, -4.20440292, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
688
Part45.TopSurface = Enum.SurfaceType.SmoothNoOutlines
689
Part45.Position = Vector3.new(-6.17245579, 22.3970032, -4.20440292)
690
Part45.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
691
Part46.Name = "ElevatorDoorFrame"
692
Part46.Parent = Model41
693
Part46.Material = Enum.Material.SmoothPlastic
694
Part46.BrickColor = BrickColor.new("Dark stone grey")
695
Part46.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
696
Part46.Anchored = true
697
Part46.FormFactor = Enum.FormFactor.Custom
698
Part46.Size = Vector3.new(4.80000067, 0.200000003, 0.400000036)
699
Part46.CFrame = CFrame.new(-6.17257786, 21.1011753, -4.20690918, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
700
Part46.BackSurface = Enum.SurfaceType.SmoothNoOutlines
701
Part46.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
702
Part46.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
703
Part46.LeftSurface = Enum.SurfaceType.Weld
704
Part46.TopSurface = Enum.SurfaceType.Weld
705
Part46.Color = Color3.new(0.388235, 0.372549, 0.384314)
706
Part46.Position = Vector3.new(-6.17257786, 21.1011753, -4.20690918)
707
Part46.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
708
Part46.Color = Color3.new(0.388235, 0.372549, 0.384314)
709
Part47.Name = "ShaftSupport"
710
Part47.Parent = Model41
711
Part47.Material = Enum.Material.SmoothPlastic
712
Part47.BrickColor = BrickColor.new("Dark stone grey")
713
Part47.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
714
Part47.Anchored = true
715
Part47.Elasticity = 0
716
Part47.FormFactor = Enum.FormFactor.Custom
717
Part47.Friction = 0
718
Part47.Size = Vector3.new(0.999998152, 11.7999964, 0.600000024)
719
Part47.CFrame = CFrame.new(-1.27230799, 17.7011452, -4.71105623, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
720
Part47.BottomSurface = Enum.SurfaceType.Smooth
721
Part47.TopSurface = Enum.SurfaceType.Smooth
722
Part47.Color = Color3.new(0.388235, 0.372549, 0.384314)
723
Part47.Position = Vector3.new(-1.27230799, 17.7011452, -4.71105623)
724
Part47.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
725
Part47.Color = Color3.new(0.388235, 0.372549, 0.384314)
726
Part48.Parent = Model41
727
Part48.Material = Enum.Material.SmoothPlastic
728
Part48.Transparency = 0.5
729
Part48.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
730
Part48.Anchored = true
731
Part48.FormFactor = Enum.FormFactor.Custom
732
Part48.Size = Vector3.new(3.00000429, 8.19999981, 0.400000036)
733
Part48.CFrame = CFrame.new(-2.27246189, 17.1002045, -4.21264219, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
734
Part48.TopSurface = Enum.SurfaceType.SmoothNoOutlines
735
Part48.Position = Vector3.new(-2.27246189, 17.1002045, -4.21264219)
736
Part48.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
737
Part49.Name = "DirIndDown1"
738
Part49.Parent = Model41
739
Part49.Material = Enum.Material.SmoothPlastic
740
Part49.BrickColor = BrickColor.new("Really black")
741
Part49.Transparency = 1
742
Part49.Rotation = Vector3.new(-180, -90, 0)
743
Part49.FormFactor = Enum.FormFactor.Custom
744
Part49.Size = Vector3.new(0.200000003, 0.400000006, 2)
745
Part49.CFrame = CFrame.new(-6.1844182, 21.8138103, -3.69836092, -5.56546729e-06, -2.72848411e-11, -1, 5.28090231e-06, -1, -1.81930664e-12, -1, -5.28071905e-06, 5.56549639e-06)
746
Part49.BackSurface = Enum.SurfaceType.Weld
747
Part49.BottomSurface = Enum.SurfaceType.Smooth
748
Part49.RightSurface = Enum.SurfaceType.Weld
749
Part49.TopSurface = Enum.SurfaceType.Smooth
750
Part49.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
751
Part49.Position = Vector3.new(-6.1844182, 21.8138103, -3.69836092)
752
Part49.Orientation = Vector3.new(0, -90, 180)
753
Part49.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
754
Decal50.Parent = Part49
755
Decal50.Texture = "http://www.roblox.com/asset/?id=73327045"
756
Decal50.Face = Enum.NormalId.Left
757
IntValue51.Name = "Reverse"
758
IntValue51.Parent = Part49
759
BlockMesh52.Parent = Part49
760
BlockMesh52.Offset = Vector3.new(0.100000001, 0, 0)
761
BlockMesh52.Scale = Vector3.new(0.100000001, 1, 1)
762
BlockMesh52.Scale = Vector3.new(0.100000001, 1, 1)
763
Part53.Name = "CallButton"
764
Part53.Parent = Model41
765
Part53.Material = Enum.Material.SmoothPlastic
766
Part53.BrickColor = BrickColor.new("Black")
767
Part53.Transparency = 1
768
Part53.Rotation = Vector3.new(0.109999999, 90, 0)
769
Part53.Anchored = true
770
Part53.FormFactor = Enum.FormFactor.Custom
771
Part53.Size = Vector3.new(0.200000003, 0.400000036, 0.400000036)
772
Part53.CFrame = CFrame.new(-2.97274804, 16.5991859, -3.71392488, 0.000472320389, -9.25954828e-06, 1.00000703, 0.00190410239, 1.00000203, 8.35981155e-06, -1.00000536, 0.00190410228, 0.000472307322)
773
Part53.BackSurface = Enum.SurfaceType.SmoothNoOutlines
774
Part53.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
775
Part53.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
776
Part53.RightSurface = Enum.SurfaceType.Weld
777
Part53.TopSurface = Enum.SurfaceType.SmoothNoOutlines
778
Part53.Color = Color3.new(0.105882, 0.164706, 0.207843)
779
Part53.Position = Vector3.new(-2.97274804, 16.5991859, -3.71392488)
780
Part53.Orientation = Vector3.new(0, 89.9700012, 0.109999999)
781
Part53.Color = Color3.new(0.105882, 0.164706, 0.207843)
782
Decal54.Name = "Texture"
783
Decal54.Parent = Part53
784
Decal54.Texture = "http://www.roblox.com/asset/?id=144877756"
785
Decal54.Face = Enum.NormalId.Left
786
BlockMesh55.Parent = Part53
787
BlockMesh55.Offset = Vector3.new(0.100000001, 0, 0)
788
BlockMesh55.Scale = Vector3.new(0.0500000007, 1, 1)
789
BlockMesh55.Scale = Vector3.new(0.0500000007, 1, 1)
790
ClickDetector56.Parent = Part53
791
Decal57.Parent = Part53
792
Decal57.Texture = "http://www.roblox.com/asset/?id=145261845"
793
Decal57.Face = Enum.NormalId.Left
794
Part58.Name = "ElevatorDoorFrame"
795
Part58.Parent = Model41
796
Part58.Material = Enum.Material.SmoothPlastic
797
Part58.BrickColor = BrickColor.new("Dark stone grey")
798
Part58.Rotation = Vector3.new(0.109999999, -0.0299999993, 0)
799
Part58.Anchored = true
800
Part58.FormFactor = Enum.FormFactor.Custom
801
Part58.Size = Vector3.new(0.200000003, 7.99999809, 0.400000036)
802
Part58.CFrame = CFrame.new(-3.87252808, 17.000164, -4.21361923, 0.999998987, -8.81036976e-06, -0.00047221221, 7.91110779e-06, 0.999998212, -0.00190430961, 0.00047222813, 0.00190430728, 0.999997199)
803
Part58.BackSurface = Enum.SurfaceType.SmoothNoOutlines
804
Part58.BottomSurface = Enum.SurfaceType.Weld
805
Part58.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
806
Part58.RightSurface = Enum.SurfaceType.Weld
807
Part58.TopSurface = Enum.SurfaceType.Weld
808
Part58.Color = Color3.new(0.388235, 0.372549, 0.384314)
809
Part58.Position = Vector3.new(-3.87252808, 17.000164, -4.21361923)
810
Part58.Orientation = Vector3.new(0.109999999, -0.0299999993, 0)
811
Part58.Color = Color3.new(0.388235, 0.372549, 0.384314)
812
Part59.Name = "ElevatorDoorFrame"
813
Part59.Parent = Model41
814
Part59.Material = Enum.Material.SmoothPlastic
815
Part59.BrickColor = BrickColor.new("Dark stone grey")
816
Part59.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
817
Part59.Anchored = true
818
Part59.FormFactor = Enum.FormFactor.Custom
819
Part59.Size = Vector3.new(0.200000003, 7.99999809, 0.400000036)
820
Part59.CFrame = CFrame.new(-8.47250366, 17.0001354, -4.21575594, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
821
Part59.BackSurface = Enum.SurfaceType.SmoothNoOutlines
822
Part59.BottomSurface = Enum.SurfaceType.Weld
823
Part59.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
824
Part59.RightSurface = Enum.SurfaceType.Weld
825
Part59.TopSurface = Enum.SurfaceType.Weld
826
Part59.Color = Color3.new(0.388235, 0.372549, 0.384314)
827
Part59.Position = Vector3.new(-8.47250366, 17.0001354, -4.21575594)
828
Part59.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
829
Part59.Color = Color3.new(0.388235, 0.372549, 0.384314)
830
Part60.Parent = Model41
831
Part60.Material = Enum.Material.SmoothPlastic
832
Part60.Transparency = 0.5
833
Part60.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
834
Part60.Anchored = true
835
Part60.FormFactor = Enum.FormFactor.Custom
836
Part60.Size = Vector3.new(3.00000429, 8.19999981, 0.400000036)
837
Part60.CFrame = CFrame.new(-10.0724802, 17.1001434, -4.21636581, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
838
Part60.TopSurface = Enum.SurfaceType.SmoothNoOutlines
839
Part60.Position = Vector3.new(-10.0724802, 17.1001434, -4.21636581)
840
Part60.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
841
Part61.Parent = Model41
842
Part61.Material = Enum.Material.SmoothPlastic
843
Part61.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
844
Part61.Anchored = true
845
Part61.FormFactor = Enum.FormFactor.Custom
846
Part61.Size = Vector3.new(10.800005, 1.20000005, 0.400000036)
847
Part61.CFrame = CFrame.new(-6.17245579, 12.3993015, -4.22344589, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
848
Part61.BottomSurface = Enum.SurfaceType.Smooth
849
Part61.TopSurface = Enum.SurfaceType.SmoothNoOutlines
850
Part61.Position = Vector3.new(-6.17245579, 12.3993015, -4.22344589)
851
Part61.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
852
Part62.Name = "Level"
853
Part62.Parent = Model41
854
Part62.Material = Enum.Material.SmoothPlastic
855
Part62.BrickColor = BrickColor.new("Dark stone grey")
856
Part62.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
857
Part62.Anchored = true
858
Part62.Elasticity = 0
859
Part62.FormFactor = Enum.FormFactor.Custom
860
Part62.Friction = 0
861
Part62.Size = Vector3.new(8.80000114, 1.20000005, 0.400000036)
862
Part62.CFrame = CFrame.new(-6.17227221, 12.4000559, -4.62346983, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
863
Part62.BottomSurface = Enum.SurfaceType.Smooth
864
Part62.TopSurface = Enum.SurfaceType.Smooth
865
Part62.Color = Color3.new(0.388235, 0.372549, 0.384314)
866
Part62.Position = Vector3.new(-6.17227221, 12.4000559, -4.62346983)
867
Part62.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
868
Part62.Color = Color3.new(0.388235, 0.372549, 0.384314)
869
Part63.Name = "ShaftSupport"
870
Part63.Parent = Model41
871
Part63.Material = Enum.Material.SmoothPlastic
872
Part63.BrickColor = BrickColor.new("Dark stone grey")
873
Part63.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
874
Part63.Anchored = true
875
Part63.Elasticity = 0
876
Part63.FormFactor = Enum.FormFactor.Custom
877
Part63.Friction = 0
878
Part63.Size = Vector3.new(0.999998152, 11.7999973, 0.600000024)
879
Part63.CFrame = CFrame.new(-11.0722361, 17.7010632, -4.7156949, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
880
Part63.BottomSurface = Enum.SurfaceType.Smooth
881
Part63.TopSurface = Enum.SurfaceType.Smooth
882
Part63.Color = Color3.new(0.388235, 0.372549, 0.384314)
883
Part63.Position = Vector3.new(-11.0722361, 17.7010632, -4.7156949)
884
Part63.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
885
Part63.Color = Color3.new(0.388235, 0.372549, 0.384314)
886
Model64.Name = "DoorLeft"
887
Model64.Parent = Model41
888
Part65.Name = "Door"
889
Part65.Parent = Model64
890
Part65.BrickColor = BrickColor.new("Mid gray")
891
Part65.Reflectance = 0.10000000149012
892
Part65.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
893
Part65.Anchored = true
894
Part65.FormFactor = Enum.FormFactor.Custom
895
Part65.Size = Vector3.new(2.1999917, 7.99999809, 0.400000006)
896
Part65.CFrame = CFrame.new(-5.06869602, 17.0020905, -4.64953184, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
897
Part65.BottomSurface = Enum.SurfaceType.Weld
898
Part65.TopSurface = Enum.SurfaceType.Weld
899
Part65.Color = Color3.new(0.803922, 0.803922, 0.803922)
900
Part65.Position = Vector3.new(-5.06869602, 17.0020905, -4.64953184)
901
Part65.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
902
Part65.Color = Color3.new(0.803922, 0.803922, 0.803922)
903
Model66.Name = "DoorRight"
904
Model66.Parent = Model41
905
Part67.Name = "Door"
906
Part67.Parent = Model66
907
Part67.BrickColor = BrickColor.new("Mid gray")
908
Part67.Reflectance = 0.10000000149012
909
Part67.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
910
Part67.Anchored = true
911
Part67.FormFactor = Enum.FormFactor.Custom
912
Part67.Size = Vector3.new(2.1999917, 7.99999809, 0.400000006)
913
Part67.CFrame = CFrame.new(-7.26870823, 17.002058, -4.65056992, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
914
Part67.BottomSurface = Enum.SurfaceType.Weld
915
Part67.TopSurface = Enum.SurfaceType.Weld
916
Part67.Color = Color3.new(0.803922, 0.803922, 0.803922)
917
Part67.Position = Vector3.new(-7.26870823, 17.002058, -4.65056992)
918
Part67.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
919
Part67.Color = Color3.new(0.803922, 0.803922, 0.803922)
920
Model68.Name = "Shaft"
921
Model68.Parent = Model1
922
StringValue69.Name = "Direction"
923
StringValue69.Parent = Model1
924
StringValue69.Value = "N"
925
BoolValue70.Name = "FireMode"
926
BoolValue70.Parent = Model1
927
NumberValue71.Name = "Floor"
928
NumberValue71.Parent = Model1
929
NumberValue71.Value = 1
930
Script72.Name = "Floor Indicator"
931
Script72.Parent = Model1
932
table.insert(cors,sandbox(Script72,function()
933
CurrentFloor = 1
934
NextFloor = 0
935
CurrentDirection = "N"
936
Floor = script.Parent.Floor
937
Direction = script.Parent.Direction
938
Screen = script.Parent.Car.Screen.SurfaceGui.Frame
939
Indicator = Screen.Indicator
940
941
942
InUse = false
943
function ChangeFloor()
944
	if InUse then return end
945
	InUse = true
946
	NextFloor = Floor.Value
947
	CurrentDirection = Direction.Value
948
	
949
	if CurrentDirection == "U" then
950
		for i=0,1, 0.1 do
951
			Indicator.Position = UDim2.new(0,50, i, 0)
952
			wait()
953
		end
954
	end
955
	if CurrentDirection == "D" then
956
		for i=0,-1, -0.1 do
957
			Indicator.Position = UDim2.new(0, 50, i, 0)
958
			wait()
959
		end
960
	end
961
	Indicator.Text = Floor.Value
962
	
963
	if CurrentDirection == "U" then
964
		for i=-1,0, 0.1 do
965
			Indicator.Position = UDim2.new(0, 50, i, 0)
966
			wait()
967
		end
968
	end
969
	if CurrentDirection == "D" then
970
		for i=1,0, -0.1 do
971
			Indicator.Position = UDim2.new(0, 50, i, 0)
972
			wait()
973
		end
974
	end
975
	InUse = false
976
	
977
end
978
979
980
981
982
983
script.Parent.Floor.Changed:connect(ChangeFloor)
984
985
986
Hyd = false
987
Direction.Changed:connect(function()
988
	if Hyd then return end
989
if Direction.Value == "US" or Direction.Value == "DS" then
990
Hyd = true
991
992
script.Parent.Car.Platform.Motor:Play()
993
repeat
994
	wait() 
995
until Direction.Value == "NS"
996
script.Parent.Car.Platform.Motor:Stop()
997
Hyd = false
998
end
999
	
1000
end)
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
ArrowTx = {
1015
	[1]=146678603,
1016
	[2]=146678613,
1017
	[3]=146678618,
1018
	[4]=146678637,
1019
	[5]=146678647,
1020
	[6]=146678656,
1021
	[7]=146678671
1022
}
1023
1024
1025
1026
Scroll = false
1027
ArrowInd = script.Parent.Car.Screen.SurfaceGui.Frame.Arrow
1028
Direction.Changed:connect(function()
1029
	
1030
	if Scroll then return end
1031
	Scroll = true
1032
if Direction.Value == "U" then
1033
	ArrowInd.Rotation = 0
1034
	repeat
1035
		for i=1,7 do
1036
			ArrowInd.Image = "http://www.roblox.com/asset/?id="..ArrowTx[i]
1037
			wait()
1038
		end
1039
	until Direction.Value == "N"
1040
end
1041
if Direction.Value == "D" then
1042
	ArrowInd.Rotation = 180
1043
	repeat
1044
		for i=1,7 do
1045
			ArrowInd.Image = "http://www.roblox.com/asset/?id="..ArrowTx[i]
1046
			wait()
1047
		end
1048
	until Direction.Value == "N"
1049
end
1050
ArrowInd.Image = "http://www.roblox.com/asset/?id=0"
1051
1052
Scroll = false
1053
1054
end)
1055
1056
end))
1057
NumberValue73.Name = "Motor"
1058
NumberValue73.Parent = Model1
1059
Script74.Parent = Model1
1060
Script74.Disabled = true
1061
table.insert(cors,sandbox(Script74,function()
1062
-- Do not touch D: --
1063
1064
1065
--[[]] ButtonULit = "http://www.roblox.com/asset/?id=134524507"
1066
--[[]] ButtonLit = "http://www.roblox.com/asset/?id=134524469"
1067
1068
--[[]] Car = script.Parent.Car
1069
--[[]] Floors = script.Parent.Floors
1070
1071
1072
--[[]] DoorState = "Closed"
1073
--[[]] DoorSpeed = 0
1074
--[[]] DoorL = 51
1075
--[[]] DoorC = 0.05
1076
--[[]] DoorP = 0
1077
--[[]] DoorCarLeft = Car.DoorLeft:GetChildren()
1078
--[[]] DoorCarRight = Car.DoorRight:GetChildren()
1079
--[[]] ResetDoorTimer = false
1080
1081
--[[]] CallQuene = {}
1082
--[[]] EngineType = "B" -- Set B for BodyVelocity engine, or C for CFrame engine
1083
1084
--[[]] MotorSpeed = 3
1085
--[[]] MotorStartSpeed = 0.1
1086
--[[]] MotorStopSpeed = 0.1
1087
1088
--[[]] LevelOffset = 1
1089
1090
--[[]] Floor = script.Parent.Floor
1091
--[[]] Motor = script.Parent.Motor
1092
1093
--[[]] BC = {}
1094
--[[]] BP = Car.Platform.BodyPosition
1095
--[[]] BV = Car.Platform.BodyVelocity
1096
1097
1098
--[[]] InUse = false
1099
--[[]] Moving = false
1100
--[[]] MoveDirection = "None"
1101
1102
1103
1104
function Start(FL,DS)
1105
if FL ~= DS and not Busy then
1106
	Busy = true
1107
	Moving = true
1108
	wait(1)
1109
	
1110
	if EngineType == "B" then
1111
		BP.P = 0	
1112
		BP.D = 0
1113
		BV.P = 5000
1114
	end	
1115
	
1116
	if DS > FL then
1117
		MoveDirection = "Up"
1118
		for i = 0, MotorSpeed, 0.2 do
1119
			Motor.Value = i
1120
			wait(MotorStartSpeed)
1121
		end
1122
	end
1123
	if DS < FL then
1124
		MoveDirection = "Down"
1125
		for i = 0, MotorSpeed, 0.02 do
1126
			Motor.Value = -i
1127
			wait(MotorStartSpeed)
1128
		end
1129
	end
1130
1131
1132
	while Motor.Value ~= 0 do
1133
	wait()	
1134
	for i,l in pairs(Floors:GetChildren()) do
1135
		local xx = tonumber(l.Name:sub(6))
1136
		if math.abs(l.Level.Position.Y - Car.Platform.Position.Y) < LevelOffset then
1137
		if Floor.Value ~= xx then
1138
			Floor.Value = xx
1139
			DoStop(xx) -- InCase f stops
1140
		end
1141
		end	
1142
		
1143
	end	
1144
	end	
1145
end
1146
end
1147
1148
1149
1150
1151
1152
function DoStop(TF)
1153
	local HaveAStop = false
1154
	for i=1, #CallQuene do
1155
		if CallQuene[i] == TF then 
1156
			HaveAStop = true 
1157
			table.remove(CallQuene,i)
1158
		end
1159
	end
1160
	if true then
1161
	local CY = Floors:FindFirstChild("Floor"..TF).Level.Position.Y
1162
	if EngineType == "B" then
1163
		
1164
		local CX = Car.Platform.Position.X		
1165
		local CZ = Car.Platform.Position.Z
1166
		
1167
		BP.position = Vector3.new(CX,CY,CZ)
1168
		BP.P = 2000
1169
		BP.D = 1500
1170
		BV.P = 0
1171
	end
1172
	
1173
	if EngineType == "C" then
1174
	if MoveDirection == "Up" then
1175
		for i = MotorSpeed, 0, -0.02 do
1176
			Motor.Value = i
1177
			wait(MotorStopSpeed)
1178
		end
1179
	end
1180
	if MoveDirection == "Down" then
1181
		for i = MotorSpeed, 0, -0.02 do
1182
			Motor.Value = -i
1183
			wait(MotorStopSpeed)
1184
		end
1185
	end
1186
	end
1187
1188
	repeat 
1189
		wait() 
1190
	until math.abs(CY - Car.Platform.Position.Y) < 0.05
1191
	Motor.Value = 0
1192
	TargetFloor = 0
1193
1194
	coroutine.resume(coroutine.create(function() DoorOpen(TF) end))
1195
	
1196
	Moving = false
1197
	Busy = false
1198
	end
1199
end
1200
1201
1202
1203
1204
1205
1206
function AddCall(F,T)
1207
	local IS = false
1208
	for i,l in pairs(CallQuene) do
1209
		if l == F then
1210
			IS = true
1211
		end
1212
	end
1213
	if not IS then
1214
		repeat wait() until DoorState == "Closed"
1215
		Start(Floor.Value,F)
1216
	end
1217
end
1218
1219
1220
function ButtonControl(B,I)
1221
--if I.Button.Texture == ButtonULit then
1222
--I.Button.Texture = ButtonLit
1223
if B:sub(1,2) == "CL" then 
1224
	AddCall(tonumber(B:sub(3)),"Call")
1225
end
1226
if B:sub(1,2) == "CR" then 
1227
	AddCall(tonumber(B:sub(3)),"Car")
1228
end
1229
1230
if B.Name == "DO" then 
1231
if not Busy and not Moving then
1232
DoorOpen(Floor.Value)
1233
end
1234
end
1235
if B.Name == "DC" then 
1236
if not Busy and not Moving then
1237
DoorClose(Floor.Value)
1238
end
1239
end
1240
if B.Name == "AL" then 
1241
1242
end
1243
wait(1) 
1244
--I.Button.Texture = ButtonULit
1245
--end
1246
end
1247
1248
1249
1250
1251
1252
Car.DoorSensor.Touched:connect(function(P) 
1253
	if P ~= nil and P.Parent ~= nil and P.Parent:FindFirstChild("Humanoid") then 
1254
		if DoorState == "Closing" then 
1255
			DoorOpen(1,true) 
1256
		end
1257
	 end 
1258
end)
1259
1260
1261
1262
-- BUTTON CONTROL --
1263
1264
for i,l in pairs(Car:GetChildren()) do
1265
	if l.Name:sub(1,3) == "BTF" then
1266
		l.ClickDetector.MouseClick:connect(function() ButtonControl("CR"..l.Name:sub(4),l)  end)
1267
	end
1268
	if l.Name:sub(1,4) == "BTDO" then
1269
		l.ClickDetector.MouseClick:connect(function() ButtonControl("DO",l)  end)
1270
	end	
1271
	if l.Name:sub(1,4) == "BTDC" then
1272
		l.ClickDetector.MouseClick:connect(function() ButtonControl("DC",l)  end)
1273
	end
1274
	if l.Name:sub(1,3) == "BTA" then
1275
		l.ClickDetector.MouseClick:connect(function() ButtonControl("AL",l)  end)
1276
	end
1277
end
1278
1279
for i,l in pairs(Floors:GetChildren()) do
1280
	if l:FindFirstChild("CallButton") then
1281
		l:FindFirstChild("CallButton").ClickDetector.MouseClick:connect(function() 
1282
			ButtonControl("CL"..l.Name:sub(6),l) 
1283
		end)
1284
	end
1285
end		
1286
1287
1288
Motor.Changed:connect(function()
1289
	
1290
	if EngineType == "B" then
1291
		BV.velocity = Vector3.new(0,Motor.Value,0)
1292
	end
1293
end)
1294
1295
end))
1296
NumberValue75.Name = "ScriptCall"
1297
NumberValue75.Parent = Model1
1298
NumberValue76.Name = "TFloor"
1299
NumberValue76.Parent = Model1
1300
NumberValue76.Value = 1
1301
NumberValue77.Name = "TargetFloor"
1302
NumberValue77.Parent = Model1
1303
Model78.Name = "Car"
1304
Model78.Parent = Model1
1305
Part79.Name = "DoorSupport"
1306
Part79.Parent = Model78
1307
Part79.Material = Enum.Material.SmoothPlastic
1308
Part79.BrickColor = BrickColor.new("Dark stone grey")
1309
Part79.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1310
Part79.FormFactor = Enum.FormFactor.Custom
1311
Part79.Size = Vector3.new(1.00000715, 7.99999809, 0.400000036)
1312
Part79.CFrame = CFrame.new(-11.0719404, 5.20400381, -5.26013613, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1313
Part79.BackSurface = Enum.SurfaceType.Weld
1314
Part79.BottomSurface = Enum.SurfaceType.Weld
1315
Part79.TopSurface = Enum.SurfaceType.Weld
1316
Part79.Color = Color3.new(0.388235, 0.372549, 0.384314)
1317
Part79.Position = Vector3.new(-11.0719404, 5.20400381, -5.26013613)
1318
Part79.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1319
Part79.Color = Color3.new(0.388235, 0.372549, 0.384314)
1320
Part80.Name = "DoorSupport"
1321
Part80.Parent = Model78
1322
Part80.Material = Enum.Material.SmoothPlastic
1323
Part80.BrickColor = BrickColor.new("Dark stone grey")
1324
Part80.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1325
Part80.FormFactor = Enum.FormFactor.Custom
1326
Part80.Size = Vector3.new(10.8000059, 2.60000062, 0.400000036)
1327
Part80.CFrame = CFrame.new(-6.17182493, 10.50387, -5.24538803, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1328
Part80.BackSurface = Enum.SurfaceType.Weld
1329
Part80.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1330
Part80.TopSurface = Enum.SurfaceType.Smooth
1331
Part80.Color = Color3.new(0.388235, 0.372549, 0.384314)
1332
Part80.Position = Vector3.new(-6.17182493, 10.50387, -5.24538803)
1333
Part80.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1334
Part80.Color = Color3.new(0.388235, 0.372549, 0.384314)
1335
Part81.Name = "ElevatorBorder"
1336
Part81.Parent = Model78
1337
Part81.Material = Enum.Material.SmoothPlastic
1338
Part81.BrickColor = BrickColor.new("Dark stone grey")
1339
Part81.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1340
Part81.FormFactor = Enum.FormFactor.Custom
1341
Part81.Size = Vector3.new(1.00000525, 1.20000005, 11.5999975)
1342
Part81.CFrame = CFrame.new(-1.26516199, 11.217082, -12.2393856, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1343
Part81.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1344
Part81.RightSurface = Enum.SurfaceType.Weld
1345
Part81.TopSurface = Enum.SurfaceType.Smooth
1346
Part81.Color = Color3.new(0.388235, 0.372549, 0.384314)
1347
Part81.Position = Vector3.new(-1.26516199, 11.217082, -12.2393856)
1348
Part81.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1349
Part81.Color = Color3.new(0.388235, 0.372549, 0.384314)
1350
Part82.Name = "ElevatorWalls"
1351
Part82.Parent = Model78
1352
Part82.BrickColor = BrickColor.new("Bright blue")
1353
Part82.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1354
Part82.FormFactor = Enum.FormFactor.Custom
1355
Part82.Size = Vector3.new(2.00000811, 8.1999979, 1)
1356
Part82.CFrame = CFrame.new(-9.57127571, 5.30530024, -5.95851898, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1357
Part82.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1358
Part82.BottomSurface = Enum.SurfaceType.Weld
1359
Part82.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1360
Part82.TopSurface = Enum.SurfaceType.Weld
1361
Part82.Color = Color3.new(0.0509804, 0.411765, 0.67451)
1362
Part82.Position = Vector3.new(-9.57127571, 5.30530024, -5.95851898)
1363
Part82.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1364
Part82.Color = Color3.new(0.0509804, 0.411765, 0.67451)
1365
Part83.Name = "ElevatorWalls"
1366
Part83.Parent = Model78
1367
Part83.BrickColor = BrickColor.new("Bright blue")
1368
Part83.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1369
Part83.FormFactor = Enum.FormFactor.Custom
1370
Part83.Size = Vector3.new(3.8000133, 1.19999814, 1)
1371
Part83.CFrame = CFrame.new(-8.67117023, 10.0052662, -5.94871283, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1372
Part83.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1373
Part83.BottomSurface = Enum.SurfaceType.Weld
1374
Part83.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1375
Part83.TopSurface = Enum.SurfaceType.Weld
1376
Part83.Color = Color3.new(0.0509804, 0.411765, 0.67451)
1377
Part83.Position = Vector3.new(-8.67117023, 10.0052662, -5.94871283)
1378
Part83.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1379
Part83.Color = Color3.new(0.0509804, 0.411765, 0.67451)
1380
Part84.Name = "ElevatorBorder"
1381
Part84.Parent = Model78
1382
Part84.Material = Enum.Material.SmoothPlastic
1383
Part84.BrickColor = BrickColor.new("Dark stone grey")
1384
Part84.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1385
Part84.FormFactor = Enum.FormFactor.Custom
1386
Part84.Size = Vector3.new(1.00000525, 1.20000005, 11.5999975)
1387
Part84.CFrame = CFrame.new(-11.0653963, 0.617350996, -12.2688799, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1388
Part84.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1389
Part84.LeftSurface = Enum.SurfaceType.Weld
1390
Part84.TopSurface = Enum.SurfaceType.Smooth
1391
Part84.Color = Color3.new(0.388235, 0.372549, 0.384314)
1392
Part84.Position = Vector3.new(-11.0653963, 0.617350996, -12.2688799)
1393
Part84.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1394
Part84.Color = Color3.new(0.388235, 0.372549, 0.384314)
1395
Part85.Name = "DoorSupport"
1396
Part85.Parent = Model78
1397
Part85.Material = Enum.Material.SmoothPlastic
1398
Part85.BrickColor = BrickColor.new("Dark stone grey")
1399
Part85.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1400
Part85.FormFactor = Enum.FormFactor.Custom
1401
Part85.Size = Vector3.new(3.20000744, 1.20000029, 0.400000036)
1402
Part85.CFrame = CFrame.new(-2.37204909, 0.603806019, -5.26063395, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1403
Part85.BackSurface = Enum.SurfaceType.Weld
1404
Part85.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1405
Part85.TopSurface = Enum.SurfaceType.Smooth
1406
Part85.Color = Color3.new(0.388235, 0.372549, 0.384314)
1407
Part85.Position = Vector3.new(-2.37204909, 0.603806019, -5.26063395)
1408
Part85.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1409
Part85.Color = Color3.new(0.388235, 0.372549, 0.384314)
1410
Part86.Name = "DoorSupport"
1411
Part86.Parent = Model78
1412
Part86.Material = Enum.Material.SmoothPlastic
1413
Part86.BrickColor = BrickColor.new("Dark stone grey")
1414
Part86.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1415
Part86.FormFactor = Enum.FormFactor.Custom
1416
Part86.Size = Vector3.new(1.00000715, 7.99999809, 0.400000036)
1417
Part86.CFrame = CFrame.new(-1.27194595, 5.20376492, -5.25082779, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1418
Part86.BackSurface = Enum.SurfaceType.Weld
1419
Part86.BottomSurface = Enum.SurfaceType.Weld
1420
Part86.TopSurface = Enum.SurfaceType.Weld
1421
Part86.Color = Color3.new(0.388235, 0.372549, 0.384314)
1422
Part86.Position = Vector3.new(-1.27194595, 5.20376492, -5.25082779)
1423
Part86.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1424
Part86.Color = Color3.new(0.388235, 0.372549, 0.384314)
1425
Part87.Name = "ElevatorWalls"
1426
Part87.Parent = Model78
1427
Part87.Transparency = 0.5
1428
Part87.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1429
Part87.FormFactor = Enum.FormFactor.Custom
1430
Part87.Size = Vector3.new(1.00000787, 9.39999676, 13.5999947)
1431
Part87.CFrame = CFrame.new(-1.26528203, 5.91709805, -12.2494783, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1432
Part87.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1433
Part87.BottomSurface = Enum.SurfaceType.Weld
1434
Part87.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1435
Part87.TopSurface = Enum.SurfaceType.Weld
1436
Part87.Position = Vector3.new(-1.26528203, 5.91709805, -12.2494783)
1437
Part87.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1438
Part88.Name = "DoorSensor"
1439
Part88.Parent = Model78
1440
Part88.Material = Enum.Material.SmoothPlastic
1441
Part88.BrickColor = BrickColor.new("Black")
1442
Part88.Transparency = 1
1443
Part88.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1444
Part88.CanCollide = false
1445
Part88.FormFactor = Enum.FormFactor.Custom
1446
Part88.Size = Vector3.new(10.7999878, 11.799963, 0.200000003)
1447
Part88.CFrame = CFrame.new(-6.17221308, 5.90331507, -4.95414877, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1448
Part88.BackSurface = Enum.SurfaceType.Weld
1449
Part88.BottomSurface = Enum.SurfaceType.Smooth
1450
Part88.TopSurface = Enum.SurfaceType.Smooth
1451
Part88.Color = Color3.new(0.105882, 0.164706, 0.207843)
1452
Part88.Position = Vector3.new(-6.17221308, 5.90331507, -4.95414877)
1453
Part88.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1454
Part88.Color = Color3.new(0.105882, 0.164706, 0.207843)
1455
Part89.Name = "DoorIndDown"
1456
Part89.Parent = Model78
1457
Part89.Material = Enum.Material.SmoothPlastic
1458
Part89.BrickColor = BrickColor.new("Really black")
1459
Part89.Transparency = 1
1460
Part89.Rotation = Vector3.new(0.109999999, -0.049999997, 180)
1461
Part89.FormFactor = Enum.FormFactor.Custom
1462
Part89.Size = Vector3.new(0.200000003, 0.800000012, 0.800000012)
1463
Part89.CFrame = CFrame.new(-8.27114296, 7.00545502, -6.05404615, -0.999999523, -2.24495634e-05, -0.000949842099, 2.42585356e-05, -0.999998212, -0.00190452766, -0.000949797686, -0.00190454966, 0.999997735)
1464
Part89.BackSurface = Enum.SurfaceType.Weld
1465
Part89.BottomSurface = Enum.SurfaceType.Smooth
1466
Part89.RightSurface = Enum.SurfaceType.Weld
1467
Part89.TopSurface = Enum.SurfaceType.Smooth
1468
Part89.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1469
Part89.Position = Vector3.new(-8.27114296, 7.00545502, -6.05404615)
1470
Part89.Orientation = Vector3.new(0.109999999, -0.049999997, 180)
1471
Part89.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1472
BlockMesh90.Parent = Part89
1473
BlockMesh90.Offset = Vector3.new(0.100000001, 0, 0.100000001)
1474
BlockMesh90.Scale = Vector3.new(0.100000001, 1, 1)
1475
BlockMesh90.Scale = Vector3.new(0.100000001, 1, 1)
1476
Decal91.Parent = Part89
1477
Decal91.Texture = "http://www.roblox.com/asset/?id=73327045"
1478
Decal91.Face = Enum.NormalId.Left
1479
Model92.Name = "DoorRight"
1480
Model92.Parent = Model78
1481
Part93.Name = "Door"
1482
Part93.Parent = Model92
1483
Part93.BrickColor = BrickColor.new("Black")
1484
Part93.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1485
Part93.FormFactor = Enum.FormFactor.Custom
1486
Part93.Size = Vector3.new(2.1999917, 8, 0.400000006)
1487
Part93.CFrame = CFrame.new(-7.27194309, 5.20391083, -5.25652695, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1488
Part93.BottomSurface = Enum.SurfaceType.Weld
1489
Part93.TopSurface = Enum.SurfaceType.Smooth
1490
Part93.Color = Color3.new(0.105882, 0.164706, 0.207843)
1491
Part93.Position = Vector3.new(-7.27194309, 5.20391083, -5.25652695)
1492
Part93.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1493
Part93.Color = Color3.new(0.105882, 0.164706, 0.207843)
1494
Part94.Name = "DoorSupport"
1495
Part94.Parent = Model78
1496
Part94.Material = Enum.Material.SmoothPlastic
1497
Part94.BrickColor = BrickColor.new("Dark stone grey")
1498
Part94.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1499
Part94.FormFactor = Enum.FormFactor.Custom
1500
Part94.Size = Vector3.new(3.20000744, 1.20000029, 0.400000036)
1501
Part94.CFrame = CFrame.new(-9.97204399, 0.603990018, -5.26785278, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1502
Part94.BackSurface = Enum.SurfaceType.Weld
1503
Part94.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1504
Part94.TopSurface = Enum.SurfaceType.Smooth
1505
Part94.Color = Color3.new(0.388235, 0.372549, 0.384314)
1506
Part94.Position = Vector3.new(-9.97204399, 0.603990018, -5.26785278)
1507
Part94.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1508
Part94.Color = Color3.new(0.388235, 0.372549, 0.384314)
1509
Part95.Name = "Roof"
1510
Part95.Parent = Model78
1511
Part95.BrickColor = BrickColor.new("Turquoise")
1512
Part95.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1513
Part95.FormFactor = Enum.FormFactor.Custom
1514
Part95.Size = Vector3.new(8.80000782, 1.20000005, 11.5999975)
1515
Part95.CFrame = CFrame.new(-6.16516018, 11.2172003, -12.2440376, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1516
Part95.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1517
Part95.TopSurface = Enum.SurfaceType.SmoothNoOutlines
1518
Part95.Color = Color3.new(0.47451, 0.709804, 0.709804)
1519
Part95.Position = Vector3.new(-6.16516018, 11.2172003, -12.2440376)
1520
Part95.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1521
Part95.Color = Color3.new(0.47451, 0.709804, 0.709804)
1522
PointLight96.Parent = Part95
1523
PointLight96.Brightness = 4
1524
PointLight96.Range = 14
1525
Part97.Name = "ElevatorDoorFrame"
1526
Part97.Parent = Model78
1527
Part97.Material = Enum.Material.SmoothPlastic
1528
Part97.BrickColor = BrickColor.new("Dark stone grey")
1529
Part97.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1530
Part97.FormFactor = Enum.FormFactor.Custom
1531
Part97.Size = Vector3.new(0.200000003, 7.99999809, 1)
1532
Part97.CFrame = CFrame.new(-8.47127819, 5.20527506, -5.95766497, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1533
Part97.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1534
Part97.BottomSurface = Enum.SurfaceType.Weld
1535
Part97.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
1536
Part97.RightSurface = Enum.SurfaceType.Weld
1537
Part97.TopSurface = Enum.SurfaceType.Weld
1538
Part97.Color = Color3.new(0.388235, 0.372549, 0.384314)
1539
Part97.Position = Vector3.new(-8.47127819, 5.20527506, -5.95766497)
1540
Part97.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1541
Part97.Color = Color3.new(0.388235, 0.372549, 0.384314)
1542
Part98.Name = "ElevatorDoorPlate"
1543
Part98.Parent = Model78
1544
Part98.Material = Enum.Material.SmoothPlastic
1545
Part98.BrickColor = BrickColor.new("Dark stone grey")
1546
Part98.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1547
Part98.FormFactor = Enum.FormFactor.Custom
1548
Part98.Size = Vector3.new(10.800005, 1.20000029, 1)
1549
Part98.CFrame = CFrame.new(-6.17114401, 11.205204, -5.94405079, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1550
Part98.BackSurface = Enum.SurfaceType.Weld
1551
Part98.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1552
Part98.TopSurface = Enum.SurfaceType.Smooth
1553
Part98.Color = Color3.new(0.388235, 0.372549, 0.384314)
1554
Part98.Position = Vector3.new(-6.17114401, 11.205204, -5.94405079)
1555
Part98.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1556
Part98.Color = Color3.new(0.388235, 0.372549, 0.384314)
1557
Part99.Name = "ElevatorDoorFrame"
1558
Part99.Parent = Model78
1559
Part99.Material = Enum.Material.SmoothPlastic
1560
Part99.BrickColor = BrickColor.new("Dark stone grey")
1561
Part99.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1562
Part99.FormFactor = Enum.FormFactor.Custom
1563
Part99.Size = Vector3.new(4.80000067, 0.200000003, 1)
1564
Part99.CFrame = CFrame.new(-6.17118692, 9.30520153, -5.94767189, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1565
Part99.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1566
Part99.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1567
Part99.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1568
Part99.LeftSurface = Enum.SurfaceType.Weld
1569
Part99.TopSurface = Enum.SurfaceType.Weld
1570
Part99.Color = Color3.new(0.388235, 0.372549, 0.384314)
1571
Part99.Position = Vector3.new(-6.17118692, 9.30520153, -5.94767189)
1572
Part99.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1573
Part99.Color = Color3.new(0.388235, 0.372549, 0.384314)
1574
Part100.Name = "ElevatorDoorPlate"
1575
Part100.Parent = Model78
1576
Part100.Material = Enum.Material.SmoothPlastic
1577
Part100.BrickColor = BrickColor.new("Dark stone grey")
1578
Part100.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1579
Part100.FormFactor = Enum.FormFactor.Custom
1580
Part100.Size = Vector3.new(10.800005, 1.20000029, 1)
1581
Part100.CFrame = CFrame.new(-6.15917587, 11.2291899, -18.5440254, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1582
Part100.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1583
Part100.FrontSurface = Enum.SurfaceType.Weld
1584
Part100.TopSurface = Enum.SurfaceType.Smooth
1585
Part100.Color = Color3.new(0.388235, 0.372549, 0.384314)
1586
Part100.Position = Vector3.new(-6.15917587, 11.2291899, -18.5440254)
1587
Part100.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1588
Part100.Color = Color3.new(0.388235, 0.372549, 0.384314)
1589
Part101.Name = "Level"
1590
Part101.Parent = Model78
1591
Part101.Material = Enum.Material.SmoothPlastic
1592
Part101.BrickColor = BrickColor.new("Dark stone grey")
1593
Part101.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1594
Part101.FormFactor = Enum.FormFactor.Custom
1595
Part101.Size = Vector3.new(4.40000725, 1.20000029, 0.400000036)
1596
Part101.CFrame = CFrame.new(-6.17204714, 0.603899002, -5.26424217, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1597
Part101.BackSurface = Enum.SurfaceType.Weld
1598
Part101.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1599
Part101.TopSurface = Enum.SurfaceType.Smooth
1600
Part101.Color = Color3.new(0.388235, 0.372549, 0.384314)
1601
Part101.Position = Vector3.new(-6.17204714, 0.603899002, -5.26424217)
1602
Part101.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1603
Part101.Color = Color3.new(0.388235, 0.372549, 0.384314)
1604
Decal102.Parent = Part101
1605
Decal102.Texture = "http://www.roblox.com/asset/?id=144881146"
1606
Decal102.Face = Enum.NormalId.Top
1607
Part103.Name = "ElevatorWalls"
1608
Part103.Parent = Model78
1609
Part103.Transparency = 0.5
1610
Part103.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1611
Part103.FormFactor = Enum.FormFactor.Custom
1612
Part103.Size = Vector3.new(1.00000787, 9.39999676, 13.5999947)
1613
Part103.CFrame = CFrame.new(-11.0652761, 5.91733313, -12.2587862, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1614
Part103.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1615
Part103.BottomSurface = Enum.SurfaceType.Weld
1616
Part103.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1617
Part103.TopSurface = Enum.SurfaceType.Weld
1618
Part103.Position = Vector3.new(-11.0652761, 5.91733313, -12.2587862)
1619
Part103.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1620
Part104.Name = "ElevatorDoorPlate"
1621
Part104.Parent = Model78
1622
Part104.Material = Enum.Material.Wood
1623
Part104.BrickColor = BrickColor.new("Dark stone grey")
1624
Part104.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1625
Part104.FormFactor = Enum.FormFactor.Custom
1626
Part104.Size = Vector3.new(10.800005, 1.20000029, 1)
1627
Part104.CFrame = CFrame.new(-6.15941477, 0.629229009, -18.5642128, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1628
Part104.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1629
Part104.FrontSurface = Enum.SurfaceType.Weld
1630
Part104.TopSurface = Enum.SurfaceType.Smooth
1631
Part104.Color = Color3.new(0.388235, 0.372549, 0.384314)
1632
Part104.Position = Vector3.new(-6.15941477, 0.629229009, -18.5642128)
1633
Part104.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1634
Part104.Color = Color3.new(0.388235, 0.372549, 0.384314)
1635
Part105.Name = "ElevatorWalls"
1636
Part105.Parent = Model78
1637
Part105.Transparency = 0.5
1638
Part105.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1639
Part105.FormFactor = Enum.FormFactor.Custom
1640
Part105.Size = Vector3.new(8.80000973, 9.3999958, 1)
1641
Part105.CFrame = CFrame.new(-6.15929508, 5.92921209, -18.5541191, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1642
Part105.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1643
Part105.BottomSurface = Enum.SurfaceType.Weld
1644
Part105.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1645
Part105.TopSurface = Enum.SurfaceType.Weld
1646
Part105.Position = Vector3.new(-6.15929508, 5.92921209, -18.5541191)
1647
Part105.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1648
Model106.Name = "DoorLeft"
1649
Model106.Parent = Model78
1650
Part107.Name = "Door"
1651
Part107.Parent = Model106
1652
Part107.BrickColor = BrickColor.new("Black")
1653
Part107.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1654
Part107.FormFactor = Enum.FormFactor.Custom
1655
Part107.Size = Vector3.new(2.1999917, 8, 0.400000006)
1656
Part107.CFrame = CFrame.new(-5.07194424, 5.2038579, -5.25443697, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1657
Part107.BottomSurface = Enum.SurfaceType.Weld
1658
Part107.TopSurface = Enum.SurfaceType.Smooth
1659
Part107.Color = Color3.new(0.105882, 0.164706, 0.207843)
1660
Part107.Position = Vector3.new(-5.07194424, 5.2038579, -5.25443697)
1661
Part107.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1662
Part107.Color = Color3.new(0.105882, 0.164706, 0.207843)
1663
Part108.Name = "ElevatorBorder"
1664
Part108.Parent = Model78
1665
Part108.Material = Enum.Material.SmoothPlastic
1666
Part108.BrickColor = BrickColor.new("Dark stone grey")
1667
Part108.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1668
Part108.FormFactor = Enum.FormFactor.Custom
1669
Part108.Size = Vector3.new(1.00000525, 1.20000005, 11.5999975)
1670
Part108.CFrame = CFrame.new(-11.0651579, 11.2173157, -12.2486916, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1671
Part108.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1672
Part108.LeftSurface = Enum.SurfaceType.Weld
1673
Part108.TopSurface = Enum.SurfaceType.Smooth
1674
Part108.Color = Color3.new(0.388235, 0.372549, 0.384314)
1675
Part108.Position = Vector3.new(-11.0651579, 11.2173157, -12.2486916)
1676
Part108.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1677
Part108.Color = Color3.new(0.388235, 0.372549, 0.384314)
1678
Part109.Name = "Platform"
1679
Part109.Parent = Model78
1680
Part109.Material = Enum.Material.Wood
1681
Part109.BrickColor = BrickColor.new("Sand blue")
1682
Part109.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1683
Part109.FormFactor = Enum.FormFactor.Custom
1684
Part109.Size = Vector3.new(8.80000782, 1.20000005, 11.5999975)
1685
Part109.CFrame = CFrame.new(-6.16539812, 0.617229998, -12.264226, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1686
Part109.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1687
Part109.TopSurface = Enum.SurfaceType.SmoothNoOutlines
1688
Part109.Color = Color3.new(0.454902, 0.52549, 0.615686)
1689
Part109.Position = Vector3.new(-6.16539812, 0.617229998, -12.264226)
1690
Part109.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1691
Part109.Color = Color3.new(0.454902, 0.52549, 0.615686)
1692
Sound110.Name = "Alarm"
1693
Sound110.Parent = Part109
1694
Sound110.SoundId = "http://www.roblox.com/asset/?id=141279377"
1695
Sound111.Name = "Beep"
1696
Sound111.Parent = Part109
1697
Sound111.SoundId = "http://www.roblox.com/asset/?id=157954122"
1698
BodyGyro112.Parent = Part109
1699
BodyGyro112.maxTorque = Vector3.new(40000000, 0, 40000000)
1700
BodyGyro112.P = 5000
1701
BodyGyro112.D = 100
1702
BodyGyro112.MaxTorque = Vector3.new(40000000, 0, 40000000)
1703
BodyPosition113.Parent = Part109
1704
BodyPosition113.P = 0
1705
BodyPosition113.D = 0
1706
BodyPosition113.position = Vector3.new(-27.7700005, 49.7480011, 3.50200009)
1707
BodyPosition113.Position = Vector3.new(-27.7700005, 49.7480011, 3.50200009)
1708
BodyVelocity114.Parent = Part109
1709
BodyVelocity114.Velocity = Vector3.new(0, 0, 0)
1710
BodyVelocity114.P = 2000
1711
BodyVelocity114.velocity = Vector3.new(0, 0, 0)
1712
Sound115.Name = "FloorPassChime"
1713
Sound115.Parent = Part109
1714
Sound115.Pitch = 3
1715
Sound115.SoundId = "rbxasset://sounds/electronicpingshort.wav"
1716
Sound116.Name = "Motor"
1717
Sound116.Parent = Part109
1718
Sound116.Pitch = 0.5
1719
Sound116.SoundId = "http://www.roblox.com/asset/?id=148093107"
1720
Sound116.Volume = 0
1721
Sound116.Looped = true
1722
Sound117.Name = "Chime"
1723
Sound117.Parent = Part109
1724
Sound117.SoundId = "rbxasset://sounds/electronicpingshort.wav"
1725
Part118.Name = "DoorIndUp"
1726
Part118.Parent = Model78
1727
Part118.Material = Enum.Material.SmoothPlastic
1728
Part118.BrickColor = BrickColor.new("Really black")
1729
Part118.Transparency = 1
1730
Part118.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1731
Part118.FormFactor = Enum.FormFactor.Custom
1732
Part118.Size = Vector3.new(0.200000003, 0.800000012, 0.800000012)
1733
Part118.CFrame = CFrame.new(-8.27112484, 7.80545378, -6.05252314, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1734
Part118.BackSurface = Enum.SurfaceType.Weld
1735
Part118.BottomSurface = Enum.SurfaceType.Smooth
1736
Part118.RightSurface = Enum.SurfaceType.Weld
1737
Part118.TopSurface = Enum.SurfaceType.Smooth
1738
Part118.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1739
Part118.Position = Vector3.new(-8.27112484, 7.80545378, -6.05252314)
1740
Part118.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1741
Part118.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1742
BlockMesh119.Parent = Part118
1743
BlockMesh119.Offset = Vector3.new(0.100000001, 0, -0.100000001)
1744
BlockMesh119.Scale = Vector3.new(0.100000001, 1, 1)
1745
BlockMesh119.Scale = Vector3.new(0.100000001, 1, 1)
1746
Decal120.Parent = Part118
1747
Decal120.Texture = "http://www.roblox.com/asset/?id=73327045"
1748
Decal120.Face = Enum.NormalId.Left
1749
IntValue121.Name = "Reverse"
1750
IntValue121.Parent = Part118
1751
Part122.Name = "ElevatorDoorFrame"
1752
Part122.Parent = Model78
1753
Part122.Material = Enum.Material.SmoothPlastic
1754
Part122.BrickColor = BrickColor.new("Dark stone grey")
1755
Part122.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1756
Part122.FormFactor = Enum.FormFactor.Custom
1757
Part122.Size = Vector3.new(0.200000003, 7.99999809, 1)
1758
Part122.CFrame = CFrame.new(-3.87128091, 5.205163, -5.95329714, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1759
Part122.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1760
Part122.BottomSurface = Enum.SurfaceType.Weld
1761
Part122.LeftSurface = Enum.SurfaceType.Weld
1762
Part122.TopSurface = Enum.SurfaceType.Weld
1763
Part122.Color = Color3.new(0.388235, 0.372549, 0.384314)
1764
Part122.Position = Vector3.new(-3.87128091, 5.205163, -5.95329714)
1765
Part122.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1766
Part122.Color = Color3.new(0.388235, 0.372549, 0.384314)
1767
Part123.Name = "ElevatorDoorPlate"
1768
Part123.Parent = Model78
1769
Part123.Material = Enum.Material.Wood
1770
Part123.BrickColor = BrickColor.new("Dark stone grey")
1771
Part123.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1772
Part123.FormFactor = Enum.FormFactor.Custom
1773
Part123.Size = Vector3.new(10.800005, 1.20000029, 1)
1774
Part123.CFrame = CFrame.new(-6.17138195, 0.605230987, -5.96424103, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1775
Part123.BackSurface = Enum.SurfaceType.Weld
1776
Part123.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1777
Part123.TopSurface = Enum.SurfaceType.Smooth
1778
Part123.Color = Color3.new(0.388235, 0.372549, 0.384314)
1779
Part123.Position = Vector3.new(-6.17138195, 0.605230987, -5.96424103)
1780
Part123.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1781
Part123.Color = Color3.new(0.388235, 0.372549, 0.384314)
1782
Part124.Name = "ElevatorBorder"
1783
Part124.Parent = Model78
1784
Part124.Material = Enum.Material.SmoothPlastic
1785
Part124.BrickColor = BrickColor.new("Dark stone grey")
1786
Part124.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1787
Part124.FormFactor = Enum.FormFactor.Custom
1788
Part124.Size = Vector3.new(1.00000525, 1.20000005, 11.5999975)
1789
Part124.CFrame = CFrame.new(-1.26540101, 0.617112994, -12.259572, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1790
Part124.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1791
Part124.RightSurface = Enum.SurfaceType.Weld
1792
Part124.TopSurface = Enum.SurfaceType.Smooth
1793
Part124.Color = Color3.new(0.388235, 0.372549, 0.384314)
1794
Part124.Position = Vector3.new(-1.26540101, 0.617112994, -12.259572)
1795
Part124.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1796
Part124.Color = Color3.new(0.388235, 0.372549, 0.384314)
1797
Part125.Name = "ElevatorWalls"
1798
Part125.Parent = Model78
1799
Part125.BrickColor = BrickColor.new("Bright blue")
1800
Part125.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1801
Part125.FormFactor = Enum.FormFactor.Custom
1802
Part125.Size = Vector3.new(2.00000811, 8.1999979, 1)
1803
Part125.CFrame = CFrame.new(-2.7712779, 5.30513477, -5.95206118, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1804
Part125.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1805
Part125.BottomSurface = Enum.SurfaceType.Weld
1806
Part125.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1807
Part125.TopSurface = Enum.SurfaceType.Weld
1808
Part125.Color = Color3.new(0.0509804, 0.411765, 0.67451)
1809
Part125.Position = Vector3.new(-2.7712779, 5.30513477, -5.95206118)
1810
Part125.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1811
Part125.Color = Color3.new(0.0509804, 0.411765, 0.67451)
1812
Part126.Name = "ScreenBorder"
1813
Part126.Parent = Model78
1814
Part126.BrickColor = BrickColor.new("Bright blue")
1815
Part126.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1816
Part126.FormFactor = Enum.FormFactor.Custom
1817
Part126.Size = Vector3.new(0.200000003, 1.19999814, 1)
1818
Part126.CFrame = CFrame.new(-6.67117119, 10.0052099, -5.94681406, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1819
Part126.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1820
Part126.BottomSurface = Enum.SurfaceType.Weld
1821
Part126.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1822
Part126.TopSurface = Enum.SurfaceType.Weld
1823
Part126.Color = Color3.new(0.0509804, 0.411765, 0.67451)
1824
Part126.Position = Vector3.new(-6.67117119, 10.0052099, -5.94681406)
1825
Part126.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1826
Part126.Color = Color3.new(0.0509804, 0.411765, 0.67451)
1827
Part127.Name = "ScreenBorder"
1828
Part127.Parent = Model78
1829
Part127.BrickColor = BrickColor.new("Bright blue")
1830
Part127.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1831
Part127.FormFactor = Enum.FormFactor.Custom
1832
Part127.Size = Vector3.new(1.20000005, 0.200000003, 1)
1833
Part127.CFrame = CFrame.new(-5.97118282, 9.50520039, -5.94710207, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1834
Part127.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1835
Part127.BottomSurface = Enum.SurfaceType.Weld
1836
Part127.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1837
Part127.TopSurface = Enum.SurfaceType.Weld
1838
Part127.Color = Color3.new(0.0509804, 0.411765, 0.67451)
1839
Part127.Position = Vector3.new(-5.97118282, 9.50520039, -5.94710207)
1840
Part127.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1841
Part127.Color = Color3.new(0.0509804, 0.411765, 0.67451)
1842
Part128.Name = "BTDC"
1843
Part128.Parent = Model78
1844
Part128.Material = Enum.Material.SmoothPlastic
1845
Part128.BrickColor = BrickColor.new("Black")
1846
Part128.Transparency = 1
1847
Part128.Rotation = Vector3.new(-178.539993, -89.9399948, -178.649994)
1848
Part128.FormFactor = Enum.FormFactor.Custom
1849
Part128.Size = Vector3.new(0.200000003, 0.400000036, 0.400000036)
1850
Part128.CFrame = CFrame.new(-9.77073765, 3.8064549, -6.56156397, -0.000949842099, 2.24495634e-05, -0.999999523, -0.00190452766, 0.999998212, 2.42585356e-05, 0.999997735, 0.00190454966, -0.000949797686)
1851
Part128.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1852
Part128.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1853
Part128.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1854
Part128.RightSurface = Enum.SurfaceType.Weld
1855
Part128.TopSurface = Enum.SurfaceType.SmoothNoOutlines
1856
Part128.Color = Color3.new(0.105882, 0.164706, 0.207843)
1857
Part128.Position = Vector3.new(-9.77073765, 3.8064549, -6.56156397)
1858
Part128.Orientation = Vector3.new(0, -90.0499954, -0.109999999)
1859
Part128.Color = Color3.new(0.105882, 0.164706, 0.207843)
1860
Decal129.Name = "Texture"
1861
Decal129.Parent = Part128
1862
Decal129.Texture = "rbxassetid://41808037"
1863
Decal129.Face = Enum.NormalId.Left
1864
BlockMesh130.Parent = Part128
1865
BlockMesh130.Offset = Vector3.new(0.100000001, 0, 0)
1866
BlockMesh130.Scale = Vector3.new(0.0500000007, 1, 1)
1867
BlockMesh130.Scale = Vector3.new(0.0500000007, 1, 1)
1868
ClickDetector131.Parent = Part128
1869
Decal132.Name = "FloorNumberL"
1870
Decal132.Parent = Part128
1871
Decal132.Texture = "rbxassetid://41808037"
1872
Decal132.Face = Enum.NormalId.Left
1873
Decal133.Name = "FloorNumberR"
1874
Decal133.Parent = Part128
1875
Decal133.Texture = "rbxassetid://41808037"
1876
Decal133.Face = Enum.NormalId.Left
1877
Part134.Name = "BTAL"
1878
Part134.Parent = Model78
1879
Part134.Material = Enum.Material.SmoothPlastic
1880
Part134.BrickColor = BrickColor.new("Black")
1881
Part134.Transparency = 1
1882
Part134.Rotation = Vector3.new(-178.539993, -89.9399948, -178.649994)
1883
Part134.FormFactor = Enum.FormFactor.Custom
1884
Part134.Size = Vector3.new(0.200000003, 0.400000036, 0.400000036)
1885
Part134.CFrame = CFrame.new(-9.37073803, 3.80644488, -6.56118488, -0.000949842099, 2.24495634e-05, -0.999999523, -0.00190452766, 0.999998212, 2.42585356e-05, 0.999997735, 0.00190454966, -0.000949797686)
1886
Part134.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1887
Part134.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1888
Part134.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1889
Part134.RightSurface = Enum.SurfaceType.Weld
1890
Part134.TopSurface = Enum.SurfaceType.SmoothNoOutlines
1891
Part134.Color = Color3.new(0.105882, 0.164706, 0.207843)
1892
Part134.Position = Vector3.new(-9.37073803, 3.80644488, -6.56118488)
1893
Part134.Orientation = Vector3.new(0, -90.0499954, -0.109999999)
1894
Part134.Color = Color3.new(0.105882, 0.164706, 0.207843)
1895
Decal135.Name = "Texture"
1896
Decal135.Parent = Part134
1897
Decal135.Texture = "rbxassetid://41808037"
1898
Decal135.Face = Enum.NormalId.Left
1899
BlockMesh136.Parent = Part134
1900
BlockMesh136.Offset = Vector3.new(0.100000001, 0, 0)
1901
BlockMesh136.Scale = Vector3.new(0.0500000007, 1, 1)
1902
BlockMesh136.Scale = Vector3.new(0.0500000007, 1, 1)
1903
ClickDetector137.Parent = Part134
1904
Decal138.Name = "FloorNumberL"
1905
Decal138.Parent = Part134
1906
Decal138.Texture = "rbxassetid://41808037"
1907
Decal138.Face = Enum.NormalId.Left
1908
Decal139.Name = "FloorNumberR"
1909
Decal139.Parent = Part134
1910
Decal139.Texture = "rbxassetid://41808037"
1911
Decal139.Face = Enum.NormalId.Left
1912
Part140.Name = "Screen"
1913
Part140.Parent = Model78
1914
Part140.Material = Enum.Material.SmoothPlastic
1915
Part140.BrickColor = BrickColor.new("Black")
1916
Part140.Transparency = 1
1917
Part140.Rotation = Vector3.new(-178.539993, -89.9399948, -178.649994)
1918
Part140.FormFactor = Enum.FormFactor.Custom
1919
Part140.Size = Vector3.new(0.200000003, 0.800000012, 1.20000005)
1920
Part140.CFrame = CFrame.new(-5.97079086, 10.0059643, -6.34614801, -0.000949842099, 2.24495634e-05, -0.999999523, -0.00190452766, 0.999998212, 2.42585356e-05, 0.999997735, 0.00190454966, -0.000949797686)
1921
Part140.BackSurface = Enum.SurfaceType.Weld
1922
Part140.BottomSurface = Enum.SurfaceType.Weld
1923
Part140.FrontSurface = Enum.SurfaceType.Weld
1924
Part140.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
1925
Part140.RightSurface = Enum.SurfaceType.Weld
1926
Part140.TopSurface = Enum.SurfaceType.Weld
1927
Part140.Color = Color3.new(0.105882, 0.164706, 0.207843)
1928
Part140.Position = Vector3.new(-5.97079086, 10.0059643, -6.34614801)
1929
Part140.Orientation = Vector3.new(0, -90.0499954, -0.109999999)
1930
Part140.Color = Color3.new(0.105882, 0.164706, 0.207843)
1931
SurfaceGui141.Parent = Part140
1932
SurfaceGui141.Face = Enum.NormalId.Left
1933
SurfaceGui141.CanvasSize = Vector2.new(100, 50)
1934
Frame142.Parent = SurfaceGui141
1935
Frame142.Size = UDim2.new(1, 0, 1, 0)
1936
Frame142.BackgroundColor3 = Color3.new(0, 0, 0)
1937
Frame142.BorderColor3 = Color3.new(0.509804, 0.796078, 1)
1938
Frame142.ClipsDescendants = true
1939
TextLabel143.Name = "Indicator"
1940
TextLabel143.Parent = Frame142
1941
TextLabel143.Transparency = 1
1942
TextLabel143.Size = UDim2.new(0, 50, 0, 35)
1943
TextLabel143.Text = "1"
1944
TextLabel143.Position = UDim2.new(0, 50, 0, 1)
1945
TextLabel143.BackgroundColor3 = Color3.new(0.541176, 1, 0.0196078)
1946
TextLabel143.BackgroundTransparency = 1
1947
TextLabel143.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
1948
TextLabel143.ZIndex = 2
1949
TextLabel143.Font = Enum.Font.SourceSans
1950
TextLabel143.FontSize = Enum.FontSize.Size48
1951
TextLabel143.TextColor3 = Color3.new(0, 1, 0)
1952
TextLabel143.TextStrokeColor3 = Color3.new(0, 0.352941, 0)
1953
TextLabel143.TextStrokeTransparency = 0
1954
ImageLabel144.Name = "Arrow"
1955
ImageLabel144.Parent = Frame142
1956
ImageLabel144.Transparency = 1
1957
ImageLabel144.Size = UDim2.new(0, 16, 0, 35)
1958
ImageLabel144.Position = UDim2.new(0, 1, 0, 1)
1959
ImageLabel144.BackgroundColor3 = Color3.new(1, 1, 1)
1960
ImageLabel144.BackgroundTransparency = 1
1961
ImageLabel144.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
1962
ImageLabel144.BorderSizePixel = 2
1963
ImageLabel144.Image = "rbxassetid://0"
1964
TextBox145.Parent = Frame142
1965
TextBox145.Transparency = 1
1966
TextBox145.Size = UDim2.new(0, 100, 0, 13)
1967
TextBox145.Text = "OTIS SPACE"
1968
TextBox145.Position = UDim2.new(0, 0, 0.699999988, 0)
1969
TextBox145.BackgroundColor3 = Color3.new(1, 1, 1)
1970
TextBox145.BackgroundTransparency = 1
1971
TextBox145.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843)
1972
TextBox145.Font = Enum.Font.Arial
1973
TextBox145.FontSize = Enum.FontSize.Size12
1974
TextBox145.TextColor3 = Color3.new(0, 1, 0)
1975
TextBox145.TextStrokeColor3 = Color3.new(0, 0.352941, 0)
1976
TextBox145.TextWrapped = true
1977
Part146.Name = "ScreenBorder"
1978
Part146.Parent = Model78
1979
Part146.BrickColor = BrickColor.new("Bright blue")
1980
Part146.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
1981
Part146.FormFactor = Enum.FormFactor.Custom
1982
Part146.Size = Vector3.new(0.200000003, 1.19999814, 1)
1983
Part146.CFrame = CFrame.new(-5.27117109, 10.0051861, -5.94548416, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
1984
Part146.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1985
Part146.BottomSurface = Enum.SurfaceType.Weld
1986
Part146.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1987
Part146.TopSurface = Enum.SurfaceType.Weld
1988
Part146.Color = Color3.new(0.0509804, 0.411765, 0.67451)
1989
Part146.Position = Vector3.new(-5.27117109, 10.0051861, -5.94548416)
1990
Part146.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
1991
Part146.Color = Color3.new(0.0509804, 0.411765, 0.67451)
1992
Part147.Name = "BTF2"
1993
Part147.Parent = Model78
1994
Part147.Material = Enum.Material.SmoothPlastic
1995
Part147.BrickColor = BrickColor.new("Black")
1996
Part147.Transparency = 1
1997
Part147.Rotation = Vector3.new(-178.539993, -89.9399948, -178.649994)
1998
Part147.FormFactor = Enum.FormFactor.Custom
1999
Part147.Size = Vector3.new(0.200000003, 0.400000036, 0.400000036)
2000
Part147.CFrame = CFrame.new(-9.77069759, 5.60645008, -6.55813599, -0.000949842099, 2.24495634e-05, -0.999999523, -0.00190452766, 0.999998212, 2.42585356e-05, 0.999997735, 0.00190454966, -0.000949797686)
2001
Part147.BackSurface = Enum.SurfaceType.SmoothNoOutlines
2002
Part147.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
2003
Part147.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
2004
Part147.RightSurface = Enum.SurfaceType.Weld
2005
Part147.TopSurface = Enum.SurfaceType.SmoothNoOutlines
2006
Part147.Color = Color3.new(0.105882, 0.164706, 0.207843)
2007
Part147.Position = Vector3.new(-9.77069759, 5.60645008, -6.55813599)
2008
Part147.Orientation = Vector3.new(0, -90.0499954, -0.109999999)
2009
Part147.Color = Color3.new(0.105882, 0.164706, 0.207843)
2010
Decal148.Name = "Texture"
2011
Decal148.Parent = Part147
2012
Decal148.Texture = "rbxassetid://41808037"
2013
Decal148.Face = Enum.NormalId.Left
2014
BlockMesh149.Parent = Part147
2015
BlockMesh149.Offset = Vector3.new(0.100000001, 0, 0)
2016
BlockMesh149.Scale = Vector3.new(0.0500000007, 1, 1)
2017
BlockMesh149.Scale = Vector3.new(0.0500000007, 1, 1)
2018
ClickDetector150.Parent = Part147
2019
Decal151.Name = "FloorNumberL"
2020
Decal151.Parent = Part147
2021
Decal151.Texture = "rbxassetid://41808037"
2022
Decal151.Face = Enum.NormalId.Left
2023
Decal152.Name = "FloorNumberR"
2024
Decal152.Parent = Part147
2025
Decal152.Texture = "rbxassetid://41808037"
2026
Decal152.Face = Enum.NormalId.Left
2027
Part153.Name = "BTF1"
2028
Part153.Parent = Model78
2029
Part153.Material = Enum.Material.SmoothPlastic
2030
Part153.BrickColor = BrickColor.new("Black")
2031
Part153.Transparency = 1
2032
Part153.Rotation = Vector3.new(-178.539993, -89.9399948, -178.649994)
2033
Part153.FormFactor = Enum.FormFactor.Custom
2034
Part153.Size = Vector3.new(0.200000003, 0.400000036, 0.400000036)
2035
Part153.CFrame = CFrame.new(-9.37069798, 5.60644007, -6.55775595, -0.000949842099, 2.24495634e-05, -0.999999523, -0.00190452766, 0.999998212, 2.42585356e-05, 0.999997735, 0.00190454966, -0.000949797686)
2036
Part153.BackSurface = Enum.SurfaceType.SmoothNoOutlines
2037
Part153.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
2038
Part153.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
2039
Part153.RightSurface = Enum.SurfaceType.Weld
2040
Part153.TopSurface = Enum.SurfaceType.SmoothNoOutlines
2041
Part153.Color = Color3.new(0.105882, 0.164706, 0.207843)
2042
Part153.Position = Vector3.new(-9.37069798, 5.60644007, -6.55775595)
2043
Part153.Orientation = Vector3.new(0, -90.0499954, -0.109999999)
2044
Part153.Color = Color3.new(0.105882, 0.164706, 0.207843)
2045
Decal154.Name = "Texture"
2046
Decal154.Parent = Part153
2047
Decal154.Texture = "rbxassetid://41808037"
2048
Decal154.Face = Enum.NormalId.Left
2049
BlockMesh155.Parent = Part153
2050
BlockMesh155.Offset = Vector3.new(0.100000001, 0, 0)
2051
BlockMesh155.Scale = Vector3.new(0.0500000007, 1, 1)
2052
BlockMesh155.Scale = Vector3.new(0.0500000007, 1, 1)
2053
ClickDetector156.Parent = Part153
2054
Decal157.Name = "FloorNumberL"
2055
Decal157.Parent = Part153
2056
Decal157.Texture = "rbxassetid://41808037"
2057
Decal157.Face = Enum.NormalId.Left
2058
Decal158.Name = "FloorNumberR"
2059
Decal158.Parent = Part153
2060
Decal158.Texture = "rbxassetid://41808037"
2061
Decal158.Face = Enum.NormalId.Left
2062
Part159.Name = "ElevatorWalls"
2063
Part159.Parent = Model78
2064
Part159.BrickColor = BrickColor.new("Bright blue")
2065
Part159.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
2066
Part159.FormFactor = Enum.FormFactor.Custom
2067
Part159.Size = Vector3.new(3.40001321, 1.19999814, 1)
2068
Part159.CFrame = CFrame.new(-3.47117209, 10.0051355, -5.94377518, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
2069
Part159.BackSurface = Enum.SurfaceType.SmoothNoOutlines
2070
Part159.BottomSurface = Enum.SurfaceType.Weld
2071
Part159.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
2072
Part159.TopSurface = Enum.SurfaceType.Weld
2073
Part159.Color = Color3.new(0.0509804, 0.411765, 0.67451)
2074
Part159.Position = Vector3.new(-3.47117209, 10.0051355, -5.94377518)
2075
Part159.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
2076
Part159.Color = Color3.new(0.0509804, 0.411765, 0.67451)
2077
Part160.Name = "ScreenBorder"
2078
Part160.Parent = Model78
2079
Part160.BrickColor = BrickColor.new("Bright blue")
2080
Part160.Rotation = Vector3.new(-179.889999, 0.049999997, -180)
2081
Part160.FormFactor = Enum.FormFactor.Custom
2082
Part160.Size = Vector3.new(1.20000005, 0.200000003, 1)
2083
Part160.CFrame = CFrame.new(-5.97115993, 10.5051899, -5.94519615, -0.999999523, 2.24495634e-05, 0.000949842099, 2.42585356e-05, 0.999998212, 0.00190452766, -0.000949797686, 0.00190454966, -0.999997735)
2084
Part160.BackSurface = Enum.SurfaceType.SmoothNoOutlines
2085
Part160.BottomSurface = Enum.SurfaceType.Weld
2086
Part160.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
2087
Part160.TopSurface = Enum.SurfaceType.Weld
2088
Part160.Color = Color3.new(0.0509804, 0.411765, 0.67451)
2089
Part160.Position = Vector3.new(-5.97115993, 10.5051899, -5.94519615)
2090
Part160.Orientation = Vector3.new(-0.109999999, 179.949997, 0)
2091
Part160.Color = Color3.new(0.0509804, 0.411765, 0.67451)
2092
Script161.Name = "Teknikk Gen4 V2.1"
2093
Script161.Parent = Model1
2094
table.insert(cors,sandbox(Script161,function()
2095
print("Teknikk Gen4 V2.1 Multi API")
2096
2097
Floor = script.Parent.Floor
2098
Motor = script.Parent.Motor
2099
Car   = script.Parent.Car
2100
2101
 IgnoreSensor = false
2102
 DoorState = "Closed"
2103
 DoorStateRear = "Closed"
2104
 DoorSpeed = 0
2105
 DoorL = 43
2106
 DoorC = 0.05
2107
 DoorP = 0
2108
 DoorPR = 0
2109
 DoorTimer = 5
2110
 NudgeTimer = 30
2111
 DoorOpenTime = 0
2112
 DoorNudge = false
2113
 DoorTimerReset = false
2114
 DoorTimerResetRear = false
2115
 
2116
 ConfigMode = false
2117
2118
 EngineAPI = "B" -- DO NOT CHANGE TO CFRAME UNLESS YOU WANT IT MESSED UP
2119
 EngineDynamicSpeed = false
2120
if EngineAPI == "C" then
2121
2122
 MotorStartSpeed = 0.15
2123
 MotorStopSpeed = 0.1
2124
 MotorSpeed = 0.2
2125
 LevelOffset = 2.5
2126
elseif EngineAPI == "B" then
2127
2128
 BP = Car.Platform.BodyPosition
2129
 BV = Car.Platform.BodyVelocity
2130
2131
 MotorStartSpeed = 0.05
2132
 MotorStopSpeed = 0.05
2133
 MotorSpeed = 13 -- Change this to adjust the Movement speed
2134
 LevelOffset = 5
2135
2136
end
2137
2138
local MoveDirection = "None"
2139
2140
local TargetFloor = 0
2141
local TotalFloors = 0
2142
local CallQuene = {}
2143
2144
2145
local FireLock = false
2146
local Alarm = false
2147
local Moving = false
2148
local Busy = false
2149
local Locked = false
2150
local Fire = false
2151
local Light = true
2152
2153
2154
local OpenWhenIdle = false
2155
local Chime = false
2156
local FloorPassChime = true
2157
local ClassicLevel = false
2158
local CardLock = true
2159
local DoorSensors = true
2160
local DoorSensorHold = true
2161
local CardNumber = {
2162
	[0]=0,
2163
	[301]=3,
2164
	[302]=3,
2165
	[303]=3,
2166
	[304]=3,
2167
	[305]=3,
2168
	[306]=3,
2169
	[307]=3,
2170
	[401]=4,
2171
	[402]=4,
2172
	[403]=4,
2173
	[404]=4,
2174
	[405]=4,
2175
	[406]=4,
2176
	[407]=4
2177
}
2178
local UnlockedFloor = 9001
2179
local LockedFloors = {11,13,15}
2180
local LightLock = {"Player1","Heisteknikk"}
2181
2182
2183
2184
local CarCF = {}
2185
2186
2187
local TCar = script.Parent.Car
2188
local TFloors = script.Parent.Floors
2189
2190
2191
2192
2193
local TFloorsG = script.Parent.Floors:GetChildren()
2194
2195
local TCarG = script.Parent.Car:GetChildren()
2196
local TDoorL = script.Parent.Car.DoorLeft:GetChildren()
2197
local TDoorR = script.Parent.Car.DoorRight:GetChildren()
2198
2199
2200
2201
2202
for i1=1,#TCarG do
2203
	table.insert(CarCF,TCarG[i1])
2204
end
2205
for i2=1,#TDoorL do
2206
	table.insert(CarCF,TDoorL[i2])
2207
end
2208
for i3=1,#TDoorR do
2209
	table.insert(CarCF,TDoorR[i3])
2210
end
2211
2212
2213
2214
2215
2216
local BtnULit = "http://www.roblox.com/asset/?id=146686839"
2217
local BtnLit =  "http://www.roblox.com/asset/?id=146686848"
2218
2219
local IndDirUp = "http://www.roblox.com/asset/?id=73327045"
2220
local IndDirDown = "http://www.roblox.com/asset/?id=73327045"
2221
local IndDirULit = "http://www.roblox.com/asset/?id=73327064"
2222
2223
local DirIndLit = "http://www.roblox.com/asset/?id=73327064"
2224
local DirIndULit = "http://www.roblox.com/asset/?id=73327045"
2225
2226
function ProcessCall(xFloor, xDest)
2227
	if Busy == false and xFloor ~= xDest then
2228
		if xDest > xFloor then
2229
			script.Parent.TFloor.Value = xDest
2230
			Start("Up",xDest)
2231
		end
2232
		if xDest < xFloor then			
2233
			script.Parent.TFloor.Value = xDest
2234
			Start("Down",xDest)
2235
		end
2236
	end
2237
end
2238
2239
2240
function Start(xDirection,xDest)
2241
Busy = true
2242
Car.Platform.Motor.Pitch = 0
2243
Car.Platform.Motor:Play()
2244
if DoorState ~= "Closed" or DoorStateRear ~= "Closed" then
2245
repeat
2246
wait()
2247
print("Door 1: "..DoorState.."; Door 2: "..DoorStateRear)
2248
until DoorState == "Closed" and DoorStateRear == "Closed" 
2249
end
2250
Moving = true
2251
2252
if EngineAPI == "B" and EngineDynamicSpeed then
2253
print("Calculating Dynamic Speed...")
2254
local GetDist = (TFloors:FindFirstChild("Floor"..xDest).Level.Position.Y - Car.Platform.Position.Y)
2255
print("Calculated Speed")
2256
print(math.abs(GetDist/50*28))
2257
MotorSpeed = math.abs(GetDist/50*28)
2258
end
2259
2260
2261
2262
	if EngineAPI == "B" then
2263
		BP.P = 0
2264
		BP.D = 0
2265
		BV.P = 5000
2266
		Car.Platform.Anchored = false
2267
			end
2268
2269
2270
		coroutine.resume(coroutine.create(function()
2271
		for i=0.1, 1, 0.05 do
2272
			Car.Platform.Motor.Pitch = i
2273
			wait(0.1)
2274
		end
2275
		end))
2276
2277
	if xDirection == "Up" then
2278
		script.Parent.Direction.Value = "U"
2279
		MoveDirection = "Up"
2280
		CallDirection = "Up"
2281
		Motor.Value = 0.000001
2282
		script.StartMotor.Value = true
2283
		if EngineAPI == "C" then
2284
		for i = 0.02, MotorSpeed, 0.02 do
2285
			Motor.Value = i
2286
			wait(MotorStartSpeed)
2287
		end
2288
		end
2289
		if EngineAPI == "B" then
2290
		for i = 0, MotorSpeed, 1 do
2291
			Motor.Value = i
2292
			wait(MotorStartSpeed)
2293
		end
2294
		end
2295
	end
2296
	if xDirection == "Down" then
2297
			script.Parent.Direction.Value = "D"
2298
		MoveDirection = "Down"
2299
		CallDirection = "Down"
2300
		Motor.Value = -0.000001
2301
		script.StartMotor.Value = true
2302
		
2303
		
2304
		
2305
		
2306
		
2307
		
2308
		if EngineAPI == "C" then
2309
		for i = 0, MotorSpeed, 0.02 do
2310
			Motor.Value = -i
2311
			wait(MotorStartSpeed)
2312
		end
2313
		end
2314
		if EngineAPI == "B" then
2315
		for i = 0, MotorSpeed, 1 do
2316
			Motor.Value = -i
2317
			wait(MotorStartSpeed)
2318
		end
2319
		end
2320
	end
2321
2322
2323
2324
end
2325
2326
2327
function Stop(TF)
2328
local HaveAStop = false
2329
for i=1, #CallQuene do
2330
	if CallQuene[i] == TF then
2331
		HaveAStop = true
2332
	end
2333
end
2334
2335
if HaveAStop then
2336
script.Parent.Direction.Value =  "N"
2337
2338
Btn(TF,0)
2339
2340
2341
if EngineAPI == "C" then
2342
	if MoveDirection == "Up" then
2343
		for i = MotorSpeed, 0, -0.05 do
2344
			Motor.Value = i
2345
			wait(MotorStopSpeed)
2346
		end
2347
	end
2348
	if MoveDirection == "Down" then
2349
		for i = MotorSpeed, 0, -0.05 do
2350
			Motor.Value = -i
2351
			wait(MotorStopSpeed)
2352
		end
2353
	end
2354
end
2355
		coroutine.resume(coroutine.create(function()
2356
		for i=0.5, 0.1, -0.05 do
2357
			Car.Platform.Motor.Pitch = i
2358
			wait(0.1)
2359
		end
2360
		end))
2361
if EngineAPI == "B" then
2362
2363
	local FYpos = TFloors:FindFirstChild("Floor"..TF).Level.Position.Y
2364
	BP.position = Vector3.new(Car.Platform.BodyPosition.position.X,FYpos,Car.Platform.BodyPosition.position.Z)
2365
	BP.P = 10000
2366
	BP.D = 4000
2367
	BV.P = 0
2368
	BV.velocity = Vector3.new(0,0,0)
2369
2370
end
2371
2372
local Dir = MoveDirection
2373
Quene(TF,"Remove")
2374
if Floor.Value == TotalFloors then
2375
	MoveDirection = "Down"
2376
end
2377
if Floor.Value == 1 then
2378
	MoveDirection = "Up"
2379
end
2380
Moving = false
2381
if ClassicLevel and EngineAPI == "C" then
2382
DoorRun(1)
2383
end
2384
repeat
2385
	if EngineAPI == "C" then
2386
	for i, v in ipairs(CarCF) do
2387
		if v:IsA("Part") or v:IsA("WedgePart") or v:IsA("CornerWedgePart") then
2388
			if v:FindFirstChild("Reverse")~=nil then
2389
				if Dir == "Up" then
2390
				v.CFrame = v.CFrame * CFrame.new(0, -0.01, 0)
2391
				else
2392
				v.CFrame = v.CFrame * CFrame.new(0, 0.01, 0)
2393
				end
2394
			else
2395
				if Dir == "Up" then
2396
				v.CFrame = v.CFrame * CFrame.new(0, 0.01, 0)
2397
				else
2398
				v.CFrame = v.CFrame * CFrame.new(0, -0.01, 0)					
2399
				end
2400
			end
2401
		elseif v:IsA("Model") then
2402
			local z = v:GetChildren()
2403
			for a, s in ipairs(z) do
2404
				if v:IsA("Part") or v:IsA("WedgePart") or v:IsA("CornerWedgePart") then
2405
					if v:FindFirstChild("Reverse")~=nil then
2406
						if Dir == "Up" then
2407
						s.CFrame = s.CFrame * CFrame.new(0, -0.01, 0)
2408
						else
2409
						s.CFrame = s.CFrame * CFrame.new(0, 0.01, 0)							
2410
						end
2411
					else
2412
						if Dir == "Up" then
2413
						s.CFrame = s.CFrame * CFrame.new(0, 0.01, 0)
2414
						else
2415
						s.CFrame = s.CFrame * CFrame.new(0, -0.01, 0)							
2416
						end
2417
					end
2418
				end
2419
			end
2420
		end
2421
	end
2422
	end
2423
wait()
2424
until math.abs(TFloors:FindFirstChild("Floor"..TF).Level.Position.Y - Car.Platform.Position.Y) < 0.1
2425
Car.Platform.Motor:Stop()
2426
wait(0.5)
2427
Motor.Value = 0
2428
2429
if EngineAPI == "B" then
2430
	Car.Platform.Anchored = true
2431
	wait(0.5)
2432
end
2433
2434
TargetFloor = 0
2435
script.Parent.TargetFloor.Value = 0
2436
2437
if not ClassicLevel or EngineAPI == "B" then
2438
DoorRun(1)
2439
end
2440
2441
print("Waiting 5 before Reset")
2442
Busy = false
2443
wait(5)
2444
Quene(0,"Check")
2445
--local Number = nil
2446
--repeat Number = math.random(1,4) until Number ~= Floor.Value
2447
--script.Parent.ScriptCall.Value = Number
2448
end
2449
end
2450
2451
2452
2453
2454
2455
function DoorRun(xm)
2456
if Debug then print("DoorRun("..xm..") executed") end
2457
	if xm == 1 then		
2458
		if DoorState == "Closed" then
2459
		coroutine.resume(coroutine.create(function()  DoorOpen(Floor.Value,false)  end))
2460
		end
2461
		if DoorStateRear == "Closed" then
2462
		coroutine.resume(coroutine.create(function() RearDoorOpen(Floor.Value,false) end)) -- REAR DOOR
2463
		end
2464
	end
2465
	if xm == 2 then
2466
		if DoorState == "Open" then
2467
		coroutine.resume(coroutine.create(function() DoorClose(Floor.Value) end))-- MAIN DOOR
2468
		end
2469
		if DoorStateRear == "Open" then
2470
		coroutine.resume(coroutine.create(function() RearDoorClose(Floor.Value) end)) -- REAR DOOR
2471
		end
2472
	end
2473
	if xm == 3 then
2474
		if DoorState == "Closing" then
2475
		coroutine.resume(coroutine.create(function() DoorReOpen(Floor.Value,true) end))-- MAIN DOOR
2476
		end
2477
		if DoorStateRear == "Closing" then
2478
		coroutine.resume(coroutine.create(function() RearDoorReOpen(Floor.Value,true) end))-- MAIN DOOR
2479
		end
2480
	end
2481
end
2482
2483
function DoorOpen(F,ReOpen)
2484
	if F ~= Floor.Value and Moving == true then return end -- IF NOT OF FLOOR DO NOT Open
2485
	if DoorNudge == true then return end -- NO OPEN ON NUDGE
2486
	if DoorState == "Closed" then -- open when closed and reopen if closing
2487
		if TFloors:FindFirstChild("Floor"..F):FindFirstChild("DoorLeft") == nil then print("No Main Door detected") return end
2488
		DoorState = "Opening"
2489
		local DoorCarLeft = Car.DoorLeft:GetChildren()
2490
		local DoorCarRight = Car.DoorRight:GetChildren()	
2491
		local DoorFloorLeft = TFloors:FindFirstChild("Floor"..F):FindFirstChild("DoorLeft"):GetChildren()
2492
		local DoorFloorRight = TFloors:FindFirstChild("Floor"..F):FindFirstChild("DoorRight"):GetChildren()
2493
		if EngineAPI == "B" then
2494
		for C1 = 1, #DoorCarLeft do DoorCarLeft[C1].Anchored = true end
2495
		for C2 = 1, #DoorCarRight do DoorCarRight[C2].Anchored = true end
2496
		end
2497
		for i=DoorP, DoorL do
2498
			DoorP = DoorP + 1
2499
			for R=1, #DoorFloorRight do
2500
				DoorFloorRight[R].CFrame = DoorFloorRight[R].CFrame * CFrame.new(DoorC, 0, 0)
2501
			end
2502
			for L=1, #DoorFloorLeft do
2503
				DoorFloorLeft[L].CFrame = DoorFloorLeft[L].CFrame * CFrame.new(-DoorC, 0, 0)
2504
			end
2505
			for CR=1, #DoorCarRight do
2506
				DoorCarRight[CR].CFrame = DoorCarRight[CR].CFrame * CFrame.new(DoorC, 0, 0)
2507
			end
2508
			for CL=1, #DoorCarLeft do
2509
				DoorCarLeft[CL].CFrame = DoorCarLeft[CL].CFrame * CFrame.new(-DoorC, 0, 0)
2510
			end
2511
			wait(DoorSpeed)
2512
		end
2513
2514
		if DoorState == "CancelReopen" then DoorState = "OkReopen"  return end
2515
		DoorState = "Open"
2516
		SetCarDirInd(1)
2517
		SetFloorDirInd(1)
2518
		if ChimeAfterDoor then coroutine.resume(coroutine.create(function() DoChime() end)) end
2519
		
2520
		-- CREATE DOOR TIMER
2521
		coroutine.resume(coroutine.create(function() 
2522
			local CTime = 0
2523
			repeat
2524
				wait(1)
2525
				CTime = CTime + 1
2526
				if DoorTimerReset == true then
2527
					print("Timer reset due to sensor touched or Open clicked")
2528
					CTime = 0
2529
					DoorTimerReset = false
2530
				end
2531
			until CTime > DoorTimer or DoorState ~= "Open"
2532
			if CTime > DoorTimer then
2533
				DoorClose(Floor.Value)
2534
			elseif DoorState ~= "Open" then
2535
				print("Door was closed before timer ended :)")
2536
			end
2537
		end))
2538
		DoorCheck() -- NUDGE TIMER
2539
2540
	end
2541
end
2542
2543
function DoorReOpen(F)
2544
	if F ~= Floor.Value and Moving == true then return end -- IF NOT OF FLOOR DO NOT Open
2545
	if DoorNudge == true then return end -- NO OPEN ON NUDGE
2546
	if DoorState == "Closing" and DoorNudge == false then -- open when closed and reopen if closing
2547
		if TFloors:FindFirstChild("Floor"..F):FindFirstChild("DoorLeft") == nil then print("No Main Door detected") return end
2548
		DoorState = "CancelReopen"
2549
		repeat wait() until DoorState == "OkReopen"
2550
		wait(0.2) 
2551
		DoorState = "Opening"
2552
		local DoorCarLeft = Car.DoorLeft:GetChildren()
2553
		local DoorCarRight = Car.DoorRight:GetChildren()	
2554
		local DoorFloorLeft = TFloors:FindFirstChild("Floor"..F):FindFirstChild("DoorLeft"):GetChildren()
2555
		local DoorFloorRight = TFloors:FindFirstChild("Floor"..F):FindFirstChild("DoorRight"):GetChildren()
2556
		if EngineAPI == "B" then
2557
		for C1 = 1, #DoorCarLeft do DoorCarLeft[C1].Anchored = true end
2558
		for C2 = 1, #DoorCarRight do DoorCarRight[C2].Anchored = true end
2559
		end
2560
		for i=DoorP, DoorL do
2561
			DoorP = DoorP + 1
2562
			for R=1, #DoorFloorRight do
2563
				DoorFloorRight[R].CFrame = DoorFloorRight[R].CFrame * CFrame.new(DoorC, 0, 0)
2564
			end
2565
			for L=1, #DoorFloorLeft do
2566
				DoorFloorLeft[L].CFrame = DoorFloorLeft[L].CFrame * CFrame.new(-DoorC, 0, 0)
2567
			end
2568
			for CR=1, #DoorCarRight do
2569
				DoorCarRight[CR].CFrame = DoorCarRight[CR].CFrame * CFrame.new(DoorC, 0, 0)
2570
			end
2571
			for CL=1, #DoorCarLeft do
2572
				DoorCarLeft[CL].CFrame = DoorCarLeft[CL].CFrame * CFrame.new(-DoorC, 0, 0)
2573
			end
2574
			wait(DoorSpeed)
2575
		end
2576
2577
		if DoorState == "CancelReopen" then DoorState = "OkReopen" print("Grr, need to reopen...") return end
2578
		DoorState = "Open"
2579
		SetCarDirInd(1)
2580
		SetFloorDirInd(1)
2581
		if ChimeAfterDoor then coroutine.resume(coroutine.create(function() DoChime() end)) end
2582
		
2583
		-- CREATE DOOR TIMER
2584
		coroutine.resume(coroutine.create(function() 
2585
			local CTime = 0
2586
			repeat
2587
				wait(1)
2588
				CTime = CTime + 1
2589
				if DoorTimerReset == true or DoorHold == true then
2590
					print("Timer reset due to sensor touched or Open clicked")
2591
					CTime = 0
2592
					DoorTimerReset = false
2593
				end
2594
			until CTime > DoorTimer or DoorState ~= "Open"
2595
			if CTime > DoorTimer then
2596
				DoorClose(Floor.Value)
2597
			elseif DoorState ~= "Open" then
2598
				print("Door was closed before timer ended :)")
2599
			end
2600
		end))
2601
		DoorCheck() -- NUDGE TIMER
2602
2603
	end
2604
end
2605
2606
function DoorClose(F,Nudge)
2607
	if DoorHold == true then return end
2608
	if F ~= Floor.Value and Moving == true then return end -- IF NOT OF FLOOR DO NOT Open
2609
	if Floor.Value == 1 and FireLock then return end
2610
	if DoorState == "Open" or DoorState ~= "Closed" and DoorState == "Opening" and Nudge == true then
2611
		if TFloors:FindFirstChild("Floor"..F):FindFirstChild("DoorLeft") == nil then print("No Main Door detected") return end
2612
		if Nudge == true then 
2613
			DoorNudge = true 
2614
			coroutine.resume(coroutine.create(function()
2615
				while DoorState ~= "Closed" do
2616
				Car.Platform.Chime:Play()
2617
				wait(0.3)
2618
				end
2619
			end))
2620
		end
2621
		repeat wait() until DoorState == "Open" 
2622
		SetCarDirInd(0)
2623
		SetFloorDirInd(0)
2624
		DoorState = "Closing"
2625
		
2626
		local DoorCarLeft = Car.DoorLeft:GetChildren()
2627
		local DoorCarRight = Car.DoorRight:GetChildren()	
2628
		local DoorFloorLeft = TFloors:FindFirstChild("Floor"..F):FindFirstChild("DoorLeft"):GetChildren()
2629
		local DoorFloorRight = TFloors:FindFirstChild("Floor"..F):FindFirstChild("DoorRight"):GetChildren()
2630
		
2631
2632
		
2633
		for i=0, DoorL do
2634
			if DoorState == "CancelReopen" then DoorState = "OkReopen" return end
2635
			DoorP = DoorP - 1
2636
			for R=1, #DoorFloorRight do
2637
				DoorFloorRight[R].CFrame = DoorFloorRight[R].CFrame * CFrame.new(-DoorC, 0, 0)
2638
			end
2639
			for L=1, #DoorFloorLeft do
2640
				DoorFloorLeft[L].CFrame = DoorFloorLeft[L].CFrame * CFrame.new(DoorC, 0, 0)
2641
			end
2642
			for CR=1, #DoorCarRight do
2643
				DoorCarRight[CR].CFrame = DoorCarRight[CR].CFrame * CFrame.new(-DoorC, 0, 0)
2644
			end
2645
			for CL=1, #DoorCarLeft do
2646
				DoorCarLeft[CL].CFrame = DoorCarLeft[CL].CFrame * CFrame.new(DoorC, 0, 0)
2647
			end
2648
			if Nudge == true then
2649
			wait(0.1)
2650
			else
2651
			wait(DoorSpeed)
2652
			end
2653
		end
2654
		if DoorState == "CancelReopen" then DoorState = "OkReopen" return end
2655
		if DoorState == "Closing" then
2656
		if Nudge == true then DoorNudge = false end		
2657
		if EngineAPI == "B" then
2658
		for C1 = 1, #DoorCarLeft do DoorCarLeft[C1].Anchored = false end
2659
		for C2 = 1, #DoorCarRight do DoorCarRight[C2].Anchored = false end
2660
		end
2661
		DoorState = "Closed"
2662
		Quene(0,"Check")
2663
		end
2664
	end
2665
end
2666
2667
2668
function RearDoorOpen(F,ReOpen)
2669
	if F ~= Floor.Value and Moving == true then return end -- IF NOT OF FLOOR DO NOT Open
2670
	if DoorNudge == true then return end -- NO OPEN ON NUDGE
2671
	if DoorStateRear == "Closed" then -- open when closed and reopen if closing
2672
		if TFloors:FindFirstChild("Floor"..F):FindFirstChild("DoorLeftRear") == nil then print("No Rear Door detected") return end
2673
		DoorStateRear = "Opening"
2674
		local DoorCarLeftRear = Car.DoorLeftRear:GetChildren()
2675
		local DoorCarRightRear = Car.DoorRightRear:GetChildren()	
2676
		local DoorFloorLeftRear = TFloors:FindFirstChild("Floor"..F):FindFirstChild("DoorLeftRear"):GetChildren()
2677
		local DoorFloorRightRear = TFloors:FindFirstChild("Floor"..F):FindFirstChild("DoorRightRear"):GetChildren()
2678
		if EngineAPI == "B" then
2679
		for C1 = 1, #DoorCarLeftRear do DoorCarLeftRear[C1].Anchored = true end
2680
		for C2 = 1, #DoorCarRightRear do DoorCarRightRear[C2].Anchored = true end
2681
		end
2682
		for i=DoorPR, DoorL do
2683
			DoorPR = DoorPR + 1
2684
			for R=1, #DoorFloorRightRear do
2685
				DoorFloorRightRear[R].CFrame = DoorFloorRightRear[R].CFrame * CFrame.new(DoorC, 0, 0)
2686
			end
2687
			for L=1, #DoorFloorLeftRear do
2688
				DoorFloorLeftRear[L].CFrame = DoorFloorLeftRear[L].CFrame * CFrame.new(-DoorC, 0, 0)
2689
			end
2690
			for CR=1, #DoorCarRightRear do
2691
				DoorCarRightRear[CR].CFrame = DoorCarRightRear[CR].CFrame * CFrame.new(DoorC, 0, 0)
2692
			end
2693
			for CL=1, #DoorCarLeftRear do
2694
				DoorCarLeftRear[CL].CFrame = DoorCarLeftRear[CL].CFrame * CFrame.new(-DoorC, 0, 0)
2695
			end
2696
			wait(DoorSpeed)
2697
		end
2698
2699
		if DoorStateRear == "CancelReopen" then DoorStateRear = "OkReopen"  return end
2700
		DoorStateRear = "Open"
2701
		SetCarDirInd(1,true)
2702
		SetFloorDirInd(1)
2703
		if ChimeAfterDoor then coroutine.resume(coroutine.create(function() DoChime() end)) end
2704
		
2705
		-- CREATE DOOR TIMER
2706
		coroutine.resume(coroutine.create(function() 
2707
			local CTimeRear = 0
2708
			repeat
2709
				wait(1)
2710
				CTimeRear = CTimeRear + 1
2711
				if DoorTimerRearReset == true then
2712
					print("Timer reset due to sensor touched or Open clicked")
2713
					CTimeRear = 0
2714
					DoorTimerRearReset = false
2715
				end
2716
			until CTimeRear > DoorTimer or DoorStateRear ~= "Open"
2717
			if CTimeRear > DoorTimer then
2718
				RearDoorClose(Floor.Value)
2719
			elseif DoorStateRear ~= "Open" then
2720
				print("Door was closed before timer ended :)")
2721
			end
2722
		end))
2723
		DoorCheck() -- NUDGE TIMER
2724
2725
	end
2726
end
2727
2728
function RearDoorReOpen(F)
2729
	if F ~= Floor.Value and Moving == true then return end -- IF NOT OF FLOOR DO NOT Open
2730
	if DoorNudge == true then return end -- NO OPEN ON NUDGE
2731
	if DoorStateRear == "Closing" and DoorNudge == false then -- open when closed and reopen if closing
2732
		if TFloors:FindFirstChild("Floor"..F):FindFirstChild("DoorLeftRear") == nil then print("No Rear Door detected") return end
2733
		DoorStateRear = "CancelReopen"
2734
		repeat wait() until DoorStateRear == "OkReopen"
2735
		wait(0.2) 
2736
		DoorStateRear = "Opening"
2737
		local DoorCarLeftRear = Car.DoorLeftRear:GetChildren()
2738
		local DoorCarRightRear = Car.DoorRightRear:GetChildren()	
2739
		local DoorFloorLeftRear = TFloors:FindFirstChild("Floor"..F):FindFirstChild("DoorLeftRear"):GetChildren()
2740
		local DoorFloorRightRear = TFloors:FindFirstChild("Floor"..F):FindFirstChild("DoorRightRear"):GetChildren()
2741
		if EngineAPI == "B" then
2742
		for C1 = 1, #DoorCarLeftRear do DoorCarLeftRear[C1].Anchored = true end
2743
		for C2 = 1, #DoorCarRightRear do DoorCarRightRear[C2].Anchored = true end
2744
		end
2745
		for i=DoorPR, DoorL do
2746
			DoorPR = DoorPR + 1
2747
			for R=1, #DoorFloorRightRear do
2748
				DoorFloorRightRear[R].CFrame = DoorFloorRightRear[R].CFrame * CFrame.new(DoorC, 0, 0)
2749
			end
2750
			for L=1, #DoorFloorLeftRear do
2751
				DoorFloorLeftRear[L].CFrame = DoorFloorLeftRear[L].CFrame * CFrame.new(-DoorC, 0, 0)
2752
			end
2753
			for CR=1, #DoorCarRightRear do
2754
				DoorCarRightRear[CR].CFrame = DoorCarRightRear[CR].CFrame * CFrame.new(DoorC, 0, 0)
2755
			end
2756
			for CL=1, #DoorCarLeftRear do
2757
				DoorCarLeftRear[CL].CFrame = DoorCarLeftRear[CL].CFrame * CFrame.new(-DoorC, 0, 0)
2758
			end
2759
			wait(DoorSpeed)
2760
		end
2761
2762
		if DoorStateRear == "CancelReopen" then DoorStateRear = "OkReopen" print("Grr, need to reopen...") return end
2763
		DoorStateRear = "Open"
2764
		SetCarDirInd(1,true)
2765
		SetFloorDirInd(1)
2766
		if ChimeAfterDoor then coroutine.resume(coroutine.create(function() DoChime() end)) end
2767
		
2768
		-- CREATE DOOR TIMER
2769
		coroutine.resume(coroutine.create(function() 
2770
			local CTimeRear = 0
2771
			repeat
2772
				wait(1)
2773
				CTimeRear = CTimeRear + 1
2774
				if DoorTimerResetRear == true or DoorHold == true then
2775
					print("Timer reset due to sensor touched or Open clicked")
2776
					CTimeRear = 0
2777
					DoorTimerResetRear = false
2778
				end
2779
			until CTimeRear > DoorTimer or DoorStateRear ~= "Open"
2780
			if CTimeRear > DoorTimer then
2781
				RearDoorClose(Floor.Value)
2782
			elseif DoorStateRear ~= "Open" then
2783
				print("Door was closed before timer ended :)")
2784
			end
2785
		end))
2786
		DoorCheck() -- NUDGE TIMER
2787
2788
	end
2789
end
2790
2791
function RearDoorClose(F,Nudge)
2792
	if DoorHold == true then return end
2793
	if F ~= Floor.Value and Moving == true then return end -- IF NOT OF FLOOR DO NOT Open
2794
	if Floor.Value == 1 and FireLock then return end
2795
	if DoorStateRear == "Open" or DoorStateRear ~= "Closed" and DoorStateRear == "Opening" and Nudge == true then
2796
		if TFloors:FindFirstChild("Floor"..F):FindFirstChild("DoorLeftRear") == nil then print("No Rear Door detected") return end
2797
		if Nudge == true then 
2798
			DoorNudge = true 
2799
			coroutine.resume(coroutine.create(function()
2800
				while DoorStateRear ~= "Closed" do
2801
				Car.Platform.Chime:Play()
2802
				wait(0.3)
2803
				end
2804
			end))
2805
		end
2806
		repeat wait() until DoorStateRear == "Open" 
2807
		SetCarDirInd(0,true)
2808
		SetFloorDirInd(0)
2809
		DoorStateRear = "Closing"
2810
		
2811
		local DoorCarLeftRear = Car.DoorLeftRear:GetChildren()
2812
		local DoorCarRightRear = Car.DoorRightRear:GetChildren()	
2813
		local DoorFloorLeftRear = TFloors:FindFirstChild("Floor"..F):FindFirstChild("DoorLeftRear"):GetChildren()
2814
		local DoorFloorRightRear = TFloors:FindFirstChild("Floor"..F):FindFirstChild("DoorRightRear"):GetChildren()
2815
		
2816
2817
		
2818
		for i=0, DoorL do
2819
			if DoorStateRear == "CancelReopen" then DoorStateRear = "OkReopen" return end
2820
			DoorPR = DoorPR - 1
2821
			for R=1, #DoorFloorRightRear do
2822
				DoorFloorRightRear[R].CFrame = DoorFloorRightRear[R].CFrame * CFrame.new(-DoorC, 0, 0)
2823
			end
2824
			for L=1, #DoorFloorLeftRear do
2825
				DoorFloorLeftRear[L].CFrame = DoorFloorLeftRear[L].CFrame * CFrame.new(DoorC, 0, 0)
2826
			end
2827
			for CR=1, #DoorCarRightRear do
2828
				DoorCarRightRear[CR].CFrame = DoorCarRightRear[CR].CFrame * CFrame.new(-DoorC, 0, 0)
2829
			end
2830
			for CL=1, #DoorCarLeftRear do
2831
				DoorCarLeftRear[CL].CFrame = DoorCarLeftRear[CL].CFrame * CFrame.new(DoorC, 0, 0)
2832
			end
2833
			if Nudge == true then
2834
			wait(0.1)
2835
			else
2836
			wait(DoorSpeed)
2837
			end
2838
		end
2839
		if DoorStateRear == "CancelReopen" then DoorStateRear = "OkReopen" return end
2840
		if DoorStateRear == "Closing" then
2841
		if Nudge == true then DoorNudge = false end		
2842
		if EngineAPI == "B" then
2843
		for C1 = 1, #DoorCarLeftRear do DoorCarLeftRear[C1].Anchored = false end
2844
		for C2 = 1, #DoorCarRightRear do DoorCarRightRear[C2].Anchored = false end
2845
		end
2846
		DoorStateRear = "Closed"
2847
		Quene(0,"Check")
2848
		end
2849
	end
2850
end
2851
2852
Running = false
2853
2854
function DoorCheck()
2855
if Running then return end
2856
if FireLock then return end
2857
		if DoorOpenTime == 0 then 
2858
		coroutine.resume(coroutine.create (function() 	
2859
			Running = true
2860
			while DoorOpenTime ~= NudgeTimer do 
2861
				if DoorState == "Closed" or FireLock or DoorHold then break end
2862
				DoorOpenTime = DoorOpenTime + 1 
2863
				print("Nudge timer: "..DoorOpenTime)
2864
				wait(1) 
2865
			end 
2866
			if  DoorState ~= "Closed" or DoorStateRear ~= "Closed" then 
2867
				coroutine.resume(coroutine.create(function() 
2868
					repeat wait() until DoorState == "Open" or DoorState == "Closed" 
2869
					if DoorState == "Closed" then 
2870
						return -- No takk
2871
					elseif DoorState == "Open" then
2872
						DoorClose(Floor.Value,true) 
2873
					end
2874
				end))	
2875
				
2876
2877
2878
				DoorOpenTime = 0
2879
				Running = false
2880
			end
2881
			DoorOpenTime = 0
2882
			Running = false
2883
		end))
2884
		end
2885
end
2886
2887
2888
2889
2890
if DoorSensors then
2891
Car.DoorSensor.Touched:connect(function (Player)
2892
if Player == nil then return end
2893
if Player.Parent == nil then return end
2894
if Player.Parent:FindFirstChild("Humanoid") then
2895
coroutine.resume(coroutine.create(function() if not Moving and DoorState == "Closing" then DoorTimerReset= true DoorRun(3) end end))
2896
end
2897
end)
2898
2899
if Car:FindFirstChild("DoorSensorRear") then
2900
Car.DoorSensorRear.Touched:connect(function (Player)
2901
if Player == nil then return end
2902
if Player.Parent == nil then return end
2903
if Player.Parent:FindFirstChild("Humanoid") then
2904
coroutine.resume(coroutine.create(function() if not Moving and DoorStateRear == "Closing" then DoorTimerResetRear = true DoorRun(3) end end))
2905
end
2906
2907
end)
2908
end
2909
end
2910
2911
2912
2913
function Btn(xFloor,xMode,Type)
2914
2915
	local xCar = TCar:FindFirstChild("BTF"..xFloor)
2916
	local xCall = TFloors:FindFirstChild("Floor"..xFloor):FindFirstChild("CallButton")
2917
	local xCall2 = TFloors:FindFirstChild("Floor"..xFloor):FindFirstChild("CallButtonRear")
2918
	--local xDual = script.Parent.Parent.Parent.HallButtons:FindFirstChild("b"..xFloor)
2919
2920
	if xMode == 1 then
2921
		if xCar ~= nil and Type == "Car" then
2922
			xCar.Texture.Texture = BtnLit
2923
		end
2924
		if xCall ~= nil and Type == "Call"  then
2925
			xCall.Texture.Texture = BtnLit
2926
		end
2927
		if xCall2 ~= nil and Type == "Call"  then
2928
			xCall2.Texture.Texture = BtnLit
2929
		end
2930
2931
	end
2932
	if xMode == 0 then
2933
		if xCar ~= nil then
2934
			xCar.Texture.Texture  = BtnULit
2935
		end
2936
		if xCall ~= nil then
2937
			xCall.Texture.Texture = BtnULit
2938
		end
2939
		if xCall2 ~= nil then
2940
			xCall2.Texture.Texture = BtnULit
2941
		end
2942
		if xDual ~= nil then
2943
			xDual.Texture.Texture = BtnULit
2944
		end
2945
2946
	end
2947
2948
end
2949
2950
local Chime = TCar.Platform.Chime
2951
function SetCarDirInd(F,Rear)
2952
	if Rear == true then
2953
		
2954
	if TCar:FindFirstChild("DoorIndUpRear") and  TCar:FindFirstChild("DoorIndDownRear") then
2955
	if F == 1 then
2956
		if MoveDirection == "Up" then
2957
			TCar.DoorIndUpRear.Decal.Texture = DirIndLit	
2958
			Chime.Pitch = 1
2959
			Chime:Play()		
2960
		elseif MoveDirection == "Down" then	
2961
			TCar.DoorIndDownRear.Decal.Texture = DirIndLit	
2962
			Chime.Pitch = 1
2963
			Chime:Play()		
2964
			wait(0.8)
2965
			Chime.Pitch = 0.8
2966
			Chime:Play()			
2967
		elseif Floor.Value == TotalFloors then
2968
			TCar.DoorIndDownRear.Decal.Texture = DirIndLit
2969
			Chime.Pitch = 1
2970
			Chime:Play()	
2971
			wait(0.8)
2972
			Chime.Pitch = 0.8
2973
			Chime:Play()			
2974
		elseif Floor.Value == 1 then
2975
			TCar.DoorIndUpRear.Decal.Texture = DirIndLit
2976
			Chime.Pitch = 1
2977
			Chime:Play()	
2978
		else
2979
			TCar.DoorIndUpRear.Decal.Texture = DirIndLit	
2980
			TCar.DoorIndDownRear.Decal.Texture = DirIndLit	
2981
			Chime.Pitch = 1
2982
			Chime:Play()	
2983
		end
2984
	end
2985
	if F == 0 then 
2986
			TCar.DoorIndUpRear.Decal.Texture = DirIndULit	
2987
			TCar.DoorIndDownRear.Decal.Texture = DirIndULit	
2988
	end
2989
	end	
2990
		
2991
	else
2992
	if TCar:FindFirstChild("DoorIndUp") and  TCar:FindFirstChild("DoorIndDown") then
2993
	if F == 1 then
2994
		if MoveDirection == "Up" then
2995
			TCar.DoorIndUp.Decal.Texture = DirIndLit	
2996
			Chime.Pitch = 1
2997
			Chime:Play()		
2998
		elseif MoveDirection == "Down" then	
2999
			TCar.DoorIndDown.Decal.Texture = DirIndLit	
3000
			Chime.Pitch = 1
3001
			Chime:Play()		
3002
			wait(0.8)
3003
			Chime.Pitch = 0.8
3004
			Chime:Play()			
3005
		elseif Floor.Value == TotalFloors then
3006
			TCar.DoorIndDown.Decal.Texture = DirIndLit
3007
			Chime.Pitch = 1
3008
			Chime:Play()	
3009
			wait(0.8)
3010
			Chime.Pitch = 0.8
3011
			Chime:Play()			
3012
		elseif Floor.Value == 1 then
3013
			TCar.DoorIndUp.Decal.Texture = DirIndLit
3014
			Chime.Pitch = 1
3015
			Chime:Play()	
3016
		else
3017
			TCar.DoorIndUp.Decal.Texture = DirIndLit	
3018
			TCar.DoorIndDown.Decal.Texture = DirIndLit	
3019
			Chime.Pitch = 1
3020
			Chime:Play()	
3021
		end
3022
	end
3023
	if F == 0 then 
3024
			TCar.DoorIndUp.Decal.Texture = DirIndULit	
3025
			TCar.DoorIndDown.Decal.Texture = DirIndULit	
3026
	end
3027
	end
3028
	end
3029
end
3030
function SetFloorDirInd(F)
3031
	if F == 1 then
3032
		if MoveDirection == "Up" or Floor.Value == 1 then
3033
			if TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndUp1") then
3034
				TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndUp1").Decal.Texture = DirIndLit	
3035
			end
3036
			if TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndUp2") then
3037
				TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndUp2").Decal.Texture = DirIndLit	
3038
			end	
3039
			if TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndUp1Rear") then
3040
				TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndUp1Rear").Decal.Texture = DirIndLit	
3041
			end
3042
			if TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndUp2Rear") then
3043
				TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndUp2Rear").Decal.Texture = DirIndLit	
3044
			end	
3045
		elseif MoveDirection == "Down" or Floor.Value == TotalFloors then
3046
			if TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndDown1") then
3047
				TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndDown1").Decal.Texture = DirIndLit		
3048
			end
3049
			if TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndDown2") then
3050
				TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndDown2").Decal.Texture = DirIndLit	
3051
			end	
3052
			if TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndDown1Rear") then
3053
				TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndDown1Rear").Decal.Texture = DirIndLit		
3054
			end
3055
			if TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndDown2Rear") then
3056
				TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndDown2Rear").Decal.Texture = DirIndLit	
3057
			end	
3058
		else
3059
3060
		end
3061
	end
3062
	if F == 0 then 
3063
		if TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndUp1") then
3064
			TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndUp1").Decal.Texture = DirIndULit			
3065
		end
3066
		if TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndUp2") then
3067
			TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndUp2").Decal.Texture = DirIndULit		
3068
		end
3069
		if TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndDown1") then
3070
			TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndDown1").Decal.Texture = DirIndULit	
3071
		end
3072
		if TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndDown2") then
3073
			TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndDown2").Decal.Texture = DirIndULit		
3074
		end
3075
		if TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndUp1Rear") then
3076
			TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndUp1Rear").Decal.Texture = DirIndULit	
3077
		end
3078
		if TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndUp2Rear") then
3079
			TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndUp2Rear").Decal.Texture = DirIndULit	
3080
		end	
3081
		if TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndDown1Rear") then
3082
			TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndDown1Rear").Decal.Texture = DirIndULit		
3083
		end
3084
		if TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndDown2Rear") then
3085
			TFloors:FindFirstChild("Floor"..Floor.Value):FindFirstChild("DirIndDown2Rear").Decal.Texture = DirIndULit	
3086
		end	
3087
	end
3088
end
3089
3090
3091
function Quene(xFloor,Mode,isCall)
3092
3093
	if Mode == "Check" then
3094
		for i = 1, #CallQuene do
3095
			if CallQuene[i] ~= nil then
3096
				ProcessCall(Floor.Value, CallQuene[i])
3097
			end
3098
		end
3099
	end
3100
	if Mode == "Add" then
3101
3102
if Fire then return end
3103
		Btn(xFloor,1,isCall)
3104
		local IgnoreCall = false
3105
		local IsCalled = false
3106
3107
		if isCall == "Car" then
3108
		if CardLock then
3109
		for i = 1, #LockedFloors do
3110
			if LockedFloors[i] == xFloor then
3111
				if UnlockedFloor == LockedFloors[i] or UnlockedFloor == 0 then
3112
					
3113
				print("Ignoring lock")
3114
				else
3115
				print("Floor Locked...")
3116
					IgnoreCall = true
3117
				end
3118
				
3119
			end
3120
		end
3121
		end
3122
		end
3123
3124
3125
		for i = 1, #CallQuene do
3126
			if CallQuene[i] == xFloor then
3127
				print("Call exist, Not adding floor: "..CallQuene[i])
3128
				IgnoreCall = true
3129
				IsCalled = true
3130
			end
3131
		end
3132
3133
3134
3135
		if xFloor == Floor.Value and not Busy and not Moving then
3136
			DoorRun(1)
3137
			wait(0.2)
3138
			Btn(xFloor,0)
3139
		end
3140
		if not IgnoreCall and xFloor ~= Floor.Value and not Locked or not IgnoreCall and xFloor ~= Floor.Value and xFloor == 1  then
3141
			table.insert(CallQuene,xFloor)
3142
			print("Floor added, Value: "..xFloor)
3143
			Btn(xFloor,1,isCall)
3144
			if not Busy then Quene(0,"Check") end
3145
		else
3146
			if xFloor == Floor.Value and not Locked or IgnoreCall and IsCalled == false then
3147
			wait(0.2)
3148
			Btn(xFloor,0)
3149
			end
3150
			if Locked then
3151
			wait(0.2)
3152
			Btn(xFloor,0)
3153
			end
3154
		end
3155
3156
	end
3157
3158
	if Mode == "Remove" then
3159
			for i = 1, #CallQuene do
3160
				if CallQuene[i] == xFloor then
3161
				print("Removed: "..CallQuene[i])
3162
					table.remove(CallQuene,i)
3163
				end
3164
			end
3165
			Btn(xFloor,"Off")
3166
	end
3167
end
3168
3169
3170
3171
3172
3173
function DoAlarm()
3174
	if not Alarm then
3175
		Alarm = true
3176
			TCar.Platform.Alarm.SoundId = "http://www.roblox.com/asset/?id=157771891"
3177
			TCar.Platform.Alarm.Looped = true
3178
			TCar.Platform.Alarm.Pitch = 2
3179
			wait(0.5)
3180
			TCar.Platform.Alarm:Play()
3181
			wait(5)
3182
			TCar.Platform.Alarm.Looped = false
3183
			TCar.Platform.Alarm:Stop()
3184
			
3185
			
3186
			TCar.Platform.Alarm.SoundId = "http://www.roblox.com/asset/?id=12721064"
3187
			TCar.Platform.Alarm.Looped = false
3188
			wait(1)
3189
			TCar.Platform.Alarm:Play()
3190
			TCar.Platform.Alarm.Pitch = 1
3191
			wait(3)
3192
			TCar.Platform.Alarm.SoundId = "http://www.roblox.com/asset/?id=12721071"
3193
			TCar.Platform.Alarm.Looped = false
3194
			TCar.Platform.Alarm.Pitch = 1
3195
			for i=1,3 do
3196
			TCar.Platform.Alarm:Play()
3197
			wait(2)
3198
			end
3199
			
3200
--[[
3201
			TCar.Platform.Alarm.SoundId = "http://www.roblox.com/asset/?id=142628192"
3202
			TCar.Platform.Alarm.Looped = false
3203
			TCar.Platform.Alarm.Pitch = 1
3204
			wait(0.5)
3205
			TCar.Platform.Alarm:Play()
3206
			wait(25)
3207
			TCar.Platform.Alarm.SoundId = "http://www.roblox.com/asset/?id=130772180"
3208
			TCar.Platform.Alarm.Looped = false
3209
			TCar.Platform.Alarm.Pitch = 1
3210
			wait(0.5)
3211
			TCar.Platform.Alarm:Play()
3212
			wait(1)
3213
			]]--
3214
			TCar.Platform.Alarm.SoundId = "http://www.roblox.com/asset/?id=138254180"
3215
			TCar.Platform.Alarm.Looped = false
3216
			TCar.Platform.Alarm.Pitch = 1
3217
			wait(0.5)
3218
			TCar.Platform.Alarm:Play()
3219
			wait(3)
3220
			TCar.Platform.Alarm.SoundId = "http://www.roblox.com/asset/?id=138187085"
3221
			TCar.Platform.Alarm.Looped = false
3222
			TCar.Platform.Alarm.Pitch = 1
3223
			wait(0.5)
3224
			TCar.Platform.Alarm:Play()
3225
			wait(1)						
3226
3227
		Alarm = false
3228
	end
3229
end
3230
3231
3232
x = script.Parent.Floors:GetChildren()
3233
cs = Car:GetChildren()
3234
3235
3236
3237
if TCar:FindFirstChild("CardReader") ~= nil then
3238
	TCar:FindFirstChild("CardReader").Touched:connect(function (Card)
3239
	local Accepted = false
3240
		if Card.Parent.Name ~= "ConfigKey" and Card.Parent:FindFirstChild("CardNumber") ~= nil and CardLock  then
3241
3242
			for i,l in pairs(CardNumber) do
3243
			if Card.Parent.CardNumber.Value == i then
3244
				TCar.CardReader.BrickColor = BrickColor.new("Bright green")
3245
				UnlockedFloor = l
3246
				--CardLock = false
3247
				wait(5)
3248
				UnlockedFloor = 99999
3249
				--CardLock = true
3250
				TCar.CardReader.BrickColor = BrickColor.new("New Yeller")
3251
				Accepted = true
3252
			end
3253
			wait()
3254
			end
3255
			if not Accepted then
3256
				TCar.CardReader.BrickColor = BrickColor.new("Really red")
3257
				wait(1)
3258
				TCar.CardReader.BrickColor = BrickColor.new("New Yeller")
3259
			end
3260
		end
3261
	end)
3262
end
3263
3264
3265
3266
for i = 1, #TCarG  do
3267
	
3268
	
3269
	if TCarG[i].Name:sub(1,2) == "BT" then
3270
	TCarG[i].ClickDetector.MouseClick:connect(function() TCar.Platform.Beep:Play() end)
3271
	end
3272
	
3273
	if TCarG[i].Name:sub(1,3) == "BTF" then
3274
	TCarG[i].ClickDetector.MouseClick:connect(function() if ConfigMode then DoCfg(tonumber(TCarG[i].Name:sub(4))) end end)
3275
	end
3276
	
3277
	
3278
	
3279
	if TCarG[i].Name:sub(1,4) == "BTDO" then
3280
	local BO = false
3281
	TCarG[i].ClickDetector.MouseClick:connect(function()
3282
	if not ConfigMode then 
3283
	if not BO then
3284
	Bo = true
3285
	TCarG[i].Texture.Texture  = BtnLit
3286
	if not Moving and DoorState == "Closed" or DoorStateRear == "Closed"  then DoorRun(1)
3287
	end
3288
	if DoorState == "Closing" or DoorStateRear == "Closing" then DoorRun(3) end
3289
	wait(0.2)
3290
	TCarG[i].Texture.Texture  = BtnULit
3291
	Bo = false
3292
	end
3293
	end
3294
	end)
3295
3296
	end
3297
	if TCarG[i].Name:sub(1,4) == "BTDC" then
3298
	local BC = false
3299
	TCarG[i].ClickDetector.MouseClick:connect(function()
3300
	if not ConfigMode then 
3301
		if not BC then
3302
			BC = true
3303
			TCarG[i].Texture.Texture = BtnLit
3304
			DoorRun(2)
3305
			wait(0.2)
3306
			TCarG[i].Texture.Texture  = BtnULit
3307
			BC = false
3308
		end
3309
	end
3310
	end)
3311
	end
3312
3313
3314
	if TCarG[i].Name:sub(1,3) == "BTF" then
3315
		TCarG[i].ClickDetector.MouseClick:connect(function()
3316
			if not ConfigMode then 
3317
			Quene(tonumber(TCarG[i].Name:sub(4)),"Add","Car")
3318
			end end)
3319
3320
	end
3321
3322
	if TCarG[i].Name:sub(1,4) == "BTAL" then
3323
		TCarG[i].ClickDetector.MouseClick:connect(function() if not ConfigMode then DoAlarm() end end)
3324
	end
3325
3326
3327
end
3328
3329
3330
3331
for i = 1, #TFloorsG do
3332
	TotalFloors = TotalFloors + 1
3333
	if TFloorsG[i]:FindFirstChild("CallButton") then
3334
	TFloorsG[i].CallButton.ClickDetector.MouseClick:connect(function() if not ConfigMode then Quene(tonumber(TFloorsG[i].Name:sub(6)),"Add","Call") end end)
3335
	TFloorsG[i].CallButton.Texture.Texture = BtnULit
3336
	end
3337
3338
	if TFloorsG[i]:FindFirstChild("CallButtonRear") then
3339
	TFloorsG[i].CallButtonRear.ClickDetector.MouseClick:connect(function() if not ConfigMode then Quene(tonumber(TFloorsG[i].Name:sub(6)),"Add","Call") end end)
3340
	TFloorsG[i].CallButtonRear.Texture.Texture = BtnULit	
3341
	end
3342
end
3343
3344
3345
3346
script.Parent.ScriptCall.Changed:connect(function ()
3347
	if script.Parent.ScriptCall.Value ~= 0 then
3348
		Quene(script.Parent.ScriptCall.Value,"Add",true)
3349
		script.Parent.ScriptCall.Value = 0
3350
	end
3351
end)
3352
3353
3354
script.Parent.FireMode.Changed:connect(function ()
3355
	if script.Parent.FireMode.Value == true then
3356
3357
	FireLock = true
3358
	Locked = true
3359
	wait(1)
3360
	Quene(1,"Add","Call")
3361
3362
3363
3364
	else
3365
	Fire = false
3366
	FireLock = false
3367
	Locked = false
3368
	DoorRun(2)
3369
	end
3370
end)
3371
3372
3373
3374
3375
3376
Floor.Changed:connect(function()
3377
	if FloorPassChime then
3378
	Car.Platform.FloorPassChime:Play()
3379
	end
3380
end)
3381
3382
3383
3384
3385
print("Floor served: "..TotalFloors)
3386
3387
3388
3389
3390
3391
local Motor = script.Parent.Motor
3392
local Running = false
3393
3394
			
3395
Motor.Changed:connect(function()
3396
3397
	if EngineAPI == "C" then
3398
	if not Running then
3399
		Running = true
3400
		if Motor.Value ~= 0 then
3401
			repeat
3402
				for i, v in ipairs(CarCF) do
3403
					if v:IsA("Part") or v:IsA("WedgePart") or v:IsA("CornerWedgePart") then
3404
						if v:FindFirstChild("Reverse")~=nil then
3405
						v.CFrame = v.CFrame * CFrame.new(0, -Motor.Value, 0)
3406
						else
3407
						v.CFrame = v.CFrame * CFrame.new(0, Motor.Value, 0)
3408
						end
3409
					elseif v:IsA("Model") then
3410
						local z = v:GetChildren()
3411
						for a, s in ipairs(z) do
3412
							if v:IsA("Part") or v:IsA("WedgePart") or v:IsA("CornerWedgePart") then
3413
								if v:FindFirstChild("Reverse")~=nil then
3414
									s.CFrame = s.CFrame * CFrame.new(0, -Motor.Value, 0)
3415
									else
3416
									s.CFrame = s.CFrame * CFrame.new(0, Motor.Value, 0)
3417
								end
3418
							end
3419
						end
3420
					end
3421
				end
3422
			wait()
3423
			until Motor.Value == 0
3424
		end
3425
		Running = false
3426
	end
3427
	end
3428
3429
	if EngineAPI == "B" then
3430
		BV.velocity = Vector3.new(0,Motor.Value,0)
3431
	end
3432
3433
end)
3434
3435
3436
local Landing = false
3437
Motor.Changed:connect(function()
3438
	if not Landing then
3439
		Landing = true
3440
		while Motor.Value ~= 0 do
3441
		for i = 1, #TFloorsG do
3442
		if math.abs(TFloorsG[i].Level.Position.Y - Car.Platform.Position.Y) < LevelOffset then
3443
		if Floor.Value ~= tonumber(TFloorsG[i].Name:sub(6,7)) then
3444
			Floor.Value = tonumber(TFloorsG[i].Name:sub(6,7))
3445
			Stop(tonumber(TFloorsG[i].Name:sub(6,7)))
3446
		end
3447
		end
3448
		end
3449
		wait()
3450
		end
3451
		Landing = false
3452
end 
3453
end)
3454
3455
3456
3457
3458
3459
3460
3461
if EngineAPI == "C" then
3462
	for i,l in pairs(CarCF) do
3463
		if l:IsA("Part") or l:IsA("WedgePart") or l:IsA("CornerWedgePart") then
3464
			if l.Name ~= "Seat" then
3465
			l.Anchored = true
3466
			end
3467
		end
3468
	end
3469
end
3470
if EngineAPI == "B" then
3471
	BP.position = Car.Platform.Position
3472
	for i,l in pairs(CarCF) do
3473
		if l:IsA("Part") or l:IsA("WedgePart") or l:IsA("CornerWedgePart") then
3474
			l.Anchored = false
3475
		end
3476
	end
3477
	Car.Platform.Anchored = true
3478
end
3479
3480
3481
3482
3483
ButtonTextures = {
3484
	["DO"]=144878365,	
3485
	["DC"]=144878349,
3486
	["AL"]=144878970,
3487
	["S0"]=144877405,
3488
	["S1"]=144877410,
3489
	["S2"]=144877413,
3490
	["S3"]=144877418,
3491
	["S4"]=144877421,
3492
	["S5"]=144877426,
3493
	["S6"]=144877430,
3494
	["S7"]=144877436,
3495
	["S8"]=144877442,
3496
	["S9"]=144877449,
3497
3498
	["L1"]=146946090,
3499
	["L2"]=146946097,
3500
	["L3"]=146946110,
3501
	["L4"]=146946116,
3502
	["L5"]=146946126,
3503
	["L6"]=146946135,
3504
	["L7"]=146946148,
3505
	["L8"]=146946189,
3506
	["L9"]=146946196,
3507
	["R0"]=146947263,
3508
	["R1"]=146947269,
3509
	["R2"]=146947282,
3510
	["R3"]=146947294,
3511
	["R4"]=146947304,
3512
	["R5"]=146947310,
3513
	["R6"]=146947315,
3514
	["R7"]=146947323,
3515
	["R8"]=146947333,
3516
	["R9"]=146947343
3517
}
3518
ButtonTextures1 = {
3519
	[0]=144877405,
3520
	[1]=144877410,
3521
	[2]=144877413,
3522
	[3]=144877418,
3523
	[4]=144877421,
3524
	[5]=144877426,
3525
	[6]=144877430,
3526
	[7]=144877436,
3527
	[8]=144877442,
3528
	[9]=144877449
3529
}
3530
3531
3532
for i = 1, #TCarG  do
3533
	
3534
	if TCarG[i].Name:sub(1,4) == "BTAL" then
3535
			TCarG[i].FloorNumberL.Texture = "http://www.roblox.com/asset/?id=0"
3536
			TCarG[i].FloorNumberR.Texture = "http://www.roblox.com/asset/?id=" .. ButtonTextures["AL"]		
3537
	end
3538
	if TCarG[i].Name:sub(1,4) == "BTDO" then
3539
			TCarG[i].FloorNumberL.Texture = "http://www.roblox.com/asset/?id=0"
3540
			TCarG[i].FloorNumberR.Texture = "http://www.roblox.com/asset/?id=" .. ButtonTextures["DO"]		
3541
	end
3542
	if TCarG[i].Name:sub(1,4) == "BTDC" then
3543
			TCarG[i].FloorNumberL.Texture = "http://www.roblox.com/asset/?id=0"
3544
			TCarG[i].FloorNumberR.Texture = "http://www.roblox.com/asset/?id=" .. ButtonTextures["DC"]		
3545
	end
3546
	
3547
	if TCarG[i].Name:sub(1,3) == "BTF" then
3548
		if tonumber(TCarG[i].Name:sub(4)) < 10 then
3549
			TCarG[i].FloorNumberL.Texture = "http://www.roblox.com/asset/?id=0"
3550
			TCarG[i].FloorNumberR.Texture = "http://www.roblox.com/asset/?id=" .. ButtonTextures["S"..TCarG[i].Name:sub(4)]
3551
		end
3552
		if tonumber(TCarG[i].Name:sub(4)) > 9 then
3553
			TCarG[i].FloorNumberL.Texture = "http://www.roblox.com/asset/?id=" .. ButtonTextures["L"..TCarG[i].Name:sub(4,4)]
3554
			TCarG[i].FloorNumberR.Texture = "http://www.roblox.com/asset/?id=" .. ButtonTextures["R"..TCarG[i].Name:sub(5,5)]
3555
		end
3556
	end
3557
	
3558
	if TCarG[i].Name:sub(1,2) == "BT" then
3559
		if TCarG[i]:FindFirstChild("Texture") then
3560
			TCarG[i].Texture.Texture = BtnULit
3561
		end
3562
	end
3563
	
3564
end
3565
3566
end))
3567
BoolValue162.Name = "DoOpen"
3568
BoolValue162.Parent = Script161
3569
BoolValue163.Name = "DoClose"
3570
BoolValue163.Parent = Script161
3571
NumberValue164.Name = "Floor"
3572
NumberValue164.Parent = Script161
3573
BoolValue165.Name = "ReOpen"
3574
BoolValue165.Parent = Script161
3575
BoolValue166.Name = "StartMotor"
3576
BoolValue166.Parent = Script161
3577
BoolValue167.Name = "DoChime"
3578
BoolValue167.Parent = Script161
3579
Script168.Name = "Floor Indicator OUTSIDE"
3580
Script168.Parent = Model1
3581
table.insert(cors,sandbox(Script168,function()
3582
CurrentFloor = 1
3583
NextFloor = 0
3584
CurrentDirection = "N"
3585
Floor = script.Parent.Floor
3586
Direction = script.Parent.Direction
3587
Screen = script.Parent.Floors.Floor1.FloorIndicator.SurfaceGui.Frame
3588
Indicator = Screen.Indicator
3589
3590
3591
InUse = false
3592
function ChangeFloor()
3593
	if InUse then return end
3594
	InUse = true
3595
	NextFloor = Floor.Value
3596
	CurrentDirection = Direction.Value
3597
	
3598
	if CurrentDirection == "U" then
3599
		for i=0,1, 0.1 do
3600
			Indicator.Position = UDim2.new(0,50, i, 0)
3601
			wait()
3602
		end
3603
	end
3604
	if CurrentDirection == "D" then
3605
		for i=0,-1, -0.1 do
3606
			Indicator.Position = UDim2.new(0, 50, i, 0)
3607
			wait()
3608
		end
3609
	end
3610
	Indicator.Text = Floor.Value
3611
	
3612
	if CurrentDirection == "U" then
3613
		for i=-1,0, 0.1 do
3614
			Indicator.Position = UDim2.new(0, 50, i, 0)
3615
			wait()
3616
		end
3617
	end
3618
	if CurrentDirection == "D" then
3619
		for i=1,0, -0.1 do
3620
			Indicator.Position = UDim2.new(0, 50, i, 0)
3621
			wait()
3622
		end
3623
	end
3624
	InUse = false
3625
	
3626
end
3627
3628
3629
3630
3631
3632
script.Parent.Floor.Changed:connect(ChangeFloor)
3633
3634
3635
Hyd = false
3636
Direction.Changed:connect(function()
3637
	if Hyd then return end
3638
if Direction.Value == "US" or Direction.Value == "DS" then
3639
Hyd = true
3640
3641
script.Parent.Car.Platform.Motor:Play()
3642
repeat
3643
	wait() 
3644
until Direction.Value == "NS"
3645
script.Parent.Car.Platform.Motor:Stop()
3646
Hyd = false
3647
end
3648
	
3649
end)
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
ArrowTx = {
3664
	[1]=146678603,
3665
	[2]=146678613,
3666
	[3]=146678618,
3667
	[4]=146678637,
3668
	[5]=146678647,
3669
	[6]=146678656,
3670
	[7]=146678671
3671
}
3672
3673
3674
3675
Scroll = false
3676
ArrowInd = script.Parent.Floors.Floor1.FloorIndicator.SurfaceGui.Frame.Arrow
3677
Direction.Changed:connect(function()
3678
	
3679
	if Scroll then return end
3680
	Scroll = true
3681
if Direction.Value == "U" then
3682
	ArrowInd.Rotation = 0
3683
	repeat
3684
		for i=1,7 do
3685
			ArrowInd.Image = "http://www.roblox.com/asset/?id="..ArrowTx[i]
3686
			wait()
3687
		end
3688
	until Direction.Value == "N"
3689
end
3690
if Direction.Value == "D" then
3691
	ArrowInd.Rotation = 180
3692
	repeat
3693
		for i=1,7 do
3694
			ArrowInd.Image = "http://www.roblox.com/asset/?id="..ArrowTx[i]
3695
			wait()
3696
		end
3697
	until Direction.Value == "N"
3698
end
3699
ArrowInd.Image = "http://www.roblox.com/asset/?id=0"
3700
3701
Scroll = false
3702
3703
end)
3704
3705
end))
3706
Model169.Name = "Panel1"
3707
Model169.Parent = Model1
3708
Part170.Parent = Model169
3709
Part170.Material = Enum.Material.SmoothPlastic
3710
Part170.BrickColor = BrickColor.new("Turquoise")
3711
Part170.Reflectance = 0.5
3712
Part170.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
3713
Part170.Anchored = true
3714
Part170.FormFactor = Enum.FormFactor.Custom
3715
Part170.Size = Vector3.new(0.600000024, 1.20000005, 0.200000003)
3716
Part170.CFrame = CFrame.new(-2.97238207, 4.80141592, -4.09521484, -0.999999881, -8.6680393e-06, 0.000472167943, -7.76876459e-06, 0.999998212, 0.00190453453, -0.000472183601, 0.00190453057, -0.999998093)
3717
Part170.Color = Color3.new(0.47451, 0.709804, 0.709804)
3718
Part170.Position = Vector3.new(-2.97238207, 4.80141592, -4.09521484)
3719
Part170.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
3720
Part170.Color = Color3.new(0.47451, 0.709804, 0.709804)
3721
Model171.Name = "Panel2"
3722
Model171.Parent = Model1
3723
Part172.Parent = Model171
3724
Part172.Material = Enum.Material.SmoothPlastic
3725
Part172.BrickColor = BrickColor.new("Turquoise")
3726
Part172.Reflectance = 0.5
3727
Part172.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
3728
Part172.Anchored = true
3729
Part172.FormFactor = Enum.FormFactor.Custom
3730
Part172.Size = Vector3.new(0.600000024, 1.20000005, 0.200000003)
3731
Part172.CFrame = CFrame.new(-2.9725039, 16.6002312, -4.07269287, -0.999999881, -8.6680393e-06, 0.000472167943, -7.76876459e-06, 0.999998212, 0.00190453453, -0.000472183601, 0.00190453057, -0.999998093)
3732
Part172.Color = Color3.new(0.47451, 0.709804, 0.709804)
3733
Part172.Position = Vector3.new(-2.9725039, 16.6002312, -4.07269287)
3734
Part172.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
3735
Part172.Color = Color3.new(0.47451, 0.709804, 0.709804)
3736
Model173.Name = "shaft"
3737
Model173.Parent = Model1
3738
Part174.Parent = Model173
3739
Part174.Material = Enum.Material.SmoothPlastic
3740
Part174.Transparency = 0.5
3741
Part174.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
3742
Part174.Anchored = true
3743
Part174.FormFactor = Enum.FormFactor.Custom
3744
Part174.Size = Vector3.new(0.600004315, 23.6000023, 15)
3745
Part174.CFrame = CFrame.new(-11.8689957, 11.8142595, -11.53333, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
3746
Part174.TopSurface = Enum.SurfaceType.SmoothNoOutlines
3747
Part174.Position = Vector3.new(-11.8689957, 11.8142595, -11.53333)
3748
Part174.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
3749
Part175.Parent = Model173
3750
Part175.Material = Enum.Material.SmoothPlastic
3751
Part175.Transparency = 0.5
3752
Part175.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
3753
Part175.Anchored = true
3754
Part175.FormFactor = Enum.FormFactor.Custom
3755
Part175.Size = Vector3.new(12.0000048, 23.6000023, 0.399999619)
3756
Part175.CFrame = CFrame.new(-6.16532278, 11.82897, -19.2305946, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
3757
Part175.TopSurface = Enum.SurfaceType.SmoothNoOutlines
3758
Part175.Position = Vector3.new(-6.16532278, 11.82897, -19.2305946)
3759
Part175.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
3760
Part176.Parent = Model173
3761
Part176.Material = Enum.Material.SmoothPlastic
3762
Part176.Transparency = 0.5
3763
Part176.Rotation = Vector3.new(-179.889999, 0.0299999993, 180)
3764
Part176.Anchored = true
3765
Part176.FormFactor = Enum.FormFactor.Custom
3766
Part176.Size = Vector3.new(0.600004315, 23.6000023, 15)
3767
Part176.CFrame = CFrame.new(-0.468973994, 11.8143339, -11.5278959, -0.999999285, -8.8644174e-06, 0.000472242158, -7.96494805e-06, 0.999998212, 0.00190463546, -0.000472258194, 0.00190463255, -0.999997497)
3768
Part176.TopSurface = Enum.SurfaceType.SmoothNoOutlines
3769
Part176.Position = Vector3.new(-0.468973994, 11.8143339, -11.5278959)
3770
Part176.Orientation = Vector3.new(-0.109999999, 179.970001, 0)
3771
Part177.Parent = mas
3772
Part177.Material = Enum.Material.Sand
3773
Part177.Rotation = Vector3.new(0.109999999, -0.0299999993, 0)
3774
Part177.Anchored = true
3775
Part177.Size = Vector3.new(12, 1, 20)
3776
Part177.CFrame = CFrame.new(-6.17725468, 13.481041, 5.97255325, 0.999999881, -4.45525671e-07, -0.000470032159, -4.45525671e-07, 0.999998212, -0.00189572212, 0.000470032159, 0.00189572212, 0.999998093)
3777
Part177.BottomSurface = Enum.SurfaceType.Smooth
3778
Part177.TopSurface = Enum.SurfaceType.Smooth
3779
Part177.Position = Vector3.new(-6.17725468, 13.481041, 5.97255325)
3780
Part177.Orientation = Vector3.new(0.109999999, -0.0299999993, 0)
3781
Part178.Parent = mas
3782
Part178.Material = Enum.Material.Sand
3783
Part178.Rotation = Vector3.new(0.109999999, -0.0299999993, 0)
3784
Part178.Anchored = true
3785
Part178.Size = Vector3.new(1, 11, 20)
3786
Part178.CFrame = CFrame.new(-0.67725718, 18.4810352, 5.98461866, 0.999999881, -4.45525671e-07, -0.000470032159, -4.45525671e-07, 0.999998212, -0.00189572212, 0.000470032159, 0.00189572212, 0.999998093)
3787
Part178.BottomSurface = Enum.SurfaceType.Smooth
3788
Part178.TopSurface = Enum.SurfaceType.Smooth
3789
Part178.Position = Vector3.new(-0.67725718, 18.4810352, 5.98461866)
3790
Part178.Orientation = Vector3.new(0.109999999, -0.0299999993, 0)
3791
Part179.Parent = mas
3792
Part179.Material = Enum.Material.Sand
3793
Part179.Rotation = Vector3.new(0.109999999, -0.0299999993, 0)
3794
Part179.Anchored = true
3795
Part179.Size = Vector3.new(12, 11, 1)
3796
Part179.CFrame = CFrame.new(-6.18172073, 18.463026, 15.4820156, 0.999999881, -4.45525671e-07, -0.000470032159, -4.45525671e-07, 0.999998212, -0.00189572212, 0.000470032159, 0.00189572212, 0.999998093)
3797
Part179.BottomSurface = Enum.SurfaceType.Smooth
3798
Part179.TopSurface = Enum.SurfaceType.Smooth
3799
Part179.Position = Vector3.new(-6.18172073, 18.463026, 15.4820156)
3800
Part179.Orientation = Vector3.new(0.109999999, -0.0299999993, 0)
3801
Part180.Parent = mas
3802
Part180.Material = Enum.Material.Sand
3803
Part180.Rotation = Vector3.new(0.109999999, -0.0299999993, 0)
3804
Part180.Anchored = true
3805
Part180.Size = Vector3.new(1, 11, 19)
3806
Part180.CFrame = CFrame.new(-11.6774931, 18.4800892, 6.47944832, 0.999999881, -4.45525671e-07, -0.000470032159, -4.45525671e-07, 0.999998212, -0.00189572212, 0.000470032159, 0.00189572212, 0.999998093)
3807
Part180.BottomSurface = Enum.SurfaceType.Smooth
3808
Part180.TopSurface = Enum.SurfaceType.Smooth
3809
Part180.Position = Vector3.new(-11.6774931, 18.4800892, 6.47944832)
3810
Part180.Orientation = Vector3.new(0.109999999, -0.0299999993, 0)
3811
Part181.Parent = mas
3812
Part181.Material = Enum.Material.Sand
3813
Part181.Rotation = Vector3.new(0.109999999, -0.0299999993, 0)
3814
Part181.Anchored = true
3815
Part181.Size = Vector3.new(12, 1, 20)
3816
Part181.CFrame = CFrame.new(-6.17725468, 23.481041, 5.97255325, 0.999999881, -4.45525671e-07, -0.000470032159, -4.45525671e-07, 0.999998212, -0.00189572212, 0.000470032159, 0.00189572212, 0.999998093)
3817
Part181.BottomSurface = Enum.SurfaceType.Smooth
3818
Part181.TopSurface = Enum.SurfaceType.Smooth
3819
Part181.Position = Vector3.new(-6.17725468, 23.481041, 5.97255325)
3820
Part181.Orientation = Vector3.new(0.109999999, -0.0299999993, 0)
3821
Model182.Name = "Drooling Zombie"
3822
Model182.Parent = mas
3823
Part183.Name = "HumanoidRootPart"
3824
Part183.Parent = Model182
3825
Part183.Material = Enum.Material.WoodPlanks
3826
Part183.BrickColor = BrickColor.new("Earth green")
3827
Part183.Transparency = 1
3828
Part183.FormFactor = Enum.FormFactor.Symmetric
3829
Part183.Size = Vector3.new(2, 2, 1)
3830
Part183.CFrame = CFrame.new(-7.10006714, 16.9719219, 11.8000183, 1, 0, 0, 0, 1, 0, 0, 0, 1)
3831
Part183.BottomSurface = Enum.SurfaceType.Smooth
3832
Part183.TopSurface = Enum.SurfaceType.Smooth
3833
Part183.Color = Color3.new(0.152941, 0.27451, 0.176471)
3834
Part183.Position = Vector3.new(-7.10006714, 16.9719219, 11.8000183)
3835
Part183.Color = Color3.new(0.152941, 0.27451, 0.176471)
3836
Motor6D184.Name = "Root Hip"
3837
Motor6D184.Parent = Part183
3838
Motor6D184.C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
3839
Motor6D184.C1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
3840
Motor6D184.Part0 = Part183
3841
Motor6D184.Part1 = Part185
3842
Motor6D184.MaxVelocity = 0.10000000149012
3843
Part185.Name = "Torso"
3844
Part185.Parent = Model182
3845
Part185.Material = Enum.Material.WoodPlanks
3846
Part185.BrickColor = BrickColor.new("Earth green")
3847
Part185.FormFactor = Enum.FormFactor.Symmetric
3848
Part185.Size = Vector3.new(2, 2, 1)
3849
Part185.CFrame = CFrame.new(-7.10006714, 16.9719219, 11.8000183, 1, 0, 0, 0, 1, 0, 0, 0, 1)
3850
Part185.BottomSurface = Enum.SurfaceType.Smooth
3851
Part185.TopSurface = Enum.SurfaceType.Smooth
3852
Part185.Color = Color3.new(0.152941, 0.27451, 0.176471)
3853
Part185.Position = Vector3.new(-7.10006714, 16.9719219, 11.8000183)
3854
Part185.Color = Color3.new(0.152941, 0.27451, 0.176471)
3855
Motor6D186.Name = "Left Hip"
3856
Motor6D186.Parent = Part185
3857
Motor6D186.C0 = CFrame.new(-1, -1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
3858
Motor6D186.C1 = CFrame.new(-0.5, 1, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
3859
Motor6D186.Part0 = Part185
3860
Motor6D186.Part1 = Part192
3861
Motor6D186.MaxVelocity = 0.10000000149012
3862
Motor6D187.Name = "Right Hip"
3863
Motor6D187.Parent = Part185
3864
Motor6D187.C0 = CFrame.new(1, -1, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
3865
Motor6D187.C1 = CFrame.new(0.5, 1, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
3866
Motor6D187.Part0 = Part185
3867
Motor6D187.Part1 = Part193
3868
Motor6D187.MaxVelocity = 0.10000000149012
3869
Motor6D188.Name = "Left Shoulder"
3870
Motor6D188.Parent = Part185
3871
Motor6D188.C0 = CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
3872
Motor6D188.C1 = CFrame.new(0.5, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08)
3873
Motor6D188.Part0 = Part185
3874
Motor6D188.Part1 = Part194
3875
Motor6D188.MaxVelocity = 0.10000000149012
3876
Motor6D189.Name = "Right Shoulder"
3877
Motor6D189.Parent = Part185
3878
Motor6D189.C0 = CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08)
3879
Motor6D189.C1 = CFrame.new(-0.5, 0.5, 0, -4.37113883e-08, 0, 1, 0, 0.99999994, 0, -1, 0, -4.37113883e-08)
3880
Motor6D189.Part0 = Part185
3881
Motor6D189.Part1 = Part195
3882
Motor6D189.MaxVelocity = 0.10000000149012
3883
Motor6D190.Name = "Neck"
3884
Motor6D190.Parent = Part185
3885
Motor6D190.C0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
3886
Motor6D190.C1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, -0)
3887
Motor6D190.Part0 = Part185
3888
Motor6D190.Part1 = Part196
3889
Motor6D190.MaxVelocity = 0.10000000149012
3890
BodyForce191.Name = "RepulsionForce"
3891
BodyForce191.Parent = Part185
3892
BodyForce191.force = Vector3.new(0, 0, 0)
3893
Part192.Name = "Left Leg"
3894
Part192.Parent = Model182
3895
Part192.Material = Enum.Material.WoodPlanks
3896
Part192.BrickColor = BrickColor.new("Earth green")
3897
Part192.CanCollide = false
3898
Part192.FormFactor = Enum.FormFactor.Symmetric
3899
Part192.Size = Vector3.new(1, 2, 1)
3900
Part192.CFrame = CFrame.new(-7.60006714, 14.9719219, 11.8000183, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
3901
Part192.BottomSurface = Enum.SurfaceType.Smooth
3902
Part192.TopSurface = Enum.SurfaceType.Smooth
3903
Part192.Color = Color3.new(0.152941, 0.27451, 0.176471)
3904
Part192.Position = Vector3.new(-7.60006714, 14.9719219, 11.8000183)
3905
Part192.Color = Color3.new(0.152941, 0.27451, 0.176471)
3906
Part193.Name = "Right Leg"
3907
Part193.Parent = Model182
3908
Part193.Material = Enum.Material.WoodPlanks
3909
Part193.BrickColor = BrickColor.new("Earth green")
3910
Part193.CanCollide = false
3911
Part193.FormFactor = Enum.FormFactor.Symmetric
3912
Part193.Size = Vector3.new(1, 2, 1)
3913
Part193.CFrame = CFrame.new(-6.60006714, 14.9719219, 11.8000183, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
3914
Part193.BottomSurface = Enum.SurfaceType.Smooth
3915
Part193.TopSurface = Enum.SurfaceType.Smooth
3916
Part193.Color = Color3.new(0.152941, 0.27451, 0.176471)
3917
Part193.Position = Vector3.new(-6.60006714, 14.9719219, 11.8000183)
3918
Part193.Color = Color3.new(0.152941, 0.27451, 0.176471)
3919
Part194.Name = "Left Arm"
3920
Part194.Parent = Model182
3921
Part194.Material = Enum.Material.WoodPlanks
3922
Part194.BrickColor = BrickColor.new("Earth green")
3923
Part194.CanCollide = false
3924
Part194.FormFactor = Enum.FormFactor.Symmetric
3925
Part194.Size = Vector3.new(1, 2, 1)
3926
Part194.CFrame = CFrame.new(-8.60006714, 16.9719219, 11.8000183, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
3927
Part194.BottomSurface = Enum.SurfaceType.Smooth
3928
Part194.TopSurface = Enum.SurfaceType.Smooth
3929
Part194.Color = Color3.new(0.152941, 0.27451, 0.176471)
3930
Part194.Position = Vector3.new(-8.60006714, 16.9719219, 11.8000183)
3931
Part194.Color = Color3.new(0.152941, 0.27451, 0.176471)
3932
Part195.Name = "Right Arm"
3933
Part195.Parent = Model182
3934
Part195.Material = Enum.Material.WoodPlanks
3935
Part195.BrickColor = BrickColor.new("Earth green")
3936
Part195.CanCollide = false
3937
Part195.FormFactor = Enum.FormFactor.Symmetric
3938
Part195.Size = Vector3.new(1, 2, 1)
3939
Part195.CFrame = CFrame.new(-5.60006714, 16.9719219, 11.8000183, 1, 0, 0, 0, 0.999999881, 0, 0, 0, 1)
3940
Part195.BottomSurface = Enum.SurfaceType.Smooth
3941
Part195.TopSurface = Enum.SurfaceType.Smooth
3942
Part195.Color = Color3.new(0.152941, 0.27451, 0.176471)
3943
Part195.Position = Vector3.new(-5.60006714, 16.9719219, 11.8000183)
3944
Part195.Color = Color3.new(0.152941, 0.27451, 0.176471)
3945
Part196.Name = "Head"
3946
Part196.Parent = Model182
3947
Part196.Material = Enum.Material.WoodPlanks
3948
Part196.BrickColor = BrickColor.new("Camo")
3949
Part196.FormFactor = Enum.FormFactor.Symmetric
3950
Part196.Size = Vector3.new(2, 1, 1)
3951
Part196.CFrame = CFrame.new(-7.10006714, 18.4719219, 11.8000183, 1, 0, 0, 0, 1, 0, 0, 0, 1)
3952
Part196.BottomSurface = Enum.SurfaceType.Smooth
3953
Part196.TopSurface = Enum.SurfaceType.Smooth
3954
Part196.Color = Color3.new(0.227451, 0.490196, 0.0823529)
3955
Part196.Position = Vector3.new(-7.10006714, 18.4719219, 11.8000183)
3956
Part196.Color = Color3.new(0.227451, 0.490196, 0.0823529)
3957
Decal197.Name = "Face"
3958
Decal197.Parent = Part196
3959
Decal197.Texture = "http://www.roblox.com/asset/?id=7074882"
3960
SpecialMesh198.Parent = Part196
3961
SpecialMesh198.Scale = Vector3.new(1.25, 1.25, 1.25)
3962
SpecialMesh198.Scale = Vector3.new(1.25, 1.25, 1.25)
3963
Humanoid199.Parent = Model182
3964
Humanoid199.RightLeg = Part193
3965
Humanoid199.LeftLeg = Part192
3966
Humanoid199.Torso = Part183
3967
Humanoid199.WalkSpeed = 10
3968
Script200.Name = "Animate"
3969
Script200.Parent = Model182
3970
table.insert(cors,sandbox(Script200,function()
3971
function   waitForChild(parent, childName)
3972
	local child = parent:findFirstChild(childName)
3973
	if child then return child end
3974
	while true do
3975
		child = parent.ChildAdded:wait()
3976
		if child.Name==childName then return child end
3977
	end
3978
end
3979
3980
local Figure = script.Parent
3981
local Torso = waitForChild(Figure, "Torso")
3982
local RightShoulder = waitForChild(Torso, "Right Shoulder")
3983
local LeftShoulder = waitForChild(Torso, "Left Shoulder")
3984
local RightHip = waitForChild(Torso, "Right Hip")
3985
local LeftHip = waitForChild(Torso, "Left Hip")
3986
local Neck = waitForChild(Torso, "Neck")
3987
local Humanoid = waitForChild(Figure, "Humanoid")
3988
local pose = "Standing"
3989
3990
local currentAnim = ""
3991
local currentAnimTrack = nil
3992
local currentAnimKeyframeHandler = nil
3993
local currentAnimSpeed = 1.0
3994
local animTable = {}
3995
local animNames = { 
3996
	idle = 	{	
3997
				{ id = "http://www.roblox.com/asset/?id=125750544", weight = 9 },
3998
				{ id = "http://www.roblox.com/asset/?id=125750618", weight = 1 }
3999
			},
4000
	walk = 	{ 	
4001
				{ id = "http://www.roblox.com/asset/?id=125749145", weight = 10 } 
4002
			}, 
4003
	run = 	{
4004
				{ id = "run.xml", weight = 10 } 
4005
			}, 
4006
	jump = 	{
4007
				{ id = "http://www.roblox.com/asset/?id=125750702", weight = 10 } 
4008
			}, 
4009
	fall = 	{
4010
				{ id = "http://www.roblox.com/asset/?id=125750759", weight = 10 } 
4011
			}, 
4012
	climb = {
4013
				{ id = "http://www.roblox.com/asset/?id=125750800", weight = 10 } 
4014
			}, 
4015
	toolnone = {
4016
				{ id = "http://www.roblox.com/asset/?id=125750867", weight = 10 } 
4017
			},
4018
	toolslash = {
4019
				{ id = "http://www.roblox.com/asset/?id=129967390", weight = 10 } 
4020
--				{ id = "slash.xml", weight = 10 } 
4021
			},
4022
	toollunge = {
4023
				{ id = "http://www.roblox.com/asset/?id=129967478", weight = 10 } 
4024
			},
4025
	wave = {
4026
				{ id = "http://www.roblox.com/asset/?id=128777973", weight = 10 } 
4027
			},
4028
	point = {
4029
				{ id = "http://www.roblox.com/asset/?id=128853357", weight = 10 } 
4030
			},
4031
	dance = {
4032
				{ id = "http://www.roblox.com/asset/?id=130018893", weight = 10 }, 
4033
				{ id = "http://www.roblox.com/asset/?id=132546839", weight = 10 }, 
4034
				{ id = "http://www.roblox.com/asset/?id=132546884", weight = 10 } 
4035
			},
4036
	dance2 = {
4037
				{ id = "http://www.roblox.com/asset/?id=160934142", weight = 10 }, 
4038
				{ id = "http://www.roblox.com/asset/?id=160934298", weight = 10 }, 
4039
				{ id = "http://www.roblox.com/asset/?id=160934376", weight = 10 } 
4040
			},
4041
	dance3 = {
4042
				{ id = "http://www.roblox.com/asset/?id=160934458", weight = 10 }, 
4043
				{ id = "http://www.roblox.com/asset/?id=160934530", weight = 10 }, 
4044
				{ id = "http://www.roblox.com/asset/?id=160934593", weight = 10 } 
4045
			},
4046
	laugh = {
4047
				{ id = "http://www.roblox.com/asset/?id=129423131", weight = 10 } 
4048
			},
4049
	cheer = {
4050
				{ id = "http://www.roblox.com/asset/?id=129423030", weight = 10 } 
4051
			},
4052
}
4053
4054
-- Existance in this list signifies that it is an emote, the value indicates if it is a looping emote
4055
local emoteNames = { wave = false, point = false, dance = true, dance2 = true, dance3 = true, laugh = false, cheer = false}
4056
4057
math.randomseed(tick())
4058
4059
function configureAnimationSet(name, fileList)
4060
	if (animTable[name] ~= nil) then
4061
		for _, connection in pairs(animTable[name].connections) do
4062
			connection:disconnect()
4063
		end
4064
	end
4065
	animTable[name] = {}
4066
	animTable[name].count = 0
4067
	animTable[name].totalWeight = 0	
4068
	animTable[name].connections = {}
4069
4070
	-- check for config values
4071
	local config = script:FindFirstChild(name)
4072
	if (config ~= nil) then
4073
--		print("Loading anims " .. name)
4074
		table.insert(animTable[name].connections, config.ChildAdded:connect(function(child) configureAnimationSet(name, fileList) end))
4075
		table.insert(animTable[name].connections, config.ChildRemoved:connect(function(child) configureAnimationSet(name, fileList) end))
4076
		local idx = 1
4077
		for _, childPart in pairs(config:GetChildren()) do
4078
			if (childPart:IsA("Animation")) then
4079
				table.insert(animTable[name].connections, childPart.Changed:connect(function(property) configureAnimationSet(name, fileList) end))
4080
				animTable[name][idx] = {}
4081
				animTable[name][idx].anim = childPart
4082
				local weightObject = childPart:FindFirstChild("Weight")
4083
				if (weightObject == nil) then
4084
					animTable[name][idx].weight = 1
4085
				else
4086
					animTable[name][idx].weight = weightObject.Value
4087
				end
4088
				animTable[name].count = animTable[name].count + 1
4089
				animTable[name].totalWeight = animTable[name].totalWeight + animTable[name][idx].weight
4090
	--			print(name .. " [" .. idx .. "] " .. animTable[name][idx].anim.AnimationId .. " (" .. animTable[name][idx].weight .. ")")
4091
				idx = idx + 1
4092
			end
4093
		end
4094
	end
4095
4096
	-- fallback to defaults
4097
	if (animTable[name].count <= 0) then
4098
		for idx, anim in pairs(fileList) do
4099
			animTable[name][idx] = {}
4100
			animTable[name][idx].anim = Instance.new("Animation")
4101
			animTable[name][idx].anim.Name = name
4102
			animTable[name][idx].anim.AnimationId = anim.id
4103
			animTable[name][idx].weight = anim.weight
4104
			animTable[name].count = animTable[name].count + 1
4105
			animTable[name].totalWeight = animTable[name].totalWeight + anim.weight
4106
--			print(name .. " [" .. idx .. "] " .. anim.id .. " (" .. anim.weight .. ")")
4107
		end
4108
	end
4109
end
4110
4111
-- Setup animation objects
4112
function scriptChildModified(child)
4113
	local fileList = animNames[child.Name]
4114
	if (fileList ~= nil) then
4115
		configureAnimationSet(child.Name, fileList)
4116
	end	
4117
end
4118
4119
script.ChildAdded:connect(scriptChildModified)
4120
script.ChildRemoved:connect(scriptChildModified)
4121
4122
4123
for name, fileList in pairs(animNames) do 
4124
	configureAnimationSet(name, fileList)
4125
end	
4126
4127
-- ANIMATION
4128
4129
-- declarations
4130
local toolAnim = "None"
4131
local toolAnimTime = 0
4132
4133
local jumpAnimTime = 0
4134
local jumpAnimDuration = 0.3
4135
4136
local toolTransitionTime = 0.1
4137
local fallTransitionTime = 0.3
4138
local jumpMaxLimbVelocity = 0.75
4139
4140
-- functions
4141
4142
function stopAllAnimations()
4143
	local oldAnim = currentAnim
4144
4145
	-- return to idle if finishing an emote
4146
	if (emoteNames[oldAnim] ~= nil and emoteNames[oldAnim] == false) then
4147
		oldAnim = "idle"
4148
	end
4149
4150
	currentAnim = ""
4151
	if (currentAnimKeyframeHandler ~= nil) then
4152
		currentAnimKeyframeHandler:disconnect()
4153
	end
4154
4155
	if (currentAnimTrack ~= nil) then
4156
		currentAnimTrack:Stop()
4157
		currentAnimTrack:Destroy()
4158
		currentAnimTrack = nil
4159
	end
4160
	return oldAnim
4161
end
4162
4163
function setAnimationSpeed(speed)
4164
	if speed ~= currentAnimSpeed then
4165
		currentAnimSpeed = speed
4166
		currentAnimTrack:AdjustSpeed(currentAnimSpeed)
4167
	end
4168
end
4169
4170
function keyFrameReachedFunc(frameName)
4171
	if (frameName == "End") then
4172
--		print("Keyframe : ".. frameName)
4173
		local repeatAnim = stopAllAnimations()
4174
		local animSpeed = currentAnimSpeed
4175
		playAnimation(repeatAnim, 0.0, Humanoid)
4176
		setAnimationSpeed(animSpeed)
4177
	end
4178
end
4179
4180
-- Preload animations
4181
function playAnimation(animName, transitionTime, humanoid)
4182
	local idleFromEmote = (animName == "idle" and emoteNames[currentAnim] ~= nil)
4183
	if (animName ~= currentAnim and not idleFromEmote) then		 
4184
		
4185
		if (currentAnimTrack ~= nil) then
4186
			currentAnimTrack:Stop(transitionTime)
4187
			currentAnimTrack:Destroy()
4188
		end
4189
4190
		currentAnimSpeed = 1.0
4191
		local roll = math.random(1, animTable[animName].totalWeight) 
4192
		local origRoll = roll
4193
		local idx = 1
4194
		while (roll > animTable[animName][idx].weight) do
4195
			roll = roll - animTable[animName][idx].weight
4196
			idx = idx + 1
4197
		end
4198
--		print(animName .. " " .. idx .. " [" .. origRoll .. "]")
4199
		local anim = animTable[animName][idx].anim
4200
4201
		-- load it to the humanoid; get AnimationTrack
4202
		currentAnimTrack = humanoid:LoadAnimation(anim)
4203
		 
4204
		-- play the animation
4205
		currentAnimTrack:Play(transitionTime)
4206
		currentAnim = animName
4207
4208
		-- set up keyframe name triggers
4209
		if (currentAnimKeyframeHandler ~= nil) then
4210
			currentAnimKeyframeHandler:disconnect()
4211
		end
4212
		currentAnimKeyframeHandler = currentAnimTrack.KeyframeReached:connect(keyFrameReachedFunc)
4213
	end
4214
end
4215
4216
-------------------------------------------------------------------------------------------
4217
-------------------------------------------------------------------------------------------
4218
4219
local toolAnimName = ""
4220
local toolAnimTrack = nil
4221
local currentToolAnimKeyframeHandler = nil
4222
4223
function toolKeyFrameReachedFunc(frameName)
4224
	if (frameName == "End") then
4225
--		print("Keyframe : ".. frameName)
4226
		local repeatAnim = stopToolAnimations()
4227
		playToolAnimation(repeatAnim, 0.0, Humanoid)
4228
	end
4229
end
4230
4231
4232
function playToolAnimation(animName, transitionTime, humanoid)
4233
	if (animName ~= toolAnimName) then		 
4234
		
4235
		if (toolAnimTrack ~= nil) then
4236
			toolAnimTrack:Stop()
4237
			toolAnimTrack:Destroy()
4238
			transitionTime = 0
4239
		end
4240
4241
		local roll = math.random(1, animTable[animName].totalWeight) 
4242
		local origRoll = roll
4243
		local idx = 1
4244
		while (roll > animTable[animName][idx].weight) do
4245
			roll = roll - animTable[animName][idx].weight
4246
			idx = idx + 1
4247
		end
4248
--		print(animName .. " * " .. idx .. " [" .. origRoll .. "]")
4249
		local anim = animTable[animName][idx].anim
4250
4251
		-- load it to the humanoid; get AnimationTrack
4252
		toolAnimTrack = humanoid:LoadAnimation(anim)
4253
		 
4254
		-- play the animation
4255
		toolAnimTrack:Play(transitionTime)
4256
		toolAnimName = animName
4257
4258
		currentToolAnimKeyframeHandler = toolAnimTrack.KeyframeReached:connect(toolKeyFrameReachedFunc)
4259
	end
4260
end
4261
4262
function stopToolAnimations()
4263
	local oldAnim = toolAnimName
4264
4265
	if (currentToolAnimKeyframeHandler ~= nil) then
4266
		currentToolAnimKeyframeHandler:disconnect()
4267
	end
4268
4269
	toolAnimName = ""
4270
	if (toolAnimTrack ~= nil) then
4271
		toolAnimTrack:Stop()
4272
		toolAnimTrack:Destroy()
4273
		toolAnimTrack = nil
4274
	end
4275
4276
4277
	return oldAnim
4278
end
4279
4280
-------------------------------------------------------------------------------------------
4281
-------------------------------------------------------------------------------------------
4282
4283
4284
function onRunning(speed)
4285
	if speed>0.01 then
4286
		playAnimation("walk", 0.1, Humanoid)
4287
		pose = "Running"
4288
	else
4289
		playAnimation("idle", 0.1, Humanoid)
4290
		pose = "Standing"
4291
	end
4292
end
4293
4294
function onDied()
4295
	pose = "Dead"
4296
end
4297
4298
function onJumping()
4299
	playAnimation("jump", 0.1, Humanoid)
4300
	jumpAnimTime = jumpAnimDuration
4301
	pose = "Jumping"
4302
end
4303
4304
function onClimbing(speed)
4305
	playAnimation("climb", 0.1, Humanoid)
4306
	setAnimationSpeed(speed / 12.0)
4307
	pose = "Climbing"
4308
end
4309
4310
function onGettingUp()
4311
	pose = "GettingUp"
4312
end
4313
4314
function onFreeFall()
4315
	if (jumpAnimTime <= 0) then
4316
		playAnimation("fall", fallTransitionTime, Humanoid)
4317
	end
4318
	pose = "FreeFall"
4319
end
4320
4321
function onFallingDown()
4322
	pose = "FallingDown"
4323
end
4324
4325
function onSeated()
4326
	pose = "Seated"
4327
end
4328
4329
function onPlatformStanding()
4330
	pose = "PlatformStanding"
4331
end
4332
4333
function onSwimming(speed)
4334
	if speed>0 then
4335
		pose = "Running"
4336
	else
4337
		pose = "Standing"
4338
	end
4339
end
4340
4341
function getTool()	
4342
	for _, kid in ipairs(Figure:GetChildren()) do
4343
		if kid.className == "Tool" then return kid end
4344
	end
4345
	return nil
4346
end
4347
4348
function getToolAnim(tool)
4349
	for _, c in ipairs(tool:GetChildren()) do
4350
		if c.Name == "toolanim" and c.className == "StringValue" then
4351
			return c
4352
		end
4353
	end
4354
	return nil
4355
end
4356
4357
function animateTool()
4358
	
4359
	if (toolAnim == "None") then
4360
		playToolAnimation("toolnone", toolTransitionTime, Humanoid)
4361
		return
4362
	end
4363
4364
	if (toolAnim == "Slash") then
4365
		playToolAnimation("toolslash", 0, Humanoid)
4366
		return
4367
	end
4368
4369
	if (toolAnim == "Lunge") then
4370
		playToolAnimation("toollunge", 0, Humanoid)
4371
		return
4372
	end
4373
end
4374
4375
function moveSit()
4376
	RightShoulder.MaxVelocity = 0.15
4377
	LeftShoulder.MaxVelocity = 0.15
4378
	RightShoulder:SetDesiredAngle(3.14 /2)
4379
	LeftShoulder:SetDesiredAngle(-3.14 /2)
4380
	RightHip:SetDesiredAngle(3.14 /2)
4381
	LeftHip:SetDesiredAngle(-3.14 /2)
4382
end
4383
4384
local lastTick = 0
4385
4386
function move(time)
4387
	local amplitude = 1
4388
	local frequency = 1
4389
  	local deltaTime = time - lastTick
4390
  	lastTick = time
4391
4392
	local climbFudge = 0
4393
	local setAngles = false
4394
4395
  	if (jumpAnimTime > 0) then
4396
  		jumpAnimTime = jumpAnimTime - deltaTime
4397
  	end
4398
4399
	if (pose == "FreeFall" and jumpAnimTime <= 0) then
4400
		playAnimation("fall", fallTransitionTime, Humanoid)
4401
	elseif (pose == "Seated") then
4402
		stopAllAnimations()
4403
		moveSit()
4404
		return
4405
	elseif (pose == "Running") then
4406
		playAnimation("walk", 0.1, Humanoid)
4407
	elseif (pose == "Dead" or pose == "GettingUp" or pose == "FallingDown" or pose == "Seated" or pose == "PlatformStanding") then
4408
--		print("Wha " .. pose)
4409
		amplitude = 0.1
4410
		frequency = 1
4411
		setAngles = true
4412
	end
4413
4414
	if (setAngles) then
4415
		desiredAngle = amplitude * math.sin(time * frequency)
4416
4417
		RightShoulder:SetDesiredAngle(desiredAngle + climbFudge)
4418
		LeftShoulder:SetDesiredAngle(desiredAngle - climbFudge)
4419
		RightHip:SetDesiredAngle(-desiredAngle)
4420
		LeftHip:SetDesiredAngle(-desiredAngle)
4421
	end
4422
4423
	-- Tool Animation handling
4424
	local tool = getTool()
4425
	if tool then
4426
	
4427
		animStringValueObject = getToolAnim(tool)
4428
4429
		if animStringValueObject then
4430
			toolAnim = animStringValueObject.Value
4431
			-- message recieved, delete StringValue
4432
			animStringValueObject.Parent = nil
4433
			toolAnimTime = time + .3
4434
		end
4435
4436
		if time > toolAnimTime then
4437
			toolAnimTime = 0
4438
			toolAnim = "None"
4439
		end
4440
4441
		animateTool()		
4442
	else
4443
		stopToolAnimations()
4444
		toolAnim = "None"
4445
		toolAnimTime = 0
4446
	end
4447
end
4448
4449
-- connect events
4450
Humanoid.Died:connect(onDied)
4451
Humanoid.Running:connect(onRunning)
4452
Humanoid.Jumping:connect(onJumping)
4453
Humanoid.Climbing:connect(onClimbing)
4454
Humanoid.GettingUp:connect(onGettingUp)
4455
Humanoid.FreeFalling:connect(onFreeFall)
4456
Humanoid.FallingDown:connect(onFallingDown)
4457
Humanoid.Seated:connect(onSeated)
4458
Humanoid.PlatformStanding:connect(onPlatformStanding)
4459
Humanoid.Swimming:connect(onSwimming)
4460
4461
-- main program
4462
4463
local runService = game:service("RunService");
4464
4465
-- initialize to idle
4466
playAnimation("idle", 0.1, Humanoid)
4467
pose = "Standing"
4468
4469
while Figure.Parent~=nil do
4470
	local _, time = wait(0.1)
4471
	move(time)
4472
end
4473
4474
4475
4476
end))
4477
StringValue201.Name = "climb"
4478
StringValue201.Parent = Script200
4479
Animation202.Name = "ClimbAnim"
4480
Animation202.Parent = StringValue201
4481
Animation202.AnimationId = "http://www.roblox.com/asset/?id=125750800"
4482
StringValue203.Name = "fall"
4483
StringValue203.Parent = Script200
4484
Animation204.Name = "FallAnim"
4485
Animation204.Parent = StringValue203
4486
Animation204.AnimationId = "http://www.roblox.com/asset/?id=125750759"
4487
StringValue205.Name = "idle"
4488
StringValue205.Parent = Script200
4489
Animation206.Name = "Animation1"
4490
Animation206.Parent = StringValue205
4491
Animation206.AnimationId = "http://www.roblox.com/asset/?id=125750544"
4492
NumberValue207.Name = "Weight"
4493
NumberValue207.Parent = Animation206
4494
NumberValue207.Value = 9
4495
Animation208.Name = "Animation2"
4496
Animation208.Parent = StringValue205
4497
Animation208.AnimationId = "http://www.roblox.com/asset/?id=125750618"
4498
NumberValue209.Name = "Weight"
4499
NumberValue209.Parent = Animation208
4500
NumberValue209.Value = 1
4501
StringValue210.Name = "jump"
4502
StringValue210.Parent = Script200
4503
Animation211.Name = "JumpAnim"
4504
Animation211.Parent = StringValue210
4505
Animation211.AnimationId = "http://www.roblox.com/asset/?id=125750702"
4506
StringValue212.Name = "run"
4507
StringValue212.Parent = Script200
4508
Animation213.Name = "RunAnim"
4509
Animation213.Parent = StringValue212
4510
Animation213.AnimationId = "http://www.roblox.com/asset/?id=125749145"
4511
StringValue214.Name = "toolnone"
4512
StringValue214.Parent = Script200
4513
Animation215.Name = "ToolNoneAnim"
4514
Animation215.Parent = StringValue214
4515
Animation215.AnimationId = "http://www.roblox.com/asset/?id=125750867"
4516
StringValue216.Name = "walk"
4517
StringValue216.Parent = Script200
4518
Animation217.Name = "WalkAnim"
4519
Animation217.Parent = StringValue216
4520
Animation217.AnimationId = "http://www.roblox.com/asset/?id=125749145"
4521
Script218.Parent = Model182
4522
table.insert(cors,sandbox(Script218,function()
4523
local zombie = script.Parent
4524
4525
for _, script in pairs(zombie.ModuleScripts:GetChildren()) do
4526
	if not game.ServerStorage:FindFirstChild(script.Name) then
4527
		script:Clone().Parent = game.ServerStorage
4528
	end
4529
end
4530
4531
local AI = require(game.ServerStorage.ROBLOX_ZombieAI).new(zombie)
4532
local DestroyService = require(game.ServerStorage.ROBLOX_DestroyService)
4533
4534
4535
local function clearParts(parent)
4536
	for _, part in pairs(parent:GetChildren()) do
4537
		clearParts(part)
4538
	end
4539
	local delay
4540
	if parent:IsA("Part") then
4541
		delay = math.random(5,10)
4542
	else
4543
		delay = 11
4544
	end
4545
	DestroyService:AddItem(parent, delay)
4546
end
4547
4548
zombie.Humanoid.Died:connect(function()
4549
	AI.Stop()
4550
	math.randomseed(tick())
4551
	clearParts(zombie)
4552
	script.Disabled = true
4553
end)
4554
4555
local lastMoan = os.time()
4556
math.randomseed(os.time())
4557
while true do
4558
	local animationTrack = zombie.Humanoid:LoadAnimation(zombie.Animations.Arms)
4559
	animationTrack:Play()
4560
--	local now = os.time()
4561
--	if now - lastMoan > 5 then	
4562
--		if math.random() > .3 then
4563
--			zombie.Moan:Play()
4564
----			print("playing moan")
4565
--			lastMoan = now
4566
--		end
4567
--	end
4568
	wait(2)
4569
end
4570
4571
4572
end))
4573
BillboardGui219.Parent = Model182
4574
BillboardGui219.Size = UDim2.new(0, 100, 0, 30)
4575
BillboardGui219.StudsOffset = Vector3.new(0, 5, 0)
4576
TextLabel220.Parent = BillboardGui219
4577
TextLabel220.Size = UDim2.new(1, 0, 1, 0)
4578
TextLabel220.Text = "Idle"
4579
TextLabel220.Visible = false
4580
TextLabel220.BackgroundColor3 = Color3.new(1, 1, 1)
4581
TextLabel220.Font = Enum.Font.SourceSansBold
4582
TextLabel220.FontSize = Enum.FontSize.Size24
4583
Configuration221.Name = "ModuleScripts"
4584
Configuration221.Parent = Model182
4585
Configuration222.Name = "Configurations"
4586
Configuration222.Parent = Model182
4587
IntValue223.Name = "Damage"
4588
IntValue223.Parent = Configuration222
4589
IntValue223.Value = 30
4590
BoolValue224.Name = "Debug"
4591
BoolValue224.Parent = Configuration222
4592
IntValue225.Name = "FieldOfView"
4593
IntValue225.Parent = Configuration222
4594
IntValue225.Value = 180
4595
IntValue226.Name = "AggroRange"
4596
IntValue226.Parent = Configuration222
4597
IntValue226.Value = 200
4598
Configuration227.Name = "Animations"
4599
Configuration227.Parent = Model182
4600
Animation228.Name = "Attack"
4601
Animation228.Parent = Configuration227
4602
Animation228.AnimationId = "http://www.roblox.com/asset/?id=180416148"
4603
Animation229.Name = "Arms"
4604
Animation229.Parent = Configuration227
4605
Animation229.AnimationId = "http://www.roblox.com/asset/?id=183294396"
4606
CharacterMesh230.Name = "Zombie Left Arm"
4607
CharacterMesh230.Parent = Model182
4608
CharacterMesh230.MeshId = 37683097
4609
CharacterMesh230.BodyPart = Enum.BodyPart.LeftArm
4610
CharacterMesh230.OverlayTextureId = 37686282
4611
CharacterMesh231.Name = "Zombie Left Leg"
4612
CharacterMesh231.Parent = Model182
4613
CharacterMesh231.MeshId = 37683150
4614
CharacterMesh231.BodyPart = Enum.BodyPart.LeftLeg
4615
CharacterMesh231.OverlayTextureId = 37687646
4616
CharacterMesh232.Name = "Zombie Right Arm"
4617
CharacterMesh232.Parent = Model182
4618
CharacterMesh232.MeshId = 37683174
4619
CharacterMesh232.BodyPart = Enum.BodyPart.RightArm
4620
CharacterMesh232.OverlayTextureId = 37686282
4621
CharacterMesh233.Name = "Zombie Right Leg"
4622
CharacterMesh233.Parent = Model182
4623
CharacterMesh233.MeshId = 37683227
4624
CharacterMesh233.BodyPart = Enum.BodyPart.RightLeg
4625
CharacterMesh233.OverlayTextureId = 37687646
4626
CharacterMesh234.Name = "Zombie torso"
4627
CharacterMesh234.Parent = Model182
4628
CharacterMesh234.MeshId = 37683263
4629
CharacterMesh234.BodyPart = Enum.BodyPart.Torso
4630
CharacterMesh234.OverlayTextureId = 37686282
4631
Sound235.Name = "Moan"
4632
Sound235.Parent = Model182
4633
Sound235.Pitch = 0.15000000596046
4634
Sound235.SoundId = "http://www.roblox.com/asset/?id=12222242"
4635
Sound235.Volume = 0.050000000745058
4636
BodyColors236.Parent = Model182
4637
BodyColors236.HeadColor = BrickColor.new("Camo")
4638
BodyColors236.LeftArmColor = BrickColor.new("Earth green")
4639
BodyColors236.LeftLegColor = BrickColor.new("Earth green")
4640
BodyColors236.RightArmColor = BrickColor.new("Earth green")
4641
BodyColors236.RightLegColor = BrickColor.new("Earth green")
4642
BodyColors236.TorsoColor = BrickColor.new("Earth green")
4643
for i,v in pairs(mas:GetChildren()) do
4644
	v.Parent = workspace
4645
	pcall(function() v:MakeJoints() end)
4646
end
4647
for i,v in pairs(cors) do
4648
	spawn(function()
4649
		pcall(v)
4650
	end)
4651
end