Thot27Bits

Roblox Script Showcase A Gun

Oct 19th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.30 KB | None | 0 0
  1. Player = game:GetService("Players").LocalPlayer
  2. Character = Player.Character
  3. PlayerGui = Player.PlayerGui
  4. Backpack = Player.Backpack
  5. Torso = Character.Torso
  6. Head = Character.Head
  7. Humanoid = Character.Humanoid
  8. LeftArm = Character["Left Arm"]
  9. LeftLeg = Character["Left Leg"]
  10. RightArm = Character["Right Arm"]
  11. RightLeg = Character["Right Leg"]
  12. LS = Torso["Left Shoulder"]
  13. LH = Torso["Left Hip"]
  14. RS = Torso["Right Shoulder"]
  15. RH = Torso["Right Hip"]
  16. Neck = Torso.Neck
  17. Neck = Torso.Neck
  18. it=Instance.new
  19. vt=Vector3.new
  20. cf=CFrame.new
  21. euler=CFrame.fromEulerAnglesXYZ
  22. angles=CFrame.Angles
  23.  
  24. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  25. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  26. attack = false
  27. attacktype = 1
  28. damage = 5
  29. oridamage = 50
  30. attackdebounce = false
  31. offset=nil
  32. MMouse=nil
  33. count=0
  34. reloading=false
  35. newpos2=nil
  36. dynamiteammo=false
  37. local bprt1=nil
  38. --player
  39. player = nil
  40. --save shoulders
  41. RSH, LSH = nil, nil
  42. --welds
  43. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  44. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  45.  
  46.  
  47. if Character:findFirstChild("Loch-n-Load",true) ~= nil then
  48. Character:findFirstChild("Loch-n-Load",true).Parent = nil
  49. end
  50.  
  51.  
  52. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  53. local fp = it("Part")
  54. fp.Material = "SmoothPlastic"
  55. fp.formFactor = formfactor
  56. fp.Parent = parent
  57. fp.Reflectance = reflectance
  58. fp.Transparency = transparency
  59. fp.CanCollide = false
  60. fp.BrickColor = brickcolor
  61. fp.Name = name
  62. fp.Size = size
  63. fp.Position = Torso.Position
  64. fp.BottomSurface="SmoothNoOutlines"
  65. fp.TopSurface="SmoothNoOutlines"
  66. fp.BottomSurface="SmoothNoOutlines"
  67. fp.RightSurface="SmoothNoOutlines"
  68. fp.LeftSurface="SmoothNoOutlines"
  69. fp:BreakJoints()
  70. return fp
  71. end
  72.  
  73. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  74. local mesh = it(Mesh)
  75. mesh.Parent = part
  76. if Mesh=="SpecialMesh" then
  77. mesh.MeshType = meshtype
  78. mesh.MeshId = meshid
  79. end
  80. mesh.Offset=offset
  81. mesh.Scale=scale
  82. return mesh
  83. end
  84.  
  85. function weld(parent,part0,part1,c0)
  86. local weld = it("Weld")
  87. weld.Parent = parent
  88. weld.Part0 = part0
  89. weld.Part1 = part1
  90. weld.C0 = c0
  91. return weld
  92. end
  93.  
  94. local modelzorz = Instance.new("Model")
  95. modelzorz.Parent = Character
  96. modelzorz.Name = "Loch-n-Load"
  97.  
  98. local prt1=part(3,modelzorz,0,1,BrickColor.new("Really black"),"Part1",vt(1,1,1))
  99. local prt2=part(3,modelzorz,0,0,BrickColor.new("Navy blue"),"Part2",vt(1,1,1))
  100. local prt3=part(3,modelzorz,0,0,BrickColor.new("Navy blue"),"Part3",vt(1,1,1))
  101. local prt4=part(3,modelzorz,0,0,BrickColor.new("Navy blue"),"Part4",vt(1,1,1))
  102. local prt5=part(3,modelzorz,0,0,BrickColor.new("Navy blue"),"Part5",vt(1,1,1))
  103. local prt6=part(3,modelzorz,0,0,BrickColor.new("Navy blue"),"Part6",vt(1,1,1))
  104. local prt7=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part7",vt(1,1,1))
  105. local prt8=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part8",vt(1,1,1))
  106. local prt9=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part9",vt(1,1,1))
  107. local prt10=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part10",vt(1,1,1))
  108. local prt11=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part11",vt(1,1,1))
  109. local prt12=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part12",vt(1,1,1))
  110. local prt13=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part13",vt(1,1,1))
  111. local prt14=part(3,modelzorz,0,0,BrickColor.new("Light stone grey"),"Part14",vt(1,1,1))
  112. local prt15=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part15",vt(1,1,1))
  113. local prt16=part(3,modelzorz,0,0,BrickColor.new("Light stone grey"),"Part16",vt(1,1,1))
  114. local prt17=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part17",vt(1,1,1))
  115. local prt18=part(3,modelzorz,0,0,BrickColor.new("Navy blue"),"Part18",vt(1,1,1))
  116. local prt19=part(3,modelzorz,0,0,BrickColor.new("Navy blue"),"Part19",vt(1,1,1))
  117. local prt20=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part20",vt(1,1,1))
  118. local prt21=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part21",vt(1,1,1))
  119. local prt22=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part22",vt(1,1,1))
  120. local prt23=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part23",vt(1,1,1))
  121. local prt24=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part24",vt(1,1,1))
  122. local prt25=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part25",vt(1,1,1))
  123. local prt26=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part26",vt(1,1,1))
  124.  
  125. local msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
  126. local msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(0.6,1.6,0.8))
  127. local msh3=mesh("BlockMesh",prt3,"","",vt(0,0,0),vt(0.6,1,0.8))
  128. local msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(0.7,1,1))
  129. local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(0.7,0.5,1.2))
  130. local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(0.6,0.6,0.8))
  131. local msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(0.7,0.2,1.01))
  132. local msh8=mesh("BlockMesh",prt8,"","",vt(0,0,0),vt(0.5,0.1,0.8))
  133. local msh9=mesh("CylinderMesh",prt9,"","",vt(0,0,0),vt(0.5,0.4,0.5))
  134. local msh10=mesh("CylinderMesh",prt10,"","",vt(0,0,0),vt(0.2,0.5,0.2))
  135. local msh11=mesh("BlockMesh",prt11,"","",vt(0,0,0),vt(0.5,0.8,0.8))
  136. local msh12=mesh("BlockMesh",prt12,"","",vt(0,0,0),vt(0.7,0.4,1))
  137. local msh13=mesh("CylinderMesh",prt13,"","",vt(0,0,0),vt(0.5,3,0.5))
  138. local msh14=mesh("CylinderMesh",prt14,"","",vt(0,0,0),vt(0.4,3.01,0.4))
  139. local msh15=mesh("CylinderMesh",prt15,"","",vt(0,0,0),vt(0.5,3,0.5))
  140. local msh16=mesh("CylinderMesh",prt16,"","",vt(0,0,0),vt(0.4,3.01,0.4))
  141. local msh17=mesh("BlockMesh",prt17,"","",vt(0,0,0),vt(0.5,1.2,0.4))
  142. local msh18=mesh("BlockMesh",prt18,"","",vt(0,0,0),vt(0.6,1.2,0.21))
  143. local msh19=mesh("BlockMesh",prt19,"","",vt(0,0,0),vt(0.6,1,0.4))
  144. local msh20=mesh("SpecialMesh",prt20,"Wedge","",vt(0,0,0),vt(0.2,0.2,0.25))
  145. local msh21=mesh("BlockMesh",prt21,"","",vt(0,0,0),vt(0.2,0.4,0.4))
  146. local msh22=mesh("BlockMesh",prt22,"","",vt(0,0,0),vt(0.2,0.4,0.2))
  147. local msh23=mesh("CylinderMesh",prt23,"","",vt(0,0,0),vt(0.6,0.2,0.6))
  148. local msh24=mesh("CylinderMesh",prt24,"","",vt(0,0,0),vt(0.6,0.2,0.6))
  149. local msh25=mesh("BlockMesh",prt25,"","",vt(0,0,0),vt(0.1,0.2,0.2))
  150. local msh26=mesh("CylinderMesh",prt26,"","",vt(0,0,0),vt(0.1,0.3,0.1))
  151.  
  152. local wld1=weld(prt1,prt1,Torso,euler(1.57,0,0)*cf(-1,-2,-1.5))
  153. local wld2=weld(prt2,prt2,prt1,euler(1,0,0)*cf(0,0,0))
  154. local wld3=weld(prt3,prt3,prt2,euler(1,0,0)*cf(0,0.7,-0.4))
  155. local wld4=weld(prt4,prt4,prt3,euler(-0.43,0,0)*cf(0,0.8,0))
  156. local wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,0.6,-0.1))
  157. local wld6=weld(prt6,prt6,prt2,euler(0.57,0,0)*cf(0,-0.8,0))
  158. local wld7=weld(prt7,prt7,prt6,euler(0,0,0)*cf(0,-0.4,-0.1))
  159. local wld8=weld(prt8,prt8,prt7,euler(0,0,0)*cf(0,-0.1,0.8))
  160. local wld9=weld(prt9,prt9,prt8,euler(0,0,1.57)*cf(0,-0.15,0.5))
  161. local wld10=weld(prt10,prt10,prt9,euler(0,0,0)*cf(0,0,0))
  162. local wld11=weld(prt11,prt11,prt10,euler(0,0,-1.57)*cf(0.3,0,-0.5))
  163. local wld12=weld(prt12,prt12,prt11,euler(0,0,0)*cf(0,0.24,-0.8))
  164. local wld13=weld(prt13,prt13,prt12,euler(0,0,0)*cf(0,-1.25,0.22))
  165. local wld14=weld(prt14,prt14,prt13,euler(0,0,0)*cf(0,0,0))
  166. local wld15=weld(prt15,prt15,prt12,euler(0,0,0)*cf(0,-1.25,-0.22))
  167. local wld16=weld(prt16,prt16,prt15,euler(0,0,0)*cf(0,0,0))
  168. local wld17=weld(prt17,prt17,prt11,euler(0,0,0)*cf(0,-0.8,-0.2))
  169. local wld18=weld(prt18,prt18,prt17,euler(0,0,0)*cf(0,-0.8,0.1))
  170. local wld19=weld(prt19,prt19,prt17,euler(0,0,0)*cf(0,-1,0))
  171. local wld20=weld(prt20,prt20,prt7,euler(-1.57,0,3.14)*cf(0,0,-0.6))
  172. local wld21=weld(prt21,prt21,prt12,euler(0,0,0)*cf(0,0,-0.55))
  173. local wld22=weld(prt22,prt22,prt21,euler(0,0,0)*cf(0,-0.4,0))
  174. local wld23=weld(prt23,prt23,prt13,euler(0,0,0)*cf(0,-1,0))
  175. local wld24=weld(prt24,prt24,prt15,euler(0,0,0)*cf(0,-1,0))
  176. local wld25=weld(prt25,prt25,prt24,euler(0,0,0)*cf(0,0,-0.35))
  177. local wld26=weld(prt26,prt26,prt25,euler(0,0,1.57)*cf(0,0,0))
  178.  
  179. function bomb()
  180. dmode=Instance.new("Model")
  181. dmode.Parent=modelzorz
  182. dmode.Name="Bomb"
  183. local bprt1=part(3,dmode,0,0,BrickColor.new("Really black"),"Bomb Part1",vt(1,1,1))
  184. bprt1.CFrame=prt25.CFrame
  185. local bprt2=part(3,dmode,0,0,BrickColor.new("Navy blue"),"Bomb Part2",vt(1,1,1))
  186. local bprt3=part(3,dmode,0,0,BrickColor.new("Navy blue"),"Bomb Part3",vt(1,1,1))
  187.  
  188. local bmsh1=mesh("CylinderMesh",bprt1,"","",vt(0,0,0),vt(0.5,0.7,0.5))
  189. local bmsh2=mesh("CylinderMesh",bprt2,"","",vt(0,0,0),vt(0.51,0.2,0.51))
  190. local bmsh3=mesh("SpecialMesh",bprt3,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  191.  
  192. local bwld1=weld(bprt1,bprt1,prt24,euler(0,0,0)*cf(0,0,0))
  193. local bwld2=weld(bprt2,bprt2,bprt1,euler(0,0,0)*cf(0,0.1,0))
  194. local bwld3=weld(bprt3,bprt3,bprt1,euler(0,0,0)*cf(0,-0.3,0))
  195. bprt1.CFrame=prt24.CFrame
  196. coroutine.resume(coroutine.create(function(Weld,BombPart)
  197. wait()
  198. Weld.Parent=nil
  199. BombPart.CFrame=prt25.CFrame
  200. end),bwld1,bprt1)
  201. return dmode,bprt1
  202. end
  203. --local mode,bprt1=bomb()
  204. if (script.Parent.className ~= "HopperBin") then
  205. Tool = Instance.new("HopperBin")
  206. Tool.Parent = Backpack
  207. Tool.Name = "Loch-n-Load"
  208. script.Parent = Tool
  209. end
  210. Bin = script.Parent
  211.  
  212. local bg = it("BodyGyro")
  213. bg.Parent = nil
  214.  
  215. so = function(id,par,vol,pit)
  216. coroutine.resume(coroutine.create(function()
  217. local sou = Instance.new("Sound",par or workspace)
  218. sou.Volume=vol
  219. sou.Pitch=pit or 1
  220. sou.SoundId=id
  221. wait()
  222. sou:play()
  223. wait(6)
  224. sou:Remove()
  225. end))
  226. end
  227. function unequipweld()
  228. wld1.Part1=Torso
  229. wld1.C0=euler(1.57,0,0)*cf(-1,-2,-1.5)
  230. end
  231.  
  232. function equipweld()
  233. wld1.Part1=RightArm
  234. wld1.C0=euler(0.57,0,0)*cf(0.5,0,-2)
  235. end
  236.  
  237. function hideanim()
  238. equipped=false
  239. wait(0.1)
  240. Neck.C0=necko
  241. Neck.C1=necko2
  242. bg.Parent=nil
  243. unequipweld()
  244. end
  245.  
  246. function equipanim()
  247. equipped=true
  248. for i=0,1,0.1 do
  249. wait(0)
  250. RW.C0=cf(1.5, 0.5, 0) * euler(-1*i,0,0)
  251. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  252. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,0)
  253. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  254. end
  255. wait(0.1)
  256. equipweld()
  257. for i=0,1,0.1 do
  258. wait(0)
  259. wld1.C0=euler(0.57+0.8*i,0,0)*cf(0.5-0.5*i,1*i,-2+2*i)
  260. RW.C0=cf(1.5, 0.5, 0) * euler(-1+1.5*i,0,0)
  261. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  262. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,0)
  263. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  264. end
  265. for i=0,1,0.1 do
  266. wait(0)
  267. wld1.C0=euler(1.37-0.37*i,0,0)*cf(0,1-0.2*i,0)
  268. RW.C0=cf(1.5, 0.5, 0) * euler(-1+1.5+0.4*i,0,0)
  269. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4*i,0.6*i)
  270. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(1.2*i,0,0.2*i)
  271. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  272. Neck.C0=necko*angles(0,0,0.8*i)
  273. end
  274. Stance()
  275. end
  276.  
  277. numb=3.14-0.8
  278. function Stance()
  279. coroutine.resume(coroutine.create(function()
  280. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  281. bg.P = 3000
  282. --bg.Parent = Torso
  283. --wld1.C0 = euler(0,0,0) * cf(0,0,0)
  284. while equipped==true do
  285. wait()
  286. local pos4 = vt(workspace.CurrentCamera.CoordinateFrame.X,Head.Position.Y,workspace.CurrentCamera.CoordinateFrame.Z)
  287. bg.cframe = cf(Head.Position,pos4) * euler(0,numb,0) * cf(0,0,0) --cf(Torso.Position,MMouse.Hit.p) *
  288. bg.Parent = Torso
  289. local pos5 = Vector3.new(MMouse.Hit.p.x,Head.Position.Y,MMouse.Hit.p.z)
  290. offset=(Torso.Position.y-MMouse.Hit.p.y)/60
  291. mag=(Torso.Position-MMouse.Hit.p).magnitude/80
  292. offset=offset/mag
  293. if reloading==false and attack==false then
  294. Neck.C0=necko*euler(0,0,0.8)
  295. Neck.C1=necko2*euler(-offset,0,0)
  296. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  297. RW.C1=cf(0, 0.5, 0) * euler(offset,-0.4,0.6)
  298. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.2,0,0.2)
  299. LW.C1=cf(0, 0.5, 0) * euler(offset,0,0)
  300. end
  301. end
  302. for i=0,1,0.1 do
  303. wait()
  304. Neck.C0=necko*euler(0,0,0)
  305. Neck.C1=necko2*euler(0,0,0)
  306. bg.Parent=nil
  307. end
  308. end))
  309. end
  310.  
  311. function Dynamite()
  312. attack=true
  313. for i=0,1,0.1 do
  314. wait()
  315. numb=3.14-0.8+0.8*i
  316. Neck.C0=necko*euler(0,0,0.8-0.8*i)
  317. Neck.C1=necko2*euler(-offset+offset*i,0,0)
  318. RW.C0=cf(1.5, 0.5, 0) * euler(0.9-0.5*i,0,0)
  319. RW.C1=cf(0, 0.5, 0) * euler(offset-offset*i,-0.4+0.4*i,0.6-0.6*i)
  320. LW.C0=cf(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * euler(1.2-1.6*i,0,0.2)
  321. LW.C1=cf(0, 0.5, 0) * euler(offset-offset*i,0,0)
  322. end
  323. local dynamite=part(3,modelzorz,0,0,BrickColor.new("Bright red"),"Dynamite",vt(1,1,1))
  324. local dynamsh=mesh("SpecialMesh",dynamite,"FileMesh","http://www.roblox.com/asset/?id=12891705",vt(0,0,0),vt(0.3,0.3,0.3))
  325. dynamsh.TextureId="http://www.roblox.com/asset/?id=12891577"
  326. local dynawld=weld(dynamite,dynamite,LeftArm,euler(3.14,-1.57,0)*cf(0,1,0))
  327. for i=0,1,0.1 do
  328. wait()
  329. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.4+0.8*i,0,0.2-0.4*i)
  330. dynawld.C0=euler(3.14,-1.57+1.57*i,0)*cf(0,1,0)
  331. end
  332. dynamiting=true
  333. while dynamiting==true do
  334. wait()
  335. end
  336. for i=0,1,0.1 do
  337. wait()
  338. LW.C0=cf(-1.5, 0.5, 0) * euler(0.4+1.17*i,0,-0.2+0.2*i)
  339. LW.C1=cf(0, 0.5, 0) * euler(offset*i,0,0)
  340. end
  341. dynamite.CanCollide=true
  342. dynawld.Parent=nil
  343. coroutine.resume(coroutine.create(function(Bomb)
  344. wait(5)
  345. so("http://www.roblox.com/asset?id=133680244",Bomb,3,1)
  346. Bomb.Transparency=1
  347. b=it("Explosion")
  348. b.Parent=workspace
  349. b.Position=Bomb.Position
  350. b.BlastPressure=0
  351. local c = game.Workspace:GetChildren();
  352. for i = 1, #c do
  353. local hum = c[i]:findFirstChild("Humanoid")
  354. if hum ~= nil and hum.Health ~= 0 then
  355. local head = c[i]:findFirstChild("Head");
  356. if head ~= nil then
  357. local targ = head.Position - Bomb.Position;
  358. local mag = targ.magnitude;
  359. if mag <= 20 then
  360. newpos2=Bomb.Position
  361. Damagefunc2(head,60,20)
  362. end
  363. end
  364. end
  365. end
  366. CF22=Bomb.CFrame
  367. for i=1,6 do
  368. newdynamite=part(3,workspace,0,0,BrickColor.new("Bright red"),"Mini Dynamite",vt(1,1,1))
  369. newdynamite.CanCollide=true
  370. newdynamsh=mesh("SpecialMesh",newdynamite,"FileMesh","http://www.roblox.com/asset/?id=12551202",vt(0,0,0),vt(0.3,1,0.3))
  371. newdynamsh.TextureId="http://www.roblox.com/asset/?id=20729766"
  372. newdynamite.CFrame=CF22*cf(math.random(-10,10),math.random(0,10),math.random(-10,10))
  373. newdynamite.Velocity=vt(math.random(-5,5),10,math.random(-5,5))
  374. --newdynamite.Velocity=vt(0,20,0)
  375. coroutine.resume(coroutine.create(function(Bombeh)
  376. Bombeh.Parent=workspace
  377. --Bombeh.CanCollide=false
  378. wait(0.1)
  379. --Bombeh.CanCollide=false
  380. print(Bombeh.CanCollide)
  381. wait(0.2)
  382. Bombeh.CFrame=CF22*cf(math.random(-10,10),math.random(0,10),math.random(-10,10))
  383. Bombeh.CanCollide=true
  384. wait(4+math.random())
  385. so("http://www.roblox.com/asset?id=133680244",Bombeh,3,1)
  386. b=it("Explosion")
  387. b.Parent=workspace
  388. b.Position=Bombeh.Position
  389. b.BlastPressure=0
  390. local c = game.Workspace:GetChildren();
  391. for i = 1, #c do
  392. local hum = c[i]:findFirstChild("Humanoid")
  393. if hum ~= nil and hum.Health ~= 0 then
  394. local head = c[i]:findFirstChild("Head");
  395. if head ~= nil then
  396. local targ = head.Position - Bombeh.Position;
  397. local mag = targ.magnitude;
  398. if mag <= 10 then
  399. newpos2=Bombeh.Position
  400. Damagefunc2(head,30,20)
  401. end
  402. end
  403. end
  404. end
  405. Bombeh.Transparency=1
  406. wait(1)
  407. Bombeh.Parent=nil
  408. end),newdynamite)
  409. end
  410. wait(1)
  411. Bomb.Parent=nil
  412. end),dynamite)
  413. for i=0,1,0.1 do
  414. wait()
  415. numb=3.14-0.8*i
  416. Neck.C0=necko*euler(0,0,0.8*i)
  417. Neck.C1=necko2*euler(offset*i,0,0)
  418. RW.C0=cf(1.5, 0.5, 0) * euler(0.9-0.5+0.5*i,0,0)
  419. RW.C1=cf(0, 0.5, 0) * euler(offset*i,-0.4*i,0.6*i)
  420. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(1.17+0.03*i,0,0.2*i)
  421. LW.C1=cf(0, 0.5, 0) * euler(offset*i,0,0)
  422. end
  423. --[[Neck.C0=necko*euler(0,0,0.8)
  424. Neck.C1=necko2*euler(-offset,0,0)
  425. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  426. RW.C1=cf(0, 0.5, 0) * euler(offset,-0.4,0.6)
  427. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.2,0,0.2)
  428. LW.C1=cf(0, 0.5, 0) * euler(offset,0,0)]]
  429. attack=false
  430. wait(1)
  431. end
  432.  
  433. local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  434. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  435. end
  436.  
  437. dynaammo=false
  438. function shoottrail(mouse)
  439. if count==0 then
  440. count=1
  441. partd=prt23
  442. else
  443. count=2
  444. partd=prt24
  445. end
  446. --print(count)
  447. arrowtrail = BrickColor.new("White")
  448. spread = 0
  449. range = 400
  450. rangepower = 7
  451. local mode,bprt1=bomb()
  452. if dynamiteammo==true then
  453. dynaammo=true
  454. local dynamsh=mesh("SpecialMesh",bprt1,"FileMesh","http://www.roblox.com/asset/?id=12891705",vt(0,0,0),vt(0.3,0.3,0.3))
  455. dynamsh.TextureId="http://www.roblox.com/asset/?id=12891577"
  456. mode["Bomb Part2"].Transparency=1
  457. mode["Bomb Part3"].Transparency=1
  458. end
  459. countt=0
  460. --local bwldderp=weld(bprt1,bprt1,effectsg,euler(0,0,0)*cf(0,0,0))
  461. --bprt1.CFrame=effectsg.CFrame*euler(3.14,0,0)
  462. --mode.Parent=nil
  463. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread)) / 100)
  464. local dir = CFrame.new((partd.Position+mouse.Hit.p)/2,mouse.Hit.p+spreadvector)
  465. local hit,pos = rayCast(partd.Position,dir.lookVector,10,Character)
  466. local rangepos = range
  467. local function drawtrail(From,To)
  468. --mode.Parent=workspace
  469. local effectsmsh = Instance.new("CylinderMesh")
  470. effectsmsh.Scale = Vector3.new(1,1,1)
  471. effectsmsh.Name = "Mesh"
  472. local effectsg = Instance.new("Part")
  473. effectsg.formFactor = 3
  474. effectsg.CanCollide = false
  475. effectsg.Name = "Eff"
  476. effectsg.Locked = true
  477. effectsg.Anchored = true
  478. effectsg.Size = Vector3.new(1,0.2,1)
  479. effectsg.Parent = modelzorz
  480. effectsmsh.Parent = effectsg
  481. effectsg.BrickColor = arrowtrail
  482. effectsg.Reflectance = 0.25
  483. local LP = From
  484. local point1 = To
  485. local mg = (LP - point1).magnitude
  486. effectsmsh.Scale = Vector3.new(1,mg*5,1)
  487. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  488. bprt1.CFrame=effectsg.CFrame*euler(1.57-countt,0,0)
  489. countt=countt+0.7
  490. local bwldderp=weld(bprt1,bprt1,effectsg,euler(0,0,0)*cf(0,0,0))
  491. coroutine.resume(coroutine.create(function()
  492. effectsg.Transparency=1
  493. wait(0.1)
  494. effectsg.Parent = nil
  495. end))
  496. end
  497. local newpos = partd.Position
  498. local inc = rangepower
  499. repeat
  500. wait(0)
  501. rangepos = rangepos - 10
  502. dir = dir * CFrame.Angles(math.rad(-0.5),0,0)
  503. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  504. drawtrail(newpos,pos)
  505. newpos = newpos + (dir.lookVector * inc)
  506. if inc >= 20 then
  507. --inc = inc - 10
  508. end
  509. if hit ~= nil then
  510. rangepos = 0
  511. end
  512. until rangepos <= 0
  513. if dynaammo==false then
  514. b=Instance.new("Explosion")
  515. b.Parent=workspace
  516. b.Position=newpos
  517. b.BlastRadius=10
  518. b.BlastPressure=0
  519. local c = game.Workspace:GetChildren();
  520. for i = 1, #c do
  521. local hum = c[i]:findFirstChild("Humanoid")
  522. if hum ~= nil and hum.Health ~= 0 then
  523. local head = c[i]:findFirstChild("Head");
  524. if head ~= nil then
  525. local targ = head.Position - newpos;
  526. local mag = targ.magnitude;
  527. if mag <= 20 then
  528. newpos2=newpos
  529. Damagefunc2(head,40,20)
  530. end
  531. end
  532. end
  533. end
  534. end
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541. coroutine.resume(coroutine.create(function(Model)
  542. wait(0)
  543. Model.Parent=nil
  544. end),mode)
  545. end
  546.  
  547. Damagefunc1=function(hit,Damage,Knockback)
  548. if hit.Parent==nil then
  549. return
  550. end
  551. CPlayer=Bin
  552. h=hit.Parent:FindFirstChild("Humanoid")
  553. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  554. --[[ if attackdebounce == false then
  555. attackdebounce = true
  556. coroutine.resume(coroutine.create(function()
  557. wait(0.2)
  558. attackdebounce = false
  559. end)) ]]
  560. Damage=Damage
  561. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  562. return
  563. end]]
  564. -- hs(hit,1.2)
  565. c=Instance.new("ObjectValue")
  566. c.Name="creator"
  567. c.Value=game.Players.LocalPlayer
  568. c.Parent=h
  569. game:GetService("Debris"):AddItem(c,.5)
  570. Damage=Damage+math.random(0,10)
  571. h:TakeDamage(Damage)
  572. showDamage(hit.Parent,Damage,.5)
  573. vp=Instance.new("BodyVelocity")
  574. vp.P=500
  575. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  576. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  577. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  578. if Knockback>0 then
  579. vp.Parent=hit.Parent.Torso
  580. end
  581. game:GetService("Debris"):AddItem(vp,.25)
  582. game:GetService("Debris"):AddItem(r,.5)
  583. c=Instance.new("ObjectValue")
  584. c.Name="creator"
  585. c.Value=Player
  586. c.Parent=h
  587. game:GetService("Debris"):AddItem(c,.5)
  588. CRIT=false
  589. hitDeb=true
  590. AttackPos=6
  591. end
  592. -- end
  593. end
  594.  
  595. Damagefunc2=function(hit,Damage,Knockback)
  596. --[[ if attackdebounce == false then
  597. attackdebounce = true
  598. coroutine.resume(coroutine.create(function()
  599. wait(0.1)
  600. attackdebounce = false
  601. end)) ]]
  602. if hit.Parent==nil then
  603. return
  604. end
  605. CPlayer=Bin
  606. blocked=false
  607. h=hit.Parent:FindFirstChild("Humanoid")
  608. if h~=nil and hit.Parent:FindFirstChild("Torso")~=nil then
  609. Damage=Damage
  610. c=it("ObjectValue")
  611. c.Name="creator"
  612. c.Value=game.Players.LocalPlayer
  613. c.Parent=h
  614. game:GetService("Debris"):AddItem(c,.5)
  615. -- print(c.Value)
  616. --[[ if math.random(0,99)+math.random()<=7.8 then
  617. CRIT=true
  618. Damage=Damage*2
  619. s=it("Sound")
  620. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  621. s.Volume=1
  622. s.Pitch=2
  623. s.Parent=hit
  624. s.PlayOnRemove=true
  625. s.Parent=nil
  626.  
  627. end]]
  628. Damage=Damage+math.random(0,10)
  629. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  630. block=hit.Parent:findFirstChild("Block")
  631. --[[ if block~=nil then
  632. print("herp")
  633. if block.Value>0 then
  634. blocked=true
  635. block.Value=block.Value-3
  636. print(block.Value)
  637. end
  638. end]]
  639. if blocked==false then
  640. h:TakeDamage(Damage)
  641. showDamage(hit.Parent,Damage,.5)
  642. else
  643. h:TakeDamage(1)
  644. showDamage(hit.Parent,1,.5)
  645. end
  646. --if blocked==false then
  647. local angle = (hit.Position-(newpos2+Vector3.new(0,-3,0))).unit
  648. print(angle)
  649. hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  650. rl=Instance.new("BodyAngularVelocity")
  651. rl.P=3000
  652. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  653. rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  654. rl.Parent=hit
  655. coroutine.resume(coroutine.create(function(vel)
  656. wait(1)
  657. vel:Remove()
  658. end),rl)
  659. --end
  660. local bodyVelocity=Instance.new("BodyVelocity")
  661. bodyVelocity.velocity=angle*40+Vector3.new(0,35,0)
  662. bodyVelocity.P=5000
  663. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  664. bodyVelocity.Parent=hit
  665. coroutine.resume(coroutine.create(function(Vel)
  666. wait(0.7)
  667. Vel:Remove()
  668. end),bodyVelocity)
  669. game:GetService("Debris"):AddItem(vp,1)
  670. c=it("ObjectValue")
  671. c.Name="creator"
  672. c.Value=Player
  673. c.Parent=h
  674. game:GetService("Debris"):AddItem(c,.5)
  675. CRIT=false
  676. hitDeb=true
  677. AttackPos=6
  678. end
  679. -- end
  680. end
  681.  
  682. showDamage=function(Char,Dealt,du)
  683. m=Instance.new("Model")
  684. m.Name=tostring(Dealt)
  685. h=Instance.new("Humanoid")
  686. h.Health=0
  687. h.MaxHealth=0
  688. h.Parent=m
  689. c=Instance.new("Part")
  690. c.BottomSurface="SmoothNoOutlines"
  691. c.TopSurface="SmoothNoOutlines"
  692. c.BottomSurface="SmoothNoOutlines"
  693. c.RightSurface="SmoothNoOutlines"
  694. c.LeftSurface="SmoothNoOutlines"
  695. c.Material = "SmoothPlastic"
  696. c.Transparency=0
  697. c.BrickColor=BrickColor:Red()
  698. if CRIT==true then
  699. c.BrickColor=BrickColor.new("Really red")
  700. end
  701. c.Name="Head"
  702. c.TopSurface=0
  703. c.BottomSurface=0
  704. c.formFactor="Plate"
  705. c.Size=Vector3.new(1,.4,1)
  706. ms=Instance.new("CylinderMesh")
  707. ms.Scale=Vector3.new(.8,.8,.8)
  708. if CRIT==true then
  709. ms.Scale=Vector3.new(1,1.25,1)
  710. end
  711. ms.Parent=c
  712. c.Reflectance=0
  713. Instance.new("BodyGyro").Parent=c
  714. c.Parent=m
  715. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  716. f=Instance.new("BodyPosition")
  717. f.P=2000
  718. f.D=100
  719. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  720. f.position=c.Position+Vector3.new(0,3,0)
  721. f.Parent=c
  722. game:GetService("Debris"):AddItem(m,.5+du)
  723. c.CanCollide=false
  724. m.Parent=workspace
  725. c.CanCollide=false
  726. end
  727.  
  728. function ob1d(mouse)
  729. hold=true
  730. dynamiting=false
  731. if attack == true then return end
  732. attack=true
  733. repeat
  734. if count~=8 then
  735. coroutine.resume(coroutine.create(function()
  736. so("http://www.roblox.com/asset?id=131632972",prt26,1,1)
  737. shoottrail(mouse)
  738. end))
  739. dynamiteammo=false
  740. for i=0,1,0.5 do
  741. wait(0)
  742. Neck.C1=necko2*euler(-offset,0,0)
  743. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  744. RW.C1=cf(0, 0.5, 0) * euler(offset-0.3*i,-0.4,0.6)
  745. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.2,0,0.2)
  746. LW.C1=cf(0, 0.5, 0) * euler(offset-0.3*i,0,0)
  747. end
  748. for i=0,1,0.5 do
  749. wait(0)
  750. Neck.C1=necko2*euler(-offset,0,0)
  751. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  752. RW.C1=cf(0, 0.5, 0) * euler(offset-0.3+0.3*i,-0.4,0.6)
  753. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.2,0,0.2)
  754. LW.C1=cf(0, 0.5, 0) * euler(offset-0.3+0.3*i,0,0)
  755. end
  756. end
  757. wait(0.2)
  758. attack=false
  759. until hold==false
  760. end
  761.  
  762. function ob1u(mouse)
  763. hold = false
  764. end
  765.  
  766. buttonhold = false
  767.  
  768. function key(key)
  769. if attack == true then return end
  770. if key=="z" then
  771. Dynamite()
  772. end
  773. --[[if key=="g" and count~=0 then
  774. reloading=true
  775. attack=true
  776. so("http://roblox.com/asset/?id=131072992",prt1,1,0.7)
  777. for i=0,1,0.2 do
  778. wait()
  779. wld10.C0=euler(0,0.785*i,0)*cf(0,0,0)
  780. Neck.C1=necko2*euler(-offset+0.3*i,0,0)
  781. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  782. RW.C1=cf(0, 0.5, 0) * euler(offset-0.3*i,-0.4,0.6)
  783. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.2,0,0.2)
  784. LW.C1=cf(0, 0.5, 0) * euler(offset-0.3*i,0,0)
  785. end
  786. for i=0,1,0.2 do
  787. wait()
  788. wld10.C0=euler(0,0.785+0.785*i,0)*cf(0,0,0)
  789. Neck.C1=necko2*euler(-offset+0.3+(offset-0.5)*i,0,0)
  790. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  791. RW.C1=cf(0, 0.5, 0) * euler(offset-0.3-(offset-0.5)*i,-0.4,0.6+0.2*i)
  792. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.2,0,0.2)
  793. LW.C1=cf(0, 0.5, 0) * euler(offset-0.3-(offset-0.5)*i,0,0)
  794. end
  795. for i=0,1,0.2 do
  796. wait()
  797. Neck.C1=necko2*euler(-0.2,0,0)
  798. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  799. RW.C1=cf(0, 0.5, 0) * euler(0.2,-0.4,0.6+0.2)
  800. LW.C0=cf(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * euler(1.2-1.6*i,0,0.2+0.1*i)
  801. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  802. end
  803. local dynamite=part(3,modelzorz,0,0,BrickColor.new("Bright red"),"Dynamite",vt(1,1,1))
  804. local dynamsh=mesh("SpecialMesh",dynamite,"FileMesh","http://www.roblox.com/asset/?id=12891705",vt(0,0,0),vt(0.3,0.3,0.3))
  805. dynamsh.TextureId="http://www.roblox.com/asset/?id=12891577"
  806. bwld4=weld(dynamite,dynamite,LeftArm,euler(0,0,0)*cf(0,1,0))
  807. for i=0,1,0.2 do
  808. wait()
  809. LW.C0=cf(-1.5+0.5*i, 0.5, -0.7*i) * euler(1.2-1.6+1.6*i,0,0.2+0.1-0.4*i)
  810. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  811. bwld4.C0=euler(0,0,0)*cf(0.2*i,1,0)
  812. end
  813. bwld4.Part1=prt13
  814. bwld4.C0=euler(1.57,0,0)*cf(0,2,0)
  815. so("http://roblox.com/asset/?id=131072992",dynamite,1,1)
  816. for i=0,1,0.2 do
  817. wait()
  818. LW.C0=cf(-1.5+0.5, 0.5, -0.7) * euler(1.2-0.5*i,0,-0.1)
  819. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  820. bwld4.C0=euler(1.57,0,0)*cf(0,2-2*i,0)
  821. end
  822. dynamite.Parent=nil
  823. count=count-1
  824. so("http://roblox.com/asset/?id=131072992",prt1,1,0.7)
  825. for i=0,1,0.2 do
  826. wait()
  827. wld10.C0=euler(0,1.57-1.57*i,0)*cf(0,0,0)
  828. Neck.C1=necko2*euler(-0.2+0.4*i,0,0)
  829. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  830. RW.C1=cf(0, 0.5, 0) * euler(0.2-0.4*i,-0.4,0.8-0.2*i)
  831. LW.C0=cf(-1.5+0.5, 0.5, -0.7+0.2*i) * euler(0.7+0.5*i,0,-0.1+0.3*i)
  832. LW.C1=cf(0, 0.5, 0) * euler(0.2-0.4*i,0,0)
  833. end
  834. for i=0,1,0.2 do
  835. wait()
  836. Neck.C1=necko2*euler(-0.2+0.4-(0.2+offset)*i,0,0)
  837. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  838. RW.C1=cf(0, 0.5, 0) * euler(0.2-0.4+(0.2+offset)*i,-0.4,0.6)
  839. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.2,0,0.2)
  840. LW.C1=cf(0, 0.5, 0) * euler(0.2-0.4+(0.2+offset)*i,0,0)
  841. end
  842. count=0
  843. dynamiteammo=true
  844. attack=false
  845. reloading=false
  846. end]]
  847. if key=="r" and count~=0 then
  848. reloading=true
  849. attack=true
  850. so("http://roblox.com/asset/?id=10209869",prt1,1,0.8)
  851. for i=0,1,0.2 do
  852. wait()
  853. wld10.C0=euler(0,0.785*i,0)*cf(0,0,0)
  854. Neck.C1=necko2*euler(-offset+0.3*i,0,0)
  855. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  856. RW.C1=cf(0, 0.5, 0) * euler(offset-0.3*i,-0.4,0.6)
  857. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.2,0,0.2)
  858. LW.C1=cf(0, 0.5, 0) * euler(offset-0.3*i,0,0)
  859. end
  860. for i=0,1,0.2 do
  861. wait()
  862. wld10.C0=euler(0,0.785+0.785*i,0)*cf(0,0,0)
  863. Neck.C1=necko2*euler(-offset+0.3+(offset-0.5)*i,0,0)
  864. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  865. RW.C1=cf(0, 0.5, 0) * euler(offset-0.3-(offset-0.5)*i,-0.4,0.6+0.2*i)
  866. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.2,0,0.2)
  867. LW.C1=cf(0, 0.5, 0) * euler(offset-0.3-(offset-0.5)*i,0,0)
  868. end
  869. for i=0,1,0.2 do
  870. wait()
  871. Neck.C1=necko2*euler(-0.2,0,0)
  872. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  873. RW.C1=cf(0, 0.5, 0) * euler(0.2,-0.4,0.6+0.2)
  874. LW.C0=cf(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * euler(1.2-1.6*i,0,0.2+0.1*i)
  875. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  876. end
  877. local mode,bprt1=bomb()
  878. bprt1.Weld.Parent=nil
  879. bwld4=weld(bprt1,bprt1,LeftArm,euler(1.57,0,0)*cf(0,1,0))
  880. for i=0,1,0.2 do
  881. wait()
  882. LW.C0=cf(-1.5+0.5*i, 0.5, -0.7*i) * euler(1.2-1.6+1.6*i,0,0.2+0.1-0.4*i)
  883. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  884. bwld4.C0=euler(1.57-3.6*i,0,0)*cf(0.2*i,1,0)
  885. end
  886. bwld4.Part1=prt13
  887. bwld4.C0=cf(0,2,0)
  888. so("http://roblox.com/asset/?id=10209845",bprt1,1,1)
  889. for i=0,1,0.2 do
  890. wait()
  891. LW.C0=cf(-1.5+0.5, 0.5, -0.7) * euler(1.2-0.5*i,0,-0.1)
  892. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  893. bwld4.C0=cf(0,2-2*i,0)
  894. end
  895. mode.Parent=nil
  896. count=count-1
  897. if count==1 then
  898. for i=0,1,0.2 do
  899. wait()
  900. LW.C0=cf(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * euler(1.2-1.6*i,0,0.2+0.1*i)
  901. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  902. end
  903. local mode,bprt1=bomb()
  904. bprt1.Weld.Parent=nil
  905. bwld4=weld(bprt1,bprt1,LeftArm,euler(1.57,0,0)*cf(0,1,0))
  906. for i=0,1,0.2 do
  907. wait()
  908. LW.C0=cf(-1.5+0.5*i, 0.5, -0.7*i) * euler(1.2-1.6+1.6*i,0,0.2+0.1-0.4*i)
  909. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  910. bwld4.C0=euler(1.57-3.6*i,0,0)*cf(0.4*i,1+0.5*i,0)
  911. end
  912. bwld4.Part1=prt15
  913. bwld4.C0=cf(0,2,0)
  914. so("http://roblox.com/asset/?id=10209845",bprt1,1,1)
  915. for i=0,1,0.2 do
  916. wait()
  917. LW.C0=cf(-1.5+0.5, 0.5, -0.7) * euler(1.2-0.5*i,0,-0.1)
  918. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  919. bwld4.C0=cf(0,2-2*i,0)
  920. end
  921. mode.Parent=nil
  922. end
  923. so("http://roblox.com/asset/?id=10209869",prt1,1,0.8)
  924. for i=0,1,0.2 do
  925. wait()
  926. wld10.C0=euler(0,1.57-1.57*i,0)*cf(0,0,0)
  927. Neck.C1=necko2*euler(-0.2+0.4*i,0,0)
  928. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  929. RW.C1=cf(0, 0.5, 0) * euler(0.2-0.4*i,-0.4,0.8-0.2*i)
  930. LW.C0=cf(-1.5+0.5, 0.5, -0.7+0.2*i) * euler(0.7+0.5*i,0,-0.1+0.3*i)
  931. LW.C1=cf(0, 0.5, 0) * euler(0.2-0.4*i,0,0)
  932. end
  933. for i=0,1,0.2 do
  934. wait()
  935. Neck.C1=necko2*euler(-0.2+0.4-(0.2+offset)*i,0,0)
  936. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  937. RW.C1=cf(0, 0.5, 0) * euler(0.2-0.4+(0.2+offset)*i,-0.4,0.6)
  938. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.2,0,0.2)
  939. LW.C1=cf(0, 0.5, 0) * euler(0.2-0.4+(0.2+offset)*i,0,0)
  940. end
  941. count=0
  942. attack=false
  943. reloading=false
  944. end
  945. end
  946.  
  947. function key2(key)
  948. end
  949.  
  950. function s(mouse)
  951. mouse.Button1Down:connect(function() ob1d(mouse) end)
  952. mouse.Button1Up:connect(function() ob1u(mouse) end)
  953. mouse.KeyDown:connect(key)
  954. mouse.KeyUp:connect(key2)
  955. unsheathed = true
  956. player = Player
  957. ch = Character
  958. MMouse = mouse
  959. RSH = ch.Torso["Right Shoulder"]
  960. LSH = ch.Torso["Left Shoulder"]
  961. --
  962. RSH.Parent = nil
  963. LSH.Parent = nil
  964. --
  965. RW.Part0 = ch.Torso
  966. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  967. RW.C1 = CFrame.new(0, 0.5, 0)
  968. RW.Part1 = ch["Right Arm"]
  969. RW.Parent = ch.Torso
  970. --_G.R = RW
  971. --
  972. LW.Part0 = ch.Torso
  973. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  974. LW.C1 = CFrame.new(0, 0.5, 0)
  975. LW.Part1 = ch["Left Arm"]
  976. LW.Parent = ch.Torso
  977. --_G.L = LW
  978. --
  979. equipanim()
  980. end
  981.  
  982. function ds(mouse)
  983. unsheathed = false
  984. hideanim()
  985. wait(0)
  986. RW.Parent = nil
  987. LW.Parent = nil
  988. RSH.Parent = player.Character.Torso
  989. LSH.Parent = player.Character.Torso
  990. end
  991.  
  992. Bin.Selected:connect(s)
  993. Bin.Deselected:connect(ds)
  994.  
  995. -- mediafire
Add Comment
Please, Sign In to add comment