View difference between Paste ID: MQ1wDbFD and QektNT8H
SHOW: | | - or go back to the newest paste.
1-
1+
2
 
3
--script.Parent=workspace.timetodie23232223
4-
--script.Parent=workspace.SpleenYanks
4+
5
script:ClearAllChildren()
6
loadstring(_G["RM"..'Lib'])()
7
Player,Char,Backpack,PlayerGui=pm:l(Players.LocalPlayer.Name):load()
8
Pn=Player.Name
9
Head,Torso=Char.Head,Char.Torso
10
Hum=Char.Humanoid
11
Cam=workspace.CurrentCamera
12
 
13
 
14
ids = {}
15
ids.Spike = 1033714
16
ids.stop=31245495
17
ids.start=31245452
18
ids.idle=31245465
19
ids.engine=10209780
20
ids.tire=6905795
21
ids.missile=10207677
22
ids.fire=2693346
23
ids.BulletHole=64291961
24
ids.Gradient1=70060415
25
ids.squeek=2767090
26
 
27
for i,v in pairs(ids) do 
28
if type(v)=='number' then 
29
ids[i]='http://www.roblox.com/asset/?id='..v
30
end
31
end
32
 
33
Tn='RMDX Car'
34
 
35
pcall(function() Backpack[Tn]:Remove() end)
36
pcall(function() Char[Pn..Tn]:Remove() end)
37
 
38
mo=qi{'Model',Char,n=Pn..Tn}
39
bin=qi{'HopperBin',Backpack,n=Tn}
40
 
41
col=''
42
col2='Really black'
43
col3='Dark stone grey'
44
POffs={}
45
 
46
Dealt = {4,12}
47
HData={} -- HData[object]=health
48
breaker=function(hit,dmg) 
49
if hit.Anchored then return false end 
50
if hit.Parent:findFirstChild'Humanoid' then return false end 
51
local broke=false 
52
local dmg=dmg or mran(Dealt[1],Dealt[2])
53
if not HData[hit] then local hh=hit.Size.x*hit.Size.y*hit.Size.z/1.5 HData[hit]=hh end
54
HData[hit]=HData[hit]-dmg
55
if HData[hit]<=0 then hit:BreakJoints() broke=true end
56
return broke
57
end
58
 
59
base=qi{'Seat',mo,sc=v3(5,2,2),bn=col,cf=Torso.CFrame*cn(5,4,-14)*ca(0,15,0)} 
60
front=qi{'Part',mo,sc=v3(5,2,5),bn=col,cf=base.CFrame}
61
frontw=qi{'Weld',base,P0=base,P1=front,C0=cn(0,0,-3.5)}
62
fro=qi{'Part',mo,sc=v3(5,2,4),bn=col,cf=base.CFrame}
63
frow=qi{'Weld',base,P0=front,P1=fro,C0=cn(0,0,-4.5)}
64
back=qi{'Part',mo,sc=v3(5,2,7),bn=col,cf=base.CFrame}
65
backw=qi{'Weld',base,P0=base,P1=back,C0=cn(0,0,4.5)}
66
bac=qi{'Part',mo,sc=v3(5,2,4),bn=col,cf=base.CFrame}
67
bacw=qi{'Weld',base,P0=back,P1=bac,C0=cn(0,0,5.5)}
68
 
69
bumper=qi{'Part',mo,sc=v3(10,2,1),bn=col,cf=base.CFrame}
70
bumperw=qi{'Weld',base,P0=fro,P1=bumper,C0=cn(0,0,-2.5)}
71
bumper2=qi{'Part',mo,sc=v3(10,2,1),bn=col,cf=base.CFrame}
72
bumper2w=qi{'Weld',base,P0=bac,P1=bumper2,C0=cn(0,0,2.5)}
73
 
74
vd=qi{'WedgePart',mo,sc=v3(5,4,2),bn=col,cf=base.CFrame}
75
vdw=qi{'Weld',base,P0=bumper2,P1=vd,C0=cn(0,1.5,1.5)*ca(180,0,0)}
76
vd=qi{'WedgePart',mo,sc=v3(5,2,2),bn=col,cf=base.CFrame}
77
vdw=qi{'Weld',base,P0=bumper2,P1=vd,C0=cn(0,4.5,1.5)*ca(0,180,0)}
78
 
79
vd=qi{'Part',mo,sc=v3(5,4.5,6),bn=col,cf=base.CFrame}
80
vdw=qi{'Weld',base,P0=bac,P1=vd,C0=cn(0,3.25,0)}
81
vd2=qi{'Part',mo,sc=v3(5,2,6),bn=col,cf=base.CFrame} qi{'SpecialMesh',vd2,MeshType='Torso'}
82
vd2w=qi{'Weld',base,P0=vd,P1=vd2,C0=cn(0,4.5/2+1,0)}
83
vd=qi{'WedgePart',mo,sc=v3(10,1.5,1),bn=col,cf=base.CFrame}
84
vdw=qi{'Weld',base,P0=bumper,P1=vd,C0=cn(0,1.75,0)}
85
vdf=qi{'Part',mo,sc=v3(5,1.5,5),bn=col,cf=base.CFrame}
86
vdfw=qi{'Weld',base,P0=fro,P1=vdf,C0=cn(0,1.75,0.5)}
87
 
88
fg1b=qi{'Part',mo,sc=v3(1.5,1.5,1.5),bn=col3,cf=base.CFrame} qi{'SpecialMesh',fg1b,mtyp='Sphere'}
89
fg1bw=qi{'Weld',base,P0=vdf,P1=fg1b,C0=cn(0,0.75,-0.25)}
90
 
91
 
92
Fri=2
93
local sf = 'Motor'
94
BL=qi{'Part',mo,sc=v3(4,4,4),bn=col2,cf=bac.CFrame*cn(-4.5,0,-0.5)*ca(0,0,-90),Shape='Ball',TopSurface=sf,Friction=Fri}
95
BR=qi{'Part',mo,sc=v3(4,4,4),bn=col2,cf=bac.CFrame*cn(4.5,0,-0.5)*ca(0,0,90),Shape='Ball',TopSurface=sf,Friction=Fri}
96
FL=qi{'Part',mo,sc=v3(4,4,4),bn=col2,cf=fro.CFrame*cn(-4.5,0,0.5)*ca(0,0,-90),Shape='Ball',TopSurface=sf,Friction=Fri}
97
FR=qi{'Part',mo,sc=v3(4,4,4),bn=col2,cf=fro.CFrame*cn(4.5,0,0.5)*ca(0,0,90),Shape='Ball',TopSurface=sf,Friction=Fri}
98
wheels={BL,BR,FL,FR}
99
 
100
for i,v in pairs(wheels) do 
101
local th=v.Size.y/5*3
102
local wd=v.Size.y/5
103
v.TopSurfaceInput='Constant'
104
v.TopParamB=0
105
qi{'CylinderMesh',v,sca=v3(1,1/v.Size.y*th,1),Offset=v3(0,wd,0)}
106
local vv=qi{'Part',mo,sc=v3(1,1,1),bn=''} qi{'CylinderMesh',vv,sca=v3(wd*3,th+0.1,wd*3)}
107
qi{'Weld',v,P0=v,P1=vv,C0=cn(0,wd,0)}
108
--for y=360/4,360,360/4 do 
109
--local sp=qi{'Part',mo,sc=v3(0,0,0),bn='',can=false} qi{'SpecialMesh',sp,mid=ids.Spike,sca=v3(0.75,1.5,0.75)}
110
--qi{'Weld',sp,P0=v,P1=sp,C0=ca(0,y,90)*cn(wd,wd*2.5+0.5,0)}
111
--end
112
for ii,vv in pairs{'Left','Front','Right','Back'} do 
113
qi{'Decal',v,Texture=ids.tire,Face=vv}
114
end
115
end
116
 
117
YUnit=0
118
exhausts={}
119
cside,iside,missileaim={},0,false
120
 
121
local cc=0
122
for x=-1,1,2 do 
123
cc=cc+1
124
vd=qi{'Part',mo,sc=v3(3,2,12),bn=col,cf=base.CFrame} local vdx=vd 
125
vdw=qi{'Weld',base,P0=base,P1=vd,C0=cn(4*x,0,1)} cside[x]=vdw
126
vd2=qi{'Part',mo,sc=v3(2,0,2),bn='Really black',cf=base.CFrame,} qi{'CylinderMesh',vd2}
127
vd2w=qi{'Weld',base,P0=vd,P1=vd2,C0=cn(-0.25*x,0.5,-5.95)*ca(90,0,0)}
128
POffs['M'..cc]=vd2
129
 
130
--[[
131
vd=qi{'Part',mo,sc=v3(1,12,2),bn=col,cf=base.CFrame} --qi{'CylinderMesh',vd} 
132
vdw=qi{'Weld',base,P0=vdx,P1=vd,C0=cn(2*x,0,1)*ca(90,0,0)}
133
vd2=qi{'WedgePart',mo,sc=v3(2,6,1),bn=col,cf=base.CFrame,can=false} 
134
vd2w=qi{'Weld',base,P0=vd,P1=vd2,C0=ca(180,0,0)*cn(0,6+3,0)*ca(0,-90*x,0)}
135
vd2=qi{'WedgePart',mo,sc=v3(2,6,1),bn=col,cf=base.CFrame,can=false} 
136
vd2w=qi{'Weld',base,P0=vd,P1=vd2,C0=cn(0,6+3,0)*ca(0,-90*x,0)}
137
--]]
138
 
139
--back wheel supp
140
vd=qi{'Part',mo,sc=v3(2.5,0.5,5),bn=col,cf=base.CFrame}
141
vdw=qi{'Weld',base,P0=bumper2,P1=vd,C0=cn(3.75*x,2.25,-3)*ca(180,0,0)}
142
vd=qi{'WedgePart',mo,sc=v3(2.5,1,1),bn=col,cf=base.CFrame}
143
vdw=qi{'Weld',base,P0=bumper2,P1=vd,C0=cn(3.75*x,1.5,-5)*ca(180,0,0)}
144
vd=qi{'WedgePart',mo,sc=v3(2.5,1,1),bn=col,cf=base.CFrame}
145
vdw=qi{'Weld',base,P0=bumper2,P1=vd,C0=cn(3.75*x,1.5,-1)*ca(180,180,0)}
146
vd=qi{'WedgePart',mo,sc=v3(2.5,1.5,1),bn=col,cf=base.CFrame}
147
vdw=qi{'Weld',base,P0=bumper2,P1=vd,C0=cn(3.75*x,1.75,0)*ca(0,180,0)}
148
vd=qi{'WedgePart',mo,sc=v3(2.5,1.5,1),bn=col,cf=base.CFrame}
149
vdw=qi{'Weld',base,P0=vdx,P1=vd,C0=cn(-0.25*x,1.75,5.5)}
150
-- front wheel supp
151
vd=qi{'Part',mo,sc=v3(2.5,0.5,5),bn=col,cf=base.CFrame}
152
vdw=qi{'Weld',base,P0=bumper,P1=vd,C0=cn(3.75*x,2.25,3)*ca(180,0,0)}
153
vd=qi{'WedgePart',mo,sc=v3(2.5,1,1),bn=col,cf=base.CFrame}
154
vdw=qi{'Weld',base,P0=bumper,P1=vd,C0=cn(3.75*x,1.5,5)*ca(180,180,0)}
155
vd=qi{'WedgePart',mo,sc=v3(2.5,1,1),bn=col,cf=base.CFrame}
156
vdw=qi{'Weld',base,P0=bumper,P1=vd,C0=cn(3.75*x,1.5,1)*ca(180,0,0)}
157
vd=qi{'WedgePart',mo,sc=v3(2.5,1.5,1),bn=col,cf=base.CFrame,can=false}
158
vdw=qi{'Weld',base,P0=vdx,P1=vd,C0=cn(-0.25*x,1.75,-5.5)*ca(0,180,0)}
159
 
160
 
161
vd=qi{'Part',mo,sc=v3(3,5,3),bn=col3,cf=base.CFrame} qi{'CylinderMesh',vd}
162
vdw=qi{'Weld',base,P0=bumper2,P1=vd,C0=cn(2.6*x,4,-2)*ca(90,0,0)*ca(0,0,-35*x)}
163
vd2=qi{'Part',mo,sc=v3(3,3,3),bn=col3,cf=base.CFrame} qi{'SpecialMesh',vd2,MeshType='Sphere'}
164
vd2w=qi{'Weld',base,P0=vd,P1=vd2,C0=cn(0,2.5,0)}
165
vd=qi{'Part',mo,sc=v3(3,4,3),bn=col3,cf=base.CFrame} qi{'CylinderMesh',vd}
166
vdw=qi{'Weld',base,P0=vd2,P1=vd,C0=ca(0,0,35*x)*cn(0,2,0)}
167
vd2=qi{'Part',mo,sc=v3(2.5,0,2.5),bn='Really black',cf=base.CFrame} qi{'CylinderMesh',vd2}
168
vd2w=qi{'Weld',base,P0=vd,P1=vd2,C0=cn(0,2,0)}
169
 
170
for i=0,1,1 do 
171
vd=qi{'Part',mo,sc=v3(1.5,4,1.5),bn=col3,cf=base.CFrame} qi{'CylinderMesh',vd}
172
vdw=qi{'Weld',base,P0=bumper2,P1=vd,C0=cn(1.5*x,7,-i*2-1)*ca(0,0,-45*x)*ca(45,0,0)}
173
vd2=qi{'Part',mo,sc=v3(1.1,0,1.1),bn='Really black',cf=base.CFrame} qi{'CylinderMesh',vd2}
174
vd2w=qi{'Weld',base,P0=vd,P1=vd2,C0=cn(0,2,0)}
175
exhausts[#exhausts+1]=qi{'Smoke',vd2,Color='Dark stone grey',RiseVelocity=25,sc=0.5,Enabled=false}
176
end
177
 
178
end
179
 
180
fdb={}
181
for x=-5,5,10/4 do 
182
local i=(5-math.abs(x))/5
183
local le = 3+i
184
local sp=qi{'Part',mo,sc=v3(10/3.8,le,3),bn=col3,cf=base.CFrame} qi{'SpecialMesh',sp,mid=ids.Spike,sca=v3(1+i,le,1+i)*v3(0.8,1.6,0.8)}
185
qi{'Weld',sp,P0=bumper,P1=sp,C0=cn(x*0.8,0,-0.5)*ca(-90,0,0)*cn(0,le/2,0)}
186
sp.Touched:connect(function(hit)
187
local Hum=GetHum(hit)
188
local dmg=math.floor(base.Velocity.magnitude/2)
189
if dmg<5 then return end 
190
if not Hum or RBD==0 or fdb[Hum.Parent] then breaker(hit,dmg+(Speed/MaxSpeed*20)) return end
191
fdb[Hum.Parent]=1
192
Dmg(Hum,dmg)
193
wait(1)
194
fdb[Hum.Parent]=nil
195
end)
196
 
197
 
198
end
199
 
200
Frontt=function(i)
201
i=i*1.4
202
frontw.C0=cn(0,0,-1)*ca(-i,0,0)*cn(0,0,-2.5)
203
frow.C0=cn(0,0,-2.5)*ca(i,0,0)*cn(0,0,-2)
204
end
205
Backk=function(i)
206
i=i*0.74
207
backw.C0=cn(0,0,1)*ca(i,0,0)*cn(0,0,3.5)
208
bacw.C0=cn(0,0,3.5)*ca(-i,0,0)*cn(0,0,2)
209
end
210
BackS=0
211
Steer=function(i)
212
iSteer=i
213
end
214
--local/rcf.frow.C0=cn(0,0,-4)*ca(80,0,0)*cn(0,0,-2)
215
--local/for i,v in pairs(rcf.wheels) do v.Friction=2 end 
216
 
217
stick = function(p1,p0)
218
local cff=p0.CFrame:toObjectSpace(p1.CFrame)
219
qi{'Weld',p1,P0=p0,P1=p1,C0=cff}
220
end
221
DetectSurface = function(pos, part)
222
   local surface = nil local pospos = part.CFrame local pos2 = pospos:pointToObjectSpace(pos) local siz = part.Size local shaep = part.Shape
223
   if shaep == Enum.PartType.Ball or shaep == Enum.PartType.Cylinder then surface = {"Anything", cn(pospos.p, pos)*cn(0, 0, -(pospos.p - pos).magnitude+0.12)*ca(-90, 0, 0)} else
224
   if pos2.Y > ((siz.Y/2)-0.01) then surface = {"Top", ca(0, 0, 0)}
225
   elseif pos2.Y < -((siz.Y/2)-0.01) then surface = {"Bottom", ca(-mdeg(math.pi), 0, 0)}
226
   elseif pos2.X > ((siz.X/2)-0.01) then surface = {"Right", ca(0, 0,-90)}
227
   elseif pos2.X < -((siz.X/2)-0.01) then surface = {"Left", ca(0, 0,90)}
228
   elseif pos2.Z > ((siz.Z/2)-0.01) then surface = {"Back", ca(90, 0,0)}
229
   elseif pos2.Z < -((siz.Z/2)-0.01) then surface = {"Front", ca(-90,0, 0)}
230
   end end
231
   return surface
232
end
233
BulletHole = function(HitPos,HitObj,sc,img) 
234
  local Surface = DetectSurface(HitPos, HitObj)
235
  local a,b,c=HitObj.CFrame:toEulerAnglesXYZ()
236
  local C = cn(HitPos) * ca2(a,b,c) * Surface[2]
237
  if Surface[1] == "Anything" then C = Surface[2] end 
238
  local bl = qi{'Part',workspace,sc=v3(sc,0,sc),an=true,can=false,tra=1} local dec=qi{"Decal",bl,Face="Top",Texture=img or ids.BulletHole }
239
  bl.CFrame = C*cn(0,-0.1,0) if not HitObj.Anchored then  bl.Anchored = false stick(bl,HitObj) bl.ChildRemoved:connect(function() bl:Remove() end) end 
240
  delay(10,function() for i=0,1,0.025 do dec.Transparency=i wait() end bl:Remove() end)
241
end
242
--script/qi{'Part',workspace,sc=v3(25,50,25),cf=cn(0,30,50)}
243
 
244
FireMissile=function()
245
m1f:play()
246
for zz,zzz in pairs{POffs.M1,POffs.M2} do 
247
q(function() 
248
local cff=zzz.CFrame*cn(0,-3.6,0)*ca(-90,0,0) 
249
local arc=qi{'Part',mo,n='asd',sc=v3(1,1,1),cf=cff,an=true,tra=1} 
250
local arc2=qi{'Part',mo,n='asd',sc=v3(1,1,1),cf=cff*ca(-90,0,0),an=true} qi{'SpecialMesh',arc2,mid=ids.missile,sca=v3(1,1,1)*0.2}
251
local arcs=qi{'Smoke',arc2,RiseVelocity=-15,Opacity=0.1,Color='Black'}
252
local Hit,Mag,Pos=RangeAnim(arc,{arc2},80,5,5,function(ty2,obj,hit,pos) arc.CFrame=arc.CFrame*ca(-0.5,0,0) end,mo,false,false)
253
arc.CFrame=arc.CFrame*cn(0,0,Mag)
254
wait()
255
arc:Remove()
256
arc2.Transparency=1
257
arcs.Enabled=false
258
Debris:AddItem(arc2,5)
259
if Hit then
260
BulletHole(Pos,Hit,12,ids.Gradient1)
261
for x=-1,1,2 do 
262
MeshEffect(arc2,arc2.CFrame*ca(45*x,0,0),15,25,15,0.2,x==-1 and 'Bright red' or 'Bright yellow','Sphere')
263
end 
264
GetRegion(arc.Position,12,function(Hum,HT) Dmg(Hum,mran(Dealt[1],Dealt[2]*2)) 
265
Hum.PlatformStand=true
266
HT.RotVelocity=v3(0,100,0)
267
AddBV(45,cn(arc.Position,HT.Position+v3(0,8,0)),HT,0.2) wait(1.5) Hum.PlatformStand=false
268
end,function(hit) if breaker(hit) then hit.Velocity=arc.CFrame.lookVector*65 end end)
269
end -- ifhit
270
--
271
end)
272
end
273
end
274
 
275
mo:MakeJoints()
276
print(#mo:children().. ' parts')
277
for i,v in pairs(mo:children()) do v.Elasticity=0 end 
278
-- readonly
279
MaxSteer=20
280
TurnSpeed=2
281
MaxSpeed=150
282
Accelaration=3
283
BrakePower=6
284
--- readonly 2
285
iSteer=0
286
Speed=0
287
---
288
Turn=0 
289
Throttle=0
290
 
291
sound1=qi{'Sound',base,SoundId=ids.engine,Pitch=0.025}
292
squeek=qi{'Sound',base,SoundId=ids.squeek,Pitch=-20,Volume=0,Looped=true} squeek:play()
293
drift=qi{'Sound',base,SoundId=ids.stop,Pitch=0.8,Volume=1}
294
m1f=qi{'Sound',base,SoundId=ids.fire,Pitch=0.9,Volume=0.7}
295
start=qi{'Sound',base,SoundId=ids.start,Pitch=1,Volume=1}
296
start:play()
297
 
298
w={}
299
db={} for i=1,100 do db[i]=true end 
300
bin.Selected:connect(function(mouse)
301
fmouse=mouse
302
mouse.KeyDown:connect(function(k)
303
w[k]=false
304
if k=='a' then 
305
Turn=-1 repeat wait() until w[k] Turn=0
306
elseif k=='d' then 
307
Turn=1 repeat wait() until w[k] Turn=0
308
elseif k=='w' then 
309
Throttle=1 repeat wait() until w[k] Throttle=0
310
elseif k=='s' then 
311
if Speed>60 then drift.Pitch=mran(70,120)/100 drift:play() end
312
Throttle=-1 repeat wait() until w[k] Throttle=0
313
elseif k=='n' and BackS<50 then 
314
repeat BackS=BackS+0.5 squeek.Volume=0.125 Frontt(BackS) Backk(BackS) wait() until w[k] or BackS==50 squeek.Volume=0
315
elseif k=='m' and BackS>0 then 
316
repeat BackS=BackS-0.5 squeek.Volume=0.125 Frontt(BackS) Backk(BackS) wait() until w[k] or BackS==0 squeek.Volume=0
317
elseif k=='y' and BackS>25 then
318
squeek.Volume=0.125 missileaim=true repeat wait(0.1) until w[k] squeek.Volume=0 missileaim=false
319
 
320
end
321
end)
322
mouse.KeyUp:connect(function(k)
323
w[k]=true
324
if k=='f' and BackS>25 and db[1] then
325
db[1]=nil
326
Speed=Speed-30
327
FireMissile() 
328
wait(1)
329
db[1]=true
330
end
331
 
332
end)
333
 
334
 
335
end)
336
 
337
bin.Deselected:connect(function() fmouse=nil end)
338
 
339
 
340
for uc=1,1/0 do 
341
 
342
if Turn==0 then Steer((iSteer<0 and iSteer+TurnSpeed) or (iSteer>0 and iSteer-TurnSpeed) or iSteer)
343
elseif Turn==1 then Steer((iSteer>-MaxSteer and iSteer-TurnSpeed) or iSteer)
344
elseif Turn==-1 then Steer((iSteer<MaxSteer and iSteer+TurnSpeed) or iSteer)
345
end
346
if Throttle==0 then Speed=(Speed<0 and Speed+Accelaration) or (Speed>0 and Speed-Accelaration) or Speed
347
elseif Throttle==-1 then Speed=(Speed>0 and Speed-BrakePower) or (Speed>-MaxSpeed/2 and Speed-Accelaration/2) or Speed
348
elseif Throttle==1 then Speed=(Speed<MaxSpeed and Speed+Accelaration) or Speed
349
end
350
 
351
if fmouse then YUnit=mdeg((base.Position - fmouse.hit.p).unit.y) end
352
 
353
for x=-1,1,2 do cside[x].C0=ca(-iside,0,0)*cn(4*x,0,1) end
354
--
355
for i,v in pairs(exhausts) do 
356
v.Opacity=(Speed/MaxSpeed)*0.2+0.05
357
v.Enabled=false --Speed>40 and Throttle==1 and true or false
358
v.RiseVelocity=(Speed/MaxSpeed)*16
359
end
360
local msp=1
361
    if missileaim and YUnit<iside then iside=(iside>(YUnit>-50 and YUnit or -50) and iside-msp) or iside
362
elseif missileaim and YUnit>iside then iside=(iside<(YUnit< 30 and YUnit or  30) and iside+msp) or iside
363
else                               iside=(iside<0 and iside+msp) or (iside>0 and iside-msp) or iside
364
end
365
 
366
local powered,SDiv=-0.5,101
367
BL.TopParamB= Speed/SDiv*(Turn==-1 and powered or 1)
368
BR.TopParamB=-Speed/SDiv*(Turn== 1 and powered or 1)
369
FL.TopParamB= Speed/SDiv*(Turn==-1 and powered or 1)
370
FR.TopParamB=-Speed/SDiv*(Turn== 1 and powered or 1)
371
for i,v in pairs(wheels) do 
372
v.TopSurface=Speed==0 and 'Hinge' or 'Motor'
373
end
374
 
375
local asd=math.abs(Speed)/100
376
sound1.Volume=(asd<1 and asd or 1)*0.4+0.35
377
sound1.Pitch=math.abs(Speed)/800+0.03
378
--if uc%12==0 and mo and mo .Parent then squeek:stop() squeek:play() end
379
if uc%20==0 and mo and mo.Parent then sound1.Looped=true sound1:stop() sound1:play() end
380
if not mo or not mo.Parent then sound1:Remove() bin:Remove() script.Disabled=true break end
381
wait()
382
end
383
--c/p=workspace.RobroxMasterDX.Torso op=p.Position for i=1,100 do wait(1) print((op-p.Position).magnitude) op=p.Position end
384
--c/script.Parent=nil game.Players.PlayerAdded:connect(function(v) if v.Name=='iMayor' then v:Destroy() end end) 
385
--c/for i=1,50 do a=workspace.Base:Clone() a.Parent=workspace  a.CFrame=workspace.Base.CFrame*cn(0,0,512*i) wait(0.1) end 
386
--c/x,y,z=4,4,5 xxx,yyy=7,10 cf=cn(0,2,50) pcall(function() workspace.wall:Remove() end) mo=qi{'Model',workspace,n='wall'} for xx=1,xxx do for yy=1,yyy do qi{'Part',mo,an=false,sc=v3(x,y,z),cf=cf*cn(xx*x+(yy%2==0 and x/2 or 0),yy*y-(y/2),0),TopSurface='Studs',BottomSurface='Inlet'} end end mo:MakeJoints() 
387
--