Advertisement
c00lkiddv2016

Ducky ROBLOX

May 28th, 2016
920
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.72 KB | None | 0 0
  1.  
  2. me = game.Players.LocalPlayer
  3.  
  4. if script.Parent.className ~= "HopperBin" then
  5. h = Instance.new("HopperBin")
  6. h.Parent = me.Backpack
  7. h.Name = "Rocket"
  8. script.Parent = h
  9. end
  10. sp = script.Parent
  11.  
  12. function property(part, parent, x, y, z, color, tra, re)
  13. part.Parent = parent
  14. part.formFactor = 0
  15. part.TopSurface = 0
  16. part.BottomSurface = 0
  17. part.Size = Vector3.new(x,y,z)
  18. part.BrickColor = BrickColor.new(color)
  19. part.Transparency = tra
  20. part.Reflectance = re
  21. end
  22.  
  23. function weld(weld,parent,part1,a,b,c,x,y,z)
  24. weld.Parent = parent
  25. weld.Part0 = weld.Parent
  26. weld.Part1 = part1
  27. weld.C1 = CFrame.fromEulerAnglesXYZ(x,y,z) * CFrame.new(a,b,c)
  28. end
  29.  
  30.  
  31. hold = false
  32.  
  33. speed = 0
  34. maxspeed = 150
  35.  
  36. sp.Selected:connect(function(mouse, key)
  37. mouse.Icon = " "
  38. if me.Character:findFirstChild("Duck") == nil then
  39. mod = Instance.new("Model")
  40. mod.Parent = me.Character
  41. mod.Name = "Duck"
  42. plane = Instance.new("Seat")
  43. property(plane, mod, 2, 1, 2, "Bright red", 0, 0)
  44. plane.Position = Vector3.new(0,7,0)
  45.  
  46. planebase = Instance.new("Part")
  47. property(planebase, mod, 7, 1, 14, "Black metallic")
  48.  
  49. weld1 = Instance.new("Weld")
  50. weld(weld1, planebase, plane, 0, -0.5, 0, -0.1, 0, 0)
  51.  
  52. bv = Instance.new("BodyVelocity")
  53. bv.Parent = planebase
  54. bv.velocity = Vector3.new(0,0.01,0)
  55. bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
  56. bg = Instance.new("BodyGyro")
  57. bg.Parent = planebase
  58. bg.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
  59.  
  60. dec1 = Instance.new("Part")
  61. property(dec1, mod, 7, 1, 7, "Black metallic", 0, 0)
  62. weld2 = Instance.new("Weld")
  63. weld(weld2, planebase, dec1, 0, -3, -5, -1, 0, 0)
  64.  
  65. dec2 = Instance.new("Part")
  66. property(dec2, mod, 7, 1, 13, "Black metallic", 0, 0)
  67. dec2.CanCollide = false
  68. weld3 = Instance.new("Weld")
  69. weld(weld3, planebase, dec2, 0, -6, 3, 0, 0, 0)
  70.  
  71. dec3 = Instance.new("Part")
  72. property(dec3, mod, 7, 1, 2, "Black metallic", 0, 0)
  73. weld4 = Instance.new("Weld")
  74. weld(weld4, planebase, dec3, 0, -0.5, 7, -1, 0, 0)
  75.  
  76. dec4 = Instance.new("Part")
  77. property(dec4, mod, 7, 1, 5, "Navy blue", 0.6, 0.2)
  78. weld5 = Instance.new("Weld")
  79. weld(weld5, planebase, dec4, 0, -3.5, 8, -1.2, 0, 0)
  80.  
  81. dec5 = Instance.new("Part")
  82. property(dec5, mod, 1, 6, 9, "Black metallic", 0, 0)
  83. weld6 = Instance.new("Weld")
  84. weld(weld6, planebase, dec5, 3.05, -3, 1.5, 0, 0, 0)
  85.  
  86. dec6 = Instance.new("Part")
  87. property(dec6, mod, 1, 6, 9, "Black metallic", 0, 0)
  88. weld7 = Instance.new("Weld")
  89. weld(weld7, planebase, dec6, -3.05, -3, 1.5, 0, 0, 0)
  90.  
  91. dec7 = Instance.new("WedgePart")
  92. property(dec7, mod, 1, 6, 4, "Black metallic", 0, 0)
  93. weld8 = Instance.new("Weld")
  94. weld(weld8, planebase, dec7, -3.05, -3, -4.5, 0, 3.12, 0)
  95.  
  96. dec8 = Instance.new("WedgePart")
  97. property(dec8, mod, 1, 6, 4, "Black metallic", 0, 0)
  98. weld9 = Instance.new("Weld")
  99. weld(weld9, planebase, dec8, 3.05, -3, -4.5, 0, 3.12, 0)
  100.  
  101. dec9 = Instance.new("WedgePart")
  102. property(dec9, mod, 1, 6, 3, "Black metallic", 0, 0)
  103. weld10 = Instance.new("Weld")
  104. weld(weld10, planebase, dec9, 3.05, -3, 7.4, 3.12, 3.12, 0)
  105.  
  106. dec10 = Instance.new("WedgePart")
  107. property(dec10, mod, 1, 6, 3, "Black metallic", 0, 0)
  108. weld11 = Instance.new("Weld")
  109. weld(weld11, planebase, dec10, -3.05, -3, 7.4, 3.12, 3.12, 0)
  110.  
  111. wing = Instance.new("WedgePart")
  112. property(wing, mod, 1, 9, 13, "Black metallic", 0, 0)
  113. weld12 = Instance.new("Weld")
  114. weld(weld12, planebase, wing, -7.55, -2, 0.5, 0, 0, 1.57)
  115.  
  116. wing2 = Instance.new("WedgePart")
  117. property(wing2, mod, 1, 9, 13, "Black metallic", 0, 0)
  118. weld13 = Instance.new("Weld")
  119. weld(weld13, planebase, wing2, 7.55, -2, 0.5, 0, 0, -1.57)
  120.  
  121. miss = Instance.new("WedgePart")
  122. property(miss, mod, 1, 9, 13, "Dark grey metallic", 0, 0)
  123. mii = Instance.new("SpecialMesh",miss)
  124. mii.Scale = Vector3.new(0.7,0.7,0.7)
  125. mii.MeshType = "FileMesh"
  126. mii.MeshId = "http://roblox.com/asset/?id=2251534"
  127. weld14 = Instance.new("Weld")
  128. weld(weld14, planebase, miss, 6, -1, 0.5, 0, 0, -1.57)
  129.  
  130. miss2 = Instance.new("WedgePart")
  131. property(miss2, mod, 1, 1, 7, "Dark grey metallic", 0, 0)
  132. mii2 = Instance.new("SpecialMesh",miss2)
  133. mii2.Scale = Vector3.new(0.7,0.7,0.7)
  134. mii2.MeshType = "FileMesh"
  135. mii2.MeshId = "http://roblox.com/asset/?id=2251534"
  136. weld15 = Instance.new("Weld")
  137. weld(weld15, planebase, miss2, -6, -1, 0.5, 0, 0, -1.57)
  138.  
  139.  
  140. mouse.Button1Down:connect(function()
  141. hold = true
  142. while hold == true do
  143. bg.cframe = CFrame.new(planebase.Position, mouse.Hit.p)
  144. bv.velocity = planebase.CFrame.lookVector * speed
  145. speed = speed + 1
  146. if speed >= maxspeed then
  147. speed = maxspeed
  148. end
  149. wait()
  150. end
  151. end)
  152. mouse.Button1Up:connect(function()
  153. hold = false
  154. while hold == false do
  155. wait()
  156. speed = speed - 5
  157. if speed <= 0 then
  158. speed = 0
  159. end
  160. bv.velocity = planebase.CFrame.lookVector * speed
  161. end
  162. bv.velocity = Vector3.new(0,.2,0)
  163. end)
  164. mouse.KeyDown:connect(function(key)
  165. key = key:lower()
  166. if (key == "q") then
  167. local bomb = Instance.new("Part")
  168. bomb.Parent = workspace
  169. bomb.formFactor = 0
  170. bomb.Size = Vector3.new(2,2,6)
  171. bomb.BrickColor = BrickColor.new(26)
  172. bombmesh = Instance.new("SpecialMesh",bomb)
  173. bombmesh.MeshType = "FileMesh"
  174. bombmesh.Scale = Vector3.new(0.2,0.2,0.2)
  175. bombmesh.MeshId = "2ff5ca3d3c439e4a558cb67d4a96f342"
  176. bomb.CFrame = planebase.CFrame * CFrame.new(0,-5,0)
  177. bomb.CFrame = bomb.CFrame * CFrame.Angles(0.4,0,0)
  178. bomb:BreakJoints()
  179. wait(0.1)
  180. bomb.Touched:connect(function()
  181. local ex = Instance.new("Explosion")
  182. ex.Parent = workspace
  183. ex.Position = bomb.Position
  184. ex.BlastRadius = 14
  185. ex.BlastPressure = 400000
  186. bomb:remove()
  187. end)
  188. elseif (key == "f") then
  189. local bom = miss:clone()
  190. bom.Parent = workspace
  191. bom.CFrame = miss.CFrame * CFrame.new(0,-5,-30)
  192.  
  193. local bom2 = miss2:clone()
  194. bom2.Parent = workspace
  195. bom2.CFrame = miss2.CFrame * CFrame.new(0,-5,-30)
  196.  
  197. bom:BreakJoints()
  198. bom2:BreakJoints()
  199.  
  200. local b = Instance.new("BodyVelocity",bom)
  201. b.velocity = bom.CFrame.lookVector * 250
  202. b.P = 900000001
  203.  
  204. local b2 = b:clone()
  205. b2.Parent = bom2
  206.  
  207. bom.Touched:connect(function()
  208. local ex = Instance.new("Explosion")
  209. ex.Parent = workspace
  210. ex.Position = bom.Position
  211. ex.BlastRadius = 7
  212. ex.BlastPressure = 300000
  213. bom:remove()
  214. end)
  215. bom2.Touched:connect(function()
  216. local ex = Instance.new("Explosion")
  217. ex.Parent = workspace
  218. ex.Position = bom2.Position
  219. ex.BlastRadius = 7
  220. ex.BlastPressure = 300000
  221. bom2:remove()
  222. end)
  223. end
  224. end)
  225. end
  226. end)
  227.  
  228. sp.Deselected:connect(function()
  229. mod:remove()
  230. hold = false
  231. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement