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