Advertisement
lafur

Untitled

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