SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | - | --Converted with ttyyuu12345's model to script plugin v4 |
2 | + | local Player,game,owner = owner,game |
3 | local RealPlayer = Player | |
4 | do | |
5 | print("FE Compatibility code by Mokiros") | |
6 | local rp = RealPlayer | |
7 | script.Parent = rp.Character | |
8 | ||
9 | --RemoteEvent for communicating | |
10 | local Event = Instance.new("RemoteEvent") | |
11 | Event.Name = "UserInput_Event" | |
12 | ||
13 | --Fake event to make stuff like Mouse.KeyDown work | |
14 | local function fakeEvent() | |
15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end} | |
16 | t.connect = t.Connect | |
17 | return t | |
18 | end | |
19 | ||
20 | --Creating fake input objects with fake variables | |
21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()} | |
22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
25 | end} | |
26 | --Merged 2 functions into one by checking amount of arguments | |
27 | CAS.UnbindAction = CAS.BindAction | |
28 | ||
29 | --This function will trigger the events that have been :Connect()'ed | |
30 | local function te(self,ev,...) | |
31 | local t = m[ev] | |
32 | if t and t._fakeEvent then | |
33 | for _,f in pairs(t.Functions) do | |
34 | f(...) | |
35 | end | |
36 | end | |
37 | end | |
38 | m.TrigEvent = te | |
39 | UIS.TrigEvent = te | |
40 | ||
41 | Event.OnServerEvent:Connect(function(plr,io) | |
42 | if plr~=rp then return end | |
43 | m.Target = io.Target | |
44 | m.Hit = io.Hit | |
45 | if not io.isMouse then | |
46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
49 | end | |
50 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
51 | return m:TrigEvent(b and "Button2Down" or "Button2Up") | |
52 | end | |
53 | for _,t in pairs(CAS.Actions) do | |
54 | for _,k in pairs(t.Keys) do | |
55 | if k==io.KeyCode then | |
56 | t.Function(t.Name,io.UserInputState,io) | |
57 | end | |
58 | end | |
59 | end | |
60 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
61 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
62 | end | |
63 | end) | |
64 | Event.Parent = NLS([==[ | |
65 | local Player = game:GetService("Players").LocalPlayer | |
66 | local Event = script:WaitForChild("UserInput_Event") | |
67 | local Mouse = Player:GetMouse() | |
68 | local UIS = game:GetService("UserInputService") | |
69 | local input = function(io,a) | |
70 | if a then return end | |
71 | --Since InputObject is a client-side instance, we create and pass table instead | |
72 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
73 | end | |
74 | UIS.InputBegan:Connect(input) | |
75 | UIS.InputEnded:Connect(input) | |
76 | local h,t | |
77 | --Give the server mouse data 30 times every second, but only if the values changed | |
78 | --If player is not moving their mouse, client won't fire events | |
79 | while wait(1/30) do | |
80 | if h~=Mouse.Hit or t~=Mouse.Target then | |
81 | h,t=Mouse.Hit,Mouse.Target | |
82 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
83 | end | |
84 | end]==],Player.Character) | |
85 | ||
86 | ----Sandboxed game object that allows the usage of client-side methods and services | |
87 | --Real game object | |
88 | local _rg = game | |
89 | ||
90 | --Metatable for fake service | |
91 | local fsmt = { | |
92 | __index = function(self,k) | |
93 | local s = rawget(self,"_RealService") | |
94 | if s then | |
95 | return typeof(s[k])=="function" | |
96 | and function(_,...)return s[k](s,...)end or s[k] | |
97 | end | |
98 | end, | |
99 | __newindex = function(self,k,v) | |
100 | local s = rawget(self,"_RealService") | |
101 | if s then s[k]=v end | |
102 | end | |
103 | } | |
104 | local function FakeService(t,RealService) | |
105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
106 | return setmetatable(t,fsmt) | |
107 | end | |
108 | ||
109 | --Fake game object | |
110 | local g = { | |
111 | GetService = function(self,s) | |
112 | return rawget(self,s) or _rg:GetService(s) | |
113 | end, | |
114 | Players = FakeService({ | |
115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player) | |
116 | },"Players"), | |
117 | UserInputService = FakeService(UIS,"UserInputService"), | |
118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
119 | RunService = FakeService({ | |
120 | _btrs = {}, | |
121 | RenderStepped = _rg:GetService("RunService").Heartbeat, | |
122 | BindToRenderStep = function(self,name,_,fun) | |
123 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
124 | end, | |
125 | UnbindFromRenderStep = function(self,name) | |
126 | self._btrs[name]:Disconnect() | |
127 | end, | |
128 | },"RunService") | |
129 | } | |
130 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
131 | g.service = g.GetService | |
132 | FakeService(g,game) | |
133 | --Changing owner to fake player object to support owner:GetMouse() | |
134 | game,owner = g,g.Players.LocalPlayer | |
135 | end | |
136 | ||
137 | function sandbox(var,func) | |
138 | local env = getfenv(func) | |
139 | local newenv = setmetatable({},{ | |
140 | __index = function(self,k) | |
141 | if k=="script" then | |
142 | return var | |
143 | else | |
144 | return env[k] | |
145 | end | |
146 | end, | |
147 | }) | |
148 | setfenv(func,newenv) | |
149 | return func | |
150 | end | |
151 | cors = {} | |
152 | mas = Instance.new("Model",game:GetService("Lighting")) | |
153 | Model0 = Instance.new("Model") | |
154 | Model1 = Instance.new("Model") | |
155 | Part2 = Instance.new("Part") | |
156 | SpecialMesh3 = Instance.new("SpecialMesh") | |
157 | Part4 = Instance.new("Part") | |
158 | SpecialMesh5 = Instance.new("SpecialMesh") | |
159 | Part6 = Instance.new("Part") | |
160 | SpecialMesh7 = Instance.new("SpecialMesh") | |
161 | Part8 = Instance.new("Part") | |
162 | SpecialMesh9 = Instance.new("SpecialMesh") | |
163 | Part10 = Instance.new("Part") | |
164 | Part11 = Instance.new("Part") | |
165 | Part12 = Instance.new("Part") | |
166 | SpecialMesh13 = Instance.new("SpecialMesh") | |
167 | Part14 = Instance.new("Part") | |
168 | SpecialMesh15 = Instance.new("SpecialMesh") | |
169 | Part16 = Instance.new("Part") | |
170 | Part17 = Instance.new("Part") | |
171 | Part18 = Instance.new("Part") | |
172 | SpecialMesh19 = Instance.new("SpecialMesh") | |
173 | Decal20 = Instance.new("Decal") | |
174 | Part21 = Instance.new("Part") | |
175 | Part22 = Instance.new("Part") | |
176 | Part23 = Instance.new("Part") | |
177 | SpecialMesh24 = Instance.new("SpecialMesh") | |
178 | Part25 = Instance.new("Part") | |
179 | SpecialMesh26 = Instance.new("SpecialMesh") | |
180 | Model27 = Instance.new("Model") | |
181 | Part28 = Instance.new("Part") | |
182 | Part29 = Instance.new("Part") | |
183 | Part30 = Instance.new("Part") | |
184 | Model31 = Instance.new("Model") | |
185 | Part32 = Instance.new("Part") | |
186 | Part33 = Instance.new("Part") | |
187 | SpecialMesh34 = Instance.new("SpecialMesh") | |
188 | SurfaceGui35 = Instance.new("SurfaceGui") | |
189 | TextLabel36 = Instance.new("TextLabel") | |
190 | VehicleSeat37 = Instance.new("VehicleSeat") | |
191 | Model38 = Instance.new("Model") | |
192 | Part39 = Instance.new("Part") | |
193 | CylinderMesh40 = Instance.new("CylinderMesh") | |
194 | Part41 = Instance.new("Part") | |
195 | CylinderMesh42 = Instance.new("CylinderMesh") | |
196 | Part43 = Instance.new("Part") | |
197 | CylinderMesh44 = Instance.new("CylinderMesh") | |
198 | Part45 = Instance.new("Part") | |
199 | CylinderMesh46 = Instance.new("CylinderMesh") | |
200 | Part47 = Instance.new("Part") | |
201 | Part48 = Instance.new("Part") | |
202 | Part49 = Instance.new("Part") | |
203 | Part50 = Instance.new("Part") | |
204 | Part51 = Instance.new("Part") | |
205 | SpecialMesh52 = Instance.new("SpecialMesh") | |
206 | Part53 = Instance.new("Part") | |
207 | SurfaceGui54 = Instance.new("SurfaceGui") | |
208 | TextLabel55 = Instance.new("TextLabel") | |
209 | ClickDetector56 = Instance.new("ClickDetector") | |
210 | Script57 = Instance.new("Script") | |
211 | Script58 = Instance.new("Script") | |
212 | Model0.Name = "GoKart_CodeWrighter" | |
213 | Model0.Parent = mas | |
214 | Model0.PrimaryPart = Part29 | |
215 | Model1.Name = "Body" | |
216 | Model1.Parent = Model0 | |
217 | Part2.Name = "CornerBumper" | |
218 | Part2.Parent = Model1 | |
219 | Part2.Material = Enum.Material.SmoothPlastic | |
220 | Part2.BrickColor = BrickColor.new("Crimson") | |
221 | Part2.Rotation = Vector3.new(-89.9300003, 90, 0) | |
222 | Part2.FormFactor = Enum.FormFactor.Custom | |
223 | Part2.Size = Vector3.new(1, 0.400000006, 0.400000036) | |
224 | Part2.CFrame = CFrame.new(82.124176, 0.909297526, 117.184395, -5.97192266e-05, 0.00106699159, 1.00000274, -1.00000763, 0.0011511629, -6.09485905e-05, -0.00115122471, -1.0000087, 0.00106692268) | |
225 | Part2.BackSurface = Enum.SurfaceType.Weld | |
226 | Part2.BottomSurface = Enum.SurfaceType.Weld | |
227 | Part2.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
228 | Part2.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
229 | Part2.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
230 | Part2.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
231 | Part2.Color = Color3.new(0.592157, 0, 0) | |
232 | Part2.Position = Vector3.new(82.124176, 0.909297526, 117.184395) | |
233 | Part2.Orientation = Vector3.new(0, 89.9399948, -89.9300003) | |
234 | Part2.Color = Color3.new(0.592157, 0, 0) | |
235 | SpecialMesh3.Parent = Part2 | |
236 | SpecialMesh3.MeshType = Enum.MeshType.Wedge | |
237 | Part4.Name = "CornerBumper" | |
238 | Part4.Parent = Model1 | |
239 | Part4.Material = Enum.Material.SmoothPlastic | |
240 | Part4.BrickColor = BrickColor.new("Crimson") | |
241 | Part4.Rotation = Vector3.new(90.0699997, -90, 0) | |
242 | Part4.FormFactor = Enum.FormFactor.Custom | |
243 | Part4.Size = Vector3.new(1, 0.400000006, 0.400000036) | |
244 | Part4.CFrame = CFrame.new(88.5178986, 0.899229169, 125.394989, -0.000102626022, -0.00101028476, -1.00001431, -1.0000273, -0.00127536489, 0.000103915394, -0.00127549784, 1.00001347, -0.00101016893) | |
245 | Part4.BackSurface = Enum.SurfaceType.Weld | |
246 | Part4.BottomSurface = Enum.SurfaceType.Weld | |
247 | Part4.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
248 | Part4.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
249 | Part4.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
250 | Part4.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
251 | Part4.Color = Color3.new(0.592157, 0, 0) | |
252 | Part4.Position = Vector3.new(88.5178986, 0.899229169, 125.394989) | |
253 | Part4.Orientation = Vector3.new(-0.00999999978, -90.0599976, -90.0699997) | |
254 | Part4.Color = Color3.new(0.592157, 0, 0) | |
255 | SpecialMesh5.Parent = Part4 | |
256 | SpecialMesh5.MeshType = Enum.MeshType.Wedge | |
257 | Part6.Name = "CornerBumper" | |
258 | Part6.Parent = Model1 | |
259 | Part6.Material = Enum.Material.SmoothPlastic | |
260 | Part6.BrickColor = BrickColor.new("Crimson") | |
261 | Part6.Rotation = Vector3.new(-3.27999997, 89.9399948, 93.3499985) | |
262 | Part6.FormFactor = Enum.FormFactor.Custom | |
263 | Part6.Size = Vector3.new(1, 0.400000036, 0.400000036) | |
264 | Part6.CFrame = CFrame.new(82.1150742, 0.899715245, 125.388634, -6.2510655e-05, -0.00106696831, 0.999999404, 0.999999225, -0.00133426778, 6.10870266e-05, 0.00133420189, 0.999998569, 0.00106705073) | |
265 | Part6.BackSurface = Enum.SurfaceType.Weld | |
266 | Part6.BottomSurface = Enum.SurfaceType.Weld | |
267 | Part6.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
268 | Part6.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
269 | Part6.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
270 | Part6.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
271 | Part6.Color = Color3.new(0.592157, 0, 0) | |
272 | Part6.Position = Vector3.new(82.1150742, 0.899715245, 125.388634) | |
273 | Part6.Orientation = Vector3.new(0, 89.9399948, 90.0799942) | |
274 | Part6.Color = Color3.new(0.592157, 0, 0) | |
275 | SpecialMesh7.Parent = Part6 | |
276 | SpecialMesh7.MeshType = Enum.MeshType.Wedge | |
277 | Part8.Name = "CornerBumper" | |
278 | Part8.Parent = Model1 | |
279 | Part8.Material = Enum.Material.SmoothPlastic | |
280 | Part8.BrickColor = BrickColor.new("Crimson") | |
281 | Part8.Rotation = Vector3.new(-89.9199982, -90, 0) | |
282 | Part8.FormFactor = Enum.FormFactor.Custom | |
283 | Part8.Size = Vector3.new(1, 0.400000006, 0.400000036) | |
284 | Part8.CFrame = CFrame.new(88.5255814, 0.909518838, 117.190155, 0.000163630597, 0.00101028697, -1.00001061, 1.00002086, 0.00133645837, 0.000164982121, 0.00133664603, -1.00000989, -0.00101007952) | |
285 | Part8.BackSurface = Enum.SurfaceType.Weld | |
286 | Part8.BottomSurface = Enum.SurfaceType.Weld | |
287 | Part8.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
288 | Part8.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
289 | Part8.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
290 | Part8.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
291 | Part8.Color = Color3.new(0.592157, 0, 0) | |
292 | Part8.Position = Vector3.new(88.5255814, 0.909518838, 117.190155) | |
293 | Part8.Orientation = Vector3.new(-0.00999999978, -90.0599976, 89.9199982) | |
294 | Part8.Color = Color3.new(0.592157, 0, 0) | |
295 | SpecialMesh9.Parent = Part8 | |
296 | SpecialMesh9.MeshType = Enum.MeshType.Wedge | |
297 | Part10.Name = "FrontBumperMain" | |
298 | Part10.Parent = Model1 | |
299 | Part10.Material = Enum.Material.SmoothPlastic | |
300 | Part10.BrickColor = BrickColor.new("Crimson") | |
301 | Part10.Rotation = Vector3.new(-89.9199982, 0, 179.940002) | |
302 | Part10.FormFactor = Enum.FormFactor.Plate | |
303 | Part10.Size = Vector3.new(6, 0.400000006, 1) | |
304 | Part10.CFrame = CFrame.new(85.3146667, 0.899935901, 125.392525, -1.00001061, -0.00106907787, 2.91451906e-05, 3.05542671e-05, -0.00131719268, 1.00002277, -0.00106904737, 1.00001621, 0.00131723785) | |
305 | Part10.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
306 | Part10.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
307 | Part10.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
308 | Part10.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
309 | Part10.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
310 | Part10.Color = Color3.new(0.592157, 0, 0) | |
311 | Part10.Position = Vector3.new(85.3146667, 0.899935901, 125.392525) | |
312 | Part10.Orientation = Vector3.new(-90, 179.940002, 0) | |
313 | Part10.Color = Color3.new(0.592157, 0, 0) | |
314 | Part11.Name = "FrontBumperPlate" | |
315 | Part11.Parent = Model1 | |
316 | Part11.Material = Enum.Material.SmoothPlastic | |
317 | Part11.BrickColor = BrickColor.new("Crimson") | |
318 | Part11.Rotation = Vector3.new(-89.9300003, 0, 179.940002) | |
319 | Part11.FormFactor = Enum.FormFactor.Plate | |
320 | Part11.Size = Vector3.new(2, 0.400000006, 1) | |
321 | Part11.CFrame = CFrame.new(85.3143768, 0.89931047, 125.792343, -1.00001323, -0.001069088, 2.92981276e-05, 3.06160764e-05, -0.00123107142, 1.0000298, -0.00106905971, 1.00002527, 0.0012311138) | |
322 | Part11.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
323 | Part11.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
324 | Part11.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
325 | Part11.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
326 | Part11.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
327 | Part11.Color = Color3.new(0.592157, 0, 0) | |
328 | Part11.Position = Vector3.new(85.3143768, 0.89931047, 125.792343) | |
329 | Part11.Orientation = Vector3.new(-90, 179.940002, 0) | |
330 | Part11.Color = Color3.new(0.592157, 0, 0) | |
331 | Part12.Name = "FrontBumperWedge" | |
332 | Part12.Parent = Model1 | |
333 | Part12.Material = Enum.Material.SmoothPlastic | |
334 | Part12.BrickColor = BrickColor.new("Crimson") | |
335 | Part12.Rotation = Vector3.new(90.0799942, 90, 0) | |
336 | Part12.FormFactor = Enum.FormFactor.Plate | |
337 | Part12.Size = Vector3.new(1, 0.400000006, 2) | |
338 | Part12.CFrame = CFrame.new(83.3135681, 0.899050653, 125.790237, -0.000123674734, -0.00100811338, 1.00001347, 1.00002944, -0.00146917859, 0.000122194309, 0.00146906392, 1.00002515, 0.00100830186) | |
339 | Part12.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
340 | Part12.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
341 | Part12.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
342 | Part12.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
343 | Part12.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
344 | Part12.Color = Color3.new(0.592157, 0, 0) | |
345 | Part12.Position = Vector3.new(83.3135681, 0.899050653, 125.790237) | |
346 | Part12.Orientation = Vector3.new(-0.00999999978, 89.9399948, 90.0799942) | |
347 | Part12.Color = Color3.new(0.592157, 0, 0) | |
348 | SpecialMesh13.Parent = Part12 | |
349 | SpecialMesh13.MeshType = Enum.MeshType.Wedge | |
350 | Part14.Name = "FrontBumperWedge" | |
351 | Part14.Parent = Model1 | |
352 | Part14.Material = Enum.Material.SmoothPlastic | |
353 | Part14.BrickColor = BrickColor.new("Crimson") | |
354 | Part14.Rotation = Vector3.new(90.0799942, -90, 0) | |
355 | Part14.FormFactor = Enum.FormFactor.Plate | |
356 | Part14.Size = Vector3.new(1, 0.400000006, 2) | |
357 | Part14.CFrame = CFrame.new(87.3150711, 0.899338663, 125.794426, 1.49905281e-06, -0.00109963364, -1.00001335, -1.0000298, -0.00134703459, -1.64909579e-08, -0.00134704355, 1.00002527, -0.00109964365) | |
358 | Part14.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
359 | Part14.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
360 | Part14.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
361 | Part14.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
362 | Part14.Color = Color3.new(0.592157, 0, 0) | |
363 | Part14.Position = Vector3.new(87.3150711, 0.899338663, 125.794426) | |
364 | Part14.Orientation = Vector3.new(0, -90.0599976, -90.0799942) | |
365 | Part14.Color = Color3.new(0.592157, 0, 0) | |
366 | SpecialMesh15.Parent = Part14 | |
367 | SpecialMesh15.MeshType = Enum.MeshType.Wedge | |
368 | Part16.Name = "FrontSteeringBeam" | |
369 | Part16.Parent = Model1 | |
370 | Part16.Material = Enum.Material.SmoothPlastic | |
371 | Part16.BrickColor = BrickColor.new("Crimson") | |
372 | Part16.Rotation = Vector3.new(-179.929993, 0.0599999987, -180) | |
373 | Part16.FormFactor = Enum.FormFactor.Custom | |
374 | Part16.Size = Vector3.new(2, 0.200000003, 0.800000012) | |
375 | Part16.CFrame = CFrame.new(85.3151855, 1.30071223, 124.792122, -1.0000118, 1.6682643e-05, 0.00103852234, 1.7946857e-05, 1.00002265, 0.00121753488, -0.00103851419, 0.00121757702, -1.00001085) | |
376 | Part16.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
377 | Part16.BottomSurface = Enum.SurfaceType.Weld | |
378 | Part16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
379 | Part16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
380 | Part16.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
381 | Part16.TopSurface = Enum.SurfaceType.Weld | |
382 | Part16.Color = Color3.new(0.592157, 0, 0) | |
383 | Part16.Position = Vector3.new(85.3151855, 1.30071223, 124.792122) | |
384 | Part16.Orientation = Vector3.new(-0.0700000003, 179.940002, 0) | |
385 | Part16.Color = Color3.new(0.592157, 0, 0) | |
386 | Part17.Name = "LeftBumper" | |
387 | Part17.Parent = Model1 | |
388 | Part17.Material = Enum.Material.SmoothPlastic | |
389 | Part17.BrickColor = BrickColor.new("Crimson") | |
390 | Part17.Rotation = Vector3.new(0.0700000003, -0.0599999987, -90.0099945) | |
391 | Part17.FormFactor = Enum.FormFactor.Plate | |
392 | Part17.Size = Vector3.new(1, 0.400000006, 7.80000019) | |
393 | Part17.CFrame = CFrame.new(88.5211182, 0.904500484, 121.292618, -0.000133163572, 1.00001061, -0.00104072492, -1.00002086, -0.000134523696, -0.00130593532, -0.00130609656, 0.00104056217, 1.00000989) | |
394 | Part17.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
395 | Part17.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
396 | Part17.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
397 | Part17.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
398 | Part17.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
399 | Part17.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
400 | Part17.Color = Color3.new(0.592157, 0, 0) | |
401 | Part17.Position = Vector3.new(88.5211182, 0.904500484, 121.292618) | |
402 | Part17.Orientation = Vector3.new(0.0700000003, -0.0599999987, -90.0099945) | |
403 | Part17.Color = Color3.new(0.592157, 0, 0) | |
404 | Part18.Name = "NumberPlateHolder" | |
405 | Part18.Parent = Model1 | |
406 | Part18.Material = Enum.Material.SmoothPlastic | |
407 | Part18.BrickColor = BrickColor.new("Crimson") | |
408 | Part18.Rotation = Vector3.new(-179.929993, 0.0599999987, -180) | |
409 | Part18.FormFactor = Enum.FormFactor.Plate | |
410 | Part18.Size = Vector3.new(2, 1, 1.4000001) | |
411 | Part18.CFrame = CFrame.new(85.3150406, 1.90061331, 125.093132, -1.00001323, 2.92097702e-05, 0.00102589431, 3.05286812e-05, 1.00002968, 0.00128384447, -0.00102586392, 0.00128388533, -1.00002527) | |
412 | Part18.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
413 | Part18.BottomSurface = Enum.SurfaceType.Weld | |
414 | Part18.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
415 | Part18.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
416 | Part18.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
417 | Part18.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
418 | Part18.Color = Color3.new(0.592157, 0, 0) | |
419 | Part18.Position = Vector3.new(85.3150406, 1.90061331, 125.093132) | |
420 | Part18.Orientation = Vector3.new(-0.0700000003, 179.940002, 0) | |
421 | Part18.Color = Color3.new(0.592157, 0, 0) | |
422 | SpecialMesh19.Parent = Part18 | |
423 | SpecialMesh19.MeshType = Enum.MeshType.Wedge | |
424 | Decal20.Parent = Part18 | |
425 | Decal20.Texture = "http://www.roblox.com/asset/?id=252928188" | |
426 | Part21.Name = "RearBumper" | |
427 | Part21.Parent = Model1 | |
428 | Part21.Material = Enum.Material.SmoothPlastic | |
429 | Part21.BrickColor = BrickColor.new("Crimson") | |
430 | Part21.Rotation = Vector3.new(-89.9399948, 90, 0) | |
431 | Part21.FormFactor = Enum.FormFactor.Plate | |
432 | Part21.Size = Vector3.new(1, 0.400000006, 6) | |
433 | Part21.CFrame = CFrame.new(85.3247604, 0.909338653, 117.187698, -9.02257307e-05, 0.00106910185, 1.00000799, -1.00001597, 0.00113333075, -9.1437847e-05, -0.00113344612, -1.00000739, 0.00106900814) | |
434 | Part21.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
435 | Part21.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
436 | Part21.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
437 | Part21.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
438 | Part21.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
439 | Part21.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
440 | Part21.Color = Color3.new(0.592157, 0, 0) | |
441 | Part21.Position = Vector3.new(85.3247604, 0.909338653, 117.187698) | |
442 | Part21.Orientation = Vector3.new(0.00999999978, 89.9399948, -89.9399948) | |
443 | Part21.Color = Color3.new(0.592157, 0, 0) | |
444 | Part22.Name = "RightSideBumper" | |
445 | Part22.Parent = Model1 | |
446 | Part22.Material = Enum.Material.SmoothPlastic | |
447 | Part22.BrickColor = BrickColor.new("Crimson") | |
448 | Part22.Rotation = Vector3.new(0.0700000003, -0.0599999987, 90) | |
449 | Part22.FormFactor = Enum.FormFactor.Plate | |
450 | Part22.Size = Vector3.new(1, 0.400000006, 7.79999971) | |
451 | Part22.CFrame = CFrame.new(82.1205063, 0.904507637, 121.286461, -3.17915255e-05, -0.999999464, -0.0010363725, 0.999999404, -3.05668182e-05, -0.00118172681, 0.00118169456, -0.00103640941, 0.999998808) | |
452 | Part22.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
453 | Part22.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
454 | Part22.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
455 | Part22.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
456 | Part22.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
457 | Part22.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
458 | Part22.Color = Color3.new(0.592157, 0, 0) | |
459 | Part22.Position = Vector3.new(82.1205063, 0.904507637, 121.286461) | |
460 | Part22.Orientation = Vector3.new(0.0700000003, -0.0599999987, 90) | |
461 | Part22.Color = Color3.new(0.592157, 0, 0) | |
462 | Part23.Name = "SteeringColumn" | |
463 | Part23.Parent = Model1 | |
464 | Part23.Material = Enum.Material.SmoothPlastic | |
465 | Part23.BrickColor = BrickColor.new("Crimson") | |
466 | Part23.Rotation = Vector3.new(0.0599999987, -0.0599999987, 180) | |
467 | Part23.FormFactor = Enum.FormFactor.Plate | |
468 | Part23.Size = Vector3.new(2, 0.800000012, 2) | |
469 | Part23.CFrame = CFrame.new(85.3177109, 2.0028038, 123.392296, -1.00001049, -5.98299375e-05, -0.00106902071, 6.10093739e-05, -1.0000211, -0.00110302819, -0.001068966, -0.00110311667, 1.00001013) | |
470 | Part23.BackSurface = Enum.SurfaceType.Weld | |
471 | Part23.BottomSurface = Enum.SurfaceType.Weld | |
472 | Part23.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
473 | Part23.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
474 | Part23.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
475 | Part23.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
476 | Part23.Color = Color3.new(0.592157, 0, 0) | |
477 | Part23.Position = Vector3.new(85.3177109, 2.0028038, 123.392296) | |
478 | Part23.Orientation = Vector3.new(0.0599999987, -0.0599999987, 180) | |
479 | Part23.Color = Color3.new(0.592157, 0, 0) | |
480 | SpecialMesh24.Parent = Part23 | |
481 | SpecialMesh24.MeshType = Enum.MeshType.Wedge | |
482 | Part25.Name = "SteeringColumn" | |
483 | Part25.Parent = Model1 | |
484 | Part25.Material = Enum.Material.SmoothPlastic | |
485 | Part25.BrickColor = BrickColor.new("Crimson") | |
486 | Part25.Rotation = Vector3.new(-179.929993, 0.0599999987, 180) | |
487 | Part25.FormFactor = Enum.FormFactor.Plate | |
488 | Part25.Size = Vector3.new(2, 0.800000012, 2) | |
489 | Part25.CFrame = CFrame.new(85.3176193, 2.80308628, 123.393417, -1.00001252, -1.28423642e-06, 0.00113012909, 9.95955247e-08, 1.00002503, 0.00122492714, -0.00113014423, 0.00122495333, -1.00001192) | |
490 | Part25.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
491 | Part25.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
492 | Part25.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
493 | Part25.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
494 | Part25.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
495 | Part25.Color = Color3.new(0.592157, 0, 0) | |
496 | Part25.Position = Vector3.new(85.3176193, 2.80308628, 123.393417) | |
497 | Part25.Orientation = Vector3.new(-0.0700000003, 179.940002, 0) | |
498 | Part25.Color = Color3.new(0.592157, 0, 0) | |
499 | SpecialMesh26.Parent = Part25 | |
500 | SpecialMesh26.MeshType = Enum.MeshType.Wedge | |
501 | Model27.Name = "Chassis" | |
502 | Model27.Parent = Model0 | |
503 | Part28.Name = "LeftBumperPart" | |
504 | Part28.Parent = Model27 | |
505 | Part28.BrickColor = BrickColor.new("Really black") | |
506 | Part28.Rotation = Vector3.new(-179.929993, 0.0700000003, -180) | |
507 | Part28.FormFactor = Enum.FormFactor.Plate | |
508 | Part28.Size = Vector3.new(2, 0.800000012, 2) | |
509 | Part28.CFrame = CFrame.new(87.3185806, 0.803919017, 121.592239, -1.00000918, 5.97816106e-05, 0.00117871957, 6.12047515e-05, 1.00001848, 0.00120716239, -0.00117865717, 0.00120725413, -1.00000858) | |
510 | Part28.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
511 | Part28.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
512 | Part28.LeftSurface = Enum.SurfaceType.Weld | |
513 | Part28.RightSurface = Enum.SurfaceType.Weld | |
514 | Part28.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
515 | Part28.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
516 | Part28.Position = Vector3.new(87.3185806, 0.803919017, 121.592239) | |
517 | Part28.Orientation = Vector3.new(-0.0700000003, 179.929993, 0) | |
518 | Part28.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
519 | Part29.Name = "MainChassisBeam" | |
520 | Part29.Parent = Model27 | |
521 | Part29.BrickColor = BrickColor.new("Really black") | |
522 | Part29.Rotation = Vector3.new(-179.929993, 0.0599999987, -180) | |
523 | Part29.FormFactor = Enum.FormFactor.Plate | |
524 | Part29.Size = Vector3.new(2, 0.800000012, 7.80000019) | |
525 | Part29.CFrame = CFrame.new(85.3190765, 0.804530084, 121.289696, -1.00000799, 5.98561128e-05, 0.00103852281, 6.10651332e-05, 1.00001597, 0.00116395764, -0.00103846157, 0.00116403843, -1.00000739) | |
526 | Part29.BackSurface = Enum.SurfaceType.Weld | |
527 | Part29.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
528 | Part29.FrontSurface = Enum.SurfaceType.Weld | |
529 | Part29.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
530 | Part29.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
531 | Part29.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
532 | Part29.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
533 | Part29.Position = Vector3.new(85.3190765, 0.804530084, 121.289696) | |
534 | Part29.Orientation = Vector3.new(-0.0700000003, 179.940002, 0) | |
535 | Part29.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
536 | Part30.Name = "RightBumperPart" | |
537 | Part30.Parent = Model27 | |
538 | Part30.BrickColor = BrickColor.new("Really black") | |
539 | Part30.Rotation = Vector3.new(0.0700000003, -0.0599999987, 0) | |
540 | Part30.FormFactor = Enum.FormFactor.Plate | |
541 | Part30.Size = Vector3.new(2, 0.800000012, 2) | |
542 | Part30.CFrame = CFrame.new(83.3179703, 0.804276109, 121.587944, 0.999999464, 1.67605522e-05, -0.00100586633, -1.79313283e-05, 0.999999404, -0.00116394786, 0.00100584608, 0.00116396532, 0.999998868) | |
543 | Part30.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
544 | Part30.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
545 | Part30.LeftSurface = Enum.SurfaceType.Weld | |
546 | Part30.RightSurface = Enum.SurfaceType.Weld | |
547 | Part30.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
548 | Part30.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
549 | Part30.Position = Vector3.new(83.3179703, 0.804276109, 121.587944) | |
550 | Part30.Orientation = Vector3.new(0.0700000003, -0.0599999987, 0) | |
551 | Part30.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
552 | Model31.Name = "Seat" | |
553 | Model31.Parent = Model0 | |
554 | Part32.Name = "SeatHolder" | |
555 | Part32.Parent = Model31 | |
556 | Part32.BrickColor = BrickColor.new("Really black") | |
557 | Part32.Rotation = Vector3.new(-179.929993, 0.0599999987, -179.98999) | |
558 | Part32.FormFactor = Enum.FormFactor.Plate | |
559 | Part32.Size = Vector3.new(2, 0.400000006, 1) | |
560 | Part32.CFrame = CFrame.new(85.3213348, 1.40732384, 119.089043, -1.00000942, 0.000102962244, 0.00103852851, 0.000104205588, 1.00001872, 0.00119660224, -0.00103841512, 0.00119673042, -1.00000882) | |
561 | Part32.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
562 | Part32.BottomSurface = Enum.SurfaceType.Weld | |
563 | Part32.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
564 | Part32.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
565 | Part32.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
566 | Part32.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
567 | Part32.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
568 | Part32.Position = Vector3.new(85.3213348, 1.40732384, 119.089043) | |
569 | Part32.Orientation = Vector3.new(-0.0700000003, 179.940002, 0.00999999978) | |
570 | Part32.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
571 | Part33.Name = "SeatWedge" | |
572 | Part33.Parent = Model31 | |
573 | Part33.BrickColor = BrickColor.new("Really black") | |
574 | Part33.Rotation = Vector3.new(-179.929993, 0.0599999987, 179.98999) | |
575 | Part33.FormFactor = Enum.FormFactor.Plate | |
576 | Part33.Size = Vector3.new(2, 1.60000002, 1) | |
577 | Part33.CFrame = CFrame.new(85.3212891, 2.40768147, 119.090149, -1.00000393, -0.000123406731, 0.00113003294, -0.000122091951, 1.00000834, 0.00116409117, -0.00113018078, 0.00116396206, -1.00000334) | |
578 | Part33.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
579 | Part33.BottomSurface = Enum.SurfaceType.Weld | |
580 | Part33.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
581 | Part33.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
582 | Part33.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
583 | Part33.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
584 | Part33.Position = Vector3.new(85.3212891, 2.40768147, 119.090149) | |
585 | Part33.Orientation = Vector3.new(-0.0700000003, 179.940002, -0.00999999978) | |
586 | Part33.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
587 | SpecialMesh34.Parent = Part33 | |
588 | SpecialMesh34.MeshType = Enum.MeshType.Wedge | |
589 | SurfaceGui35.Parent = Part33 | |
590 | SurfaceGui35.Face = Enum.NormalId.Back | |
591 | SurfaceGui35.CanvasSize = Vector2.new(110, 80) | |
592 | TextLabel36.Parent = SurfaceGui35 | |
593 | TextLabel36.Transparency = 1 | |
594 | TextLabel36.Size = UDim2.new(1, 0, 1, 0) | |
595 | TextLabel36.Text = "3n" | |
596 | TextLabel36.BackgroundColor3 = Color3.new(1, 1, 1) | |
597 | TextLabel36.BackgroundTransparency = 1 | |
598 | TextLabel36.BorderSizePixel = 0 | |
599 | TextLabel36.Font = Enum.Font.SourceSansBold | |
600 | TextLabel36.FontSize = Enum.FontSize.Size96 | |
601 | TextLabel36.TextColor3 = Color3.new(1, 1, 1) | |
602 | TextLabel36.TextStrokeColor3 = Color3.new(0, 0.666667, 1) | |
603 | TextLabel36.TextStrokeTransparency = 0.20000000298023 | |
604 | VehicleSeat37.Parent = Model31 | |
605 | VehicleSeat37.BrickColor = BrickColor.new("Really black") | |
606 | VehicleSeat37.Rotation = Vector3.new(-179.929993, 0.0599999987, 180) | |
607 | VehicleSeat37.Size = Vector3.new(2, 0.200000003, 2) | |
608 | VehicleSeat37.CFrame = CFrame.new(85.3201065, 1.20544505, 120.589859, -0.999999404, -1.2376828e-06, 0.00106901245, 6.64722233e-09, 0.999999404, 0.0011639985, -0.00106901315, 0.00116399792, -0.999998808) | |
609 | VehicleSeat37.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
610 | VehicleSeat37.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
611 | VehicleSeat37.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
612 | VehicleSeat37.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
613 | VehicleSeat37.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
614 | VehicleSeat37.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
615 | VehicleSeat37.MaxSpeed = 75 | |
616 | VehicleSeat37.Torque = 1.0499999523163 | |
617 | VehicleSeat37.TurnSpeed = 1.1000000238419 | |
618 | VehicleSeat37.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
619 | VehicleSeat37.Position = Vector3.new(85.3201065, 1.20544505, 120.589859) | |
620 | VehicleSeat37.Orientation = Vector3.new(-0.0700000003, 179.940002, 0) | |
621 | VehicleSeat37.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
622 | Model38.Name = "Tires" | |
623 | Model38.Parent = Model0 | |
624 | Part39.Name = "RightFrontTireCover" | |
625 | Part39.Parent = Model38 | |
626 | Part39.Material = Enum.Material.SmoothPlastic | |
627 | Part39.BrickColor = BrickColor.new("Really black") | |
628 | Part39.Rotation = Vector3.new(-179.919998, 0.0599999987, 90) | |
629 | Part39.CanCollide = false | |
630 | Part39.FormFactor = Enum.FormFactor.Plate | |
631 | Part39.Size = Vector3.new(2, 2, 2) | |
632 | Part39.CFrame = CFrame.new(83.3143692, 1.00136495, 123.989807, -2.9207642e-05, -1.00000954, 0.000977480435, -1.00001848, 3.04944278e-05, 0.00131647731, -0.00131652574, -0.000977451564, -1.00000858) | |
633 | Part39.BottomSurface = Enum.SurfaceType.Weld | |
634 | Part39.TopSurface = Enum.SurfaceType.Weld | |
635 | Part39.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
636 | Part39.Position = Vector3.new(83.3143692, 1.00136495, 123.989807) | |
637 | Part39.Orientation = Vector3.new(-0.0799999982, 179.940002, -90) | |
638 | Part39.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
639 | CylinderMesh40.Parent = Part39 | |
640 | Part41.Name = "RightRearTireCover" | |
641 | Part41.Parent = Model38 | |
642 | Part41.Material = Enum.Material.SmoothPlastic | |
643 | Part41.BrickColor = BrickColor.new("Really black") | |
644 | Part41.Rotation = Vector3.new(-179.929993, 0.0599999987, 90) | |
645 | Part41.CanCollide = false | |
646 | Part41.FormFactor = Enum.FormFactor.Plate | |
647 | Part41.Size = Vector3.new(2, 2, 2) | |
648 | Part41.CFrame = CFrame.new(83.3210678, 1.0070138, 119.186401, 3.18090351e-05, -0.999999404, 0.00106903573, -0.999999344, -3.04995065e-05, 0.0012249602, -0.00122492691, -0.00106907391, -0.999998748) | |
649 | Part41.BottomSurface = Enum.SurfaceType.Weld | |
650 | Part41.TopSurface = Enum.SurfaceType.Weld | |
651 | Part41.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
652 | Part41.Position = Vector3.new(83.3210678, 1.0070138, 119.186401) | |
653 | Part41.Orientation = Vector3.new(-0.0700000003, 179.940002, -90) | |
654 | Part41.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
655 | CylinderMesh42.Parent = Part41 | |
656 | Part43.Name = "LeftRearTireCover" | |
657 | Part43.Parent = Model38 | |
658 | Part43.Material = Enum.Material.SmoothPlastic | |
659 | Part43.BrickColor = BrickColor.new("Really black") | |
660 | Part43.Rotation = Vector3.new(-179.940002, 0.0599999987, 89.9899979) | |
661 | Part43.CanCollide = false | |
662 | Part43.FormFactor = Enum.FormFactor.Plate | |
663 | Part43.Size = Vector3.new(2, 2, 2) | |
664 | Part43.CFrame = CFrame.new(87.3215942, 1.00693345, 119.190506, 9.2765622e-05, -1.00000393, 0.00109959533, -1.00000834, -9.1519898e-05, 0.00113340071, -0.00113330921, -0.00109970476, -1.00000346) | |
665 | Part43.BottomSurface = Enum.SurfaceType.Weld | |
666 | Part43.TopSurface = Enum.SurfaceType.Weld | |
667 | Part43.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
668 | Part43.Position = Vector3.new(87.3215942, 1.00693345, 119.190506) | |
669 | Part43.Orientation = Vector3.new(-0.0599999987, 179.940002, -90.0099945) | |
670 | Part43.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
671 | CylinderMesh44.Parent = Part43 | |
672 | Part45.Name = "LeftFrontTireCover" | |
673 | Part45.Parent = Model38 | |
674 | Part45.Material = Enum.Material.SmoothPlastic | |
675 | Part45.BrickColor = BrickColor.new("Really black") | |
676 | Part45.Rotation = Vector3.new(-179.940002, 0.0599999987, 90.0099945) | |
677 | Part45.CanCollide = false | |
678 | Part45.FormFactor = Enum.FormFactor.Plate | |
679 | Part45.Size = Vector3.new(2, 2, 2) | |
680 | Part45.CFrame = CFrame.new(87.3178024, 1.00131094, 123.993507, -9.02998727e-05, -1.00001061, 0.00100804341, -1.0000211, 9.14430057e-05, 0.00113342784, -0.00113354309, -0.00100795238, -1.00001013) | |
681 | Part45.BottomSurface = Enum.SurfaceType.Weld | |
682 | Part45.TopSurface = Enum.SurfaceType.Weld | |
683 | Part45.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
684 | Part45.Position = Vector3.new(87.3178024, 1.00131094, 123.993507) | |
685 | Part45.Orientation = Vector3.new(-0.0599999987, 179.940002, -89.9899979) | |
686 | Part45.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
687 | CylinderMesh46.Parent = Part45 | |
688 | Part47.Name = "Tire" | |
689 | Part47.Parent = Model38 | |
690 | Part47.BrickColor = BrickColor.new("Really black") | |
691 | Part47.Transparency = 1 | |
692 | Part47.Rotation = Vector3.new(-180, 0.00999999978, -0.0299999993) | |
693 | Part47.FormFactor = Enum.FormFactor.Symmetric | |
694 | Part47.Shape = Enum.PartType.Ball | |
695 | Part47.Size = Vector3.new(2, 2, 2) | |
696 | Part47.CFrame = CFrame.new(83.3192596, 1.00440502, 123.987961, 0.999999881, 0.000604009489, 0.000226974546, 0.000603999943, -0.999999881, 4.21370933e-05, 0.000226999968, -4.19999924e-05, -1) | |
697 | Part47.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
698 | Part47.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
699 | Part47.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
700 | Part47.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
701 | Part47.RightSurface = Enum.SurfaceType.Hinge | |
702 | Part47.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
703 | Part47.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
704 | Part47.Position = Vector3.new(83.3192596, 1.00440502, 123.987961) | |
705 | Part47.Orientation = Vector3.new(0, 179.98999, 179.970001) | |
706 | Part47.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
707 | Part48.Name = "Tire" | |
708 | Part48.Parent = Model38 | |
709 | Part48.BrickColor = BrickColor.new("Really black") | |
710 | Part48.Transparency = 1 | |
711 | Part48.Rotation = Vector3.new(-90, 0.00999999978, 0.00999999978) | |
712 | Part48.FormFactor = Enum.FormFactor.Symmetric | |
713 | Part48.Shape = Enum.PartType.Ball | |
714 | Part48.Size = Vector3.new(2, 2, 2) | |
715 | Part48.CFrame = CFrame.new(83.3191071, 1.00670898, 119.18837, 1, -0.000152026798, 0.000122001613, -0.000121997044, 3.00531956e-05, 1, -0.000152030465, -1, 3.00346474e-05) | |
716 | Part48.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
717 | Part48.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
718 | Part48.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
719 | Part48.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
720 | Part48.RightSurface = Enum.SurfaceType.Hinge | |
721 | Part48.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
722 | Part48.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
723 | Part48.Position = Vector3.new(83.3191071, 1.00670898, 119.18837) | |
724 | Part48.Orientation = Vector3.new(-90, 0.00999999978, 0) | |
725 | Part48.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
726 | Part49.Name = "Tire" | |
727 | Part49.Parent = Model38 | |
728 | Part49.BrickColor = BrickColor.new("Really black") | |
729 | Part49.Transparency = 1 | |
730 | Part49.Rotation = Vector3.new(-89.9899979, 0, 179.98999) | |
731 | Part49.FormFactor = Enum.FormFactor.Symmetric | |
732 | Part49.Shape = Enum.PartType.Ball | |
733 | Part49.Size = Vector3.new(2, 2, 2) | |
734 | Part49.CFrame = CFrame.new(87.3192291, 1.00505996, 119.18837, -1, -0.000152999492, 6.09836425e-05, 6.10069073e-05, -0.000152046909, 1, -0.000152990222, 1, 0.000152056236) | |
735 | Part49.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
736 | Part49.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
737 | Part49.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
738 | Part49.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
739 | Part49.RightSurface = Enum.SurfaceType.Hinge | |
740 | Part49.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
741 | Part49.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
742 | Part49.Position = Vector3.new(87.3192291, 1.00505996, 119.18837) | |
743 | Part49.Orientation = Vector3.new(-90, 179.98999, 0) | |
744 | Part49.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
745 | Part50.Name = "Tire" | |
746 | Part50.Parent = Model38 | |
747 | Part50.BrickColor = BrickColor.new("Really black") | |
748 | Part50.Transparency = 1 | |
749 | Part50.Rotation = Vector3.new(-90.409996, 0.00999999978, 179.98999) | |
750 | Part50.FormFactor = Enum.FormFactor.Symmetric | |
751 | Part50.Shape = Enum.PartType.Ball | |
752 | Part50.Size = Vector3.new(2, 2, 2) | |
753 | Part50.CFrame = CFrame.new(87.3192139, 1.00508296, 123.988419, -1, -0.000165344274, 9.21860628e-05, 9.10000017e-05, 0.00715900213, 0.99997437, -0.000165999998, 0.99997437, -0.00715898629) | |
754 | Part50.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
755 | Part50.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
756 | Part50.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
757 | Part50.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
758 | Part50.RightSurface = Enum.SurfaceType.Hinge | |
759 | Part50.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
760 | Part50.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
761 | Part50.Position = Vector3.new(87.3192139, 1.00508296, 123.988419) | |
762 | Part50.Orientation = Vector3.new(-89.5899963, 179.259995, 0.729999959) | |
763 | Part50.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
764 | Part51.Name = "SteeringWheel" | |
765 | Part51.Parent = Model0 | |
766 | Part51.Rotation = Vector3.new(-179.940002, 0.0599999987, -179.98999) | |
767 | Part51.Elasticity = 0 | |
768 | Part51.FormFactor = Enum.FormFactor.Custom | |
769 | Part51.Friction = 0 | |
770 | Part51.Size = Vector3.new(1.98000014, 1.5, 0.400000036) | |
771 | Part51.CFrame = CFrame.new(85.3191757, 2.80437803, 122.193008, -1.00001252, 9.03981709e-05, 0.00109958346, 9.16451463e-05, 1.00002515, 0.00113343727, -0.00109949464, 0.00113356544, -1.00001204) | |
772 | Part51.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
773 | Part51.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
774 | Part51.FrontSurface = Enum.SurfaceType.Weld | |
775 | Part51.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
776 | Part51.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
777 | Part51.TopSurface = Enum.SurfaceType.SmoothNoOutlines | |
778 | Part51.Position = Vector3.new(85.3191757, 2.80437803, 122.193008) | |
779 | Part51.Orientation = Vector3.new(-0.0599999987, 179.940002, 0.00999999978) | |
780 | SpecialMesh52.Parent = Part51 | |
781 | SpecialMesh52.MeshId = "http://www.roblox.com/asset/?id=129344524" | |
782 | SpecialMesh52.TextureId = "http://www.roblox.com/asset/?id=129344702" | |
783 | SpecialMesh52.MeshType = Enum.MeshType.FileMesh | |
784 | Part53.Name = "FlipButton" | |
785 | Part53.Parent = Model0 | |
786 | Part53.BrickColor = BrickColor.new("Really black") | |
787 | Part53.Transparency = 1 | |
788 | Part53.Rotation = Vector3.new(-179.929993, 0.0599999987, -180) | |
789 | Part53.CanCollide = false | |
790 | Part53.FormFactor = Enum.FormFactor.Plate | |
791 | Part53.Size = Vector3.new(1.99999988, 0.200000003, 4.80000019) | |
792 | Part53.CFrame = CFrame.new(85.3185501, 0.300029755, 121.592056, -1.00000942, 6.12806252e-05, 0.00103723956, 6.24884706e-05, 1.0000186, 0.00116423459, -0.00103717821, 0.00116431969, -1.0000087) | |
793 | Part53.BackSurface = Enum.SurfaceType.SmoothNoOutlines | |
794 | Part53.BottomSurface = Enum.SurfaceType.SmoothNoOutlines | |
795 | Part53.FrontSurface = Enum.SurfaceType.SmoothNoOutlines | |
796 | Part53.LeftSurface = Enum.SurfaceType.SmoothNoOutlines | |
797 | Part53.RightSurface = Enum.SurfaceType.SmoothNoOutlines | |
798 | Part53.TopSurface = Enum.SurfaceType.Weld | |
799 | Part53.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
800 | Part53.Position = Vector3.new(85.3185501, 0.300029755, 121.592056) | |
801 | Part53.Orientation = Vector3.new(-0.0700000003, 179.940002, 0) | |
802 | Part53.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
803 | SurfaceGui54.Parent = Part53 | |
804 | SurfaceGui54.Face = Enum.NormalId.Bottom | |
805 | SurfaceGui54.CanvasSize = Vector2.new(600, 200) | |
806 | TextLabel55.Parent = SurfaceGui54 | |
807 | TextLabel55.Transparency = 1 | |
808 | TextLabel55.Size = UDim2.new(1, 0, 1, 0) | |
809 | TextLabel55.Text = "Click to flip" | |
810 | TextLabel55.BackgroundColor3 = Color3.new(1, 1, 1) | |
811 | TextLabel55.BackgroundTransparency = 1 | |
812 | TextLabel55.Font = Enum.Font.Cartoon | |
813 | TextLabel55.FontSize = Enum.FontSize.Size96 | |
814 | TextLabel55.TextColor3 = Color3.new(1, 1, 1) | |
815 | TextLabel55.TextScaled = true | |
816 | TextLabel55.TextWrapped = true | |
817 | ClickDetector56.Parent = Part53 | |
818 | Script57.Name = "Changelog" | |
819 | Script57.Parent = Model0 | |
820 | Script57.Disabled = true | |
821 | table.insert(cors,sandbox(Script57,function() | |
822 | --[[ | |
823 | CodeWrighter's Go Kart Changelog | |
824 | Format: Month/Date/Year | |
825 | 4/10/2017 | |
826 | Improved kart handling / steering | |
827 | ||
828 | 3/6/2017 | |
829 | Added flip button (under the kart) | |
830 | Kart no longer automatically updates (this might've caused issues in the past) | |
831 | Had to take out the feature where you could take the kart model by clicking the kart. If you want to take an actual copy of the kart, copy-paste the link below; | |
832 | https://www.roblox.com/library/193064098/Go-Kart-CodeWrighter | |
833 | ||
834 | 3/4/2017 | |
835 | ~~ First update in over 7 months and first of 2017! ~~ | |
836 | Due to some issues, I had to take the fancy kart features out. Dx (radio, invisibility, MLG mode, kart colorizer, etc.) | |
837 | Perhaps they'll someday make a return? | |
838 | Anyways, would like to thank everyone for the (currently 665,215) sales on this kart! :) | |
839 | ||
840 | Condensed the scripts | |
841 | Removed game passes | |
842 | Removed GUI's and few misc. scripts | |
843 | ||
844 | 8/2/2016 | |
845 | Fixed issue causing kart to spaz out when PGSPhysicsSolverEnabled was true | |
846 | Fixed game pass issue | |
847 | ||
848 | 4/12/2016 | |
849 | ~~ We broke 100,000 takes on this kart model! Awesome! :) ~~ | |
850 | Added changelog sheet instead of listing updates on main script | |
851 | Changed passes from tix to R$ - RIP Tix Dx | |
852 | Enhanced elite kart mode for those who own all the passes | |
853 | Rewrote some of the code | |
854 | ||
855 | 12/30/2015 | |
856 | Made karts turn visible when you jump out (so you don't lose 'em LOL) | |
857 | Added ability to pause / play and repeat songs on kart radio | |
858 | ||
859 | ||
860 | 12/28/2015 | |
861 | Added radio to the kart | |
862 | Added MLG mode to the kart | |
863 | Added flip kart feature | |
864 | Added invisibility feature | |
865 | Added ability to easily change color of kart | |
866 | Added controls HUD | |
867 | ||
868 | ||
869 | 11/25/2015 | |
870 | Fixed sounds | |
871 | ||
872 | 11/7/2015 | |
873 | Confidential bug fix | |
874 | Updated auto-updating kart to change values of new kart to that of old values before updating kart in-game | |
875 | ||
876 | 10/15/2015 | |
877 | Added ability to honk horn and made it FE compatible | |
878 | Added auto-updating model feature (had to change folder instances to models because they were causing the model to break for some odd reason; fix this ROBLOX?) | |
879 | ||
880 | If you have any ideas, don't hesitate to send me a PM. :) | |
881 | ~ CodeWrighter | |
882 | --]] | |
883 | end)) | |
884 | Script58.Name = "KartScript" | |
885 | Script58.Parent = Model0 | |
886 | table.insert(cors,sandbox(Script58,function() | |
887 | -- Kart Customization Script written by CodeWrighter 10/7/2015 10:30PM | |
888 | -- If you use this, credit is appreciated. :) | |
889 | -- If you alter this code, I'm not responsible for anything | |
890 | ||
891 | -- define variables | |
892 | local Kart = script.Parent | |
893 | local TimeoutTime = 5 -- with WaitForChild(), if the child isn't found in 5 seconds, we'll assume it's not there and continue on | |
894 | local FlipButton = Kart:WaitForChild('FlipButton',TimeoutTime) | |
895 | ||
896 | local Body = Kart:WaitForChild('Body',TimeoutTime) | |
897 | local Chassis = Kart:WaitForChild('Chassis',TimeoutTime) | |
898 | local Seat = Kart:WaitForChild('Seat',TimeoutTime) | |
899 | local Tires = Kart:WaitForChild('Tires',TimeoutTime) | |
900 | local NumberDisplay = Seat:WaitForChild('SeatWedge',TimeoutTime):WaitForChild('SurfaceGui',TimeoutTime):WaitForChild('TextLabel',TimeoutTime) | |
901 | local VehicleSeat = Seat:WaitForChild('VehicleSeat',TimeoutTime) | |
902 | ||
903 | function GetCurrentVal(color) | |
904 | for i = 0, 127 do | |
905 | if BrickColor.palette(i) == color then | |
906 | return i | |
907 | end | |
908 | end | |
909 | end | |
910 | ||
911 | function GetColor3(r,g,b) | |
912 | return Color3.new(r/255,g/255,b/255) | |
913 | end | |
914 | ||
915 | ||
916 | function FlipKart() | |
917 | local x, y, z, RX,RY,RZ = Kart.PrimaryPart.CFrame.x,Kart.PrimaryPart.CFrame.y,Kart.PrimaryPart.CFrame.z,0,0,0 | |
918 | Kart:SetPrimaryPartCFrame(CFrame.new(x,y,z)*CFrame.Angles(RX,RY,RZ)) | |
919 | end | |
920 | ||
921 | function Color(parts,color) | |
922 | for i,v in ipairs(parts) do | |
923 | if v:IsA('BasePart') then | |
924 | v.BrickColor = color | |
925 | end | |
926 | end | |
927 | end | |
928 | ||
929 | function ChangeNumber(val) | |
930 | NumberDisplay.Text = val | |
931 | end | |
932 | ||
933 | local Parts = {} | |
934 | function GrabParts(par) | |
935 | for i,v in ipairs(par:GetChildren()) do | |
936 | if v:IsA('BasePart') then | |
937 | Parts[#Parts+1] = v | |
938 | end | |
939 | GrabParts(v) | |
940 | end | |
941 | end | |
942 | GrabParts(Kart) | |
943 | ||
944 | for i,v in ipairs(Parts) do | |
945 | v.Changed:connect(function(change) | |
946 | if tostring(change) == 'BrickColor' then | |
947 | if not debounce then | |
948 | debounce = true | |
949 | if v.Parent.Name == 'Chassis' then | |
950 | Color(Kart.Chassis:GetChildren(),v.BrickColor) | |
951 | elseif v.Parent.Name == 'Tires' then | |
952 | Color(Kart.Tires:GetChildren(),v.BrickColor) | |
953 | elseif v.Parent.Name == 'Body' then | |
954 | Color(Kart.Body:GetChildren(),v.BrickColor) | |
955 | elseif v.Parent.Name == 'Seat' then | |
956 | Color(Kart.Seat:GetChildren(),v.BrickColor) | |
957 | end | |
958 | debounce = false | |
959 | end | |
960 | end | |
961 | end) | |
962 | end | |
963 | ||
964 | FlipButton.ClickDetector.MouseClick:connect(function() | |
965 | if not FlipDebounce then | |
966 | FlipDebounce = true | |
967 | FlipKart() | |
968 | FlipDebounce = false | |
969 | end | |
970 | end) | |
971 | end)) | |
972 | for i,v in pairs(mas:GetChildren()) do | |
973 | v.Parent = workspace | |
974 | pcall(function() v:MakeJoints() end) | |
975 | end | |
976 | mas:Destroy() | |
977 | for i,v in pairs(cors) do | |
978 | spawn(function() | |
979 | pcall(v) | |
980 | end) | |
981 | end |