View difference between Paste ID: 342eYGHf and ZjHQFdD3
SHOW: | | - or go back to the newest paste.
1-
----- Made by DoogleFox, Full credit to him
1+
2
for i, v in pairs(game.Players.LocalPlayer.Backpack:children()) do
3
if v.className == "HopperBin" and v.Name == "Plane" then
4
v:remove()
5
end
6
end
7
bin = Instance.new("HopperBin")
8
bin.Name = "Plane"
9
bin.Parent = game.Players.LocalPlayer.Backpack
10
local hop = Instance.new("HopperBin")
11
hop.Parent = nil
12
script.Parent = hop
13
 
14
local StreamlineColor = BrickColor.new("White")
15-
local StreamlineColor = BrickColor.new("Bright red")
15+
16
local bombdropspeed = 3
17
local maxspeed = 1.8
18
local acceleration = 0.02
19
 
20
local character = game.Players.LocalPlayer.Character
21
local char = game.Players.LocalPlayer.Character
22
local Torsoz = game.Players.LocalPlayer.Character:findFirstChild("Torso")
23
local RA = game.Players.LocalPlayer.Character:findFirstChild("Right Arm")
24
local LA = game.Players.LocalPlayer.Character:findFirstChild("Left Arm")
25
local RL = game.Players.LocalPlayer.Character:findFirstChild("Right Leg")
26
local LL = game.Players.LocalPlayer.Character:findFirstChild("Left Leg")
27
local H = game.Players.LocalPlayer.Character:findFirstChild("Head")
28
local RS = Torsoz:findFirstChild("Right Shoulder")
29
local LS = Torsoz:findFirstChild("Left Shoulder")
30
local RH = Torsoz:findFirstChild("Right Hip")
31
local LH = Torsoz:findFirstChild("Left Hip")
32
local N = Torsoz:findFirstChild("Neck")
33
local Main
34
local Joint1
35
local PlaneActive = false
36
local Flying = false
37
local PlaneTab = {}
38
local EffectTab = {}
39
local RayTab = {}
40
local LastPart
41
local speed = 0.1
42-
local speed = 0.5
42+
43
local hu = Instance.new("Humanoid")
44
local speedup = false
45
local speeddown = false
46
local streamline = false
47
local Shooting = false
48
local CanDropBomb = true
49
local MinigunSound
50
local BombSound
51
local LockOnTarget
52
 
53
local P = Instance.new("Part")
54
P.Anchored = false
55
P.CanCollide = false
56
P.Name = "Part"
57
P.formFactor = "Custom"
58
P.Size = Vector3.new(0.5,0.5,0.5)
59
P.Locked = true
60
P.TopSurface = 0
61
P.BottomSurface = 0
62
 
63
local gui = Instance.new("ScreenGui")
64
gui.Name = "PlaneSpeedGui"
65
local f = Instance.new("Frame", gui)
66
f.Name = "Meter"
67
f.Position = UDim2.new(0.45,0,0.75,0)
68
f.Size = UDim2.new(0.1,0,0.05,0)
69
f.BackgroundColor = BrickColor.new("Really black")
70
f.BorderColor = BrickColor.new("Dark stone grey")
71
local n = Instance.new("TextLabel", f)
72
n.Name = "Meter"
73
n.Position = UDim2.new(0,0,0,0)
74
n.Size = UDim2.new(1,0,1,0)
75
n.BackgroundColor = BrickColor.new("Really black")
76
n.TextColor = BrickColor.new("White")
77
n.BorderColor = BrickColor.new("Dark stone grey")
78
n.BackgroundTransparency = 1
79
n.FontSize = 3
80
n.Text = "Speed: "..speed.."/"..maxspeed
81
n.ZIndex = 2
82
local ff = n:Clone()
83
ff.Parent = f
84
ff.BackgroundTransparency = 0
85
ff.Position = UDim2.new(-0.3,0,0,0)
86
ff.Size = UDim2.new(0.3,0,1,0)
87
ff.Text = "Q"
88
local ff = n:Clone()
89
ff.Parent = f
90
ff.BackgroundTransparency = 0
91
ff.Position = UDim2.new(1,0,0,0)
92
ff.Size = UDim2.new(0.3,0,1,0)
93
ff.Text = "E"
94
local ff = n:Clone()
95
ff.Parent = f
96
ff.BackgroundTransparency = 0
97
ff.Position = UDim2.new(-0.3,0,1,0)
98
ff.Size = UDim2.new(1.6,0,0.5,0)
99
ff.FontSize = 1
100
ff.Text = "F=Streamline G=Bomb"
101-
ff.Text = "F To Toggle Streamline"
101+
102
n2.Name = "MeterBar"
103
n2.Position = UDim2.new(0,0,0,0)
104
n2.Size = UDim2.new(0,0,1,0)
105
n2.BackgroundColor3 = Color3.new(0,0,0)
106
n2.BorderColor = BrickColor.new("Dark stone grey")
107
n2.ZIndex = 1
108
local ff = n:Clone()
109
ff.Parent = f
110
ff.Position = UDim2.new(-0.3,0,1.5,0)
111
ff.Size = UDim2.new(1.6,0,0.5,0)
112
ff.FontSize = 1
113
ff.Text = "Plane Health: 0"
114
local n3 = Instance.new("Frame", f)
115
n3.Name = "MeterBar"
116
n3.Position = UDim2.new(-0.3,0,1.5,0)
117
n3.Size = UDim2.new(1,0,0.5,0)
118
n3.BackgroundColor3 = Color3.new(0,1,0)
119
n3.BorderColor = BrickColor.new("Dark stone grey")
120
n3.ZIndex = 1
121
 
122
function Build()
123
for i, v in pairs(char:children()) do
124
if v.className == "Model" and v.Name == "Plane" then
125
v:remove()
126
end
127
end
128
local mdl2 = Instance.new("Model", char)
129
mdl2.Name = "Plane"
130
local mdl = Instance.new("Model", mdl2)
131
mdl.Name = "RC Plane"
132
 
133
local h = P:Clone()
134
h.Name = "Torso"
135
h.Parent = mdl
136
h.Position = Torsoz.Position
137
h.Size = Vector3.new(1.9,3,1.9)
138-
h.Size = Vector3.new(1.9,1,1.9)
138+
139
mesh.Name = "Mesh"
140
mesh.MeshId = "http://www.roblox.com/asset/?id=88775328"
141-
mesh.MeshId = "http://www.roblox.com/asset/?id=68752248"
141+
mesh.TextureId = "http://www.roblox.com/asset/?id=88775716"
142-
mesh.TextureId = "http://www.roblox.com/asset/?id=77082085"
142+
143
--- 69308394 original
144
mesh.Scale = Vector3.new(1,1,1)
145-
mesh.Scale = Vector3.new(9,9,9)
145+
146
w.Part0 = Torsoz
147
w.Part1 = h
148
w.C0 = CFrame.new(0,0,0.1) * CFrame.Angles(math.pi/2,-math.pi/4,0)
149
Main = w
150
local h2 = P:Clone()
151
h2.Name = "Controller"
152
h2.Parent = mdl
153
h2.Position = Torsoz.Position
154
h2.Size = Vector3.new(0.5,0.5,0.5)
155
local mesh = Instance.new("SpecialMesh", h2)
156
mesh.Name = "Mesh"
157
mesh.MeshId = "http://www.roblox.com/asset/?id=31183234"
158
mesh.TextureId = "http://www.roblox.com/asset/?id=35363951"
159-
mesh.TextureId = "http://www.roblox.com/asset/?id=31183303"
159+
160
local w = Instance.new("Motor", h2)
161
w.Part0 = RL
162
w.Part1 = h2
163
w.C0 = CFrame.new(0.5,0.8,0) * CFrame.Angles(0,-math.pi/2,0)
164
Main2 = w
165
 
166
end
167
Build()
168
 
169
function Launch(mouse)
170
MOUSE = mouse
171
PlaneActive = true
172
local p = P:Clone()
173
p.Parent = Torsoz
174
p.Transparency = 1
175
local w = Instance.new("Motor", p)
176
w.Part0 = p
177
w.Part1 = RA
178
w.C0 = CFrame.new(0,-0.5,0)
179
RS.Part0 = nil
180
Joint1 = Instance.new("Motor", p)
181
Joint1.Part0 = Torsoz
182
Joint1.Part1 = p
183
Joint1.C0 = CFrame.new(1.5,0.5,0)
184
 
185
local jointz = Joint1
186
for i = 1, 14 do
187
jointz.C0 = jointz.C0 * CFrame.Angles(math.pi*1.2/14,0,0)
188
wait()
189
end
190
wait() wait()
191
Main.Part0 = RA
192
Main.C0 = CFrame.new(0,-0.8,-0.2) * CFrame.Angles(0,math.pi,math.pi) * CFrame.Angles(-math.pi*0.2,0,0)
193
wait() wait()
194
for i = 1, 3 do
195
Main.C0 = Main.C0 * CFrame.Angles(math.pi/1.8/7,0,0) + Vector3.new(0,0.2/3,0)
196
jointz.C0 = jointz.C0 * CFrame.Angles(-math.pi/1.8/7,0,0)
197
wait()
198
end
199
for i = 1, 2 do
200
Main.C0 = Main.C0 * CFrame.Angles(math.pi/1.8/7,0,0) + Vector3.new(0,0,0)
201
jointz.C0 = jointz.C0 * CFrame.Angles(-math.pi/1.8/7,0,0)
202
wait()
203
end
204
for i = 1, 2 do
205
Main.C0 = Main.C0 * CFrame.Angles(math.pi/1.8/7,0,0) + Vector3.new(0,-0.5/2,0)
206
jointz.C0 = jointz.C0 * CFrame.Angles(-math.pi/1.8/7,0,0)
207
wait()
208
end
209
Main.Part0 = nil
210
speed = 0.4
211
Main.Parent.Anchored = true
212
local h = P:Clone()
213
h.Size = Vector3.new(4,2.4,3.25)
214
h.Parent = Main.Parent.Parent
215
h.Transparency = 0.99
216
h.Name = "Head"
217
h.CFrame = Main.Parent.CFrame
218
MinigunSound = Instance.new("Sound", h)
219
MinigunSound.Pitch = 1.1
220-
MinigunSound.Pitch = 1.75
220+
MinigunSound.Volume = 1
221-
MinigunSound.Volume = 0.3
221+
MinigunSound.SoundId = "http://www.roblox.com/asset/?id=180955656"
222-
MinigunSound.SoundId = "http://www.roblox.com/asset/?id=2691586"
222+
223
BombSound.Pitch = 0.9
224-
BombSound.Pitch = 0.875
224+
BombSound.Volume = math.huge
225-
BombSound.Volume = 0.5
225+
BombSound.SoundId = "http://www.roblox.com/asset/?id=1295409698"
226-
BombSound.SoundId = "http://www.roblox.com/asset/?id=2233908"
226+
227
-- new sound: http://www.roblox.com/asset/?id=81116747
228
local mesh = Instance.new("BlockMesh", h)
229
mesh.Scale = Vector3.new(0.03,0.03,0.03)
230
local w = Instance.new("Snap", h)
231
w.Part0 = Main.Parent
232
w.Part1 = h
233
hu = Instance.new("Humanoid", Main.Parent.Parent)
234
hu.MaxHealth = 150
235-
hu.MaxHealth = 100
235+
236
hu.Health = 150
237-
hu.Health = 100
237+
238
h2.Anchored = true
239
h2.BrickColor = BrickColor.new("Really black")
240
h2.Parent = Main.Parent.Parent
241
h2.Name = "Minigun1"
242
h2.CFrame = Main.Parent.CFrame
243
local mesh = Instance.new("SpecialMesh", h2)
244
mesh.Scale = Vector3.new(0.3,0.3,0.3)
245
mesh.MeshId = "http://www.roblox.com/asset/?id="
246-
mesh.MeshId = "http://www.roblox.com/asset/?id=2806162"
246+
247
h3.Anchored = true
248
h3.BrickColor = BrickColor.new("Really black")
249
h3.Parent = Main.Parent.Parent
250
h3.Name = "Minigun2"
251
h3.CFrame = Main.Parent.CFrame
252
local mesh = Instance.new("SpecialMesh", h3)
253
mesh.Scale = Vector3.new(0.3,0.3,0.3)
254
mesh.MeshId = "http://www.roblox.com/asset/?id="
255-
mesh.MeshId = "http://www.roblox.com/asset/?id=2806162"
255+
256
h4.Anchored = true
257
h4.BrickColor = BrickColor.new("Black")
258
h4.Parent = Main.Parent.Parent
259
h4.Name = "Missile1"
260
h4.CFrame = Main.Parent.CFrame
261
local mesh = Instance.new("SpecialMesh", h4)
262
mesh.Scale = Vector3.new(0.35,0.55,0.55)
263
mesh.MeshId = "http://www.roblox.com/asset/?id="
264-
mesh.MeshId = "http://www.roblox.com/asset/?id=1030777"
264+
mesh.TextureId = "http://www.roblox.com/asset/?id="
265-
mesh.TextureId = "http://www.roblox.com/asset/?id=1030776"
265+
266
local h5 = P:Clone()
267
h5.Anchored = true
268
h5.BrickColor = BrickColor.new("Black")
269
h5.Parent = Main.Parent.Parent
270
h5.Name = "Missile2"
271
h5.CFrame = Main.Parent.CFrame
272
local mesh = Instance.new("SpecialMesh", h5)
273
mesh.Scale = Vector3.new(0.35,0.55,0.55)
274
mesh.MeshId = "http://www.roblox.com/asset/?id="
275-
mesh.MeshId = "http://www.roblox.com/asset/?id=1030777"
275+
mesh.TextureId = "http://www.roblox.com/asset/?id="
276-
mesh.TextureId = "http://www.roblox.com/asset/?id=1030776"
276+
277
local mdlz = Instance.new("Model", Main.Parent.Parent)
278
mdlz.Name = "RC Plane"
279
local h6 = P:Clone()
280
h6.Shape = "Ball"
281
h6.Size = Vector3.new(17,17,17)
282
h6.Parent = mdlz
283
h6.Anchored = true
284
h6.Transparency = 0.99
285
h6.Name = "LockOnDetector"
286
h6.CFrame = Main.Parent.CFrame
287
local mesh = Instance.new("SpecialMesh", h6)
288
mesh.MeshType = "Sphere"
289
mesh.Scale = Vector3.new(0.03,0.03,0.03)
290
 
291
for i = 1, 11 do
292
Main.Parent.CFrame = Main.Parent.CFrame + Main.Parent.CFrame.lookVector*speed
293
h.CFrame = Main.Parent.CFrame * CFrame.new(0,0.65,-0.5)
294
h2.CFrame = Main.Parent.CFrame * CFrame.new(0.75,0.85,-0.85)
295
h3.CFrame = Main.Parent.CFrame * CFrame.new(-0.75,0.85,-0.85)
296
h4.CFrame = Main.Parent.CFrame * CFrame.new(1.6,0.65,-1.2) * CFrame.Angles(0,-math.pi/2,0)
297
h5.CFrame = Main.Parent.CFrame * CFrame.new(-1.6,0.65,-1.2) * CFrame.Angles(0,-math.pi/2,0)
298
h6.CFrame = Main.Parent.CFrame * CFrame.new(0,0.65,-0.5)
299
jointz.C0 = jointz.C0 * CFrame.Angles(-math.pi/1.5/11,0,0)
300
wait()
301
end
302
Main2.Part0 = RA
303
Main2.C0 = CFrame.new(0,-1,-0.8) * CFrame.Angles(math.pi/2,0,math.pi)
304
for i = 1, 8 do
305
Main.Parent.CFrame = Main.Parent.CFrame + Main.Parent.CFrame.lookVector*speed
306
h.CFrame = Main.Parent.CFrame * CFrame.new(0,0.65,-0.5)
307
h2.CFrame = Main.Parent.CFrame * CFrame.new(0.75,0.85,-0.85)
308
h3.CFrame = Main.Parent.CFrame * CFrame.new(-0.75,0.85,-0.85)
309
h4.CFrame = Main.Parent.CFrame * CFrame.new(1.6,0.65,-1.2) * CFrame.Angles(0,-math.pi/2,0)
310
h5.CFrame = Main.Parent.CFrame * CFrame.new(-1.6,0.65,-1.2) * CFrame.Angles(0,-math.pi/2,0)
311
h6.CFrame = Main.Parent.CFrame * CFrame.new(0,0.65,-0.5)
312
jointz.C0 = jointz.C0 * CFrame.Angles(math.pi/2.2/8,0,0)
313
Main2.C0 = Main2.C0 * CFrame.new(0.8/8,0,0)
314
wait()
315
end
316
 
317
PlaneTab[1] = Main.Parent
318
PlaneTab[2] = h
319
PlaneTab[3] = h2
320
PlaneTab[4] = h3
321
PlaneTab[5] = h4
322
PlaneTab[6] = h5
323
PlaneTab[7] = h6
324
Flying = true
325
workspace.CurrentCamera.CameraSubject = hu
326
char.Humanoid.WalkSpeed = 0
327
gui.Parent = game.Players.LocalPlayer:findFirstChild("PlayerGui")
328
 
329
end
330
 
331
function Cancel()
332
LastPart = nil
333
Joint1.Parent:Destroy()
334
gui.Parent = nil
335
workspace.CurrentCamera.CameraSubject = char.Humanoid
336
char.Humanoid.WalkSpeed = 16
337
RS.Part0 = Torsoz
338
PlaneActive = false
339
Flying = false
340
Shooting = false
341
for ii, vv in pairs(PlaneTab) do
342
if vv.Parent.Name == "Plane" then
343
vv:remove()
344
PlaneTab[ii] = nil
345
end
346
end
347
end
348
 
349
function onButton1Down(mouse)
350
if Flying == true then
351
Shooting = true
352
end
353
if PlaneActive == false then
354
Launch(mouse)
355
end
356
end
357
 
358
function onButton1Up()
359
Shooting = false
360
end
361
 
362
function BombDrop()
363
if CanDropBomb == true then
364
CanDropBomb = false
365
local B = P:Clone()
366
B.Parent = Main.Parent
367
B.Name = "Bomb"
368
B.Anchored = true
369
B.CFrame = CFrame.new(Main.Parent.Position, Vector3.new(MOUSE.Hit.x,Main.Parent.Position.y,MOUSE.Hit.z)) * CFrame.Angles(-math.pi/2.3,0,0)
370
game:service("Debris"):AddItem(B, 4)
371
local mesh = Instance.new("SpecialMesh", B)
372
mesh.MeshId = "http://www.roblox.com/asset/?id=74333739"
373
mesh.TextureId = "http://www.roblox.com/asset/?id=74320150"
374
table.insert(RayTab, B)
375
Spawn(function() wait(0.5) CanDropBomb = true end)
376
end
377
end
378
 
379
function onKeyDown(key, mouse)
380
if key == "e" then
381
speedup = true
382
elseif key == "q" then
383
speeddown = true
384
elseif key == "f" then
385
if streamline == true then
386
streamline = false
387
else
388
streamline = true
389
end
390
elseif key == "g" then
391-
elseif key == "r" then
391+
392
BombDrop()
393
end
394
end
395
end
396
 
397
function onKeyUp(key)
398
if key == "e" then
399
speedup = false
400
elseif key == "q" then
401
speeddown = false
402
end
403
end
404
 
405
bin.Selected:connect(function(mouse)
406
mouse.Icon = "rbxasset://textures\\GunCursor.png"
407
--mouse.Icon = "rbxasset://textures\\advancedMove.png"
408
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
409
mouse.Button1Up:connect(function() onButton1Up() end)
410
mouse.KeyDown:connect(function(key) onKeyDown(key, mouse) end)
411
mouse.KeyUp:connect(function(key) onKeyUp(key) end)
412
end)
413
 
414
bin.Deselected:connect(function()
415
pcall(function() Cancel() Build() end)
416
end)
417
 
418
 
419
function Splosion(Pos, ScalE, PartZ, LoopZ, dmg)
420
ScalE = ScalE or 1
421
PartZ = PartZ or 6
422
LoopZ = LoopZ or 1
423
dmg = dmg or 0
424
for _ = 1, LoopZ do
425
local tab = {}
426
for i = 1, PartZ do
427
local E = P:Clone()
428
E.Parent = Torsoz
429
E.Anchored = true
430
E.Transparency = 0.3
431
E.CFrame = CFrame.new(Pos) * CFrame.Angles(math.random(-360, 360)/360,math.random(-360, 360)/360,math.random(-360, 360)/360)
432
local nam = math.random(1,3)
433
local colz = {"Bright yellow", "Bright orange", "Bright red"}
434
E.BrickColor = BrickColor.new(colz[nam])
435
local mesh = Instance.new("SpecialMesh", E)
436
mesh.Scale = Vector3.new(1,1,1)
437
mesh.MeshType = "Sphere"
438
table.insert(tab, E)
439
end
440
local R3 = Region3.new(Pos-(Vector3.new(3,3,3)*ScalE), Pos+(Vector3.new(3,3,3)*ScalE))
441
local R3F = workspace:FindPartsInRegion3(R3, char, 40)
442
local Humanz = {}
443
for i, v in pairs(R3F) do
444
local HAS = false
445
if v.Parent:findFirstChild("Humanoid") ~= nil then
446
for I, V in pairs(Humanz) do
447
if v.Parent:findFirstChild("Humanoid") == V then
448
HAS = true
449
end
450
end
451
if HAS == false then
452
table.insert(Humanz, v.Parent:findFirstChild("Humanoid"))
453
end
454
end
455
end
456
for i, v in pairs(Humanz) do
457
v.Health = v.Health - dmg
458
end
459
for _ = 1, 7 do
460
for i, v in pairs(tab) do
461
v.Transparency = v.Transparency + 0.7/7
462
v.Mesh.Scale = v.Mesh.Scale + (Vector3.new(7/7, 14/7,4/7))*ScalE
463
end
464
wait()
465
end
466
for i, v in pairs(tab) do
467
v:Destroy()
468
tab[i] = nil
469
end
470
end
471
end
472
 
473
 
474
 
475
local iii = 0
476
local sidez = true
477
while true do
478
iii = iii + 1
479
for i, v in pairs(PlaneTab) do
480
if v ~= nil then
481
if v.Parent ~= nil then
482
if v.Parent.Name == "RC Plane" then
483
local posi = v.CFrame
484
if v.Name == "Torso" then
485
v.CFrame = CFrame.new(v.CFrame.p, MOUSE.Hit.p) + CFrame.new(v.CFrame.p, MOUSE.Hit.p).lookVector*speed
486
elseif v.Name == "Head" then
487
v.CFrame = Main.Parent.CFrame * CFrame.new(0,0.65,-0.5)
488
elseif v.Name == "LockOnDetector" then
489
v.CFrame = Main.Parent.CFrame * CFrame.new(0,0.65,-0.5)
490
elseif v.Name == "Minigun1" then
491
v.CFrame = Main.Parent.CFrame * CFrame.new(0.75,0.85,-0.85)
492
elseif v.Name == "Minigun2" then
493
v.CFrame = Main.Parent.CFrame * CFrame.new(-0.75,0.85,-0.85)
494
elseif v.Name == "Missile1" then
495
v.CFrame  = Main.Parent.CFrame * CFrame.new(1.6,0.65,-1.2) * CFrame.Angles(0,-math.pi/2,0)
496
elseif v.Name == "Missile2" then
497
v.CFrame = Main.Parent.CFrame * CFrame.new(-1.6,0.65,-1.2) * CFrame.Angles(0,-math.pi/2,0)
498
end
499
local pos = v.CFrame * CFrame.new(0,0.4,0) - v.CFrame.lookVector*1.2
500
local pos2 = (pos.lookVector*speed) + (pos.lookVector*1.2)
501
local ray = Ray.new(pos.p, (pos.lookVector*speed))
502
local hitz, enz = workspace:findPartOnRay(ray, char)
503
if hitz ~= nil and hitz.CanCollide == true and hitz.Name ~= "MiniBullit" then
504
Spawn(function() Splosion(enz, 1.5*speed, 6, 3, 4) end)
505
v:remove()
506
PlaneTab[i] = nil
507
pcall(function() Cancel() Build() end)
508
end
509
if hu.Health == 0 then
510
Spawn(function() Splosion(enz, 3, 7, 5, 2.5) end)
511
v:remove()
512
PlaneTab[i] = nil
513
pcall(function() Cancel() Build() end)
514
end
515
if v.Name == "Torso" and streamline == true then
516
local e = P:Clone()
517
e.Parent = Main.Parent
518
e.Anchored = true
519
e.Transparency = 0.3
520
e.BrickColor = StreamlineColor
521
local posit = posi * CFrame.new(0,0.8,0)
522
e.CFrame = posit * CFrame.Angles(math.pi/2,0,0)
523
local mesh = Instance.new("BlockMesh", e)
524
mesh.Name = "Mesh"
525
mesh.Scale = Vector3.new(0.4,speed*2,0.4)
526
table.insert(EffectTab, e)
527
end
528
end
529
end
530
end
531
end
532
 
533
for i, v in pairs(EffectTab) do
534
if v ~= nil and v.Parent ~= nil then
535
v.Transparency = v.Transparency + 0.036
536
v.Mesh.Scale = v.Mesh.Scale + Vector3.new(0.225*speed,0,0.225*speed)
537
if v.Transparency > 0.94 then
538
v:Destroy()
539
EffectTab[i] = nil
540
end
541
end
542
end
543
 
544
if iii%4 == 0 then
545
if Shooting == true then
546
for III = 1, 2 do
547
for i, v in pairs(PlaneTab) do
548
if v.Name == "Minigun1" or v.Name == "Minigun2" then
549
if sidez == true or sidez == false then
550
local R = P:Clone()
551
R.Name = "MiniBullit"
552
game:service("Debris"):AddItem(R, 3)
553
R.BrickColor = BrickColor.new("New Yeller")
554
R.Anchored = true
555
local mesh = Instance.new("CylinderMesh", R)
556
mesh.Scale = Vector3.new(0.15,bulletspeed,0.1)
557
if sidez == true then
558
if v.Name == "Minigun1" then
559
MinigunSound:Play()
560
R.CFrame = v.CFrame * CFrame.Angles(-math.pi/2,0,0)
561
table.insert(RayTab, R)
562
R.Parent = Main.Parent  
563
end
564
sidez = "1"
565
break
566
elseif sidez == false then
567
if v.Name == "Minigun2" then
568
MinigunSound:Play()
569
R.CFrame = v.CFrame * CFrame.Angles(-math.pi/2,0,0)
570
table.insert(RayTab, R)
571
R.Parent = Main.Parent  
572
sidez = "2"
573
break
574
end
575
end
576
end
577
end
578
end
579
end
580
end
581
end
582
if sidez == "1" then
583
sidez = false
584
elseif sidez == "2" then
585
sidez = true
586
end
587
 
588
for ii, v in pairs(RayTab) do
589
if v.Name == "MiniBullit" then
590
local pozi = v.CFrame * CFrame.Angles(math.pi/2,0,0)
591
local ray = Ray.new(v.CFrame.p, pozi.lookVector*(bulletspeed+speed))
592
local hitz, enz = workspace:findPartOnRay(ray, char)
593
if hitz ~= nil then
594
v:remove()
595
RayTab[ii] = nil
596
if hitz.Parent:findFirstChild("Humanoid") ~= nil then
597
hitz.Parent:findFirstChild("Humanoid").Health = hitz.Parent:findFirstChild("Humanoid").Health - 10
598
elseif hitz.Name == "Handle" and hitz.Parent.Parent:findFirstChild("Humanoid") then
599
hitz.Parent.Parent:findFirstChild("Humanoid").Health = hitz.Parent.Parent:findFirstChild("Humanoid").Health - 10
600
end
601
end
602
v.CFrame = v.CFrame * CFrame.new(0,(bulletspeed+speed),0)
603
elseif v.Name == "Bomb" then
604
local pozi = v.CFrame
605
local ray = Ray.new(pozi.p, (pozi * CFrame.new(0,0,1)).lookVector*(bombdropspeed))
606
local hitz, enz = workspace:findPartOnRay(ray, char)
607
if hitz ~= nil then
608
BombSound:Play()
609
Spawn(function() Splosion(enz, 3,7,3, 8) end)
610
v:remove()
611
RayTab[ii] = nil
612
end
613
v.CFrame = v.CFrame * CFrame.new(0,0,-bombdropspeed)
614
end
615
if v.Parent ~= Main.Parent then
616
RayTab[ii] = nil
617
end
618
end
619
 
620
if speedup == true then
621
speed = speed + acceleration
622
if speed > maxspeed then
623
speed = maxspeed
624
end
625
end
626
if speeddown == true then
627
speed = speed - acceleration
628
if speed < 0.2 then
629
speed = 0.2
630
end
631
end
632
n.Text = "Speed: "..speed.."/"..maxspeed
633
n2.Size = UDim2.new(speed/maxspeed,0,1,0)
634
local colurz = 0.55/maxspeed*speed
635
n2.BackgroundColor3 = Color3.new(colurz,0.55-colurz,0)
636
n3.Size = UDim2.new((hu.Health/hu.MaxHealth)*1.6,0,0.5,0)
637
local colurz = 0.6/hu.MaxHealth*hu.Health
638
n3.BackgroundColor3 = Color3.new(0.6-colurz,colurz,0)
639
ff.Text = "Plane Health: " .. hu.Health .. "/" .. hu.MaxHealth
640
 
641
wait(0.025)
642
end