View difference between Paste ID: fTyjjbzk and TDAzEAmf
SHOW: | | - or go back to the newest paste.
1
me = game.Players.Animetaional_Clone
2-
me = game.Players.aaronremmers14
2+
3
4
5
if script.Parent.className ~= "HopperBin" then
6
7
h = Instance.new("HopperBin")
8
9
h.Parent = me.Backpack
10
11
h.Name = "Plane (MadeByAaronremmers14"
12
13
script.Parent = h
14
15
end
16
17
sp = script.Parent
18
19
20
21
function property(part, parent, x, y, z, color, tra, re)
22
23
part.Parent = parent
24
25
part.formFactor = 0
26
27
part.TopSurface = 0
28
29
part.BottomSurface = 0
30
31
part.Size = Vector3.new(x,y,z)
32
33
part.BrickColor = BrickColor.new(color)
34
35
part.Transparency = tra
36
37
part.Reflectance = re
38
39
end
40
41
42
43
function weld(weld,parent,part1,a,b,c,x,y,z)
44
45
weld.Parent = parent
46
47
weld.Part0 = weld.Parent
48
49
weld.Part1 = part1
50
51
weld.C1 = CFrame.fromEulerAnglesXYZ(x,y,z) * CFrame.new(a,b,c)
52
53
end
54
55
56
57
58
59
hold = false
60
61
62
63
speed = 0
64
65
maxspeed = 500
66
67
68
sp.Selected:connect(function(mouse, key)
69
70
	mouse.Icon = " "
71
72
	if me.Character:findFirstChild("Duck") == nil then
73
74
		mod = Instance.new("Model")
75
76
		mod.Parent = me.Character
77
78
		mod.Name = "Duck"
79
80
		plane = Instance.new("Seat")
81
82
		property(plane, mod, 2, 1, 2, "Bright red", 0, 0)
83
84
		plane.Position = Vector3.new(0,7,0)
85
86
87
88
		planebase = Instance.new("Part")
89
90
		property(planebase, mod, 7, 1, 14, "Black metallic")
91
92
93
94
		weld1 = Instance.new("Weld")
95
96
		weld(weld1, planebase, plane, 0, -0.5, 0, -0.1, 0, 0)
97
98
99
100
		bv = Instance.new("BodyVelocity")
101
102
		bv.Parent = planebase
103
104
		bv.velocity = Vector3.new(0,0.01,0)
105
106
		bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
107
108
		bg = Instance.new("BodyGyro")
109
110
		bg.Parent = planebase
111
112
		bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
113
114
115
116
		dec1 = Instance.new("Part")
117
118
		property(dec1, mod, 7, 1, 7, "Black metallic", 0, 0)
119
120
		weld2 = Instance.new("Weld")
121
122
		weld(weld2, planebase, dec1, 0, -3, -5, -1, 0, 0)
123
124
125
126
		dec2 = Instance.new("Part")
127
128
		property(dec2, mod, 7, 1, 13, "Black metallic", 0, 0)
129
130
		dec2.CanCollide = false
131
132
		weld3 = Instance.new("Weld")
133
134
		weld(weld3, planebase, dec2, 0, -6, 3, 0, 0, 0)
135
136
137
138
		dec3 = Instance.new("Part")
139
140
		property(dec3, mod, 7, 1, 2, "Black metallic", 0, 0)
141
142
		weld4 = Instance.new("Weld")
143
144
		weld(weld4, planebase, dec3, 0, -0.5, 7, -1, 0, 0)
145
146
147
148
		dec4 = Instance.new("Part")
149
150
		property(dec4, mod, 7, 1, 5, "Navy blue", 0.6, 0.2)
151
152
		weld5 = Instance.new("Weld")
153
154
		weld(weld5, planebase, dec4, 0, -3.5, 8, -1.2, 0, 0)
155
156
157
158
		dec5 = Instance.new("Part")
159
160
		property(dec5, mod, 1, 6, 9, "Black metallic", 0, 0)
161
162
		weld6 = Instance.new("Weld")
163
164
		weld(weld6, planebase, dec5, 3.05, -3, 1.5, 0, 0, 0)
165
166
167
168
		dec6 = Instance.new("Part")
169
170
		property(dec6, mod, 1, 6, 9, "Black metallic", 0, 0)
171
172
		weld7 = Instance.new("Weld")
173
174
		weld(weld7, planebase, dec6, -3.05, -3, 1.5, 0, 0, 0)
175
176
177
178
		dec7 = Instance.new("WedgePart")
179
180
		property(dec7, mod, 1, 6, 4, "Black metallic", 0, 0)
181
182
		weld8 = Instance.new("Weld")
183
184
		weld(weld8, planebase, dec7, -3.05, -3, -4.5, 0, 3.12, 0)
185
186
187
188
		dec8 = Instance.new("WedgePart")
189
190
		property(dec8, mod, 1, 6, 4, "Black metallic", 0, 0)
191
192
		weld9 = Instance.new("Weld")
193
194
		weld(weld9, planebase, dec8, 3.05, -3, -4.5, 0, 3.12, 0)
195
196
197
198
		dec9 = Instance.new("WedgePart")
199
200
		property(dec9, mod, 1, 6, 3, "Black metallic", 0, 0)
201
202
		weld10 = Instance.new("Weld")
203
204
		weld(weld10, planebase, dec9, 3.05, -3, 7.4, 3.12, 3.12, 0)
205
206
207
208
		dec10 = Instance.new("WedgePart")
209
210
		property(dec10, mod, 1, 6, 3, "Black metallic", 0, 0)
211
212
		weld11 = Instance.new("Weld")
213
214
		weld(weld11, planebase, dec10, -3.05, -3, 7.4, 3.12, 3.12, 0)
215
216
217
218
		wing = Instance.new("WedgePart")
219
220
		property(wing, mod, 1, 9, 13, "Black metallic", 0, 0)
221
222
		weld12 = Instance.new("Weld")
223
224
		weld(weld12, planebase, wing, -7.55, -2, 0.5, 0, 0, 1.57)
225
226
227
228
		wing2 = Instance.new("WedgePart")
229
230
		property(wing2, mod, 1, 9, 13, "Black metallic", 0, 0)
231
232
		weld13 = Instance.new("Weld")
233
234
		weld(weld13, planebase, wing2, 7.55, -2, 0.5, 0, 0, -1.57)
235
236
237
238
		miss = Instance.new("WedgePart")
239
240
		property(miss, mod, 1, 9, 13, "Dark grey metallic", 0, 0)
241
242
		mii = Instance.new("SpecialMesh",miss)
243
244
		mii.Scale = Vector3.new(0.7,0.7,0.7)
245
246
		mii.MeshType = "FileMesh"
247
248
		mii.MeshId = "http://roblox.com/asset/?id=2251534"
249
250
		weld14 = Instance.new("Weld")
251
252
		weld(weld14, planebase, miss, 6, -1, 0.5, 0, 0, -1.57)
253
254
255
256
		miss2 = Instance.new("WedgePart")
257
258
		property(miss2, mod, 1, 1, 7, "Dark grey metallic", 0, 0)
259
260
		mii2 = Instance.new("SpecialMesh",miss2)
261
262
		mii2.Scale = Vector3.new(0.7,0.7,0.7)
263
264
		mii2.MeshType = "FileMesh"
265
266
		mii2.MeshId = "http://roblox.com/asset/?id=2251534"
267
268
		weld15 = Instance.new("Weld")
269
270
		weld(weld15, planebase, miss2, -6, -1, 0.5, 0, 0, -1.57)
271
272
273
274
275
276
		mouse.Button1Down:connect(function()
277
278
			hold = true
279
280
			while hold == true do
281
282
				bg.cframe = CFrame.new(planebase.Position, mouse.Hit.p)
283
284
				bv.velocity = planebase.CFrame.lookVector * speed
285
286
				speed = speed + 1
287
288
				if speed >= maxspeed then
289
290
					speed = maxspeed
291
292
				end
293
294
				wait()
295
296
			end
297
298
		end)
299
300
		mouse.Button1Up:connect(function()
301
302
			hold = false
303
304
			while hold == false do
305
306
				wait()
307
308
				speed = speed - 5
309
310
				if speed <= 0 then
311
312
					speed = 0
313
314
				end
315
316
				bv.velocity = planebase.CFrame.lookVector * speed
317
318
			end
319
320
			bv.velocity = Vector3.new(0,.2,0)
321
322
		end)
323
324
		mouse.KeyDown:connect(function(key)
325
326
			key = key:lower()
327
328
			if (key == "q") then
329
330
				local bomb = Instance.new("Part")
331
332
				bomb.Parent = workspace
333
334
				bomb.formFactor = 0
335
336
				bomb.Size = Vector3.new(2,2,6)
337
338
				bomb.BrickColor = BrickColor.new(26)
339
340
				bombmesh = Instance.new("SpecialMesh",bomb)
341
342
				bombmesh.MeshType = "FileMesh"
343
344
				bombmesh.Scale = Vector3.new(0.2,0.2,0.2)
345
346
				bombmesh.MeshId = "2ff5ca3d3c439e4a558cb67d4a96f342"
347
348
				bomb.CFrame = planebase.CFrame * CFrame.new(0,-5,0)
349
350
				bomb.CFrame = bomb.CFrame * CFrame.Angles(0.4,0,0)
351
352
				bomb:BreakJoints()
353
354
				wait(0.1)
355
356
				bomb.Touched:connect(function()
357
358
					local ex = Instance.new("Explosion")
359
360
					ex.Parent = workspace
361
362
					ex.Position = bomb.Position
363
364
					ex.BlastRadius = 1400
365
366
					ex.BlastPressure = 400000
367
368
					bomb:remove()
369
370
				end)
371
372
			elseif (key == "f") then
373
374
				local bom = miss:clone()
375
376
				bom.Parent = workspace
377
378
				bom.CFrame = miss.CFrame * CFrame.new(0,-5,-30)
379
380
381
382
				local bom2 = miss2:clone()
383
384
				bom2.Parent = workspace
385
386
				bom2.CFrame = miss2.CFrame * CFrame.new(0,-5,-30)
387
388
389
390
				bom:BreakJoints()
391
392
				bom2:BreakJoints()
393
394
395
396
				local b = Instance.new("BodyVelocity",bom)
397
398
				b.velocity = bom.CFrame.lookVector * 250
399
400
				b.P = 900000001
401
402
403
404
				local b2 = b:clone()
405
406
				b2.Parent = bom2
407
408
409
410
				bom.Touched:connect(function()
411
412
					local ex = Instance.new("Explosion")
413
414
					ex.Parent = workspace
415
416
					ex.Position = bom.Position
417
418
					ex.BlastRadius = 7
419
420
					ex.BlastPressure = 300000
421
422
					bom:remove()
423
424
				end)
425
426
				bom2.Touched:connect(function()
427
428
					local ex = Instance.new("Explosion")
429
430
					ex.Parent = workspace
431
432
					ex.Position = bom2.Position
433
434
					ex.BlastRadius = 7
435
436
					ex.BlastPressure = 300000
437
438
					bom2:remove()
439
440
				end)
441
442
			end
443
444
		end)
445
446
	end
447
448
end)
449
450
451
452
sp.Deselected:connect(function()
453
454
	mod:remove()
455
456
	hold = false
457
458
end)