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