Advertisement
IHackShootingGames

AP

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