cr8brooo

Untitled

Mar 2nd, 2018
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.33 KB | None | 0 0
  1. --By Rufus14
  2. mouse = game.Players.LocalPlayer:GetMouse()
  3. gun = Instance.new("Part", game.Players.LocalPlayer.Character)
  4. gun.Size = Vector3.new(0.5, 1, 2)
  5. gun.CanCollide = false
  6. gun:BreakJoints()
  7. weld = Instance.new("Weld", gun)
  8. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  9. weld.Part1 = gun
  10. weld.C0 = weld.C0 * CFrame.new(-0.2,-1.7,-0.25) * CFrame.Angles(0,1.6,-1.53)
  11. mesh = Instance.new("SpecialMesh", gun)
  12. mesh.MeshId = "rbxassetid://623102664"
  13. mesh.TextureId = "rbxassetid://623102879"
  14. mesh.Scale = Vector3.new(0.01,0.01,0.01)
  15. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  16. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  17. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  18. rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  19. rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  20. shooting = false
  21. for i = 1,2 do
  22. wait()
  23. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.03)
  24. end
  25. for i = 1,2 do
  26. wait()
  27. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.07)
  28. end
  29. for i = 1,7 do
  30. wait()
  31. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.17)
  32. end
  33. for i = 1,2 do
  34. wait()
  35. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.07)
  36. end
  37. for i = 1,2 do
  38. wait()
  39. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.03)
  40. end
  41. function shoot()
  42. if not shooting then
  43. shooting = true
  44. local shotsound = Instance.new("Sound", gun)
  45. shotsound.EmitterSize = 1
  46. shotsound.SoundId = "rbxassetid://139593133"
  47. shotsound.Volume = 3
  48. shotsound:Play()
  49. local missle = Instance.new("Part", workspace)
  50. missle.Size = Vector3.new(0.05,0.05,0.05)
  51. missle.BrickColor = BrickColor.new("New Yeller")
  52. missle:BreakJoints()
  53. missle.CFrame = gun.CFrame
  54. local velo = Instance.new("BodyVelocity", missle)
  55. velo.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  56. velo.Velocity = mouse.Hit.lookVector * 190
  57. for i = 1,2 do
  58. weld.C0 = weld.C0 * CFrame.Angles(0,0,0.14)
  59. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,0.14)
  60. end
  61. for i = 1,2 do
  62. wait()
  63. weld.C0 = weld.C0 * CFrame.Angles(0,0,-0.07)
  64. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.07)
  65. end
  66. local function kill(part)
  67. local hum = part.Parent:findFirstChild("Humanoid")
  68. local torso = part.Parent:findFirstChild("Torso")
  69. local larm = part.Parent:findFirstChild("Left Arm")
  70. local rarm = part.Parent:findFirstChild("Right Arm")
  71. local lleg = part.Parent:findFirstChild("Left Leg")
  72. local rleg = part.Parent:findFirstChild("Right Leg")
  73. missle:destroy()
  74. if hum ~= nil then
  75. if torso then
  76. hum.Health = hum.Health - math.random(25,68)
  77. local shotsound1 = Instance.new("Sound", torso)
  78. shotsound1:Play()
  79. shotsound1.EmitterSize = 1
  80. shotsound1.SoundId = "rbxassetid://144884872"
  81. shotsound1.Volume = 2
  82. shotsound1:Play()
  83. local shotsound1 = Instance.new("Sound", torso)
  84. shotsound1:Play()
  85. shotsound1.EmitterSize = 1
  86. shotsound1.SoundId = "rbxassetid://175272131"
  87. shotsound1.Volume = 2
  88. shotsound1:Play()
  89. using = false
  90. hit = Instance.new("Sound", torso)
  91. hit.SoundId = "rbxassetid://260430060"
  92. hit.Volume = 5
  93. hit1 = Instance.new("Sound", torso)
  94. hit1.SoundId = "rbxassetid://138087186"
  95. hit1.Volume = 5
  96. hit2 = Instance.new("Sound", torso)
  97. hit2.SoundId = "rbxassetid://131237241"
  98. hit2.Volume = 5
  99. hit3 = Instance.new("Sound", torso)
  100. hit3.SoundId = "rbxassetid://278062209"
  101. hit3.Volume = 5
  102. hit3.TimePosition = 0.33
  103. print("You killed "..hum.Parent.Name)
  104. hum.PlatformStand = true
  105. ----------
  106. local lhip = torso:findFirstChild("Left Hip")
  107. if lhip then
  108. ---
  109. torso["Left Hip"]:destroy()
  110. local head = game.Players.LocalPlayer.Character.Head
  111. local glue = Instance.new("Glue", torso)
  112. glue.Part0 = torso
  113. glue.Part1 = torso.Parent["Left Leg"]
  114. glue.Name = "Left leg"
  115. local collider = Instance.new("Part", torso.Parent["Left Leg"])
  116. collider.Position = Vector3.new(0,999,0)
  117. collider.Size = Vector3.new(1.7, 1, 1)
  118. collider.Shape = "Cylinder"
  119. local weld = Instance.new("Weld", collider)
  120. weld.Part0 = torso.Parent["Left Leg"]
  121. weld.Part1 = collider
  122. weld.C0 = CFrame.Angles(0, 0, 80)
  123. collider.TopSurface = "Smooth"
  124. collider.BottomSurface = "Smooth"
  125. collider.formFactor = "Symmetric"
  126. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  127. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  128. collider.Transparency = 1
  129. end
  130. local rhip = torso:findFirstChild("Right Hip")
  131. if rhip then
  132. ------------
  133. torso["Right Hip"]:destroy()
  134. local glue1 = Instance.new("Glue", torso)
  135. glue1.Part0 = torso
  136. glue1.Part1 = torso.Parent["Right Leg"]
  137. glue1.Name = "Right leg"
  138. local collider1 = Instance.new("Part", torso.Parent["Right Leg"])
  139. collider1.Position = Vector3.new(0,9999,0)
  140. collider1.Size = Vector3.new(1.7, 1, 1)
  141. collider1.Shape = "Cylinder"
  142. local weld1 = Instance.new("Weld", collider1)
  143. weld1.Part0 = torso.Parent["Right Leg"]
  144. weld1.Part1 = collider1
  145. weld1.C0 = CFrame.Angles(0, 0, 80)
  146. collider1.TopSurface = "Smooth"
  147. collider1.BottomSurface = "Smooth"
  148. collider1.formFactor = "Symmetric"
  149. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  150. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  151. collider1.Transparency = 1
  152. end
  153. ------------
  154. local rshoulder = torso:findFirstChild("Right Shoulder")
  155. if rshoulder then
  156. torso["Right Shoulder"]:destroy()
  157. local glue11 = Instance.new("Glue", torso)
  158. glue11.Part0 = torso
  159. glue11.Part1 = torso.Parent["Right Arm"]
  160. glue11.Name = "Right shoulder"
  161. local collider11 = Instance.new("Part", torso.Parent["Right Arm"])
  162. collider11.Position = Vector3.new(0,9999,0)
  163. collider11.Size = Vector3.new(1.8,1,1)
  164. collider11.Shape = "Cylinder"
  165. local weld11 = Instance.new("Weld", collider11)
  166. weld11.Part0 = torso.Parent["Right Arm"]
  167. weld11.Part1 = collider11
  168. weld11.C0 = CFrame.Angles(0, 0, 80)
  169. collider11.TopSurface = "Smooth"
  170. collider11.BottomSurface = "Smooth"
  171. collider11.formFactor = "Symmetric"
  172. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  173. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  174. collider11.Transparency = 1
  175. end
  176. ------------
  177. local lshoulder = torso:findFirstChild("Left Shoulder")
  178. if lshoulder then
  179. torso["Left Shoulder"]:destroy()
  180. local glue111 = Instance.new("Glue", torso)
  181. glue111.Part0 = torso
  182. glue111.Part1 = torso.Parent["Left Arm"]
  183. glue111.Name = "Left shoulder"
  184. local collider111 = Instance.new("Part", torso.Parent["Left Arm"])
  185. collider111.Position = Vector3.new(0,9999,0)
  186. collider111.Size = Vector3.new(1.8,1,1)
  187. collider111.Shape = "Cylinder"
  188. local weld111 = Instance.new("Weld", collider111)
  189. weld111.Part0 = torso.Parent["Left Arm"]
  190. weld111.Part1 = collider111
  191. weld111.C0 = CFrame.Angles(0, 0, 80)
  192. collider111.TopSurface = "Smooth"
  193. collider111.BottomSurface = "Smooth"
  194. collider111.formFactor = "Symmetric"
  195. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  196. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  197. collider111.Transparency = 1
  198. end
  199. -----------------
  200. local sensoring = Instance.new("Part", torso)
  201. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  202. sensoring.CanCollide = false
  203. sensoring.Position = torso.Position
  204. local welder = Instance.new("Weld", sensoring)
  205. welder.Part0 = torso
  206. welder.Part1 = sensoring
  207. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  208. sensoring.Transparency = 1
  209. -----------------
  210. local sensoring1 = Instance.new("Part", torso)
  211. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  212. sensoring1.CanCollide = false
  213. sensoring1.Position = torso.Position
  214. local welder1 = Instance.new("Weld", sensoring)
  215. welder1.Part0 = torso
  216. welder1.Part1 = sensoring1
  217. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  218. sensoring1.Transparency = 1
  219. local function touch()
  220. if not using then
  221. using = true
  222. local Math = math.random(1,4)
  223. if Math == 1 then
  224. hit:Play()
  225. end
  226. if Math == 2 then
  227. hit1:Play()
  228. end
  229. if Math == 3 then
  230. hit2:Play()
  231. end
  232. if Math == 4 then
  233. hit3:Play()
  234. end
  235. wait(0.1)
  236. using = false
  237. end
  238. end
  239. sensoring.Touched:connect(touch)
  240. sensoring1.Touched:connect(touch)
  241. while true do
  242. wait(0.3)
  243. hum.PlatformStand = true
  244. end
  245.  
  246. --di ent
  247. end
  248. end
  249. end
  250. missle.Touched:connect(kill)
  251. for i = 1,2 do
  252. wait()
  253. weld.C0 = weld.C0 * CFrame.Angles(0,0,-0.07)
  254. rhandweld.C0 = rhandweld.C0 * CFrame.Angles(0,0,-0.07)
  255. end
  256. shooting = false
  257. wait(3)
  258. shotsound:destroy()
  259. end
  260. end
  261. mouse.Button1Down:connect(shoot)
Add Comment
Please, Sign In to add comment