View difference between Paste ID: u5EwTxp6 and ZjHQFdD3
SHOW: | | - or go back to the newest paste.
1
----- Made by DoogleFox, Full credit to him
2
script:ClearAllChildren()
3
for i, v in pairs(game.Players.LocalPlayer.Backpack:children()) do
4
if v.className == "HopperBin" and v.Name == "Plane" then
5
v:remove()
6
end
7
end
8
bin = Instance.new("HopperBin")
9
bin.Name = "Plane"
10
bin.Parent = game.Players.LocalPlayer.Backpack
11
local hop = Instance.new("HopperBin")
12
hop.Parent = nil
13
script.Parent = hop
14
 
15-
local StreamlineColor = BrickColor.new("Bright red")
15+
local StreamlineColor = BrickColor.new("White")
16-
local bulletspeed = 7
16+
local bulletspeed = 8
17-
local bombdropspeed = 3
17+
local bombdropspeed = 0.9
18-
local maxspeed = 1.8
18+
local maxspeed = 2
19
local acceleration = 0.02
20
 
21
local character = game.Players.LocalPlayer.Character
22
local char = game.Players.LocalPlayer.Character
23
local Torsoz = game.Players.LocalPlayer.Character:findFirstChild("Torso")
24
local RA = game.Players.LocalPlayer.Character:findFirstChild("Right Arm")
25
local LA = game.Players.LocalPlayer.Character:findFirstChild("Left Arm")
26
local RL = game.Players.LocalPlayer.Character:findFirstChild("Right Leg")
27
local LL = game.Players.LocalPlayer.Character:findFirstChild("Left Leg")
28
local H = game.Players.LocalPlayer.Character:findFirstChild("Head")
29
local RS = Torsoz:findFirstChild("Right Shoulder")
30
local LS = Torsoz:findFirstChild("Left Shoulder")
31
local RH = Torsoz:findFirstChild("Right Hip")
32
local LH = Torsoz:findFirstChild("Left Hip")
33
local N = Torsoz:findFirstChild("Neck")
34
local Main
35
local Joint1
36
local PlaneActive = false
37
local Flying = false
38
local PlaneTab = {}
39
local EffectTab = {}
40
local RayTab = {}
41
local LastPart
42-
local speed = 0.5
42+
local speed = 0.1
43
local MOUSE
44
local hu = Instance.new("Humanoid")
45
local speedup = false
46
local speeddown = false
47
local streamline = false
48
local Shooting = false
49
local CanDropBomb = true
50
local MinigunSound
51
local BombSound
52
local LockOnTarget
53
 
54
local P = Instance.new("Part")
55
P.Anchored = false
56
P.CanCollide = false
57
P.Name = "Part"
58
P.formFactor = "Custom"
59
P.Size = Vector3.new(0.5,0.5,0.5)
60
P.Locked = true
61
P.TopSurface = 0
62
P.BottomSurface = 0
63
 
64
local gui = Instance.new("ScreenGui")
65
gui.Name = "PlaneSpeedGui"
66
local f = Instance.new("Frame", gui)
67
f.Name = "Meter"
68
f.Position = UDim2.new(0.45,0,0.75,0)
69
f.Size = UDim2.new(0.1,0,0.05,0)
70
f.BackgroundColor = BrickColor.new("Really black")
71
f.BorderColor = BrickColor.new("Dark stone grey")
72
local n = Instance.new("TextLabel", f)
73
n.Name = "Meter"
74
n.Position = UDim2.new(0,0,0,0)
75
n.Size = UDim2.new(1,0,1,0)
76
n.BackgroundColor = BrickColor.new("Really black")
77
n.TextColor = BrickColor.new("White")
78
n.BorderColor = BrickColor.new("Dark stone grey")
79
n.BackgroundTransparency = 1
80
n.FontSize = 3
81
n.Text = "Speed: "..speed.."/"..maxspeed
82
n.ZIndex = 2
83
local ff = n:Clone()
84
ff.Parent = f
85
ff.BackgroundTransparency = 0
86
ff.Position = UDim2.new(-0.3,0,0,0)
87
ff.Size = UDim2.new(0.3,0,1,0)
88
ff.Text = "Q"
89
local ff = n:Clone()
90
ff.Parent = f
91
ff.BackgroundTransparency = 0
92
ff.Position = UDim2.new(1,0,0,0)
93
ff.Size = UDim2.new(0.3,0,1,0)
94
ff.Text = "E"
95
local ff = n:Clone()
96
ff.Parent = f
97
ff.BackgroundTransparency = 0
98
ff.Position = UDim2.new(-0.3,0,1,0)
99
ff.Size = UDim2.new(1.6,0,0.5,0)
100
ff.FontSize = 1
101-
ff.Text = "F To Toggle Streamline"
101+
ff.Text = "F=Streamline R=Bomb"
102
local n2 = Instance.new("Frame", f)
103
n2.Name = "MeterBar"
104
n2.Position = UDim2.new(0,0,0,0)
105
n2.Size = UDim2.new(0,0,1,0)
106
n2.BackgroundColor3 = Color3.new(0,0,0)
107
n2.BorderColor = BrickColor.new("Dark stone grey")
108
n2.ZIndex = 1
109
local ff = n:Clone()
110
ff.Parent = f
111
ff.Position = UDim2.new(-0.3,0,1.5,0)
112
ff.Size = UDim2.new(1.6,0,0.5,0)
113
ff.FontSize = 1
114
ff.Text = "Plane Health: 0"
115
local n3 = Instance.new("Frame", f)
116
n3.Name = "MeterBar"
117
n3.Position = UDim2.new(-0.3,0,1.5,0)
118
n3.Size = UDim2.new(1,0,0.5,0)
119
n3.BackgroundColor3 = Color3.new(0,1,0)
120
n3.BorderColor = BrickColor.new("Dark stone grey")
121
n3.ZIndex = 1
122
 
123
function Build()
124
for i, v in pairs(char:children()) do
125
if v.className == "Model" and v.Name == "Plane" then
126
v:remove()
127
end
128
end
129
local mdl2 = Instance.new("Model", char)
130
mdl2.Name = "Plane"
131
local mdl = Instance.new("Model", mdl2)
132-
mdl.Name = "RC Plane"
132+
mdl.Name = "Meti2000's Plane"
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,1,1.9)
138
local mesh = Instance.new("SpecialMesh", h)
139
mesh.Name = "Mesh"
140
mesh.MeshId = "http://www.roblox.com/asset/?id=68752248"
141
mesh.TextureId = "http://www.roblox.com/asset/?id=103326808"
142-
mesh.TextureId = "http://www.roblox.com/asset/?id=77082085"
142+
143
--- 69308394 original
144
mesh.Scale = Vector3.new(9,9,9)
145
local w = Instance.new("Motor", h)
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.75
220
MinigunSound.Volume = 0.3
221
MinigunSound.SoundId = "http://www.roblox.com/asset/?id=2691586"
222
BombSound = Instance.new("Sound", h)
223
BombSound.Pitch = 0.875
224
BombSound.Volume = 0.5
225
BombSound.SoundId = "http://www.roblox.com/asset/?id=2233908"
226
-- old sound: http://www.roblox.com/asset/?id=2233908
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 = 100
235
wait()
236
hu.Health = 100
237
local h2 = P:Clone()
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=2806162"
246
local h3 = P:Clone()
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=2806162"
255
local h4 = P:Clone()
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=1030777"
264
mesh.TextureId = "http://www.roblox.com/asset/?id=1030776"
265
mesh.VertexColor = Vector3.new(0.45,0.45,0.45)
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=1030777"
275
mesh.TextureId = "http://www.roblox.com/asset/?id=1030776"
276
mesh.VertexColor = Vector3.new(0.45,0.45,0.45)
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 == "r" then
391
if Flying == true then
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\\advancedMove.png"
407-
mouse.Icon = "rbxasset://textures\\GunCursor.png"
407+
408-
--mouse.Icon = "rbxasset://textures\\advancedMove.png"
408+
409
mouse.KeyDown:connect(function(key) onKeyDown(key, mouse) end)
410
mouse.KeyUp:connect(function(key) onKeyUp(key) end)
411
end)
412
 
413
bin.Deselected:connect(function()
414
pcall(function() Cancel() Build() end)
415
end)
416
 
417
 
418
function Splosion(Pos, ScalE, PartZ, LoopZ, dmg)
419
ScalE = ScalE or 1
420
PartZ = PartZ or 6
421
LoopZ = LoopZ or 1
422
dmg = dmg or 0
423
for _ = 1, LoopZ do
424
local tab = {}
425
for i = 1, PartZ do
426
local E = P:Clone()
427
E.Parent = Torsoz
428
E.Anchored = true
429
E.Transparency = 0.3
430
E.CFrame = CFrame.new(Pos) * CFrame.Angles(math.random(-360, 360)/360,math.random(-360, 360)/360,math.random(-360, 360)/360)
431
local nam = math.random(1,3)
432
local colz = {"Bright yellow", "Bright orange", "Bright red"}
433
E.BrickColor = BrickColor.new(colz[nam])
434
local mesh = Instance.new("SpecialMesh", E)
435
mesh.Scale = Vector3.new(1,1,1)
436
mesh.MeshType = "Sphere"
437
table.insert(tab, E)
438
end
439
local R3 = Region3.new(Pos-(Vector3.new(3,3,3)*ScalE), Pos+(Vector3.new(3,3,3)*ScalE))
440
local R3F = workspace:FindPartsInRegion3(R3, char, 40)
441
local Humanz = {}
442
for i, v in pairs(R3F) do
443
local HAS = false
444
if v.Parent:findFirstChild("Humanoid") ~= nil then
445
for I, V in pairs(Humanz) do
446
if v.Parent:findFirstChild("Humanoid") == V then
447
HAS = true
448
end
449
end
450
if HAS == false then
451
table.insert(Humanz, v.Parent:findFirstChild("Humanoid"))
452
end
453
end
454
end
455
for i, v in pairs(Humanz) do
456
v.Health = v.Health - dmg
457
end
458
for _ = 1, 7 do
459
for i, v in pairs(tab) do
460
v.Transparency = v.Transparency + 0.7/7
461
v.Mesh.Scale = v.Mesh.Scale + (Vector3.new(7/7, 14/7,4/7))*ScalE
462
end
463
wait()
464
end
465
for i, v in pairs(tab) do
466
v:Destroy()
467
tab[i] = nil
468
end
469
end
470
end
471
 
472
 
473
 
474
local iii = 0
475
local sidez = true
476
while true do
477
iii = iii + 1
478
for i, v in pairs(PlaneTab) do
479
if v ~= nil then
480
if v.Parent ~= nil then
481
if v.Parent.Name == "RC Plane" then
482
local posi = v.CFrame
483
if v.Name == "Torso" then
484
v.CFrame = CFrame.new(v.CFrame.p, MOUSE.Hit.p) + CFrame.new(v.CFrame.p, MOUSE.Hit.p).lookVector*speed
485
elseif v.Name == "Head" then
486
v.CFrame = Main.Parent.CFrame * CFrame.new(0,0.65,-0.5)
487
elseif v.Name == "LockOnDetector" then
488
v.CFrame = Main.Parent.CFrame * CFrame.new(0,0.65,-0.5)
489
elseif v.Name == "Minigun1" then
490
v.CFrame = Main.Parent.CFrame * CFrame.new(0.75,0.85,-0.85)
491
elseif v.Name == "Minigun2" then
492
v.CFrame = Main.Parent.CFrame * CFrame.new(-0.75,0.85,-0.85)
493
elseif v.Name == "Missile1" then
494
v.CFrame  = Main.Parent.CFrame * CFrame.new(1.6,0.65,-1.2) * CFrame.Angles(0,-math.pi/2,0)
495
elseif v.Name == "Missile2" then
496
v.CFrame = Main.Parent.CFrame * CFrame.new(-1.6,0.65,-1.2) * CFrame.Angles(0,-math.pi/2,0)
497
end
498
local pos = v.CFrame * CFrame.new(0,0.4,0) - v.CFrame.lookVector*1.2
499
local pos2 = (pos.lookVector*speed) + (pos.lookVector*1.2)
500
local ray = Ray.new(pos.p, (pos.lookVector*speed))
501
local hitz, enz = workspace:findPartOnRay(ray, char)
502
if hitz ~= nil and hitz.CanCollide == true and hitz.Name ~= "MiniBullit" then
503
Spawn(function() Splosion(enz, 1.5*speed, 6, 3, 4) end)
504
v:remove()
505
PlaneTab[i] = nil
506
pcall(function() Cancel() Build() end)
507
end
508
if hu.Health == 0 then
509
Spawn(function() Splosion(enz, 3, 7, 5, 2.5) end)
510
v:remove()
511
PlaneTab[i] = nil
512
pcall(function() Cancel() Build() end)
513
end
514
if v.Name == "Torso" and streamline == true then
515
local e = P:Clone()
516
e.Parent = Main.Parent
517
e.Anchored = true
518
e.Transparency = 0.3
519
e.BrickColor = StreamlineColor
520
local posit = posi * CFrame.new(0,0.8,0)
521
e.CFrame = posit * CFrame.Angles(math.pi/2,0,0)
522
local mesh = Instance.new("BlockMesh", e)
523
mesh.Name = "Mesh"
524
mesh.Scale = Vector3.new(0.4,speed*2,0.4)
525
table.insert(EffectTab, e)
526
end
527
end
528
end
529
end
530
end
531
 
532
for i, v in pairs(EffectTab) do
533
if v ~= nil and v.Parent ~= nil then
534
v.Transparency = v.Transparency + 0.036
535
v.Mesh.Scale = v.Mesh.Scale + Vector3.new(0.225*speed,0,0.225*speed)
536
if v.Transparency > 0.94 then
537
v:Destroy()
538
EffectTab[i] = nil
539
end
540
end
541
end
542
 
543
if iii%4 == 0 then
544
if Shooting == true then
545
for III = 1, 2 do
546
for i, v in pairs(PlaneTab) do
547
if v.Name == "Minigun1" or v.Name == "Minigun2" then
548
if sidez == true or sidez == false then
549
local R = P:Clone()
550
R.Name = "MiniBullit"
551
game:service("Debris"):AddItem(R, 3)
552
R.BrickColor = BrickColor.new("New Yeller")
553
R.Anchored = true
554
R.Material = "Neon"
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