· 6 years ago · Jun 06, 2019, 02:54 AM
1
2--Converted with ttyyuu12345's model to script plugin v4
3function 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
16end
17cors = {}
18mas = Instance.new("Model",game:GetService("Lighting"))
19Model0 = Instance.new("Model")
20Part1 = Instance.new("Part")
21CylinderMesh2 = Instance.new("CylinderMesh")
22Decal3 = Instance.new("Decal")
23Rotate4 = Instance.new("Rotate")
24Part5 = Instance.new("Part")
25CylinderMesh6 = Instance.new("CylinderMesh")
26Decal7 = Instance.new("Decal")
27Rotate8 = Instance.new("Rotate")
28Part9 = Instance.new("Part")
29CylinderMesh10 = Instance.new("CylinderMesh")
30Decal11 = Instance.new("Decal")
31Rotate12 = Instance.new("Rotate")
32Part13 = Instance.new("Part")
33CylinderMesh14 = Instance.new("CylinderMesh")
34Decal15 = Instance.new("Decal")
35Rotate16 = Instance.new("Rotate")
36Model17 = Instance.new("Model")
37Part18 = Instance.new("Part")
38Part19 = Instance.new("Part")
39Weld20 = Instance.new("Weld")
40Part21 = Instance.new("Part")
41Part22 = Instance.new("Part")
42WeldConstraint23 = Instance.new("WeldConstraint")
43Weld24 = Instance.new("Weld")
44Weld25 = Instance.new("Weld")
45Weld26 = Instance.new("Weld")
46Part27 = Instance.new("Part")
47BlockMesh28 = Instance.new("BlockMesh")
48Decal29 = Instance.new("Decal")
49Script30 = Instance.new("Script")
50Part31 = Instance.new("Part")
51UnionOperation32 = Instance.new("UnionOperation")
52Part33 = Instance.new("Part")
53Part34 = Instance.new("Part")
54Part35 = Instance.new("Part")
55Weld36 = Instance.new("Weld")
56Weld37 = Instance.new("Weld")
57UnionOperation38 = Instance.new("UnionOperation")
58Part39 = Instance.new("Part")
59UnionOperation40 = Instance.new("UnionOperation")
60Part41 = Instance.new("Part")
61UnionOperation42 = Instance.new("UnionOperation")
62Weld43 = Instance.new("Weld")
63UnionOperation44 = Instance.new("UnionOperation")
64UnionOperation45 = Instance.new("UnionOperation")
65UnionOperation46 = Instance.new("UnionOperation")
66UnionOperation47 = Instance.new("UnionOperation")
67Part48 = Instance.new("Part")
68UnionOperation49 = Instance.new("UnionOperation")
69UnionOperation50 = Instance.new("UnionOperation")
70Model51 = Instance.new("Model")
71Model52 = Instance.new("Model")
72Part53 = Instance.new("Part")
73Part54 = Instance.new("Part")
74Part55 = Instance.new("Part")
75Part56 = Instance.new("Part")
76Part57 = Instance.new("Part")
77Part58 = Instance.new("Part")
78Model59 = Instance.new("Model")
79Part60 = Instance.new("Part")
80CylinderMesh61 = Instance.new("CylinderMesh")
81Part62 = Instance.new("Part")
82CylinderMesh63 = Instance.new("CylinderMesh")
83Part64 = Instance.new("Part")
84Script65 = Instance.new("Script")
85Part66 = Instance.new("Part")
86Script67 = Instance.new("Script")
87UnionOperation68 = Instance.new("UnionOperation")
88UnionOperation69 = Instance.new("UnionOperation")
89Part70 = Instance.new("Part")
90UnionOperation71 = Instance.new("UnionOperation")
91UnionOperation72 = Instance.new("UnionOperation")
92UnionOperation73 = Instance.new("UnionOperation")
93Seat74 = Instance.new("Seat")
94Seat75 = Instance.new("Seat")
95Seat76 = Instance.new("Seat")
96Seat77 = Instance.new("Seat")
97Part78 = Instance.new("Part")
98VehicleSeat79 = Instance.new("VehicleSeat")
99BlockMesh80 = Instance.new("BlockMesh")
100Script81 = Instance.new("Script")
101LocalScript82 = Instance.new("LocalScript")
102ObjectValue83 = Instance.new("ObjectValue")
103Script84 = Instance.new("Script")
104Sound85 = Instance.new("Sound")
105Script86 = Instance.new("Script")
106ScreenGui87 = Instance.new("ScreenGui")
107ObjectValue88 = Instance.new("ObjectValue")
108LocalScript89 = Instance.new("LocalScript")
109Weld90 = Instance.new("Weld")
110Part91 = Instance.new("Part")
111VehicleSeat92 = Instance.new("VehicleSeat")
112Weld93 = Instance.new("Weld")
113Part94 = Instance.new("Part")
114Part95 = Instance.new("Part")
115Part96 = Instance.new("Part")
116SpecialMesh97 = Instance.new("SpecialMesh")
117Weld98 = Instance.new("Weld")
118Weld99 = Instance.new("Weld")
119Part100 = Instance.new("Part")
120Sound101 = Instance.new("Sound")
121Sound102 = Instance.new("Sound")
122Sound103 = Instance.new("Sound")
123Weld104 = Instance.new("Weld")
124Configuration105 = Instance.new("Configuration")
125NumberValue106 = Instance.new("NumberValue")
126NumberValue107 = Instance.new("NumberValue")
127BoolValue108 = Instance.new("BoolValue")
128NumberValue109 = Instance.new("NumberValue")
129Model0.Name = "Car"
130Model0.Parent = mas
131Model0.PrimaryPart = VehicleSeat79
132Part1.Name = "Powered Wheel"
133Part1.Parent = Model0
134Part1.CFrame = CFrame.new(29.8500099, 1.31003618, -27.990036, 7.54979013e-08, -1, 4.34480185e-09, 1, 7.54979013e-08, -3.1828975e-09, 3.18285998e-09, 4.55458604e-09, 1)
135Part1.Orientation = Vector3.new(0, 0, 90)
136Part1.Position = Vector3.new(29.8500099, 1.31003618, -27.990036)
137Part1.Rotation = Vector3.new(0, 0, 90)
138Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
139Part1.Size = Vector3.new(2.5999999, 2.5999999, 2.5999999)
140Part1.BackParamA = 0
141Part1.BackParamB = 0
142Part1.BottomParamA = 0
143Part1.BottomParamB = 0
144Part1.BottomSurface = Enum.SurfaceType.Hinge
145Part1.BrickColor = BrickColor.new("Really black")
146Part1.CustomPhysicalProperties = 0.699999988, 1.29999995, 0, 1, 1
147Part1.Elasticity = 0
148Part1.Friction = 1.2999999523163
149Part1.FrontParamA = 0
150Part1.FrontParamB = 0
151Part1.LeftParamA = 0
152Part1.LeftParamB = 0
153Part1.RightParamA = 0
154Part1.RightParamB = 0
155Part1.TopParamA = 0
156Part1.TopParamB = 0
157Part1.TopSurface = Enum.SurfaceType.Smooth
158Part1.brickColor = BrickColor.new("Really black")
159Part1.FormFactor = Enum.FormFactor.Symmetric
160Part1.formFactor = Enum.FormFactor.Symmetric
161Part1.Shape = Enum.PartType.Ball
162CylinderMesh2.Parent = Part1
163CylinderMesh2.Offset = Vector3.new(0, 0.666666627, 0)
164CylinderMesh2.Scale = Vector3.new(1, 0.5, 1)
165Decal3.Parent = Part1
166Decal3.Texture = "http://www.roblox.com/asset/?id=119364419"
167Decal3.Face = Enum.NormalId.Top
168Rotate4.Parent = Part1
169Rotate4.C0 = CFrame.new(0, -1.29999995, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
170Rotate4.C1 = CFrame.new(-0.199999988, -0.099999994, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
171Rotate4.Part0 = Part1
172Rotate4.Part1 = Part95
173Rotate4.part1 = Part95
174Part5.Name = "Powered Wheel"
175Part5.Parent = Model0
176Part5.CFrame = CFrame.new(34.4500046, 1.31003618, -27.990036, 7.54979013e-08, 1, 8.32877589e-08, 1, -7.54979013e-08, 3.18285354e-09, 3.18289728e-09, 8.26584099e-08, -1)
177Part5.Orientation = Vector3.new(0, 180, 90)
178Part5.Position = Vector3.new(34.4500046, 1.31003618, -27.990036)
179Part5.Rotation = Vector3.new(-180, 0, -90)
180Part5.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
181Part5.Size = Vector3.new(2.5999999, 2.5999999, 2.5999999)
182Part5.BackParamA = 0
183Part5.BackParamB = 0
184Part5.BottomParamA = 0
185Part5.BottomParamB = 0
186Part5.BottomSurface = Enum.SurfaceType.Hinge
187Part5.BrickColor = BrickColor.new("Really black")
188Part5.CustomPhysicalProperties = 0.699999988, 1.29999995, 0, 1, 1
189Part5.Elasticity = 0
190Part5.Friction = 1.2999999523163
191Part5.FrontParamA = 0
192Part5.FrontParamB = 0
193Part5.LeftParamA = 0
194Part5.LeftParamB = 0
195Part5.RightParamA = 0
196Part5.RightParamB = 0
197Part5.TopParamA = 0
198Part5.TopParamB = 0
199Part5.TopSurface = Enum.SurfaceType.Smooth
200Part5.brickColor = BrickColor.new("Really black")
201Part5.FormFactor = Enum.FormFactor.Symmetric
202Part5.formFactor = Enum.FormFactor.Symmetric
203Part5.Shape = Enum.PartType.Ball
204CylinderMesh6.Parent = Part5
205CylinderMesh6.Offset = Vector3.new(0, 0.666666627, 0)
206CylinderMesh6.Scale = Vector3.new(1, 0.5, 1)
207Decal7.Parent = Part5
208Decal7.Texture = "http://www.roblox.com/asset/?id=119364419"
209Decal7.Face = Enum.NormalId.Top
210Rotate8.Parent = Part5
211Rotate8.C0 = CFrame.new(0, -1.29999995, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
212Rotate8.C1 = CFrame.new(-0.199999988, -0.099999994, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
213Rotate8.Part0 = Part5
214Rotate8.Part1 = Part91
215Rotate8.part1 = Part91
216Part9.Name = "Powered Wheel"
217Part9.Parent = Model0
218Part9.CFrame = CFrame.new(29.8500099, 1.31003618, -18.9900436, 7.54979013e-08, -1, 4.34480185e-09, 1, 7.54979013e-08, -3.1828975e-09, 3.18285998e-09, 4.55458604e-09, 1)
219Part9.Orientation = Vector3.new(0, 0, 90)
220Part9.Position = Vector3.new(29.8500099, 1.31003618, -18.9900436)
221Part9.Rotation = Vector3.new(0, 0, 90)
222Part9.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
223Part9.Size = Vector3.new(2.5999999, 2.5999999, 2.5999999)
224Part9.BackParamA = 0
225Part9.BackParamB = 0
226Part9.BottomParamA = 0
227Part9.BottomParamB = 0
228Part9.BottomSurface = Enum.SurfaceType.Hinge
229Part9.BrickColor = BrickColor.new("Really black")
230Part9.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
231Part9.Elasticity = 0
232Part9.Friction = 2
233Part9.FrontParamA = 0
234Part9.FrontParamB = 0
235Part9.LeftParamA = 0
236Part9.LeftParamB = 0
237Part9.RightParamA = 0
238Part9.RightParamB = 0
239Part9.TopParamA = 0
240Part9.TopParamB = 0
241Part9.TopSurface = Enum.SurfaceType.Smooth
242Part9.brickColor = BrickColor.new("Really black")
243Part9.FormFactor = Enum.FormFactor.Symmetric
244Part9.formFactor = Enum.FormFactor.Symmetric
245Part9.Shape = Enum.PartType.Ball
246CylinderMesh10.Parent = Part9
247CylinderMesh10.Offset = Vector3.new(0, 0.666666627, 0)
248CylinderMesh10.Scale = Vector3.new(1, 0.5, 1)
249Decal11.Parent = Part9
250Decal11.Texture = "http://www.roblox.com/asset/?id=119364419"
251Decal11.Face = Enum.NormalId.Top
252Rotate12.Parent = Part9
253Rotate12.C0 = CFrame.new(0, -1.29999995, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
254Rotate12.C1 = CFrame.new(-1, -0.099999994, 0.0299999993, 0, 0, 1, 0, 1, 0, -1, -0, -0)
255Rotate12.Part0 = Part9
256Rotate12.Part1 = Part96
257Rotate12.part1 = Part96
258Part13.Name = "Powered Wheel"
259Part13.Parent = Model0
260Part13.CFrame = CFrame.new(34.4500046, 1.31003618, -18.9900436, 7.54979013e-08, 1, 8.32877589e-08, 1, -7.54979013e-08, 3.18285354e-09, 3.18289728e-09, 8.26584099e-08, -1)
261Part13.Orientation = Vector3.new(0, 180, 90)
262Part13.Position = Vector3.new(34.4500046, 1.31003618, -18.9900436)
263Part13.Rotation = Vector3.new(-180, 0, -90)
264Part13.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
265Part13.Size = Vector3.new(2.5999999, 2.5999999, 2.5999999)
266Part13.BackParamA = 0
267Part13.BackParamB = 0
268Part13.BottomParamA = 0
269Part13.BottomParamB = 0
270Part13.BottomSurface = Enum.SurfaceType.Hinge
271Part13.BrickColor = BrickColor.new("Really black")
272Part13.CustomPhysicalProperties = 0.699999988, 2, 0, 1, 1
273Part13.Elasticity = 0
274Part13.Friction = 2
275Part13.FrontParamA = 0
276Part13.FrontParamB = 0
277Part13.LeftParamA = 0
278Part13.LeftParamB = 0
279Part13.RightParamA = 0
280Part13.RightParamB = 0
281Part13.TopParamA = 0
282Part13.TopParamB = 0
283Part13.TopSurface = Enum.SurfaceType.Smooth
284Part13.brickColor = BrickColor.new("Really black")
285Part13.FormFactor = Enum.FormFactor.Symmetric
286Part13.formFactor = Enum.FormFactor.Symmetric
287Part13.Shape = Enum.PartType.Ball
288CylinderMesh14.Parent = Part13
289CylinderMesh14.Offset = Vector3.new(0, 0.666666627, 0)
290CylinderMesh14.Scale = Vector3.new(1, 0.5, 1)
291Decal15.Parent = Part13
292Decal15.Texture = "http://www.roblox.com/asset/?id=119364419"
293Decal15.Face = Enum.NormalId.Top
294Rotate16.Parent = Part13
295Rotate16.C0 = CFrame.new(0, -1.29999995, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
296Rotate16.C1 = CFrame.new(1, -0.099999994, 0.0299999993, -0, -0, -1, 0, 1, 0, 1, 0, 0)
297Rotate16.Part0 = Part13
298Rotate16.Part1 = Part96
299Rotate16.part1 = Part96
300Model17.Name = "Body"
301Model17.Parent = Model0
302Part18.Parent = Model17
303Part18.CFrame = CFrame.new(32.1500015, 1.66003466, -16.9900246, 1, 1.1920929e-07, -3.93665829e-08, -1.1920929e-07, 1, 4.05284588e-08, 3.91568022e-08, -4.05284943e-08, 1)
304Part18.Position = Vector3.new(32.1500015, 1.66003466, -16.9900246)
305Part18.Color = Color3.new(0.105882, 0.164706, 0.207843)
306Part18.Size = Vector3.new(6.99999905, 0.5, 1.00000238)
307Part18.Anchored = true
308Part18.BackSurface = Enum.SurfaceType.SmoothNoOutlines
309Part18.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
310Part18.BrickColor = BrickColor.new("Black")
311Part18.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
312Part18.Elasticity = 0
313Part18.Friction = 0.69999998807907
314Part18.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
315Part18.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
316Part18.Material = Enum.Material.SmoothPlastic
317Part18.RightSurface = Enum.SurfaceType.SmoothNoOutlines
318Part18.brickColor = BrickColor.new("Black")
319Part18.FormFactor = Enum.FormFactor.Custom
320Part18.formFactor = Enum.FormFactor.Custom
321Part19.Parent = Model17
322Part19.CFrame = CFrame.new(32.1500015, 1.66003466, -29.8400249, 1, 1.1920929e-07, -3.93665829e-08, -1.1920929e-07, 1, 4.05284588e-08, 3.91568022e-08, -4.05284943e-08, 1)
323Part19.Position = Vector3.new(32.1500015, 1.66003466, -29.8400249)
324Part19.Color = Color3.new(0.105882, 0.164706, 0.207843)
325Part19.Size = Vector3.new(6.99999905, 0.5, 0.700002313)
326Part19.Anchored = true
327Part19.BackSurface = Enum.SurfaceType.SmoothNoOutlines
328Part19.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
329Part19.BrickColor = BrickColor.new("Black")
330Part19.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
331Part19.Elasticity = 0
332Part19.Friction = 0.69999998807907
333Part19.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
334Part19.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
335Part19.Material = Enum.Material.SmoothPlastic
336Part19.RightSurface = Enum.SurfaceType.SmoothNoOutlines
337Part19.brickColor = BrickColor.new("Black")
338Part19.FormFactor = Enum.FormFactor.Custom
339Part19.formFactor = Enum.FormFactor.Custom
340Weld20.Parent = Part19
341Weld20.C0 = CFrame.new(0, 0, 0.350001156, 1, 0, 0, 0, 1, 0, 0, 0, 1)
342Weld20.C1 = CFrame.new(0, 0.249993324, 1.49999237, -1, -3.01042476e-15, 1.13645797e-07, -1.5871517e-15, 1, -4.77484718e-12, -6.11997493e-08, 4.73221462e-12, -1)
343Weld20.Part0 = Part19
344Weld20.Part1 = Part94
345Weld20.part1 = Part94
346Part21.Parent = Model17
347Part21.CFrame = CFrame.new(32.1500015, 3.31003046, -23.7900314, 1, 1.1920929e-07, -4.69188137e-08, -1.1920929e-07, 1, 4.05270484e-08, 3.16045714e-08, -4.05299012e-08, 1)
348Part21.Position = Vector3.new(32.1500015, 3.31003046, -23.7900314)
349Part21.Color = Color3.new(0.494118, 0.407843, 0.247059)
350Part21.Size = Vector3.new(6.99999809, 2.80000043, 0.600001931)
351Part21.Anchored = true
352Part21.BackSurface = Enum.SurfaceType.SmoothNoOutlines
353Part21.BottomSurface = Enum.SurfaceType.Weld
354Part21.BrickColor = BrickColor.new("Bronze")
355Part21.CanCollide = false
356Part21.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
357Part21.Elasticity = 0
358Part21.Friction = 0.69999998807907
359Part21.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
360Part21.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
361Part21.Material = Enum.Material.Sand
362Part21.RightSurface = Enum.SurfaceType.SmoothNoOutlines
363Part21.TopSurface = Enum.SurfaceType.SmoothNoOutlines
364Part21.brickColor = BrickColor.new("Bronze")
365Part21.FormFactor = Enum.FormFactor.Custom
366Part21.formFactor = Enum.FormFactor.Custom
367Part22.Parent = Model17
368Part22.CFrame = CFrame.new(32.1500015, 1.58503485, -23.5150375, 1, 1.1920929e-07, -4.02057196e-08, -1.1920929e-07, 1, 4.05283025e-08, 3.83176655e-08, -4.05286507e-08, 1)
369Part22.Position = Vector3.new(32.1500015, 1.58503485, -23.5150375)
370Part22.Color = Color3.new(0.105882, 0.164706, 0.207843)
371Part22.Size = Vector3.new(6.99999857, 0.650000036, 5.95000172)
372Part22.Anchored = true
373Part22.BackSurface = Enum.SurfaceType.SmoothNoOutlines
374Part22.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
375Part22.BrickColor = BrickColor.new("Black")
376Part22.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
377Part22.Elasticity = 0
378Part22.Friction = 0.69999998807907
379Part22.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
380Part22.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
381Part22.Material = Enum.Material.SmoothPlastic
382Part22.RightSurface = Enum.SurfaceType.SmoothNoOutlines
383Part22.brickColor = BrickColor.new("Black")
384Part22.FormFactor = Enum.FormFactor.Custom
385Part22.formFactor = Enum.FormFactor.Custom
386WeldConstraint23.Parent = Part22
387WeldConstraint23.Part0 = Part22
388WeldConstraint23.Part1 = Part96
389Weld24.Parent = Part22
390Weld24.C0 = CFrame.new(0, 0.325000018, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
391Weld24.C1 = CFrame.new(0, -1.39999628, -2.92500496, -1, -8.60115179e-09, -1.28089063e-15, 1.55301119e-15, -1.60227387e-12, 1, 8.60115179e-09, 1, -1.6093793e-12)
392Weld24.Part0 = Part22
393Weld24.Part1 = Part33
394Weld24.part1 = Part33
395Weld25.Parent = Part22
396Weld25.C0 = CFrame.new(0, 0.325000018, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
397Weld25.C1 = CFrame.new(0, -1.39999628, 0.274991989, -1, -8.60115179e-09, -1.28089063e-15, 1.55301119e-15, -1.60227387e-12, 1, 8.60115179e-09, 1, -1.6093793e-12)
398Weld25.Part0 = Part22
399Weld25.Part1 = Part21
400Weld25.part1 = Part21
401Weld26.Parent = Part22
402Weld26.C0 = CFrame.new(0, 0, -2.97500086, -1, -0, -0, 0, 1, 0, -0, -0, -1)
403Weld26.C1 = CFrame.new(0, 0.174993038, -1.49999619, 1, -3.01043641e-15, -1.14484934e-07, 1.55313878e-15, 1, 4.93116659e-12, 6.03606125e-08, 4.88853402e-12, 1)
404Weld26.Part0 = Part22
405Weld26.Part1 = Part94
406Weld26.part1 = Part94
407Part27.Name = "Logo Holder"
408Part27.Parent = Model17
409Part27.CFrame = CFrame.new(32.1500168, 3.23502064, -16.364994, -1, 0, 0, 0, 1, 0, 0, 0, -1)
410Part27.Orientation = Vector3.new(0, 180, 0)
411Part27.Position = Vector3.new(32.1500168, 3.23502064, -16.364994)
412Part27.Rotation = Vector3.new(-180, 0, -180)
413Part27.Color = Color3.new(0.105882, 0.164706, 0.207843)
414Part27.Transparency = 1
415Part27.Size = Vector3.new(0.600000143, 0.600000024, 0.200000003)
416Part27.Anchored = true
417Part27.BackSurface = Enum.SurfaceType.Weld
418Part27.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
419Part27.BrickColor = BrickColor.new("Black")
420Part27.CanCollide = false
421Part27.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
422Part27.Elasticity = 0
423Part27.Friction = 0.69999998807907
424Part27.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
425Part27.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
426Part27.Material = Enum.Material.SmoothPlastic
427Part27.RightSurface = Enum.SurfaceType.SmoothNoOutlines
428Part27.TopSurface = Enum.SurfaceType.SmoothNoOutlines
429Part27.brickColor = BrickColor.new("Black")
430Part27.FormFactor = Enum.FormFactor.Custom
431Part27.formFactor = Enum.FormFactor.Custom
432BlockMesh28.Parent = Part27
433BlockMesh28.Offset = Vector3.new(0, 0, 0.189999998)
434Decal29.Parent = Part27
435Decal29.Texture = "http://www.roblox.com/asset/?id=146872602"
436Script30.Name = "qPerfectionWeld"
437Script30.Parent = Model17
438table.insert(cors,sandbox(Script30,function()
439-- Created by Quenty (@Quenty, follow me on twitter).
440-- Should work with only ONE copy, seamlessly with weapons, trains, et cetera.
441-- Parts should be ANCHORED before use. It will, however, store relatives values and so when tools are reparented, it'll fix them.
442
443--[[ INSTRUCTIONS
444- Place in the model
445- Make sure model is anchored
446- That's it. It will weld the model and all children.
447
448THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
449THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
450THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
451THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
452THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
453THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
454THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
455THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED.
456
457This script is designed to be used is a regular script. In a local script it will weld, but it will not attempt to handle ancestory changes.
458]]
459
460--[[ DOCUMENTATION
461- Will work in tools. If ran more than once it will not create more than one weld. This is especially useful for tools that are dropped and then picked up again.
462- Will work in PBS servers
463- Will work as long as it starts out with the part anchored
464- Stores the relative CFrame as a CFrame value
465- Takes careful measure to reduce lag by not having a joint set off or affected by the parts offset from origin
466- Utilizes a recursive algorith to find all parts in the model
467- Will reweld on script reparent if the script is initially parented to a tool.
468- Welds as fast as possible
469]]
470
471-- qPerfectionWeld.lua
472-- Created 10/6/2014
473-- Author: Quenty
474-- Version 1.0.3
475
476-- Updated 10/14/2014 - Updated to 1.0.1
477--- Bug fix with existing ROBLOX welds ? Repro by asimo3089
478
479-- Updated 10/14/2014 - Updated to 1.0.2
480--- Fixed bug fix.
481
482-- Updated 10/14/2014 - Updated to 1.0.3
483--- Now handles joints semi-acceptably. May be rather hacky with some joints. :/
484
485local NEVER_BREAK_JOINTS = false -- If you set this to true it will never break joints (this can create some welding issues, but can save stuff like hinges).
486
487
488local function CallOnChildren(Instance, FunctionToCall)
489 -- Calls a function on each of the children of a certain object, using recursion.
490
491 FunctionToCall(Instance)
492
493 for _, Child in next, Instance:GetChildren() do
494 CallOnChildren(Child, FunctionToCall)
495 end
496end
497
498local function GetNearestParent(Instance, ClassName)
499 -- Returns the nearest parent of a certain class, or returns nil
500
501 local Ancestor = Instance
502 repeat
503 Ancestor = Ancestor.Parent
504 if Ancestor == nil then
505 return nil
506 end
507 until Ancestor:IsA(ClassName)
508
509 return Ancestor
510end
511
512local function GetBricks(StartInstance)
513 local List = {}
514
515 -- if StartInstance:IsA("BasePart") then
516 -- List[#List+1] = StartInstance
517 -- end
518
519 CallOnChildren(StartInstance, function(Item)
520 if Item:IsA("BasePart") then
521 List[#List+1] = Item;
522 end
523 end)
524
525 return List
526end
527
528local function Modify(Instance, Values)
529 -- Modifies an Instance by using a table.
530
531 assert(type(Values) == "table", "Values is not a table");
532
533 for Index, Value in next, Values do
534 if type(Index) == "number" then
535 Value.Parent = Instance
536 else
537 Instance[Index] = Value
538 end
539 end
540 return Instance
541end
542
543local function Make(ClassType, Properties)
544 -- Using a syntax hack to create a nice way to Make new items.
545
546 return Modify(Instance.new(ClassType), Properties)
547end
548
549local Surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
550local HingSurfaces = {"Hinge", "Motor", "SteppingMotor"}
551
552local function HasWheelJoint(Part)
553 for _, SurfaceName in pairs(Surfaces) do
554 for _, HingSurfaceName in pairs(HingSurfaces) do
555 if Part[SurfaceName].Name == HingSurfaceName then
556 return true
557 end
558 end
559 end
560
561 return false
562end
563
564local function ShouldBreakJoints(Part)
565 --- We do not want to break joints of wheels/hinges. This takes the utmost care to not do this. There are
566 -- definitely some edge cases.
567
568 if NEVER_BREAK_JOINTS then
569 return false
570 end
571
572 if HasWheelJoint(Part) then
573 return false
574 end
575
576 local Connected = Part:GetConnectedParts()
577
578 if #Connected == 1 then
579 return false
580 end
581
582 for _, Item in pairs(Connected) do
583 if HasWheelJoint(Item) then
584 return false
585 elseif not Item:IsDescendantOf(script.Parent) then
586 return false
587 end
588 end
589
590 return true
591end
592
593local function WeldTogether(Part0, Part1, JointType, WeldParent)
594 --- Weld's 2 parts together
595 -- @param Part0 The first part
596 -- @param Part1 The second part (Dependent part most of the time).
597 -- @param [JointType] The type of joint. Defaults to weld.
598 -- @param [WeldParent] Parent of the weld, Defaults to Part0 (so GC is better).
599 -- @return The weld created.
600
601 JointType = JointType or "Weld"
602 local RelativeValue = Part1:FindFirstChild("qRelativeCFrameWeldValue")
603
604 local NewWeld = Part1:FindFirstChild("qCFrameWeldThingy") or Instance.new(JointType)
605 Modify(NewWeld, {
606 Name = "qCFrameWeldThingy";
607 Part0 = Part0;
608 Part1 = Part1;
609 C0 = CFrame.new();--Part0.CFrame:inverse();
610 C1 = RelativeValue and RelativeValue.Value or Part1.CFrame:toObjectSpace(Part0.CFrame); --Part1.CFrame:inverse() * Part0.CFrame;-- Part1.CFrame:inverse();
611 Parent = Part1;
612 })
613
614 if not RelativeValue then
615 RelativeValue = Make("CFrameValue", {
616 Parent = Part1;
617 Name = "qRelativeCFrameWeldValue";
618 Archivable = true;
619 Value = NewWeld.C1;
620 })
621 end
622
623 return NewWeld
624end
625
626local function WeldParts(Parts, MainPart, JointType, DoNotUnanchor)
627 -- @param Parts The Parts to weld. Should be anchored to prevent really horrible results.
628 -- @param MainPart The part to weld the model to (can be in the model).
629 -- @param [JointType] The type of joint. Defaults to weld.
630 -- @parm DoNotUnanchor Boolean, if true, will not unachor the model after cmopletion.
631
632 for _, Part in pairs(Parts) do
633 if ShouldBreakJoints(Part) then
634 Part:BreakJoints()
635 end
636 end
637
638 for _, Part in pairs(Parts) do
639 if Part ~= MainPart then
640 WeldTogether(MainPart, Part, JointType, MainPart)
641 end
642 end
643
644 if not DoNotUnanchor then
645 for _, Part in pairs(Parts) do
646 Part.Anchored = false
647 end
648 MainPart.Anchored = false
649 end
650end
651
652local function PerfectionWeld()
653 local Tool = GetNearestParent(script, "Tool")
654
655 local Parts = GetBricks(script.Parent)
656 local PrimaryPart = Tool and Tool:FindFirstChild("Handle") and Tool.Handle:IsA("BasePart") and Tool.Handle or script.Parent:IsA("Model") and script.Parent.PrimaryPart or Parts[1]
657
658 if PrimaryPart then
659 WeldParts(Parts, PrimaryPart, "Weld", false)
660 else
661 warn("qWeld - Unable to weld part")
662 end
663
664 return Tool
665end
666
667local Tool = PerfectionWeld()
668
669
670if Tool and script.ClassName == "Script" then
671 --- Don't bother with local scripts
672
673 script.Parent.AncestryChanged:connect(function()
674 PerfectionWeld()
675 end)
676end
677
678-- Created by Quenty (@Quenty, follow me on twitter).
679
680end))
681Part31.Name = "Bumper"
682Part31.Parent = Model17
683Part31.CFrame = CFrame.new(32.1500015, 1.91003466, -16.3150291, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
684Part31.Position = Vector3.new(32.1500015, 1.91003466, -16.3150291)
685Part31.Size = Vector3.new(7.30000019, 0.99999994, 0.349999964)
686Part31.Anchored = true
687Part31.BackSurface = Enum.SurfaceType.SmoothNoOutlines
688Part31.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
689Part31.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
690Part31.Elasticity = 0
691Part31.Friction = 0.69999998807907
692Part31.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
693Part31.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
694Part31.Material = Enum.Material.SmoothPlastic
695Part31.Reflectance = 0.5
696Part31.RightSurface = Enum.SurfaceType.SmoothNoOutlines
697Part31.TopSurface = Enum.SurfaceType.SmoothNoOutlines
698Part31.FormFactor = Enum.FormFactor.Custom
699Part31.formFactor = Enum.FormFactor.Custom
700UnionOperation32.Name = "Color"
701UnionOperation32.Parent = Model17
702UnionOperation32.CFrame = CFrame.new(32.1500015, 5.14153051, -21.0867653, 1, 0, 0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876)
703UnionOperation32.Orientation = Vector3.new(25, 0, 0)
704UnionOperation32.Position = Vector3.new(32.1500015, 5.14153051, -21.0867653)
705UnionOperation32.Rotation = Vector3.new(25, 0, 0)
706UnionOperation32.Color = Color3.new(0.431373, 0.6, 0.792157)
707UnionOperation32.Size = Vector3.new(7.3000021, 7.00030661, 9.28851891)
708UnionOperation32.Anchored = true
709UnionOperation32.BrickColor = BrickColor.new("Medium blue")
710UnionOperation32.CanCollide = false
711UnionOperation32.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
712UnionOperation32.Elasticity = 0
713UnionOperation32.Friction = 0.69999998807907
714UnionOperation32.Material = Enum.Material.SmoothPlastic
715UnionOperation32.Reflectance = 0.30000001192093
716UnionOperation32.brickColor = BrickColor.new("Medium blue")
717UnionOperation32.UsePartColor = true
718Part33.Parent = Model17
719Part33.CFrame = CFrame.new(32.1500015, 3.31003046, -20.5900345, 1, 1.1920929e-07, -4.69188137e-08, -1.1920929e-07, 1, 4.05270484e-08, 3.16045714e-08, -4.05299012e-08, 1)
720Part33.Position = Vector3.new(32.1500015, 3.31003046, -20.5900345)
721Part33.Color = Color3.new(0.494118, 0.407843, 0.247059)
722Part33.Size = Vector3.new(6.99999809, 2.80000043, 0.600001931)
723Part33.Anchored = true
724Part33.BackSurface = Enum.SurfaceType.SmoothNoOutlines
725Part33.BottomSurface = Enum.SurfaceType.Weld
726Part33.BrickColor = BrickColor.new("Bronze")
727Part33.CanCollide = false
728Part33.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
729Part33.Elasticity = 0
730Part33.Friction = 0.69999998807907
731Part33.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
732Part33.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
733Part33.Material = Enum.Material.Sand
734Part33.RightSurface = Enum.SurfaceType.SmoothNoOutlines
735Part33.TopSurface = Enum.SurfaceType.SmoothNoOutlines
736Part33.brickColor = BrickColor.new("Bronze")
737Part33.FormFactor = Enum.FormFactor.Custom
738Part33.formFactor = Enum.FormFactor.Custom
739Part34.Parent = Model17
740Part34.CFrame = CFrame.new(32.1500015, 3.9100337, -18.4650345, 1, 1.1920929e-07, -4.69188137e-08, -1.1920929e-07, 1, 4.05270484e-08, 3.16045714e-08, -4.05299012e-08, 1)
741Part34.Position = Vector3.new(32.1500015, 3.9100337, -18.4650345)
742Part34.Color = Color3.new(0.105882, 0.164706, 0.207843)
743Part34.Size = Vector3.new(6.99999809, 0.100000009, 3.65000129)
744Part34.Anchored = true
745Part34.BackSurface = Enum.SurfaceType.SmoothNoOutlines
746Part34.BottomSurface = Enum.SurfaceType.Weld
747Part34.BrickColor = BrickColor.new("Black")
748Part34.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
749Part34.Elasticity = 0
750Part34.Friction = 0.69999998807907
751Part34.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
752Part34.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
753Part34.RightSurface = Enum.SurfaceType.SmoothNoOutlines
754Part34.TopSurface = Enum.SurfaceType.SmoothNoOutlines
755Part34.brickColor = BrickColor.new("Black")
756Part34.FormFactor = Enum.FormFactor.Custom
757Part34.formFactor = Enum.FormFactor.Custom
758Part35.Parent = Model17
759Part35.CFrame = CFrame.new(32.1500015, 2.1100316, -21.4150314, 1, 1.1920929e-07, -4.69188137e-08, -1.1920929e-07, 1, 4.05270484e-08, 3.16045714e-08, -4.05299012e-08, 1)
760Part35.Position = Vector3.new(32.1500015, 2.1100316, -21.4150314)
761Part35.Color = Color3.new(0.494118, 0.407843, 0.247059)
762Part35.Size = Vector3.new(6.99999809, 0.400001228, 2.25000143)
763Part35.Anchored = true
764Part35.BackSurface = Enum.SurfaceType.SmoothNoOutlines
765Part35.BottomSurface = Enum.SurfaceType.Weld
766Part35.BrickColor = BrickColor.new("Bronze")
767Part35.CanCollide = false
768Part35.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
769Part35.Elasticity = 0
770Part35.Friction = 0.69999998807907
771Part35.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
772Part35.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
773Part35.Material = Enum.Material.Sand
774Part35.RightSurface = Enum.SurfaceType.SmoothNoOutlines
775Part35.TopSurface = Enum.SurfaceType.SmoothNoOutlines
776Part35.brickColor = BrickColor.new("Bronze")
777Part35.FormFactor = Enum.FormFactor.Custom
778Part35.formFactor = Enum.FormFactor.Custom
779Weld36.Parent = Part35
780Weld36.C0 = CFrame.new(0, -0.200000614, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
781Weld36.C1 = CFrame.new(0, 0.324995995, 2.10000801, 1, -8.60115179e-09, 1.55301119e-15, -1.28089063e-15, -1.6093793e-12, -1, -8.60115179e-09, 1, 1.60227387e-12)
782Weld36.Part0 = Part35
783Weld36.Part1 = Part22
784Weld36.part1 = Part22
785Weld37.Parent = Part35
786Weld37.C0 = CFrame.new(0, -0.200000614, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
787Weld37.C1 = CFrame.new(0, 0.499987125, -2.39997101, 1, -2.07686348e-08, 1.05986427e-15, -1.28096231e-15, -3.87601062e-12, -1, -2.07686348e-08, 1, 3.87956334e-12)
788Weld37.Part0 = Part35
789Weld37.Part1 = Part96
790Weld37.part1 = Part96
791UnionOperation38.Name = "ReverseLight"
792UnionOperation38.Parent = Model17
793UnionOperation38.CFrame = CFrame.new(32.1500168, 3.23503065, -16.6150284, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
794UnionOperation38.Position = Vector3.new(32.1500168, 3.23503065, -16.6150284)
795UnionOperation38.Color = Color3.new(0.905882, 0.905882, 0.92549)
796UnionOperation38.Size = Vector3.new(4.69999838, 1.05000067, 0.250002861)
797UnionOperation38.Anchored = true
798UnionOperation38.BrickColor = BrickColor.new("Pearl")
799UnionOperation38.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
800UnionOperation38.Elasticity = 0
801UnionOperation38.Friction = 0.69999998807907
802UnionOperation38.Material = Enum.Material.SmoothPlastic
803UnionOperation38.Reflectance = 0.30000001192093
804UnionOperation38.brickColor = BrickColor.new("Pearl")
805Part39.Name = "Bumper"
806Part39.Parent = Model17
807Part39.CFrame = CFrame.new(32.1500015, 1.88503313, -30.4650249, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
808Part39.Position = Vector3.new(32.1500015, 1.88503313, -30.4650249)
809Part39.Size = Vector3.new(7.30000019, 0.949999928, 0.349999964)
810Part39.Anchored = true
811Part39.BackSurface = Enum.SurfaceType.SmoothNoOutlines
812Part39.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
813Part39.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
814Part39.Elasticity = 0
815Part39.Friction = 0.69999998807907
816Part39.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
817Part39.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
818Part39.Material = Enum.Material.SmoothPlastic
819Part39.Reflectance = 0.5
820Part39.RightSurface = Enum.SurfaceType.SmoothNoOutlines
821Part39.TopSurface = Enum.SurfaceType.SmoothNoOutlines
822Part39.FormFactor = Enum.FormFactor.Custom
823Part39.formFactor = Enum.FormFactor.Custom
824UnionOperation40.Name = "Hood Decal"
825UnionOperation40.Parent = Model17
826UnionOperation40.CFrame = CFrame.new(32.1494217, 3.74441862, -29.8697033, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849)
827UnionOperation40.Orientation = Vector3.new(-10, 0, 0)
828UnionOperation40.Position = Vector3.new(32.1494217, 3.74441862, -29.8697033)
829UnionOperation40.Rotation = Vector3.new(-10, 0, 0)
830UnionOperation40.Color = Color3.new(0.639216, 0.635294, 0.647059)
831UnionOperation40.Size = Vector3.new(0.401204586, 0.522761345, 0.400000095)
832UnionOperation40.Anchored = true
833UnionOperation40.BrickColor = BrickColor.new("Medium stone grey")
834UnionOperation40.CanCollide = false
835UnionOperation40.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
836UnionOperation40.Elasticity = 0
837UnionOperation40.Friction = 0.69999998807907
838UnionOperation40.Material = Enum.Material.SmoothPlastic
839UnionOperation40.Reflectance = 0.60000002384186
840UnionOperation40.brickColor = BrickColor.new("Medium stone grey")
841UnionOperation40.UsePartColor = true
842Part41.Name = "Bumper"
843Part41.Parent = Model17
844Part41.CFrame = CFrame.new(32.1500168, 2.88502979, -30.1650219, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
845Part41.Position = Vector3.new(32.1500168, 2.88502979, -30.1650219)
846Part41.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
847Part41.Size = Vector3.new(4.09999704, 0.849999905, 0.0500000007)
848Part41.Anchored = true
849Part41.BackSurface = Enum.SurfaceType.SmoothNoOutlines
850Part41.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
851Part41.BrickColor = BrickColor.new("Really black")
852Part41.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
853Part41.Elasticity = 0
854Part41.Friction = 0.69999998807907
855Part41.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
856Part41.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
857Part41.Material = Enum.Material.SmoothPlastic
858Part41.RightSurface = Enum.SurfaceType.SmoothNoOutlines
859Part41.TopSurface = Enum.SurfaceType.SmoothNoOutlines
860Part41.brickColor = BrickColor.new("Really black")
861Part41.FormFactor = Enum.FormFactor.Custom
862Part41.formFactor = Enum.FormFactor.Custom
863UnionOperation42.Name = "Color"
864UnionOperation42.Parent = Model17
865UnionOperation42.CFrame = CFrame.new(32.1500168, 2.71003056, -21.4900284, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
866UnionOperation42.Position = Vector3.new(32.1500168, 2.71003056, -21.4900284)
867UnionOperation42.Color = Color3.new(0.431373, 0.6, 0.792157)
868UnionOperation42.Size = Vector3.new(7.3000021, 2.5999999, 10.0000076)
869UnionOperation42.Anchored = true
870UnionOperation42.BrickColor = BrickColor.new("Medium blue")
871UnionOperation42.CanCollide = false
872UnionOperation42.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
873UnionOperation42.Elasticity = 0
874UnionOperation42.Friction = 0.69999998807907
875UnionOperation42.Material = Enum.Material.SmoothPlastic
876UnionOperation42.Reflectance = 0.30000001192093
877UnionOperation42.brickColor = BrickColor.new("Medium blue")
878UnionOperation42.UsePartColor = true
879Weld43.Parent = UnionOperation42
880Weld43.C0 = CFrame.new(0, 0, -5.00000381, -1, -0, -0, 0, 1, 0, -0, -0, -1)
881Weld43.C1 = CFrame.new(-7.62939453e-06, 1.29998875, -1.50000381, 1, -1.98176868e-15, -1.00848965e-07, 1.07683203e-15, 1, 2.39097631e-12, 7.39965884e-08, 2.34479103e-12, 1)
882Weld43.Part0 = UnionOperation42
883Weld43.Part1 = Part94
884Weld43.part1 = Part94
885UnionOperation44.Name = "Windows"
886UnionOperation44.Parent = Model17
887UnionOperation44.CFrame = CFrame.new(32.1500015, 5.07120848, -21.1078072, 1, 0, 0, 0, 0.906307876, -0.422617942, 0, 0.422617942, 0.906307876)
888UnionOperation44.Orientation = Vector3.new(25, 0, 0)
889UnionOperation44.Position = Vector3.new(32.1500015, 5.07120848, -21.1078072)
890UnionOperation44.Rotation = Vector3.new(25, 0, 0)
891UnionOperation44.Color = Color3.new(0.905882, 0.905882, 0.92549)
892UnionOperation44.Transparency = 0.60000002384186
893UnionOperation44.Size = Vector3.new(7.30000114, 6.87365341, 9.26721764)
894UnionOperation44.Anchored = true
895UnionOperation44.BrickColor = BrickColor.new("Pearl")
896UnionOperation44.CanCollide = false
897UnionOperation44.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
898UnionOperation44.Elasticity = 0
899UnionOperation44.Friction = 0.69999998807907
900UnionOperation44.Material = Enum.Material.SmoothPlastic
901UnionOperation44.Reflectance = 1
902UnionOperation44.brickColor = BrickColor.new("Pearl")
903UnionOperation44.UsePartColor = true
904UnionOperation45.Name = "Color"
905UnionOperation45.Parent = Model17
906UnionOperation45.CFrame = CFrame.new(32.1500168, 2.71003485, -28.3900299, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
907UnionOperation45.Position = Vector3.new(32.1500168, 2.71003485, -28.3900299)
908UnionOperation45.Color = Color3.new(0.431373, 0.6, 0.792157)
909UnionOperation45.Size = Vector3.new(7.3000021, 2.60000038, 3.80000496)
910UnionOperation45.Anchored = true
911UnionOperation45.BrickColor = BrickColor.new("Medium blue")
912UnionOperation45.CanCollide = false
913UnionOperation45.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
914UnionOperation45.Elasticity = 0
915UnionOperation45.Friction = 0.69999998807907
916UnionOperation45.Material = Enum.Material.SmoothPlastic
917UnionOperation45.Reflectance = 0.30000001192093
918UnionOperation45.brickColor = BrickColor.new("Medium blue")
919UnionOperation45.UsePartColor = true
920UnionOperation46.Name = "Headlight"
921UnionOperation46.Parent = Model17
922UnionOperation46.CFrame = CFrame.new(32.1500168, 2.86003065, -30.2150269, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
923UnionOperation46.Position = Vector3.new(32.1500168, 2.86003065, -30.2150269)
924UnionOperation46.Color = Color3.new(0.972549, 0.972549, 0.972549)
925UnionOperation46.Size = Vector3.new(6.79999638, 1.00000143, 0.150000572)
926UnionOperation46.Anchored = true
927UnionOperation46.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
928UnionOperation46.Elasticity = 0
929UnionOperation46.Friction = 0.69999998807907
930UnionOperation46.Material = Enum.Material.Neon
931UnionOperation46.Reflectance = 0.5
932UnionOperation46.UsePartColor = true
933UnionOperation47.Name = "Grille"
934UnionOperation47.Parent = Model17
935UnionOperation47.CFrame = CFrame.new(32.1500168, 2.86003065, -30.2150269, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
936UnionOperation47.Position = Vector3.new(32.1500168, 2.86003065, -30.2150269)
937UnionOperation47.Color = Color3.new(0.639216, 0.635294, 0.647059)
938UnionOperation47.Size = Vector3.new(4.19999695, 1.00000167, 0.150001049)
939UnionOperation47.Anchored = true
940UnionOperation47.BrickColor = BrickColor.new("Medium stone grey")
941UnionOperation47.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
942UnionOperation47.Elasticity = 0
943UnionOperation47.Friction = 0.69999998807907
944UnionOperation47.Material = Enum.Material.SmoothPlastic
945UnionOperation47.Reflectance = 0.5
946UnionOperation47.brickColor = BrickColor.new("Medium stone grey")
947UnionOperation47.UsePartColor = true
948Part48.Name = "BlackBar"
949Part48.Parent = Model17
950Part48.CFrame = CFrame.new(32.1500015, 3.23503065, -16.6150284, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
951Part48.Position = Vector3.new(32.1500015, 3.23503065, -16.6150284)
952Part48.Color = Color3.new(0.105882, 0.164706, 0.207843)
953Part48.Size = Vector3.new(4.30000067, 1.05000031, 0.250002205)
954Part48.Anchored = true
955Part48.BackSurface = Enum.SurfaceType.SmoothNoOutlines
956Part48.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
957Part48.BrickColor = BrickColor.new("Black")
958Part48.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
959Part48.Elasticity = 0
960Part48.Friction = 0.69999998807907
961Part48.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
962Part48.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
963Part48.Material = Enum.Material.SmoothPlastic
964Part48.RightSurface = Enum.SurfaceType.SmoothNoOutlines
965Part48.TopSurface = Enum.SurfaceType.SmoothNoOutlines
966Part48.brickColor = BrickColor.new("Black")
967Part48.FormFactor = Enum.FormFactor.Custom
968Part48.formFactor = Enum.FormFactor.Custom
969UnionOperation49.Name = "Taillight"
970UnionOperation49.Parent = Model17
971UnionOperation49.CFrame = CFrame.new(32.1500015, 3.23503065, -16.6150284, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
972UnionOperation49.Position = Vector3.new(32.1500015, 3.23503065, -16.6150284)
973UnionOperation49.Color = Color3.new(0.768628, 0.156863, 0.109804)
974UnionOperation49.Size = Vector3.new(6.70000076, 1.05000114, 0.250003338)
975UnionOperation49.Anchored = true
976UnionOperation49.BrickColor = BrickColor.new("Bright red")
977UnionOperation49.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
978UnionOperation49.Elasticity = 0
979UnionOperation49.Friction = 0.69999998807907
980UnionOperation49.Material = Enum.Material.SmoothPlastic
981UnionOperation49.brickColor = BrickColor.new("Bright red")
982UnionOperation49.UsePartColor = true
983UnionOperation50.Name = "Indicators"
984UnionOperation50.Parent = Model17
985UnionOperation50.CFrame = CFrame.new(32.1500015, 3.06003094, -23.3900299, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
986UnionOperation50.Position = Vector3.new(32.1500015, 3.06003094, -23.3900299)
987UnionOperation50.Color = Color3.new(0.854902, 0.521569, 0.254902)
988UnionOperation50.Size = Vector3.new(7.30000114, 1.40000153, 13.8000011)
989UnionOperation50.Anchored = true
990UnionOperation50.BrickColor = BrickColor.new("Bright orange")
991UnionOperation50.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
992UnionOperation50.Elasticity = 0
993UnionOperation50.Friction = 0.69999998807907
994UnionOperation50.Material = Enum.Material.SmoothPlastic
995UnionOperation50.brickColor = BrickColor.new("Bright orange")
996UnionOperation50.UsePartColor = true
997Model51.Name = "Interior"
998Model51.Parent = Model17
999Model52.Name = "Climate Control"
1000Model52.Parent = Model51
1001Part53.Name = "Switch"
1002Part53.Parent = Model52
1003Part53.CFrame = CFrame.new(31.6750069, 3.26002884, -26.1400299, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
1004Part53.Position = Vector3.new(31.6750069, 3.26002884, -26.1400299)
1005Part53.Size = Vector3.new(0.0500000007, 0.100000001, 0.100000001)
1006Part53.Anchored = true
1007Part53.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1008Part53.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1009Part53.CanCollide = false
1010Part53.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
1011Part53.Elasticity = 0
1012Part53.Friction = 0.69999998807907
1013Part53.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1014Part53.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
1015Part53.Material = Enum.Material.SmoothPlastic
1016Part53.Reflectance = 0.5
1017Part53.RightSurface = Enum.SurfaceType.SmoothNoOutlines
1018Part53.TopSurface = Enum.SurfaceType.SmoothNoOutlines
1019Part53.FormFactor = Enum.FormFactor.Custom
1020Part53.formFactor = Enum.FormFactor.Custom
1021Part54.Name = "Switch"
1022Part54.Parent = Model52
1023Part54.CFrame = CFrame.new(32.5750046, 3.06003094, -26.1400299, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
1024Part54.Position = Vector3.new(32.5750046, 3.06003094, -26.1400299)
1025Part54.Size = Vector3.new(0.0500000007, 0.100000001, 0.100000001)
1026Part54.Anchored = true
1027Part54.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1028Part54.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1029Part54.CanCollide = false
1030Part54.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
1031Part54.Elasticity = 0
1032Part54.Friction = 0.69999998807907
1033Part54.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1034Part54.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
1035Part54.Material = Enum.Material.SmoothPlastic
1036Part54.Reflectance = 0.5
1037Part54.RightSurface = Enum.SurfaceType.SmoothNoOutlines
1038Part54.TopSurface = Enum.SurfaceType.SmoothNoOutlines
1039Part54.FormFactor = Enum.FormFactor.Custom
1040Part54.formFactor = Enum.FormFactor.Custom
1041Part55.Name = "Indicator"
1042Part55.Parent = Model52
1043Part55.CFrame = CFrame.new(32.1500168, 3.13502979, -26.2418823, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
1044Part55.Position = Vector3.new(32.1500168, 3.13502979, -26.2418823)
1045Part55.Color = Color3.new(0.972549, 0.972549, 0.972549)
1046Part55.Size = Vector3.new(1.09999847, 0.0500000007, 0.149999961)
1047Part55.Anchored = true
1048Part55.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1049Part55.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1050Part55.BrickColor = BrickColor.new("Institutional white")
1051Part55.CanCollide = false
1052Part55.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
1053Part55.Elasticity = 0
1054Part55.Friction = 0.69999998807907
1055Part55.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1056Part55.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
1057Part55.Material = Enum.Material.SmoothPlastic
1058Part55.RightSurface = Enum.SurfaceType.SmoothNoOutlines
1059Part55.TopSurface = Enum.SurfaceType.SmoothNoOutlines
1060Part55.brickColor = BrickColor.new("Institutional white")
1061Part55.FormFactor = Enum.FormFactor.Custom
1062Part55.formFactor = Enum.FormFactor.Custom
1063Part56.Name = "Indicator"
1064Part56.Parent = Model52
1065Part56.CFrame = CFrame.new(31.8750076, 3.33503008, -26.2418823, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
1066Part56.Position = Vector3.new(31.8750076, 3.33503008, -26.2418823)
1067Part56.Color = Color3.new(0.0627451, 0.164706, 0.862745)
1068Part56.Size = Vector3.new(0.549998403, 0.0500000007, 0.149999961)
1069Part56.Anchored = true
1070Part56.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1071Part56.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1072Part56.BrickColor = BrickColor.new("Lapis")
1073Part56.CanCollide = false
1074Part56.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
1075Part56.Elasticity = 0
1076Part56.Friction = 0.69999998807907
1077Part56.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1078Part56.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
1079Part56.Material = Enum.Material.SmoothPlastic
1080Part56.RightSurface = Enum.SurfaceType.SmoothNoOutlines
1081Part56.TopSurface = Enum.SurfaceType.SmoothNoOutlines
1082Part56.brickColor = BrickColor.new("Lapis")
1083Part56.FormFactor = Enum.FormFactor.Custom
1084Part56.formFactor = Enum.FormFactor.Custom
1085Part57.Name = "Cover"
1086Part57.Parent = Model52
1087Part57.CFrame = CFrame.new(32.1500168, 3.18503094, -26.2400208, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
1088Part57.Position = Vector3.new(32.1500168, 3.18503094, -26.2400208)
1089Part57.Color = Color3.new(0.105882, 0.164706, 0.207843)
1090Part57.Size = Vector3.new(1.19999838, 0.450000107, 0.0999999642)
1091Part57.Anchored = true
1092Part57.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1093Part57.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1094Part57.BrickColor = BrickColor.new("Black")
1095Part57.CanCollide = false
1096Part57.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
1097Part57.Elasticity = 0
1098Part57.Friction = 0.69999998807907
1099Part57.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1100Part57.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
1101Part57.Material = Enum.Material.SmoothPlastic
1102Part57.RightSurface = Enum.SurfaceType.SmoothNoOutlines
1103Part57.TopSurface = Enum.SurfaceType.SmoothNoOutlines
1104Part57.brickColor = BrickColor.new("Black")
1105Part57.FormFactor = Enum.FormFactor.Custom
1106Part57.formFactor = Enum.FormFactor.Custom
1107Part58.Name = "Indicator"
1108Part58.Parent = Model52
1109Part58.CFrame = CFrame.new(32.4250107, 3.33503008, -26.2418823, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
1110Part58.Position = Vector3.new(32.4250107, 3.33503008, -26.2418823)
1111Part58.Color = Color3.new(1, 0, 0)
1112Part58.Size = Vector3.new(0.549998343, 0.0500000007, 0.149999961)
1113Part58.Anchored = true
1114Part58.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1115Part58.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1116Part58.BrickColor = BrickColor.new("Really red")
1117Part58.CanCollide = false
1118Part58.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
1119Part58.Elasticity = 0
1120Part58.Friction = 0.69999998807907
1121Part58.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1122Part58.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
1123Part58.Material = Enum.Material.SmoothPlastic
1124Part58.RightSurface = Enum.SurfaceType.SmoothNoOutlines
1125Part58.TopSurface = Enum.SurfaceType.SmoothNoOutlines
1126Part58.brickColor = BrickColor.new("Really red")
1127Part58.FormFactor = Enum.FormFactor.Custom
1128Part58.formFactor = Enum.FormFactor.Custom
1129Model59.Name = "Radio"
1130Model59.Parent = Model51
1131Part60.Name = "Knob"
1132Part60.Parent = Model59
1133Part60.CFrame = CFrame.new(31.6750069, 3.78502703, -26.1150208, 1, 0, 0, 0, 0, -1, 0, 1, 0)
1134Part60.Orientation = Vector3.new(90, 0, 0)
1135Part60.Position = Vector3.new(31.6750069, 3.78502703, -26.1150208)
1136Part60.Rotation = Vector3.new(90, 0, 0)
1137Part60.Size = Vector3.new(0.150000006, 0.0500000007, 0.150000006)
1138Part60.Anchored = true
1139Part60.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1140Part60.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1141Part60.CanCollide = false
1142Part60.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
1143Part60.Elasticity = 0
1144Part60.Friction = 0.69999998807907
1145Part60.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1146Part60.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
1147Part60.Material = Enum.Material.SmoothPlastic
1148Part60.Reflectance = 0.60000002384186
1149Part60.RightSurface = Enum.SurfaceType.SmoothNoOutlines
1150Part60.TopSurface = Enum.SurfaceType.SmoothNoOutlines
1151Part60.FormFactor = Enum.FormFactor.Custom
1152Part60.formFactor = Enum.FormFactor.Custom
1153CylinderMesh61.Parent = Part60
1154Part62.Name = "Knob"
1155Part62.Parent = Model59
1156Part62.CFrame = CFrame.new(32.6250076, 3.78502703, -26.1150208, 1, 0, 0, 0, 0, -1, 0, 1, 0)
1157Part62.Orientation = Vector3.new(90, 0, 0)
1158Part62.Position = Vector3.new(32.6250076, 3.78502703, -26.1150208)
1159Part62.Rotation = Vector3.new(90, 0, 0)
1160Part62.Size = Vector3.new(0.150000006, 0.0500000007, 0.150000006)
1161Part62.Anchored = true
1162Part62.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1163Part62.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1164Part62.CanCollide = false
1165Part62.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
1166Part62.Elasticity = 0
1167Part62.Friction = 0.69999998807907
1168Part62.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1169Part62.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
1170Part62.Material = Enum.Material.SmoothPlastic
1171Part62.Reflectance = 0.60000002384186
1172Part62.RightSurface = Enum.SurfaceType.SmoothNoOutlines
1173Part62.TopSurface = Enum.SurfaceType.SmoothNoOutlines
1174Part62.FormFactor = Enum.FormFactor.Custom
1175Part62.formFactor = Enum.FormFactor.Custom
1176CylinderMesh63.Parent = Part62
1177Part64.Name = "Screen"
1178Part64.Parent = Model59
1179Part64.CFrame = CFrame.new(32.1500168, 3.76002455, -26.1650162, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
1180Part64.Position = Vector3.new(32.1500168, 3.76002455, -26.1650162)
1181Part64.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1182Part64.Size = Vector3.new(0.699998319, 0.200000003, 0.0500000007)
1183Part64.Anchored = true
1184Part64.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1185Part64.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1186Part64.BrickColor = BrickColor.new("Really black")
1187Part64.CanCollide = false
1188Part64.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
1189Part64.Elasticity = 0
1190Part64.Friction = 0.69999998807907
1191Part64.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1192Part64.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
1193Part64.Material = Enum.Material.SmoothPlastic
1194Part64.RightSurface = Enum.SurfaceType.SmoothNoOutlines
1195Part64.TopSurface = Enum.SurfaceType.SmoothNoOutlines
1196Part64.brickColor = BrickColor.new("Really black")
1197Part64.FormFactor = Enum.FormFactor.Custom
1198Part64.formFactor = Enum.FormFactor.Custom
1199Script65.Parent = Part64
1200table.insert(cors,sandbox(Script65,function()
1201while true do
1202script.Parent.Color = Color3.new(math.random(), math.random(), math.random())
1203wait(0.5)
1204end
1205end))
1206Part66.Name = "Tape"
1207Part66.Parent = Model59
1208Part66.CFrame = CFrame.new(32.1500168, 3.58502245, -26.0650177, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
1209Part66.Position = Vector3.new(32.1500168, 3.58502245, -26.0650177)
1210Part66.Size = Vector3.new(0.699998438, 0.0500000007, 0.25)
1211Part66.Anchored = true
1212Part66.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1213Part66.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1214Part66.CanCollide = false
1215Part66.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
1216Part66.Elasticity = 0
1217Part66.Friction = 0.69999998807907
1218Part66.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1219Part66.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
1220Part66.Material = Enum.Material.SmoothPlastic
1221Part66.RightSurface = Enum.SurfaceType.SmoothNoOutlines
1222Part66.TopSurface = Enum.SurfaceType.SmoothNoOutlines
1223Part66.FormFactor = Enum.FormFactor.Custom
1224Part66.formFactor = Enum.FormFactor.Custom
1225Script67.Parent = Part66
1226table.insert(cors,sandbox(Script67,function()
1227while true do
1228script.Parent.Color = Color3.new(math.random(), math.random(), math.random())
1229wait(60)
1230end
1231end))
1232UnionOperation68.Name = "Frame"
1233UnionOperation68.Parent = Model59
1234UnionOperation68.CFrame = CFrame.new(32.1500168, 3.68502855, -26.2150269, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
1235UnionOperation68.Position = Vector3.new(32.1500168, 3.68502855, -26.2150269)
1236UnionOperation68.Color = Color3.new(0.105882, 0.164706, 0.207843)
1237UnionOperation68.Size = Vector3.new(1.19999862, 0.450000525, 0.0500011444)
1238UnionOperation68.Anchored = true
1239UnionOperation68.BrickColor = BrickColor.new("Black")
1240UnionOperation68.CanCollide = false
1241UnionOperation68.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
1242UnionOperation68.Elasticity = 0
1243UnionOperation68.Friction = 0.69999998807907
1244UnionOperation68.Material = Enum.Material.SmoothPlastic
1245UnionOperation68.brickColor = BrickColor.new("Black")
1246UnionOperation68.UsePartColor = true
1247UnionOperation69.Parent = Model59
1248UnionOperation69.CFrame = CFrame.new(32.1500168, 3.68502855, -26.1650162, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
1249UnionOperation69.Position = Vector3.new(32.1500168, 3.68502855, -26.1650162)
1250UnionOperation69.Color = Color3.new(0.639216, 0.635294, 0.647059)
1251UnionOperation69.Size = Vector3.new(1.19999886, 0.450001717, 0.0500011444)
1252UnionOperation69.Anchored = true
1253UnionOperation69.BrickColor = BrickColor.new("Medium stone grey")
1254UnionOperation69.CanCollide = false
1255UnionOperation69.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
1256UnionOperation69.Elasticity = 0
1257UnionOperation69.Friction = 0.69999998807907
1258UnionOperation69.Material = Enum.Material.SmoothPlastic
1259UnionOperation69.Reflectance = 0.40000000596046
1260UnionOperation69.brickColor = BrickColor.new("Medium stone grey")
1261UnionOperation69.UsePartColor = true
1262Part70.Name = "Blackout"
1263Part70.Parent = Model51
1264Part70.CFrame = CFrame.new(32.1250076, 3.73503065, -26.3400269, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
1265Part70.Position = Vector3.new(32.1250076, 3.73503065, -26.3400269)
1266Part70.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
1267Part70.Size = Vector3.new(6.64999819, 0.350000024, 0.100000069)
1268Part70.Anchored = true
1269Part70.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1270Part70.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1271Part70.BrickColor = BrickColor.new("Really black")
1272Part70.CanCollide = false
1273Part70.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
1274Part70.Elasticity = 0
1275Part70.Friction = 0.69999998807907
1276Part70.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1277Part70.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
1278Part70.Material = Enum.Material.SmoothPlastic
1279Part70.RightSurface = Enum.SurfaceType.SmoothNoOutlines
1280Part70.TopSurface = Enum.SurfaceType.SmoothNoOutlines
1281Part70.brickColor = BrickColor.new("Really black")
1282Part70.FormFactor = Enum.FormFactor.Custom
1283Part70.formFactor = Enum.FormFactor.Custom
1284UnionOperation71.Name = "Vent"
1285UnionOperation71.Parent = Model51
1286UnionOperation71.CFrame = CFrame.new(29.2750053, 3.73503065, -26.2900238, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
1287UnionOperation71.Position = Vector3.new(29.2750053, 3.73503065, -26.2900238)
1288UnionOperation71.Color = Color3.new(0.105882, 0.164706, 0.207843)
1289UnionOperation71.Size = Vector3.new(0.949997902, 0.450000525, 0.100000381)
1290UnionOperation71.Anchored = true
1291UnionOperation71.BrickColor = BrickColor.new("Black")
1292UnionOperation71.CanCollide = false
1293UnionOperation71.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
1294UnionOperation71.Elasticity = 0
1295UnionOperation71.Friction = 0.69999998807907
1296UnionOperation71.Material = Enum.Material.SmoothPlastic
1297UnionOperation71.brickColor = BrickColor.new("Black")
1298UnionOperation71.UsePartColor = true
1299UnionOperation72.Name = "Vent"
1300UnionOperation72.Parent = Model51
1301UnionOperation72.CFrame = CFrame.new(35.0250015, 3.73503065, -26.2900238, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
1302UnionOperation72.Position = Vector3.new(35.0250015, 3.73503065, -26.2900238)
1303UnionOperation72.Color = Color3.new(0.105882, 0.164706, 0.207843)
1304UnionOperation72.Size = Vector3.new(0.949997902, 0.450000525, 0.100000381)
1305UnionOperation72.Anchored = true
1306UnionOperation72.BrickColor = BrickColor.new("Black")
1307UnionOperation72.CanCollide = false
1308UnionOperation72.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
1309UnionOperation72.Elasticity = 0
1310UnionOperation72.Friction = 0.69999998807907
1311UnionOperation72.Material = Enum.Material.SmoothPlastic
1312UnionOperation72.brickColor = BrickColor.new("Black")
1313UnionOperation72.UsePartColor = true
1314UnionOperation73.Name = "Dahboard"
1315UnionOperation73.Parent = Model51
1316UnionOperation73.CFrame = CFrame.new(32.1500168, 2.96003056, -26.3650208, 1, 1.1920929e-07, -5.19536343e-08, -1.1920929e-07, 1, 4.05261105e-08, 2.65697508e-08, -4.05308391e-08, 1)
1317UnionOperation73.Position = Vector3.new(32.1500168, 2.96003056, -26.3650208)
1318UnionOperation73.Color = Color3.new(0.494118, 0.407843, 0.247059)
1319UnionOperation73.Size = Vector3.new(6.99999905, 2.10000038, 0.250000954)
1320UnionOperation73.Anchored = true
1321UnionOperation73.BrickColor = BrickColor.new("Bronze")
1322UnionOperation73.CanCollide = false
1323UnionOperation73.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
1324UnionOperation73.Elasticity = 0
1325UnionOperation73.Friction = 0.69999998807907
1326UnionOperation73.brickColor = BrickColor.new("Bronze")
1327UnionOperation73.UsePartColor = true
1328Seat74.Name = "Passenger Seat"
1329Seat74.Parent = Model17
1330Seat74.CFrame = CFrame.new(33.8000259, 1.81001997, -24.9149933, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1331Seat74.Position = Vector3.new(33.8000259, 1.81001997, -24.9149933)
1332Seat74.Color = Color3.new(0.494118, 0.407843, 0.247059)
1333Seat74.Size = Vector3.new(2, 1, 1.64999998)
1334Seat74.Anchored = true
1335Seat74.BottomSurface = Enum.SurfaceType.Smooth
1336Seat74.BrickColor = BrickColor.new("Bronze")
1337Seat74.Material = Enum.Material.Sand
1338Seat74.TopSurface = Enum.SurfaceType.Smooth
1339Seat74.brickColor = BrickColor.new("Bronze")
1340Seat75.Name = "Passenger Seat"
1341Seat75.Parent = Model17
1342Seat75.CFrame = CFrame.new(34.1000214, 1.81001997, -21.7149925, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1343Seat75.Position = Vector3.new(34.1000214, 1.81001997, -21.7149925)
1344Seat75.Color = Color3.new(0.494118, 0.407843, 0.247059)
1345Seat75.Size = Vector3.new(1.40000021, 1, 1.64999998)
1346Seat75.Anchored = true
1347Seat75.BottomSurface = Enum.SurfaceType.Smooth
1348Seat75.BrickColor = BrickColor.new("Bronze")
1349Seat75.Material = Enum.Material.Sand
1350Seat75.TopSurface = Enum.SurfaceType.Smooth
1351Seat75.brickColor = BrickColor.new("Bronze")
1352Seat76.Name = "Passenger Seat"
1353Seat76.Parent = Model17
1354Seat76.CFrame = CFrame.new(30.2000198, 1.81001997, -21.7149925, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1355Seat76.Position = Vector3.new(30.2000198, 1.81001997, -21.7149925)
1356Seat76.Color = Color3.new(0.494118, 0.407843, 0.247059)
1357Seat76.Size = Vector3.new(1.40000033, 1, 1.64999998)
1358Seat76.Anchored = true
1359Seat76.BottomSurface = Enum.SurfaceType.Smooth
1360Seat76.BrickColor = BrickColor.new("Bronze")
1361Seat76.Material = Enum.Material.Sand
1362Seat76.TopSurface = Enum.SurfaceType.Smooth
1363Seat76.brickColor = BrickColor.new("Bronze")
1364Seat77.Name = "Passenger Seat"
1365Seat77.Parent = Model17
1366Seat77.CFrame = CFrame.new(32.2000198, 1.81001997, -21.7149925, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1367Seat77.Position = Vector3.new(32.2000198, 1.81001997, -21.7149925)
1368Seat77.Color = Color3.new(0.494118, 0.407843, 0.247059)
1369Seat77.Size = Vector3.new(1.40000033, 1, 1.64999998)
1370Seat77.Anchored = true
1371Seat77.BottomSurface = Enum.SurfaceType.Smooth
1372Seat77.BrickColor = BrickColor.new("Bronze")
1373Seat77.Material = Enum.Material.Sand
1374Seat77.TopSurface = Enum.SurfaceType.Smooth
1375Seat77.brickColor = BrickColor.new("Bronze")
1376Part78.Name = "Collider"
1377Part78.Parent = Model17
1378Part78.CFrame = CFrame.new(32.1500168, 3.67177439, -28.599762, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849)
1379Part78.Orientation = Vector3.new(-10, 0, 0)
1380Part78.Position = Vector3.new(32.1500168, 3.67177439, -28.599762)
1381Part78.Rotation = Vector3.new(-10, 0, 0)
1382Part78.Transparency = 1
1383Part78.Size = Vector3.new(7.3000021, 0.100000009, 3.45000029)
1384Part78.Anchored = true
1385Part78.BottomSurface = Enum.SurfaceType.Smooth
1386Part78.TopSurface = Enum.SurfaceType.Smooth
1387VehicleSeat79.Name = "Drive"
1388VehicleSeat79.Parent = Model0
1389VehicleSeat79.CFrame = CFrame.new(30.5000153, 1.81001544, -24.9149933, 1, 1.1920929e-07, -5.46808288e-08, -1.1920929e-07, 1, 4.05256024e-08, 2.38425564e-08, -4.05313543e-08, 1)
1390VehicleSeat79.Position = Vector3.new(30.5000153, 1.81001544, -24.9149933)
1391VehicleSeat79.Color = Color3.new(0.494118, 0.407843, 0.247059)
1392VehicleSeat79.MaxSpeed = 0
1393VehicleSeat79.Size = Vector3.new(2, 1, 1.64999938)
1394VehicleSeat79.Torque = 0
1395VehicleSeat79.BackSurface = Enum.SurfaceType.Weld
1396VehicleSeat79.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1397VehicleSeat79.BrickColor = BrickColor.new("Bronze")
1398VehicleSeat79.CanCollide = false
1399VehicleSeat79.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1400VehicleSeat79.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
1401VehicleSeat79.Material = Enum.Material.Sand
1402VehicleSeat79.RightSurface = Enum.SurfaceType.SmoothNoOutlines
1403VehicleSeat79.TopSurface = Enum.SurfaceType.SmoothNoOutlines
1404VehicleSeat79.brickColor = BrickColor.new("Bronze")
1405VehicleSeat79.HeadsUpDisplay = false
1406VehicleSeat79.TurnSpeed = 0
1407BlockMesh80.Name = "Part"
1408BlockMesh80.Parent = VehicleSeat79
1409BlockMesh80.Offset = Vector3.new(1.70000005, 0, 0)
1410BlockMesh80.Scale = Vector3.new(3.5, 1, 1)
1411Script81.Name = "FE Script"
1412Script81.Parent = VehicleSeat79
1413table.insert(cors,sandbox(Script81,function()
1414--MADE BY NWSPACEK
1415wait(0.1)
1416Players = game:GetService("Players")
1417
1418seat = script.Parent-- the driving seat
1419car = seat.Parent
1420
1421Player = nil
1422
1423forwardsSpeed = 60--if you removed the Configuration folder, it defaults to this speed forwards
1424reverseSpeed = 20--if you removed the Configuration folder, it defaults to this speed backwards
1425allowFlipping = true--if you removed the Configuration folder, it defaults to automatically flipping
1426StartTime = 1--how long (in seconds) the car should wait before starting up. This is dependant on the starting sfx
1427
1428engineBlock = car:FindFirstChild("EngineBlock")--maybe someone doesn't like sound?
1429
1430lightsOn = false-- whether or not the lights turn on
1431carRunning = false--whether or not the car is running
1432
1433RemoteControlled = car:FindFirstChild("ControlByRemote")--this is so the car turns properly
1434
1435function CalculatePitch()--this returns the pitch that the engine should be at when its travelling
1436 return 1+RemoteControlled.Velocity.magnitude/100
1437end
1438
1439Configuration = car:FindFirstChild("Configuration")-- so you can change the stats of the car
1440if Configuration then-- if we found an object named Configuration in the car then do this stuff:
1441 local ReverseSpeedValue = Configuration:FindFirstChild("Reverse Speed")-- do we have a reverse speed?
1442 if ReverseSpeedValue ~= nil then
1443 if type(ReverseSpeedValue.Value) == "number" then
1444 reverseSpeed = ReverseSpeedValue.Value
1445 end
1446 ReverseSpeedValue.Changed:connect(function()-- level 1 scripting: go
1447 if ReverseSpeedValue.Parent ~= nil then-- this script works, but there are some things
1448 if type(ReverseSpeedValue.Value) == "number" then-- to make it look a little better
1449 reverseSpeed = ReverseSpeedValue.Value
1450 UpdateVehicle()
1451 end
1452 end
1453 end)
1454 end
1455 local ForwardsSpeedValue = Configuration:FindFirstChild("Forwards Speed")
1456 if ForwardsSpeedValue then
1457 if type(ForwardsSpeedValue.Value) == "number" then
1458 forwardsSpeed = ForwardsSpeedValue.Value
1459 end
1460 ForwardsSpeedValue.Changed:connect(function()-- level 2 scripting: go
1461 if ForwardsSpeedValue.Parent then -- asking if something 'is' is the same as
1462 if ForwardsSpeedValue.Value then-- asking if it is "~= nil"
1463 forwardsSpeed = ForwardsSpeedValue.Value
1464 UpdateVehicle()
1465 end
1466 end
1467 end)
1468 end
1469
1470 local AllowFlippingValue = Configuration:FindFirstChild("Allow Flipping")
1471 if AllowFlippingValue then
1472 if type(AllowFlippingValue.Value)=="boolean" then
1473 allowFlipping = AllowFlippingValue.Value
1474 end -- level 3 scripting: go
1475 AllowFlippingValue.Changed:connect(function()-- the script executes a chain of
1476 if AllowFlippingValue.Parent and type(AllowFlippingValue.Value) == "boolean" then-- "and" statements in the order they
1477 allowFlipping = AllowFlippingValue.Value-- come in so if the first one isn't "true" then
1478 -- it will skip the rest
1479 end
1480 end)
1481 end
1482 local TorqueValue = Configuration:FindFirstChild("Torque")
1483 if TorqueValue then
1484 if type(TorqueValue.Value)=="number" and RemoteControlled then
1485 RemoteControlled.Torque = TorqueValue.Value
1486 end
1487 TorqueValue.Changed:connect(function()
1488 if TorqueValue.Parent and type(TorqueValue.Value) == "number" and RemoteControlled then
1489 RemoteControlled.Torque = TorqueValue.Value
1490 end
1491 end)
1492 end
1493end
1494
1495script.CarSteering.Seat.Value = seat
1496
1497if not RemoteControlled:IsA("VehicleSeat") then-- how dare you try to disturb this ancient harmony
1498 RemoteControlled = nil-- no food 4 u!
1499end
1500
1501seat.ChildAdded:connect(function(it)-- something was added to our seat!
1502 if it:IsA("Weld") and it.Name == "SeatWeld" then-- is it the kind of thing players use to sit with?
1503 Player = Players:GetPlayerFromCharacter(it.Part1.Parent)-- is there a player attached to it?
1504 if Player then-- hooray! a player WAS attached to the seat weld. It's time to start the car!
1505 script.CarSteering:Clone().Parent = Player.Backpack-- for better driving
1506 RemoteControlled.MaxSpeed = 0-- not yet little child
1507 if engineBlock and engineBlock:FindFirstChild("Starting") and engineBlock.Starting:IsA("Sound") then
1508 engineBlock.Starting:Play()
1509 end
1510 if engineBlock and engineBlock:FindFirstChild("Stopping") and engineBlock.Stopping:IsA("Sound") then
1511 engineBlock.Stopping:Stop()
1512 end
1513 wait(StartTime)-- just in case you use different starting sound effects
1514 if it.Parent ~= seat then-- DID OUR LOVELY PLAYER LEAVE WHILE WE WEREN'T LOOKING???????
1515 byebye()--maybe they did, so it's time to shut down the car
1516 else-- they didn't leave!
1517 lightsOn = true-- turn on the lights
1518 carRunning = true-- turn on the car
1519 updatelights()-- make sure we turn on the lights
1520 UpdateVehicle()-- maybe they're in a hurry, so we better check if they have their foot on the gas
1521 if engineBlock and engineBlock:FindFirstChild("Running") and engineBlock.Running:IsA("Sound") then
1522 engineBlock.Running:Play()
1523 engineBlock.Running.Pitch = CalculatePitch()
1524 end
1525 end
1526 end
1527 end
1528end)
1529
1530seat.ChildRemoved:connect(function(it)--did an object get removed?
1531 if it:isA("Weld") and it.Name == "SeatWeld" then-- if it's a weld and named like a seat weld
1532 byebye()-- time to shut down the car
1533 end
1534end)
1535
1536function byebye()
1537 if engineBlock and carRunning then-- remember scripting level 3? that applies to below:
1538 if engineBlock and engineBlock:FindFirstChild("Stopping") and engineBlock.Stopping:IsA("Sound") then
1539 engineBlock.Stopping:Play()-- where if it didn't do it like that, the above would error!
1540 wait(0.1) -- because engineBlock.Stopping would not exist, so :IsA() is
1541 end -- "not a valid member"
1542 if engineBlock and engineBlock:FindFirstChild("Running") and engineBlock.Running:IsA("Sound") then
1543 engineBlock.Running:Stop()-- WE MUST NOT STOP
1544 end
1545 if engineBlock and engineBlock:FindFirstChild("Starting") and engineBlock.Starting:IsA("Sound") then
1546 engineBlock.Starting:Stop()-- THIS SCRIPT IS BREAK-PROOF >:U
1547 end
1548 end
1549 RemoteControlled.MaxSpeed = 0--make sure that the car doesn't drive off without us
1550 carRunning = false
1551 lightsOn = false
1552 updatelights()--turn the lights off
1553 UpdateVehicle()--make sure the car stops now that it's off
1554end
1555
1556RearLight = {}--all the brake lights. These contain one SpotLight that gets manipulated
1557RearBulb = {}--the brake lights that use a Surface GUI to light up
1558FrontLight = {}--same as the RearLight but for the front
1559FrontBulb = {}--same as the RearBulb but for the front
1560ReverseLight = {}--These light up when you reverse
1561ReverseBulb = {}--these also light up when you reverse: SurfaceGui style
1562
1563for _, i in pairs (car:GetChildren()) do--populate the tables for ease of modularity.
1564 if i.Name == "RearBulb" then-- you can have any number of these items you want
1565 table.insert(RearBulb,i)-- and you don't have to change the script one bit!
1566 elseif i.Name == "RearLight" then
1567 table.insert(RearLight,i.SpotLight)
1568 elseif i.Name == "FrontLight" then
1569 table.insert(FrontLight,i.SpotLight)
1570 elseif i.Name == "ReverseLight" then
1571 table.insert(ReverseLight,i.SpotLight)
1572 elseif i.Name == "FrontBulb" then
1573 table.insert(FrontBulb,i)
1574 elseif i.Name == "ReverseBulb" then
1575 table.insert(ReverseBulb,i)
1576 end
1577end
1578
1579function updatelights()-- this turns the lights on and off based on the lightsOn value
1580 for _,i in pairs (RearLight) do
1581 i.Enabled = lightsOn
1582 end
1583 for _,i in pairs (FrontLight) do
1584 i.Enabled = lightsOn
1585 end
1586 for _,i in pairs (FrontBulb) do
1587 SurfaceGuiStandard(i,lightsOn)
1588 end
1589 for _,g in pairs (RearBulb) do
1590 SurfaceGuiBrightness(g,lightsOn,seat.Throttle == 0)
1591 end
1592end
1593
1594flippingDebounce = false-- a debounce is a simple way of preventing a function from
1595 -- being called multiple times while it's still running
1596function Flip()
1597 if not flippingDebounce then-- here's how it works: the function checks if the debounce is off
1598 flippingDebounce = true-- if it's on, then the function stops, but if it's off, set it to true
1599 local bodypos = Instance.new("BodyPosition",seat)-- so we get uninterupted function fun
1600 bodypos.maxForce = Vector3.new(100000,10000000,100000)
1601 bodypos.position = seat.Position + Vector3.new(0,2,0)
1602 local bodygyro = Instance.new("BodyGyro",seat)
1603 game:GetService("Debris"):AddItem(bodypos, 3)-- this makes sure that the flippy bit
1604 game:GetService("Debris"):AddItem(bodygyro, 3)-- deletes itself automatically
1605 wait(3)
1606 flippingDebounce = false-- when we are done with our fun, allow the function to work again
1607 end
1608end
1609
1610function SurfaceGuiStandard(part,on)-- this makes it so the lights turn on or off
1611 for _,i in pairs (part:GetChildren()) do
1612 if i:IsA("SurfaceGui") then
1613 i.Enabled = on
1614 end
1615 end
1616end
1617
1618function SurfaceGuiBrightness(part,on,bright)-- this is so the brake lights dim when we drive
1619 for _,i in pairs (part:GetChildren()) do
1620 if i:IsA("SurfaceGui") then
1621 i.Enabled = on
1622 if i:FindFirstChild("Frame") and i.Frame:IsA("Frame") then
1623 i.Frame.Transparency = bright and 0 or 0.5-- scripting level 4: go
1624 end-- for simple statements, you can have a boolean value decide between 2 values
1625 -- which is the same as writing
1626 -- "if bright then
1627 -- i.Frame.Transparency = 0
1628 -- else
1629 -- i.Frame.Transparency = 0.5
1630 -- end"
1631 --but instead of "then" and "else", you use "and" and "or"
1632 end
1633 end
1634end
1635
1636hornDebounce = false
1637function Honk()-- if you are reading this then congratulations! you win a prize!
1638 if hornDebounce then return end-- unfortunately, I could not think of a way
1639 if engineBlock and engineBlock:FindFirstChild("Horn") and engineBlock.Horn:IsA("Sound") then
1640 hornDebounce = true-- to allow people to be able to honk the horn for both PC and mobile
1641 engineBlock.horn:Play() -- in an unobtrusive way. Sorry! :(
1642 print("beep beep") -- UristMcSparks, the guy in charge of the toolbox, doesn't want print statements
1643 wait(0.5)-- but since this is a secret, lets keep it between you and me, OK?
1644 engineBlock.horn:Stop()
1645 hornDebounce = false
1646 end
1647end
1648
1649function UpdateVehicle()-- this is for the brake lights and speed and stuff like that
1650 if seat.Torque ~= 0 and type(seat.Torque) == "number" and RemoteControlled then
1651 RemoteControlled.Torque = math.abs(seat.Torque)
1652 seat.Torque = 0
1653 else
1654 seat.Torque = 0
1655 end
1656 if seat.Throttle == 1 and carRunning then-- if we're going forwards
1657 RemoteControlled.MaxSpeed = forwardsSpeed-- give it forwards speed
1658 elseif seat.Throttle == -1 and carRunning then-- if we're going backwards
1659 RemoteControlled.MaxSpeed = reverseSpeed-- give it backwards speed
1660 else
1661 RemoteControlled.MaxSpeed = 0 -- otherwise, give it 0 speed
1662 end
1663 if workspace.FilteringEnabled and RemoteControlled and RemoteControlled.Parent then--the idea from scripting level 2 applies to false as well
1664 RemoteControlled.Throttle = seat.Throttle-- that is, it also works for "~= false"
1665 end-- the reason this line exists is to prevent the server from doing something the client
1666 -- is already doing.
1667 for _,h in pairs (ReverseLight) do-- all these loops below are just updating the lights
1668 h.Enabled = lightsOn and seat.Throttle == -1
1669 end
1670 for _,i in pairs (ReverseBulb) do
1671 SurfaceGuiStandard(i,lightsOn and seat.Throttle == -1)
1672 end
1673 for _,j in pairs (RearLight) do
1674 j.Brightness = 4-math.abs(seat.Throttle)*3
1675 end
1676 for _,k in pairs (RearBulb) do
1677 SurfaceGuiBrightness(k,lightsOn,seat.Throttle == 0)
1678 end
1679end
1680
1681seat.Changed:connect(UpdateVehicle)-- this is so that when someone drives the car
1682 -- the brake and reverse lights change
1683 -- and the speed of the car changes
1684
1685while true do
1686 for i = 1, 60 do--60/30 == 2, 2 seconds between deciding if it's upside down
1687 wait()-- we want the steering and sfx to update as many times a second as we can
1688 if workspace.FilteringEnabled then
1689 if car:FindFirstChild("LeftMotor") then
1690 car.LeftMotor.DesiredAngle = 100
1691 car.LeftMotor.DesiredAngle = seat.Steer*math.rad(40-RemoteControlled.Velocity.magnitude/4)
1692 end
1693 if car:FindFirstChild("RightMotor") then
1694 car.RightMotor.DesiredAngle = 100
1695 car.RightMotor.DesiredAngle = seat.Steer*math.rad(40-RemoteControlled.Velocity.magnitude/4)
1696 end
1697 end
1698 -- below: make sure there's a sound to play
1699 if RemoteControlled and carRunning and engineBlock and engineBlock:FindFirstChild("Running") and engineBlock.Running:IsA("Sound") then
1700 engineBlock.Running.Pitch = CalculatePitch()-- and make sure that the car is on before trying
1701 -- to make sure the engine sounds good
1702 end
1703 end
1704 -- V this allows people to say if they want the car to flip over or not
1705 if allowFlipping and (seat.CFrame*CFrame.Angles(math.pi/2,0,0)).lookVector.Y < 0.2 then--am I upside down?
1706 Flip()--flip the car right side up
1707
1708 -- as a fun experiment, see what happens if you replace "Flip()" with "Spawn(Flip)"
1709 -- and see what the difference is when you drive the car off the baseplate
1710 -- if you did it right, you'll notice that the engine sound changes differently!
1711 end
1712end
1713
1714-- scripting level 1000000: go
1715-- if you type 2 dashes like this "--" you can create a comment
1716-- comments aren't executed, so you can type stuff like this!
1717
1718--[==[
1719
1720 if you want to make longer comments
1721
1722 you can surround them with the double dashes and double square brackets "--[[" and "--]]"
1723
1724 and you can surround those by ones with equals signs in them too
1725
1726 so you don't have to type the "--" every single line
1727
1728--]==]
1729
1730
1731--Thanks for watching!
1732--NWSpacek
1733end))
1734LocalScript82.Name = "CarSteering"
1735LocalScript82.Parent = Script81
1736table.insert(cors,sandbox(LocalScript82,function()
1737--MADE BY NWSPACEK
1738wait(1)-- give it time to adjust to the scary and new environment of Backpack
1739SeatValue = script:WaitForChild("Seat")-- orient ourselves to the car we are sitting in
1740if SeatValue:IsA("ObjectValue") and SeatValue.Value and SeatValue.Value:IsA("VehicleSeat") then
1741 seat = SeatValue.Value
1742 car = seat.Parent
1743 local RemoteControlled = car:FindFirstChild("ControlByRemote")
1744 while seat:FindFirstChild("SeatWeld") and RemoteControlled do--what this loop does is continue running until the
1745 wait()--statement between the "while" and "do" is not true.
1746 if not RemoteControlled:IsA("VehicleSeat") then --think you can make ControlByRemote a different part and make it break?
1747 break-- NOPE!!!!! Still won't break!
1748 end-- (well, I suppose so because it says break over there)
1749 RemoteControlled.Throttle = seat.Throttle-- but the important bit is no red text
1750 if car:FindFirstChild("LeftMotor") then
1751 car.LeftMotor.DesiredAngle = 100
1752 car.LeftMotor.DesiredAngle = seat.Steer*math.rad(40-RemoteControlled.Velocity.magnitude/4)
1753 end
1754 if car:FindFirstChild("RightMotor") then
1755 car.RightMotor.DesiredAngle = 100
1756 car.RightMotor.DesiredAngle = seat.Steer*math.rad(40-RemoteControlled.Velocity.magnitude/4)
1757 end
1758 if car:FindFirstChild("Configuration") then
1759 if seat.Throttle == 1 and car.Configuration:FindFirstChild("Forwards Speed") then
1760 RemoteControlled.MaxSpeed = car.Configuration["Forwards Speed"].Value
1761 elseif seat.Throttle == 0 then
1762 RemoteControlled.MaxSpeed = 0
1763 elseif seat.Throttle == -1 and car.Configuration:FindFirstChild("Reverse Speed") then
1764 RemoteControlled.MaxSpeed = car.Configuration["Reverse Speed"].Value
1765 end
1766 end
1767 end
1768 -- the interesting thing about loops is they stop everything below them from running
1769 -- until the loop stops. When the loop stops because the player is no longer sitting
1770end
1771script:Destroy()-- momma always said to clean up after yourself
1772end))
1773ObjectValue83.Name = "Seat"
1774ObjectValue83.Parent = LocalScript82
1775Script84.Name = "Create Motors And Doors 2"
1776Script84.Parent = VehicleSeat79
1777table.insert(cors,sandbox(Script84,function()
1778--MADE BY NWSPACEK
1779
1780--the reason for this script being 2 instead of 1 is MAGIC
1781
1782WheelSize = 3--diameter of the wheel
1783
1784--When you are editing the car, make sure that the Left, Right, and Base parts are in a
1785--straight line, and in the orientation the models comes with, or they won't be where you expect
1786--them to be at all!
1787
1788motorSpeed = 0.05 -- a typical number is 0.1 but lower is better if you get weird behavior
1789
1790
1791--don't touch below, very delicate
1792car = script.Parent.Parent
1793
1794Base = car:FindFirstChild("Base")
1795Left = car:FindFirstChild("Left")
1796Right = car:FindFirstChild("Right")
1797
1798function MakeDoor(hinge,door,hingeOffset,doorOffset)
1799 local doorMotor = Instance.new("Motor",car)
1800 doorMotor.Name = hinge.Name.."Motor"
1801 doorMotor.Part0 = door
1802 doorMotor.Part1 = hinge
1803 doorMotor.C0 = doorOffset
1804 doorMotor.C1 = hingeOffset
1805 doorMotor.MaxVelocity = 0.05
1806 door.CanCollide = true
1807 local doorDebounce = false
1808 door.Touched:connect(function(it)
1809 if not doorDebounce and it.Parent and it.Name == "HumanoidRootPart" and game:GetService("Players"):GetPlayerFromCharacter(it.Parent) then
1810 doorDebounce = true
1811 door.CanCollide = false
1812 doorMotor.DesiredAngle = math.pi/3
1813 wait(1.5)
1814 doorMotor.DesiredAngle = 0
1815 wait(0.5)
1816 door.CanCollide = true
1817 doorDebounce = false
1818 end
1819 end)
1820end
1821function MakeWeldDoor(hinge,door)
1822 local doorMotor = Instance.new("Motor6D",car)
1823 doorMotor.Name = hinge.Name.."Motor"
1824 doorMotor.Part0 = door
1825 doorMotor.Part1 = hinge
1826 doorMotor.C1 = hinge.CFrame:inverse()*door.CFrame
1827 door.CanCollide = false
1828end
1829
1830function GetCFrame(object)--we'll get a CFrame value out of a CFrameValue or a StringValue formatted like a CFrame
1831 if object:IsA("CFrameValue") then--if someone is using a CFrame value then we'll just pull the value directly
1832 return object.Value
1833 elseif object:IsA("StringValue") then--added functionality for this because I dislike interfacing with CFrame values
1834 local cframe = nil
1835 pcall(function()--using pcall because i'm lazy
1836 cframe = CFrame.new(object.Value:match("(.+),(.+),(.+),(.+),(.+),(.+),(.+),(.+),(.+),(.+),(.+),(.+)"))
1837 --if you print your CFrame and paste it into the string value, this will find that out and use it properly
1838 end)
1839 return cframe
1840 end
1841end
1842
1843for _,h in pairs (car:GetChildren()) do
1844 if h:IsA("Motor6D") then--make sure we start with a blank slate
1845 h:Destroy()
1846 end
1847end
1848
1849for _,i in pairs (car:GetChildren()) do
1850 if i:IsA("BasePart") and i.Name:find("DoorHinge") then-- found a door with regex!
1851 local DoorID = i.Name:match("DoorHinge(.*)")--haha regex is fun
1852 local MatchingDoor = car:FindFirstChild("Door"..DoorID)--can we use our regex powers to find a matching door?
1853 if MatchingDoor then-- yay we found one!
1854 local DoorCFrameValue = MatchingDoor:FindFirstChild("DoorCFrame")
1855 local HingeCFrameValue = MatchingDoor:FindFirstChild("HingeCFrame")
1856 if DoorCFrameValue and HingeCFrameValue then
1857 local doorCFrame = GetCFrame(DoorCFrameValue)
1858 local hingeCFrame = GetCFrame(HingeCFrameValue)
1859 if doorCFrame and hingeCFrame then
1860 MakeDoor(i,MatchingDoor,hingeCFrame,doorCFrame)
1861 else
1862 MakeWeldDoor(i,MatchingDoor)
1863 end
1864 else
1865 MakeWeldDoor(i,MatchingDoor)
1866 end
1867 end
1868 end
1869end
1870
1871if Base then
1872 if Left then
1873 leftMotor = Instance.new("Motor6D", car)
1874 leftMotor.Name = "LeftMotor"
1875 leftMotor.Part0 = Left
1876 leftMotor.Part1 = Base
1877 leftMotor.C0 = CFrame.new(-WheelSize/2-Left.Size.x/2,0,0)*CFrame.Angles(math.pi/2,0,-math.pi/2)
1878 leftMotor.C1 = CFrame.new(Base.Size.x/2+Left.Size.x+WheelSize/2,0,0)*CFrame.Angles(math.pi/2,0,math.pi/2)
1879 leftMotor.MaxVelocity = motorSpeed
1880 end
1881 if Right then
1882 rightMotor = Instance.new("Motor6D", car)
1883 rightMotor.Name = "RightMotor"
1884 rightMotor.Part0 = Right
1885 rightMotor.Part1 = Base
1886 rightMotor.C0 = CFrame.new(-WheelSize/2-Right.Size.x/2,0,0)*CFrame.Angles(math.pi/2,0,math.pi/2)
1887 rightMotor.C1 = CFrame.new(-Base.Size.x/2-Right.Size.x-WheelSize/2,0,0)*CFrame.Angles(math.pi/2,0,math.pi/2)
1888 rightMotor.MaxVelocity = motorSpeed
1889 end
1890end
1891end))
1892Sound85.Name = "Horn"
1893Sound85.Parent = VehicleSeat79
1894Sound85.EmitterSize = 20
1895Sound85.MinDistance = 20
1896Sound85.Pitch = 0.88999998569489
1897Sound85.PlaybackSpeed = 0.88999998569489
1898Sound85.SoundId = "rbxassetid://972340421"
1899Sound85.Volume = 2.5
1900Script86.Name = "Control"
1901Script86.Parent = Sound85
1902table.insert(cors,sandbox(Script86,function()
1903if script.Parent.Parent:IsA("VehicleSeat") then
1904 script.Parent.Parent.ChildAdded:connect(function(child)
1905 if child:IsA("Weld") and game.Players:GetPlayerFromCharacter(child.Part1.Parent)~=nil then
1906 local p=game.Players:GetPlayerFromCharacter(child.Part1.Parent)
1907 local g=script.G:Clone()
1908 g.Parent=p.PlayerGui
1909 g:WaitForChild("src")
1910 g.src.Value=script.Parent
1911 g.Horn.Disabled=false
1912 end
1913 end)
1914end
1915end))
1916ScreenGui87.Name = "G"
1917ScreenGui87.Parent = Script86
1918ObjectValue88.Name = "src"
1919ObjectValue88.Parent = ScreenGui87
1920LocalScript89.Name = "Horn"
1921LocalScript89.Parent = ScreenGui87
1922table.insert(cors,sandbox(LocalScript89,function()
1923local mouse=game.Players.LoadsOfMoney123:GetMouse()
1924script.Parent:WaitForChild("src")
1925src=script.Parent.src.Value
1926mouse.KeyDown:connect(function(key)
1927 if key=="h" then
1928 src:Play()
1929 end
1930end)
1931mouse.KeyUp:connect(function(key)
1932 if key=="h" then
1933 src:Stop()
1934 end
1935end)
1936src.Parent.ChildRemoved:connect(function(child)
1937 if child.Name=="SeatWeld" then
1938 src:Stop()
1939 script.Parent:Destroy()
1940 end
1941end)
1942end))
1943LocalScript89.Disabled = true
1944Weld90.Parent = VehicleSeat79
1945Weld90.C0 = CFrame.new(0, 0, 0.82499969, 1, 0, 0, 0, 1, 0, 0, 0, 1)
1946Weld90.C1 = CFrame.new(-1.64998627, -1.50001526, -0.299962997, 1, -1.28088566e-15, -7.76201503e-09, -1.58702136e-15, 1, -1.44595447e-12, -7.76201503e-09, -1.45305989e-12, 1)
1947Weld90.Part0 = VehicleSeat79
1948Weld90.Part1 = Part21
1949Weld90.part1 = Part21
1950Part91.Name = "Right"
1951Part91.Parent = Model0
1952Part91.CFrame = CFrame.new(32.9500046, 1.41004133, -27.990036, -1, 1.1920929e-07, -4.80561937e-08, 1.1920929e-07, 1, -4.05284872e-08, 4.82659743e-08, -4.05284943e-08, -1)
1953Part91.Orientation = Vector3.new(0, -180, 0)
1954Part91.Position = Vector3.new(32.9500046, 1.41004133, -27.990036)
1955Part91.Rotation = Vector3.new(180, 0, -180)
1956Part91.Color = Color3.new(0.105882, 0.164706, 0.207843)
1957Part91.Velocity = Vector3.new(0.0149893714, -0.0475157201, -0.0262569152)
1958Part91.Size = Vector3.new(0.400000006, 1, 1)
1959Part91.BottomSurface = Enum.SurfaceType.Smooth
1960Part91.BrickColor = BrickColor.new("Black")
1961Part91.CanCollide = false
1962Part91.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
1963Part91.Elasticity = 0
1964Part91.Friction = 0.69999998807907
1965Part91.LeftSurface = Enum.SurfaceType.Inlet
1966Part91.Material = Enum.Material.SmoothPlastic
1967Part91.TopSurface = Enum.SurfaceType.Smooth
1968Part91.brickColor = BrickColor.new("Black")
1969Part91.FormFactor = Enum.FormFactor.Custom
1970Part91.formFactor = Enum.FormFactor.Custom
1971VehicleSeat92.Name = "ControlByRemote"
1972VehicleSeat92.Parent = Model0
1973VehicleSeat92.CFrame = CFrame.new(32.6500702, 2.11004734, -27.9900513, 1, 8.9326337e-16, -5.24460475e-08, 8.84762124e-16, 1, -9.46442924e-12, -5.24460511e-08, -9.46442924e-12, 1)
1974VehicleSeat92.Position = Vector3.new(32.6500702, 2.11004734, -27.9900513)
1975VehicleSeat92.MaxSpeed = 0
1976VehicleSeat92.Size = Vector3.new(0.400000006, 0.400000006, 0.400000006)
1977VehicleSeat92.Torque = 0
1978VehicleSeat92.BackSurface = Enum.SurfaceType.SmoothNoOutlines
1979VehicleSeat92.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
1980VehicleSeat92.CanCollide = false
1981VehicleSeat92.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
1982VehicleSeat92.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
1983VehicleSeat92.RightSurface = Enum.SurfaceType.SmoothNoOutlines
1984VehicleSeat92.TopSurface = Enum.SurfaceType.Weld
1985VehicleSeat92.HeadsUpDisplay = false
1986VehicleSeat92.TurnSpeed = 0
1987Weld93.Parent = VehicleSeat92
1988Weld93.C0 = CFrame.new(0, -0.200000003, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
1989Weld93.C1 = CFrame.new(-0.500061035, 0.500005722, 1.52587891e-05, -1, 7.44889945e-08, -1.1920929e-07, 1.1920929e-07, -4.05332301e-08, -1, -2.18331699e-08, -1, 4.05237586e-08)
1990Weld93.Part0 = VehicleSeat92
1991Weld93.Part1 = Part94
1992Weld93.part1 = Part94
1993Part94.Name = "Base"
1994Part94.Parent = Model0
1995Part94.CFrame = CFrame.new(32.1500092, 1.41004157, -27.990036, -1, 1.1920929e-07, -2.20429541e-08, 1.1920929e-07, 1, -4.05237586e-08, 7.42792139e-08, -4.05332301e-08, -1)
1996Part94.Orientation = Vector3.new(0, -180, 0)
1997Part94.Position = Vector3.new(32.1500092, 1.41004157, -27.990036)
1998Part94.Rotation = Vector3.new(180, 0, -180)
1999Part94.Color = Color3.new(0.105882, 0.164706, 0.207843)
2000Part94.Size = Vector3.new(1.20000005, 1, 3.00000048)
2001Part94.BackSurface = Enum.SurfaceType.Weld
2002Part94.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
2003Part94.BrickColor = BrickColor.new("Black")
2004Part94.CanCollide = false
2005Part94.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
2006Part94.Elasticity = 0
2007Part94.Friction = 0.69999998807907
2008Part94.FrontSurface = Enum.SurfaceType.Weld
2009Part94.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
2010Part94.Material = Enum.Material.SmoothPlastic
2011Part94.RightSurface = Enum.SurfaceType.SmoothNoOutlines
2012Part94.TopSurface = Enum.SurfaceType.Weld
2013Part94.brickColor = BrickColor.new("Black")
2014Part94.FormFactor = Enum.FormFactor.Custom
2015Part94.formFactor = Enum.FormFactor.Custom
2016Part95.Name = "Left"
2017Part95.Parent = Model0
2018Part95.CFrame = CFrame.new(31.3500137, 1.41004133, -27.990036, 1, 1.1920929e-07, -3.93665829e-08, -1.1920929e-07, 1, 4.05284588e-08, 3.91568022e-08, -4.05284943e-08, 1)
2019Part95.Position = Vector3.new(31.3500137, 1.41004133, -27.990036)
2020Part95.Color = Color3.new(0.105882, 0.164706, 0.207843)
2021Part95.Size = Vector3.new(0.400000006, 0.99999994, 1)
2022Part95.BottomSurface = Enum.SurfaceType.Smooth
2023Part95.BrickColor = BrickColor.new("Black")
2024Part95.CanCollide = false
2025Part95.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
2026Part95.Elasticity = 0
2027Part95.Friction = 0.69999998807907
2028Part95.LeftSurface = Enum.SurfaceType.Inlet
2029Part95.Material = Enum.Material.SmoothPlastic
2030Part95.TopSurface = Enum.SurfaceType.Smooth
2031Part95.brickColor = BrickColor.new("Black")
2032Part95.FormFactor = Enum.FormFactor.Custom
2033Part95.formFactor = Enum.FormFactor.Custom
2034Part96.Name = "holder"
2035Part96.Parent = Model0
2036Part96.CFrame = CFrame.new(32.1500015, 1.4100436, -19.0150604, 1, 1.1920929e-07, -8.30017015e-08, -1.1920929e-07, 1, 4.0520316e-08, -4.47830928e-09, -4.05366372e-08, 1)
2037Part96.Position = Vector3.new(32.1500015, 1.4100436, -19.0150604)
2038Part96.Color = Color3.new(0.105882, 0.164706, 0.207843)
2039Part96.Size = Vector3.new(2, 1.00000036, 3.05000234)
2040Part96.BackSurface = Enum.SurfaceType.Weld
2041Part96.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
2042Part96.BrickColor = BrickColor.new("Black")
2043Part96.CanCollide = false
2044Part96.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
2045Part96.Elasticity = 0
2046Part96.Friction = 0.69999998807907
2047Part96.FrontSurface = Enum.SurfaceType.Weld
2048Part96.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
2049Part96.Material = Enum.Material.SmoothPlastic
2050Part96.RightSurface = Enum.SurfaceType.SmoothNoOutlines
2051Part96.brickColor = BrickColor.new("Black")
2052Part96.FormFactor = Enum.FormFactor.Custom
2053Part96.formFactor = Enum.FormFactor.Custom
2054SpecialMesh97.Parent = Part96
2055SpecialMesh97.Scale = Vector3.new(3, 1, 1)
2056SpecialMesh97.MeshType = Enum.MeshType.Brick
2057Weld98.Parent = Part96
2058Weld98.C0 = CFrame.new(0, 0.500000179, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
2059Weld98.C1 = CFrame.new(0, -1.39998674, 1.57497406, -1, -3.60828878e-08, -1.28105263e-15, 4.39179436e-16, -6.73594514e-12, 1, 3.60828807e-08, 1, -6.73594514e-12)
2060Weld98.Part0 = Part96
2061Weld98.Part1 = Part33
2062Weld98.part1 = Part33
2063Weld99.Parent = Part96
2064Weld99.C0 = CFrame.new(0, 0, 1.52500117, 1, 0, 0, 0, 1, 0, 0, 0, 1)
2065Weld99.C1 = CFrame.new(0, -0.249990463, -0.500034332, 1, -1.58728511e-15, -4.38449064e-08, 1.81499136e-16, 1, -8.18900503e-12, -4.38448957e-08, -8.1818996e-12, 1)
2066Weld99.Part0 = Part96
2067Weld99.Part1 = Part18
2068Weld99.part1 = Part18
2069Part100.Name = "EngineBlock"
2070Part100.Parent = Model0
2071Part100.CFrame = CFrame.new(32.1500092, 2.71003866, -27.990036, -1, 1.1920929e-07, -2.16233857e-08, 1.1920929e-07, 1, -4.05237586e-08, 7.46987823e-08, -4.05332301e-08, -1)
2072Part100.Orientation = Vector3.new(0, -180, 0)
2073Part100.Position = Vector3.new(32.1500092, 2.71003866, -27.990036)
2074Part100.Rotation = Vector3.new(180, 0, -180)
2075Part100.Size = Vector3.new(2.00000143, 1.60000086, 3.00000048)
2076Part100.BackSurface = Enum.SurfaceType.SmoothNoOutlines
2077Part100.BottomSurface = Enum.SurfaceType.SmoothNoOutlines
2078Part100.CustomPhysicalProperties = 0.699999988, 0.699999988, 0, 1, 1
2079Part100.Elasticity = 0
2080Part100.Friction = 0.69999998807907
2081Part100.FrontSurface = Enum.SurfaceType.SmoothNoOutlines
2082Part100.LeftSurface = Enum.SurfaceType.SmoothNoOutlines
2083Part100.Material = Enum.Material.SmoothPlastic
2084Part100.RightSurface = Enum.SurfaceType.SmoothNoOutlines
2085Part100.TopSurface = Enum.SurfaceType.SmoothNoOutlines
2086Part100.FormFactor = Enum.FormFactor.Custom
2087Part100.formFactor = Enum.FormFactor.Custom
2088Sound101.Name = "Starting"
2089Sound101.Parent = Part100
2090Sound101.SoundId = "rbxassetid://1772075732"
2091Sound101.Volume = 0.40000000596046
2092Sound102.Name = "Running"
2093Sound102.Parent = Part100
2094Sound102.Looped = true
2095Sound102.SoundId = "rbxassetid://1772079140"
2096Sound102.Volume = 0.40000000596046
2097Sound103.Name = "Stopping"
2098Sound103.Parent = Part100
2099Sound103.SoundId = "http://www.roblox.com/asset/?id=174967918"
2100Sound103.Volume = 0.40000000596046
2101Weld104.Parent = Part100
2102Weld104.C0 = CFrame.new(0, -0.800000429, 0, 1, 0, 0, -0, -0, -1, 0, 1, 0)
2103Weld104.C1 = CFrame.new(0, 0.499996662, 0, 1, -4.1956838e-10, 1.95614721e-15, -1.96464951e-15, 0, -1, -4.1956838e-10, 1, 0)
2104Weld104.Part0 = Part100
2105Weld104.Part1 = Part94
2106Weld104.part1 = Part94
2107Configuration105.Parent = Model0
2108NumberValue106.Name = "Reverse Speed"
2109NumberValue106.Parent = Configuration105
2110NumberValue106.Value = 20
2111NumberValue107.Name = "Forwards Speed"
2112NumberValue107.Parent = Configuration105
2113NumberValue107.Value = 40
2114BoolValue108.Name = "Allow Flipping"
2115BoolValue108.Parent = Configuration105
2116BoolValue108.Value = true
2117NumberValue109.Name = "Torque"
2118NumberValue109.Parent = Configuration105
2119NumberValue109.Value = 2.5
2120for i,v in pairs(mas:GetChildren()) do
2121 v.Parent = game:GetService("Players").LoadsOfMoney123.Character
2122 pcall(function() v:MakeJoints() end)
2123end
2124mas:Destroy()
2125for i,v in pairs(cors) do
2126 spawn(function()
2127 pcall(v)
2128 end)
2129end