Advertisement
casperspelar

4324

Nov 26th, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.01 KB | None | 0 0
  1. --HopperBin Pistol Gifted by xxxGhostxxxx, Regular Script!
  2. name = "xxsquidisrarexx"
  3. me = game.Players[name]
  4. char = me.Character
  5. torso = char.Torso
  6. if script.Parent.className ~= "HopperBin" then
  7. hop = Instance.new("HopperBin")
  8. hop.Parent = me.Backpack
  9. hop.Name = "Pistol"
  10. script.Parent = hop
  11. end
  12. sp = script.Parent
  13. hold1 = Instance.new("Part")
  14. hold1.Parent = char
  15. hold1.Shape = "Ball"
  16. hold1.Size = Vector3.new(1,1,1)
  17. hold1.Transparency = 0
  18. m = Instance.new("SpecialMesh")
  19. m.Parent = hold1
  20. m.Scale = Vector3.new(.6,.6,.6)
  21. m.MeshType = "Sphere"
  22. hold2 = hold1:clone()
  23. hold2.Parent = char
  24. hw1 = Instance.new("Weld")
  25. hw1.Parent = torso
  26. hw1.Part0 = hw1.Parent
  27. hw1.Part1 = hold1
  28. hw1.C1 = CFrame.new(-1.5,-0.5,0)
  29. hw2 = Instance.new("Weld")
  30. hw2.Parent = torso
  31. hw2.Part0 = hw2.Parent
  32. hw2.Part1 = hold2
  33. hw2.C1 = CFrame.new(1.5,-0.5,0)
  34. rarm = char["Right Arm"]
  35. larm = char["Left Arm"]
  36. left = Instance.new("Weld")
  37. left.Parent = hold2
  38. left.Part0 = nil
  39. left.Part1 = nil
  40. left.C1 = CFrame.new(0,0.5,0)
  41. right = Instance.new("Weld")
  42. right.Parent = hold1
  43. right.Part0 = nil
  44. right.Part1 = nil
  45. right.C1 = CFrame.new(0,0.5,0)
  46. leftorig = CFrame.fromEulerAnglesXYZ(1.57,0,0.7) * CFrame.new(0.5,-0.9,0)
  47. rightorig = CFrame.fromEulerAnglesXYZ(1.57,0,-0.04) * CFrame.new(-0.3,-0.3,0)
  48. gunorig = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,0,0)
  49. gunparts = {}
  50. gun1 = Instance.new("Part")
  51. gun1.Parent = game.Lighting
  52. gun1.Name = "Handle"
  53. gun1.formFactor = 0
  54. gun1.Size = Vector3.new(1,1,1)
  55. gun1.TopSurface = 0
  56. gun1.BottomSurface = 0
  57. gun1:BreakJoints()
  58. table.insert(gunparts, gun1)
  59. mesh1 = Instance.new("SpecialMesh")
  60. mesh1.Parent = gun1
  61. mesh1.MeshType = "Brick"
  62. mesh1.Scale = Vector3.new(0.4,1.3,0.5)
  63. gun2 = gun1:clone()
  64. gun2.Parent = game.Lighting
  65. gun2.Name = "Handle2"
  66. gun2.Size = Vector3.new(1,2,1)
  67. gun2:BreakJoints()
  68. gun2.Mesh:remove()
  69. table.insert(gunparts, gun2)
  70. mesh2 = Instance.new("SpecialMesh")
  71. mesh2.MeshType = "Brick"
  72. mesh2.Parent = gun2
  73. mesh2.Scale = Vector3.new(0.7,0.9,0.7)
  74. gun3 = gun2:clone()
  75. gun3.Parent = game.Lighting
  76. gun3.Name = "Handle3"
  77. gun3:BreakJoints()
  78. gun3.BrickColor = BrickColor.new("Lime green")
  79. table.insert(gunparts, gun3)
  80. gun3.Mesh.Scale = Vector3.new(0.74,0.8,0.74)
  81. gun4 = gun2:clone()
  82. gun4.Parent = game.Lighting
  83. gun4.Name = "Handle4"
  84. gun4.Size = Vector3.new(1,1,1)
  85. gun4:BreakJoints()
  86. gun4.BrickColor = BrickColor.new("Lime green")
  87. table.insert(gunparts, gun4)
  88. gun4.Mesh:remove()
  89. mesh4 = Instance.new("CylinderMesh")
  90. mesh4.Scale = Vector3.new(0.34,0.2,0.34)
  91. mesh4.Parent = gun4
  92. gun5 = gun4:clone()
  93. gun5.Parent = game.Lighting
  94. gun5.Name = "Handle5"
  95. gun5:breakJoints()
  96. gun5.BrickColor = BrickColor.new("Really black")
  97. table.insert(gunparts, gun5)
  98. gun5.Mesh.Scale = Vector3.new(0.28,0.05,0.28)
  99. coroutine.resume(coroutine.create(function()
  100. while true do
  101. wait()
  102. if run == true then
  103. for i=1, 8 do
  104. wait()
  105. left.C0 = left.C0 * CFrame.fromEulerAnglesXYZ(-0.35,0,0)
  106. right.C0 = right.C0 * CFrame.fromEulerAnglesXYZ(0.35,0,0)
  107. end
  108. for i=1, 8 do
  109. wait()
  110. left.C0 = left.C0 * CFrame.fromEulerAnglesXYZ(0.35,0,0)
  111. right.C0 = right.C0 * CFrame.fromEulerAnglesXYZ(-0.35,0,0)
  112. end
  113. end
  114. end
  115. end))
  116. function selected(mouse,key)
  117. char.Humanoid.Running:connect(function(speed)
  118. if speed < 1 then
  119. run = false
  120. left.C0 = leftorig
  121. right.C0 = rightorig
  122. wait(0.4)
  123. left.C0 = leftorig
  124. right.C0 = rightorig
  125. else
  126. run = true
  127. left.C0 = CFrame.fromEulerAnglesXYZ(1,0,0)
  128. right.C0 = CFrame.fromEulerAnglesXYZ(-1,0,0)
  129. end
  130. end)
  131. mouse.Button1Down:connect(function()
  132. local bullet = Instance.new("Part")
  133. bullet.Parent = workspace
  134. bullet.formFactor = 0
  135. bullet.Size = Vector3.new(1,1,1)
  136. bullet.CanCollide = false
  137. bullet.CFrame = CFrame.new(gun5.Position, mouse.Hit.p)
  138. bullet.CFrame = CFrame.new(bullet.Position + (bullet.CFrame.lookVector * 1), mouse.Hit.p)
  139. local m = Instance.new("SpecialMesh")
  140. m.Parent = bullet
  141. m.MeshType = "FileMesh"
  142. m.Scale = Vector3.new(0.45,0.45,0.3)
  143. m.MeshId = "http://www.roblox.com/asset/?id=2697549"
  144. m.TextureId = "http://www.roblox.com/asset/?id=2697544"
  145. local bv = Instance.new("BodyForce")
  146. bv.Parent = bullet
  147. bv.force = bullet.CFrame.lookVector * 6000
  148. bv.force = bv.force + Vector3.new(0,300,0)
  149. local tee = true
  150. bullet:BreakJoints()
  151. coroutine.resume(coroutine.create(function()
  152. while tee == true do
  153. wait()
  154. local op = bullet:clone()
  155. op.Parent = workspace
  156. op.Mesh.TextureId = "Clear"
  157. op.Transparency = 0.3
  158. op.BrickColor = BrickColor.new("New Yeller")
  159. op.Anchored = true
  160. op.Mesh.Scale = Vector3.new(0.4,0.4,3)
  161. coroutine.resume(coroutine.create(function()
  162. for i=1, 10 do
  163. wait()
  164. op.Transparency = op.Transparency + 0.08
  165. end
  166. op:remove()
  167. end))
  168. end
  169. end))
  170. coroutine.resume(coroutine.create(function()
  171. wait(4)
  172. tee = false
  173. bullet:remove()
  174. end))
  175. bullet.Touched:connect(function(hit)
  176. if hit.Parent.Name == name then return end
  177. local hum = hit.Parent:findFirstChild("Humanoid")
  178. if hum ~= nil then
  179. tee = false
  180. bullet:remove()
  181. hum.Health = hum.Health - 10000
  182. end
  183. end)
  184. for i=1, 2 do
  185. wait()
  186. left.C0 = left.C0 * CFrame.fromEulerAnglesXYZ(0.1,0,0)
  187. right.C0 = right.C0 * CFrame.fromEulerAnglesXYZ(0.1,0,0)
  188. end
  189. for i=1, 2 do
  190. wait()
  191. left.C0 = left.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0)
  192. right.C0 = right.C0 * CFrame.fromEulerAnglesXYZ(-0.1,0,0)
  193. end
  194. end)
  195. left.Part0 = left.Parent
  196. left.Part1 = larm
  197. left.C0 = leftorig
  198. right.Part0 = right.Parent
  199. right.Part1 = rarm
  200. right.C0 = rightorig
  201. gunweld = Instance.new("Weld")
  202. gunweld.Parent = rarm
  203. gunweld.Part0 = gunweld.Parent
  204. gunweld.Part1 = gun1
  205. gunweld.C1 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0.3,1.1,0.07)
  206. gunweld.C0 = gunorig
  207. gunweld2 = Instance.new("Weld")
  208. gunweld2.Parent = gun1
  209. gunweld2.Part0 = gunweld2.Parent
  210. gunweld2.Part1 = gun2
  211. gunweld2.C1 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,-0.67,0.5)
  212. gunweld3 = Instance.new("Weld")
  213. gunweld3.Parent = gun1
  214. gunweld3.Part0 = gunweld3.Parent
  215. gunweld3.Part1 = gun3
  216. gunweld3.C1 = CFrame.fromEulerAnglesXYZ(1.57,0,0) * CFrame.new(0,-0.73,0.3)
  217. gunweld4 = Instance.new("Weld")
  218. gunweld4.Parent = gun2
  219. gunweld4.Part0 = gunweld4.Parent
  220. gunweld4.Part1 = gun4
  221. gunweld4.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.9,0)
  222. gunweld5 = Instance.new("Weld")
  223. gunweld5.Parent = gun4
  224. gunweld5.Part0 = gunweld5.Parent
  225. gunweld5.Part1 = gun5
  226. gunweld5.C1 = CFrame.fromEulerAnglesXYZ(0,0,0) * CFrame.new(0,-0.09,0)
  227. for i=1, #gunparts do
  228. gunparts[i].Parent = char
  229. end
  230. end
  231. function deselected()
  232. left.C0 = CFrame.new(0,0,0)
  233. left.Part0 = nil
  234. left.Part1 = nil
  235. right.C0 = CFrame.new(0,0,0)
  236. right.Part0 = nil
  237. right.Part1 = nil
  238. for i=1, #gunparts do
  239. gunparts[i].Parent = game.Lighting
  240. end
  241. end
  242. sp.Deselected:connect(deselected)
  243. sp.Selected:connect(selected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement