Advertisement
memberhero

LNL Script

Nov 25th, 2020 (edited)
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.63 KB | None | 0 0
  1. --Lock And Load Script
  2. --Fixed by basstracker1970
  3. if (game:GetService('RunService'):IsServer()) then return error('This script cannot be ran server-sided, please use hl/',0); end;
  4.  
  5. local remote = NS ([=[
  6. Player = owner
  7. Character = Player.Character
  8. PlayerGui = Player.PlayerGui
  9. Backpack = Player.Backpack
  10. Torso = Character.Torso
  11. Head = Character.Head
  12. Humanoid = Character.Humanoid
  13. LeftArm = Character["Left Arm"]
  14. LeftLeg = Character["Left Leg"]
  15. RightArm = Character["Right Arm"]
  16. RightLeg = Character["Right Leg"]
  17. LS = Torso["Left Shoulder"]
  18. LH = Torso["Left Hip"]
  19. RS = Torso["Right Shoulder"]
  20. RH = Torso["Right Hip"]
  21. Neck = Torso.Neck
  22. it=Instance.new
  23. vt=Vector3.new
  24. cf=CFrame.new
  25. euler=CFrame.fromEulerAnglesXYZ
  26. angles=CFrame.Angles
  27. necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  28. necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  29. attack = false
  30. attacktype = 1
  31. damage = 5
  32. oridamage = 50
  33. attackdebounce = false
  34. offset=nil
  35. MMouse=nil
  36. count=0
  37. reloading=false
  38. newpos2=nil
  39. dynamiteammo=false
  40. mode="LnL"
  41. local bprt1=nil
  42. --player
  43. player = nil
  44. --save shoulders
  45. RSH, LSH = nil, nil
  46. --welds
  47. RW, LW = Instance.new("Weld"), Instance.new("Weld")
  48. RW.Name="Right Shoulder" LW.Name="Left Shoulder"
  49.  
  50.  
  51. if Character:findFirstChild("Loch-n-Load",true) ~= nil then
  52. Character:findFirstChild("Loch-n-Load",true).Parent = nil
  53. end
  54. if Character:findFirstChild("Carnificare",true) ~= nil then
  55. Character:findFirstChild("Carnificare",true).Parent = nil
  56. end
  57.  
  58.  
  59. function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
  60. local fp = it("Part")
  61. fp.formFactor = formfactor
  62. fp.Parent = parent
  63. fp.Reflectance = reflectance
  64. fp.Transparency = transparency
  65. fp.CanCollide = false
  66. fp.Locked=true
  67. fp.BrickColor = brickcolor
  68. fp.Name = name
  69. fp.Size = size
  70. fp.Position = Torso.Position
  71. fp.BottomSurface="Smooth"
  72. fp.TopSurface="Smooth"
  73. fp:BreakJoints()
  74. return fp
  75. end
  76.  
  77. function mesh(Mesh,part,meshtype,meshid,offset,scale)
  78. local mesh = it(Mesh)
  79. mesh.Parent = part
  80. if Mesh=="SpecialMesh" then
  81. mesh.MeshType = meshtype
  82. mesh.MeshId = meshid
  83. end
  84. mesh.Offset=offset
  85. mesh.Scale=scale
  86. return mesh
  87. end
  88.  
  89. function weld(parent,part0,part1,c0)
  90. local weld = it("Weld")
  91. weld.Parent = parent
  92. weld.Part0 = part0
  93. weld.Part1 = part1
  94. weld.C0 = c0
  95. return weld
  96. end
  97.  
  98. local modelzorz = Instance.new("Model")
  99. modelzorz.Parent = Character
  100. modelzorz.Name = "Loch-n-Load"
  101.  
  102. local prt1=part(3,modelzorz,0,1,BrickColor.new("Black"),"Part1",vt(1,1,1))
  103. local prt2=part(3,modelzorz,0,0,BrickColor.new("Navy blue"),"Part2",vt(1,1,1))
  104. local prt3=part(3,modelzorz,0,0,BrickColor.new("Navy blue"),"Part3",vt(1,1,1))
  105. local prt4=part(3,modelzorz,0,0,BrickColor.new("Navy blue"),"Part4",vt(1,1,1))
  106. local prt5=part(3,modelzorz,0,0,BrickColor.new("Navy blue"),"Part5",vt(1,1,1))
  107. local prt6=part(3,modelzorz,0,0,BrickColor.new("Navy blue"),"Part6",vt(1,1,1))
  108. local prt7=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part7",vt(1,1,1))
  109. local prt8=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part8",vt(1,1,1))
  110. local prt9=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part9",vt(1,1,1))
  111. local prt10=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part10",vt(1,1,1))
  112. local prt11=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part11",vt(1,1,1))
  113. local prt12=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part12",vt(1,1,1))
  114. local prt13=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part13",vt(1,1,1))
  115. local prt14=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part14",vt(1,1,1))
  116. local prt15=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part15",vt(1,1,1))
  117. local prt16=part(3,modelzorz,0,0,BrickColor.new("Really black"),"Part16",vt(1,1,1))
  118. local prt17=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part17",vt(1,1,1))
  119. local prt18=part(3,modelzorz,0,0,BrickColor.new("Navy blue"),"Part18",vt(1,1,1))
  120. local prt19=part(3,modelzorz,0,0,BrickColor.new("Navy blue"),"Part19",vt(1,1,1))
  121. local prt20=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part20",vt(1,1,1))
  122. local prt21=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part21",vt(1,1,1))
  123. local prt22=part(3,modelzorz,0,0,BrickColor.new("Black"),"Part22",vt(1,1,1))
  124. local prt23=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part23",vt(1,1,1))
  125. local prt24=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part24",vt(1,1,1))
  126. local prt25=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part25",vt(1,1,1))
  127. local prt26=part(3,modelzorz,0,0,BrickColor.new("Dark stone grey"),"Part26",vt(1,1,1))
  128.  
  129. local msh1=mesh("BlockMesh",prt1,"","",vt(0,0,0),vt(1,1,1))
  130. local msh2=mesh("BlockMesh",prt2,"","",vt(0,0,0),vt(0.6,1.6,0.8))
  131. local msh3=mesh("BlockMesh",prt3,"","",vt(0,0,0),vt(0.6,1,0.8))
  132. local msh4=mesh("BlockMesh",prt4,"","",vt(0,0,0),vt(0.7,1,1))
  133. local msh5=mesh("BlockMesh",prt5,"","",vt(0,0,0),vt(0.7,0.5,1.2))
  134. local msh6=mesh("BlockMesh",prt6,"","",vt(0,0,0),vt(0.6,0.6,0.8))
  135. local msh7=mesh("BlockMesh",prt7,"","",vt(0,0,0),vt(0.7,0.2,1.01))
  136. local msh8=mesh("BlockMesh",prt8,"","",vt(0,0,0),vt(0.5,0.1,0.8))
  137. local msh9=mesh("CylinderMesh",prt9,"","",vt(0,0,0),vt(0.5,0.4,0.5))
  138. local msh10=mesh("CylinderMesh",prt10,"","",vt(0,0,0),vt(0.2,0.5,0.2))
  139. local msh11=mesh("BlockMesh",prt11,"","",vt(0,0,0),vt(0.5,0.8,0.8))
  140. local msh12=mesh("BlockMesh",prt12,"","",vt(0,0,0),vt(0.7,0.4,1))
  141. local msh13=mesh("CylinderMesh",prt13,"","",vt(0,0,0),vt(0.5,3,0.5))
  142. local msh14=mesh("CylinderMesh",prt14,"","",vt(0,0,0),vt(0.4,3.01,0.4))
  143. local msh15=mesh("CylinderMesh",prt15,"","",vt(0,0,0),vt(0.5,3,0.5))
  144. local msh16=mesh("CylinderMesh",prt16,"","",vt(0,0,0),vt(0.4,3.01,0.4))
  145. local msh17=mesh("BlockMesh",prt17,"","",vt(0,0,0),vt(0.5,1.2,0.4))
  146. local msh18=mesh("BlockMesh",prt18,"","",vt(0,0,0),vt(0.6,1.2,0.21))
  147. local msh19=mesh("BlockMesh",prt19,"","",vt(0,0,0),vt(0.6,1,0.4))
  148. local msh20=mesh("SpecialMesh",prt20,"Wedge","",vt(0,0,0),vt(0.2,0.2,0.25))
  149. local msh21=mesh("BlockMesh",prt21,"","",vt(0,0,0),vt(0.2,0.4,0.4))
  150. local msh22=mesh("BlockMesh",prt22,"","",vt(0,0,0),vt(0.2,0.4,0.2))
  151. local msh23=mesh("CylinderMesh",prt23,"","",vt(0,0,0),vt(0.6,0.2,0.6))
  152. local msh24=mesh("CylinderMesh",prt24,"","",vt(0,0,0),vt(0.6,0.2,0.6))
  153. local msh25=mesh("BlockMesh",prt25,"","",vt(0,0,0),vt(0.1,0.2,0.2))
  154. local msh26=mesh("CylinderMesh",prt26,"","",vt(0,0,0),vt(0.1,0.3,0.1))
  155.  
  156. local wld1=weld(prt1,prt1,Torso,euler(1.57,0,0)*cf(-1,-2,-1.5))
  157. local wld2=weld(prt2,prt2,prt1,euler(1,0,0)*cf(0,0,0))
  158. local wld3=weld(prt3,prt3,prt2,euler(1,0,0)*cf(0,0.7,-0.4))
  159. local wld4=weld(prt4,prt4,prt3,euler(-0.43,0,0)*cf(0,0.8,0))
  160. local wld5=weld(prt5,prt5,prt4,euler(0,0,0)*cf(0,0.6,-0.1))
  161. local wld6=weld(prt6,prt6,prt2,euler(0.57,0,0)*cf(0,-0.8,0))
  162. local wld7=weld(prt7,prt7,prt6,euler(0,0,0)*cf(0,-0.4,-0.1))
  163. local wld8=weld(prt8,prt8,prt7,euler(0,0,0)*cf(0,-0.1,0.8))
  164. local wld9=weld(prt9,prt9,prt8,euler(0,0,1.57)*cf(0,-0.15,0.5))
  165. local wld10=weld(prt10,prt10,prt9,euler(0,0,0)*cf(0,0,0))
  166. local wld11=weld(prt11,prt11,prt10,euler(0,0,-1.57)*cf(0.3,0,-0.5))
  167. local wld12=weld(prt12,prt12,prt11,euler(0,0,0)*cf(0,0.24,-0.8))
  168. local wld13=weld(prt13,prt13,prt12,euler(0,0,0)*cf(0,-1.25,0.22))
  169. local wld14=weld(prt14,prt14,prt13,euler(0,0,0)*cf(0,0,0))
  170. local wld15=weld(prt15,prt15,prt12,euler(0,0,0)*cf(0,-1.25,-0.22))
  171. local wld16=weld(prt16,prt16,prt15,euler(0,0,0)*cf(0,0,0))
  172. local wld17=weld(prt17,prt17,prt11,euler(0,0,0)*cf(0,-0.8,-0.2))
  173. local wld18=weld(prt18,prt18,prt17,euler(0,0,0)*cf(0,-0.8,0.1))
  174. local wld19=weld(prt19,prt19,prt17,euler(0,0,0)*cf(0,-1,0))
  175. local wld20=weld(prt20,prt20,prt7,euler(-1.57,0,3.14)*cf(0,0,-0.6))
  176. local wld21=weld(prt21,prt21,prt12,euler(0,0,0)*cf(0,0,-0.55))
  177. local wld22=weld(prt22,prt22,prt21,euler(0,0,0)*cf(0,-0.4,0))
  178. local wld23=weld(prt23,prt23,prt13,euler(0,0,0)*cf(0,-1,0))
  179. local wld24=weld(prt24,prt24,prt15,euler(0,0,0)*cf(0,-1,0))
  180. local wld25=weld(prt25,prt25,prt24,euler(0,0,0)*cf(0,0,-0.35))
  181. local wld26=weld(prt26,prt26,prt25,euler(0,0,1.57)*cf(0,0,0))
  182.  
  183. local modelzorz2 = Instance.new("Model")
  184. modelzorz2.Parent = Character
  185. modelzorz2.Name = "Carnificare"
  186.  
  187. local prt27=part(3,modelzorz2,0,0,BrickColor.new("Navy blue"),"Part27",vt(1,1,1))
  188. local prt28=part(3,modelzorz2,0,0,BrickColor.new("Bright blue"),"Part28",vt(1,1,1))
  189. local prt29=part(3,modelzorz2,0,0,BrickColor.new("Bright blue"),"Part29",vt(1,1,1))
  190. local prt30=part(3,modelzorz2,0,0,BrickColor.new("Bright blue"),"Part30",vt(1,1,1))
  191. local prt31=part(3,modelzorz2,0,0,BrickColor.new("Bright blue"),"Part31",vt(1,1,1))
  192. local prt32=part(3,modelzorz2,0.3,0,BrickColor.new("White"),"Part32",vt(1,2,1))
  193. local prt33=part(3,modelzorz2,0.3,0,BrickColor.new("Dark stone grey"),"Part33",vt(1,2,1))
  194. local prt34=part(3,modelzorz2,0.3,0,BrickColor.new("White"),"Part34",vt(1,1,1))
  195. local prt35=part(3,modelzorz2,0.3,0,BrickColor.new("Dark stone grey"),"Part35",vt(1,1,1))
  196.  
  197. local msh27=mesh("CylinderMesh",prt27,"","",vt(0,0,0),vt(0.3,1,0.3))
  198. local msh28=mesh("BlockMesh",prt28,"","",vt(0,0,0),vt(0.1,0.5,0.1))
  199. local msh29=mesh("BlockMesh",prt29,"","",vt(0,0,0),vt(0.1,0.5,0.1))
  200. local msh30=mesh("BlockMesh",prt30,"","",vt(0,0,0),vt(0.6,0.1,0.3))
  201. local msh31=mesh("BlockMesh",prt31,"","",vt(0,0,0),vt(0.4,0.1,0.5))
  202. local msh32=mesh("BlockMesh",prt32,"","",vt(0,0,0),vt(0.4,1.5,0.05))
  203. local msh33=mesh("BlockMesh",prt33,"","",vt(0,0,0),vt(0.21,1.5,0.06))
  204. local msh34=mesh("SpecialMesh",prt34,"Wedge","",vt(0,0,0),vt(0.05,0.4,0.4))
  205. local msh35=mesh("SpecialMesh",prt35,"Wedge","",vt(0,0,0),vt(0.06,0.21,0.4))
  206.  
  207. local wld27=weld(prt27,prt27,Torso,euler(0,0,0)*cf(0.5,-2,-0.5))
  208. local wld28=weld(prt28,prt28,prt27,euler(0,0,0)*cf(0,-0.7,0))
  209. local wld29=weld(prt29,prt29,prt27,euler(0,0,1.57)*cf(0,-0.7,0))
  210. local wld30=weld(prt30,prt30,prt27,euler(0,0,0)*cf(0,0.5,0))
  211. local wld31=weld(prt31,prt31,prt30,euler(0,0,0)*cf(0,0,0))
  212. local wld32=weld(prt32,prt32,prt31,euler(0,0,0)*cf(0,1.5,0))
  213. local wld33=weld(prt33,prt33,prt32,euler(0,0,0)*cf(-0.1,0,0))
  214. local wld34=weld(prt34,prt34,prt32,euler(1.57,-1.57,0)*cf(0,1.7,0))
  215. local wld35=weld(prt35,prt35,prt33,euler(1.57,-1.57,0)*cf(0,1.7,0))
  216.  
  217. derp=-0.4
  218. for i=1,5 do
  219. local prt=part(3,modelzorz2,0,0,BrickColor.new("White"),"Part",vt(1,1,1))
  220. local msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(0.25,0.1,0.25))
  221. local wld=weld(prt,prt,prt27,euler(0,0.785,0)*cf(0,derp,0))
  222. derp=derp+0.2
  223. end
  224.  
  225. function bomb()
  226. dmode=Instance.new("Model")
  227. dmode.Parent=modelzorz
  228. dmode.Name="Bomb"
  229. local bprt1=part(3,dmode,0,0,BrickColor.new("Black"),"Bomb Part1",vt(1,1,1))
  230. bprt1.CFrame=prt25.CFrame
  231. local bprt2=part(3,dmode,0,0,BrickColor.new("Navy blue"),"Bomb Part2",vt(1,1,1))
  232. local bprt3=part(3,dmode,0,0,BrickColor.new("Navy blue"),"Bomb Part3",vt(1,1,1))
  233.  
  234. local bmsh1=mesh("CylinderMesh",bprt1,"","",vt(0,0,0),vt(0.5,0.7,0.5))
  235. local bmsh2=mesh("CylinderMesh",bprt2,"","",vt(0,0,0),vt(0.51,0.2,0.51))
  236. local bmsh3=mesh("SpecialMesh",bprt3,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
  237.  
  238. local bwld1=weld(bprt1,bprt1,prt24,euler(0,0,0)*cf(0,0,0))
  239. local bwld2=weld(bprt2,bprt2,bprt1,euler(0,0,0)*cf(0,0.1,0))
  240. local bwld3=weld(bprt3,bprt3,bprt1,euler(0,0,0)*cf(0,-0.3,0))
  241. bprt1.CFrame=prt24.CFrame
  242. coroutine.resume(coroutine.create(function(Weld,BombPart)
  243. wait()
  244. Weld.Parent=nil
  245. BombPart.CFrame=prt25.CFrame
  246. end),bwld1,bprt1)
  247. return dmode,bprt1
  248. end
  249. --local mode,bprt1=bomb()
  250.  
  251.  
  252. local bg = it("BodyGyro")
  253. bg.Parent = nil
  254.  
  255. so = function(id,par,vol,pit)
  256. coroutine.resume(coroutine.create(function()
  257. local sou = Instance.new("Sound",par or workspace)
  258. sou.Volume=vol
  259. sou.Pitch=pit or 1
  260. sou.SoundId=id
  261. wait()
  262. sou:play()
  263. wait(6)
  264. sou:Remove()
  265. end))
  266. end
  267. function unequipweld()
  268. wld1.Part1=Torso
  269. wld1.C0=euler(1.57,0,0)*cf(-1,-2,-1.5)
  270. end
  271.  
  272. function equipweld()
  273. wld1.Part1=RightArm
  274. wld1.C0=euler(0.57,0,0)*cf(0.5,0,-2)
  275. end
  276.  
  277. function hideanim()
  278. equipped=false
  279. wait(0.1)
  280. Neck.C0=necko
  281. Neck.C1=necko2
  282. bg.Parent=nil
  283. unequipweld()
  284. end
  285.  
  286. function equipanim(mouse)
  287. equipped=true
  288. for i=0,1,0.1 do
  289. wait(0)
  290. RW.C0=cf(1.5, 0.5, 0) * euler(-1*i,0,0)
  291. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  292. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,0)
  293. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  294. end
  295. wait(0.1)
  296. equipweld()
  297. for i=0,1,0.1 do
  298. wait(0)
  299. wld1.C0=euler(0.57+0.8*i,0,0)*cf(0.5-0.5*i,1*i,-2+2*i)
  300. RW.C0=cf(1.5, 0.5, 0) * euler(-1+1.5*i,0,0)
  301. RW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  302. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,0)
  303. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  304. end
  305. for i=0,1,0.1 do
  306. wait(0)
  307. wld1.C0=euler(1.37-0.37*i,0,0)*cf(0,1-0.2*i,0)
  308. RW.C0=cf(1.5, 0.5, 0) * euler(-1+1.5+0.4*i,0,0)
  309. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4*i,0.6*i)
  310. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(1.2*i,0,0.2*i)
  311. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  312. Neck.C0=necko*angles(0,0,0.8*i)
  313. end
  314. Stance(mouse)
  315. end
  316.  
  317. numb=3.14-0.8
  318. function Stance(mouse)
  319. coroutine.resume(coroutine.create(function()
  320. bg.maxTorque = vt(math.huge,math.huge,math.huge)
  321. bg.P = 3000
  322. --bg.Parent = Torso
  323. --wld1.C0 = euler(0,0,0) * cf(0,0,0)
  324. while equipped==true do
  325. wait()
  326. local pos4 = vt(workspace.CurrentCamera.CoordinateFrame.X,Head.Position.Y,workspace.CurrentCamera.CoordinateFrame.Z)
  327. bg.cframe = cf(Head.Position,pos4) * euler(0,numb,0) * cf(0,0,0) --cf(Torso.Position,mouse.Hit.p) *
  328. bg.Parent = Torso
  329. local pos5 = Vector3.new(mouse.Hit.p.x,Head.Position.Y,mouse.Hit.p.z)
  330. offset=(Torso.Position.y-mouse.Hit.p.y)/60
  331. mag=(Torso.Position-mouse.Hit.p).magnitude/80
  332. offset=offset/mag
  333. if reloading==false and attack==false then
  334. if mode=="LnL" then
  335. Neck.C0=necko*euler(0,0,0.8)
  336. Neck.C1=necko2*euler(-offset,0,0)
  337. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  338. RW.C1=cf(0, 0.5, 0) * euler(offset,-0.4,0.6)
  339. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.2,0,0.2)
  340. LW.C1=cf(0, 0.5, 0) * euler(offset,0,0)
  341. else
  342. Neck.C0=necko*euler(0,0,0)
  343. Neck.C1=necko2*euler(-offset,0,0)
  344. RW.C0=cf(1.5, 0.5, 0) * euler(0.5,0,0.2)
  345. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4,0)
  346. LW.C0=cf(-1.5, 0.5, 0) * euler(1-offset,0,0)
  347. LW.C1=cf(0, 0.5, 0) * euler(0,0,0.2)
  348. end
  349. end
  350. end
  351. for i=0,1,0.1 do
  352. wait()
  353. Neck.C0=necko*euler(0,0,0)
  354. Neck.C1=necko2*euler(0,0,0)
  355. bg.Parent=nil
  356. end
  357. end))
  358. end
  359.  
  360. function ThrowGrenade()
  361. attack=true
  362. for i=0,1,0.1 do
  363. wait()
  364. Neck.C0=necko*euler(0,0,0)
  365. Neck.C1=necko2*euler(-offset,0,0)
  366. RW.C0=cf(1.5, 0.5, 0) * euler(0.5-1*i,0,0.2-0.4*i)
  367. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4,0)
  368. LW.C0=cf(-1.5, 0.5, 0) * euler(1-offset+(offset-1)*i,0,0)
  369. LW.C1=cf(0, 0.5, 0) * euler(0,0,0.2)
  370. end
  371. local mode,bprt1=bomb()
  372. mode["Bomb Part2"].BrickColor=BrickColor.new("White")
  373. mode["Bomb Part3"].BrickColor=BrickColor.new("White")
  374. bprt1.Weld.Parent=nil
  375. bwld4=weld(bprt1,bprt1,RightArm,euler(1.57,0,0)*cf(0,1,0))
  376. for i=0,1,0.1 do
  377. wait()
  378. Neck.C0=necko*euler(0,0,0)
  379. Neck.C1=necko2*euler(-offset,0,0)
  380. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5-1*i,0,-0.2+1*i)
  381. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4+0.2*i,0)
  382. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,0)
  383. LW.C1=cf(0, 0.5, 0) * euler(0,0,0.2)
  384. end
  385. so("http://roblox.com/asset/?id=10209640",RightArm,0.5,1)
  386. coroutine.resume(coroutine.create(function()
  387. for i=1,2 do
  388. mode["Bomb Part2"].BrickColor=BrickColor.new("Navy blue")
  389. mode["Bomb Part3"].BrickColor=BrickColor.new("Navy blue")
  390. wait(0.1)
  391. mode["Bomb Part2"].BrickColor=BrickColor.new("White")
  392. mode["Bomb Part3"].BrickColor=BrickColor.new("White")
  393. wait(0.1)
  394. end
  395. mode["Bomb Part2"].BrickColor=BrickColor.new("Navy blue")
  396. mode["Bomb Part3"].BrickColor=BrickColor.new("Navy blue")
  397. end))
  398. for i=0,1,0.2 do
  399. wait()
  400. numb=3.14+0.5*i
  401. Neck.C0=necko*euler(0,0,-0.5*i)
  402. Neck.C1=necko2*euler(-offset,0,0)
  403. RW.C0=cf(1.5, 0.5, 0) * euler(-0.5-1+3*i,0,0.8-0.8*i)
  404. RW.C1=cf(0, 0.5, 0) * euler(0,-0.2-0.6*i,0)
  405. LW.C0=cf(-1.5, 0.5, 0) * euler(0,0,0)
  406. LW.C1=cf(0, 0.5, 0) * euler(0,0,0.2)
  407. end
  408. mode.Parent=nil
  409. coroutine.resume(coroutine.create(function()
  410. rangepower = 4
  411. shoottrail(MMouse)
  412. end))
  413. for i=0,1,0.2 do
  414. wait()
  415. numb=3.14+0.5+0.5*i
  416. Neck.C0=necko*euler(0,0,-0.5-0.5*i)
  417. Neck.C1=necko2*euler(-offset,0,0)
  418. RW.C0=cf(1.5-0.5*i, 0.5, -0.5*i) * euler(-0.5+2+0.5*i,0,-0.4*i)
  419. RW.C1=cf(0, 0.5, 0) * euler(0,-0.8,0)
  420. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5*i,0,0)
  421. LW.C1=cf(0, 0.5, 0) * euler(0,0,0.2)
  422. end
  423. for i=0,1,0.1 do
  424. wait()
  425. numb=3.14+1-1*i
  426. Neck.C0=necko*euler(0,0,-1+1*i)
  427. Neck.C1=necko2*euler(-offset,0,0)
  428. RW.C0=cf(1.5-0.5+0.5*i, 0.5, -0.5+0.5*i) * euler(2-1.5*i,0,-0.4+0.6*i)
  429. RW.C1=cf(0, 0.5, 0) * euler(0,-0.8,0)
  430. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.5+(1.5-offset)*i,0,0)
  431. LW.C1=cf(0, 0.5, 0) * euler(0,0,0.2)
  432. end
  433. --wait(1)
  434. rangepower = 7
  435. numb=3.14
  436. attack=false
  437. end
  438.  
  439. function Command1()
  440. attack=true
  441. for i=0,1,0.1 do
  442. wait()
  443. Neck.C0=necko*euler(0,0,0.8)
  444. Neck.C1=necko2*euler(-offset+offset*i,0,0)
  445. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  446. RW.C1=cf(0, 0.5, 0) * euler(offset-(offset-0.5)*i,-0.4,0.6)
  447. LW.C0=cf(-1.5+0.5-0.5*i, 0.5, -0.5+0.5*i) * euler(1.2+0.37*i,0,0.2-0.2*i)
  448. LW.C1=cf(0, 0.5, 0) * euler(offset-(offset+1)*i,0,0.8*i)
  449. end
  450. for i=0,1,0.2 do
  451. wait()
  452. LW.C0=cf(-1.5, 0.5, 0) * euler(1.57,0,0)
  453. LW.C1=cf(0, 0.5, 0) * euler(-1+1*i,0,0.8)
  454. end
  455. wait(0.3)
  456. for i=0,1,0.1 do
  457. wait()
  458. Neck.C0=necko*euler(0,0,0.8)
  459. Neck.C1=necko2*euler(-offset*i,0,0)
  460. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  461. RW.C1=cf(0, 0.5, 0) * euler(0.5+(offset-0.5)*i,-0.4,0.6)
  462. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(1.2+0.37-0.37*i,0,0.2*i)
  463. LW.C1=cf(0, 0.5, 0) * euler(offset*i,0,0.8-0.8*i)
  464. end
  465. attack=false
  466. end
  467.  
  468. function Dynamite()
  469. attack=true
  470. for i=0,1,0.1 do
  471. wait()
  472. numb=3.14-0.8+0.8*i
  473. Neck.C0=necko*euler(0,0,0.8-0.8*i)
  474. Neck.C1=necko2*euler(-offset+offset*i,0,0)
  475. RW.C0=cf(1.5, 0.5, 0) * euler(0.9-0.5*i,0,0)
  476. RW.C1=cf(0, 0.5, 0) * euler(offset-offset*i,-0.4+0.4*i,0.6-0.6*i)
  477. 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)
  478. LW.C1=cf(0, 0.5, 0) * euler(offset-offset*i,0,0)
  479. end
  480. local dynamite=part(3,modelzorz,0,0,BrickColor.new("Bright red"),"Dynamite",vt(1,1,1))
  481. local dynamsh=mesh("SpecialMesh",dynamite,"FileMesh","http://www.roblox.com/asset/?id=12891705",vt(0,0,0),vt(0.3,0.3,0.3))
  482. dynamsh.TextureId="http://www.roblox.com/asset/?id=12891577"
  483. local dynawld=weld(dynamite,dynamite,LeftArm,euler(3.14,-1.57,0)*cf(0,1,0))
  484. for i=0,1,0.1 do
  485. wait()
  486. LW.C0=cf(-1.5, 0.5, 0) * euler(-0.4+0.8*i,0,0.2-0.4*i)
  487. dynawld.C0=euler(3.14,-1.57+1.57*i,0)*cf(0,1,0)
  488. end
  489. dynamiting=true
  490. while dynamiting==true do
  491. wait()
  492. end
  493. for i=0,1,0.1 do
  494. wait()
  495. LW.C0=cf(-1.5, 0.5, 0) * euler(0.4+1.17*i,0,-0.2+0.2*i)
  496. LW.C1=cf(0, 0.5, 0) * euler(offset*i,0,0)
  497. end
  498. dynamite.CanCollide=true
  499. dynawld.Parent=nil
  500. coroutine.resume(coroutine.create(function(Bomb)
  501. wait(5)
  502. so("http://www.roblox.com/asset?id=2233908",Bomb,3,1)
  503. Bomb.Transparency=1
  504. b=it("Explosion")
  505. b.Parent=workspace
  506. b.Position=Bomb.Position
  507. b.BlastPressure=0
  508. local c = game.Workspace:GetChildren();
  509. for i = 1, #c do
  510. if c[i].className=="Model" and c[i]:findFirstChild("Humanoid")==nil then
  511. local b = c[i]:GetChildren();
  512. for i = 1, #b do
  513. if b[i].className=="Part" then
  514. local targ = b[i].Position - Bomb.Position;
  515. local mag = targ.magnitude;
  516. if mag <= 20 then
  517. b[i].Velocity=vt(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  518. b[i]:BreakJoints()
  519. local angle = (b[i].Position-(newpos+Vector3.new(0,-3,0))).unit
  520. print(angle)
  521. --b[i].CFrame=CFrame.new(b[i].Position,Vector3.new(angle.x,b[i].Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  522. local bodyVelocity=Instance.new("BodyVelocity")
  523. bodyVelocity.velocity=angle*40+Vector3.new(0,10,0)
  524. bodyVelocity.P=5000
  525. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  526. bodyVelocity.Parent=b[i]
  527. coroutine.resume(coroutine.create(function(Vel)
  528. wait(0.7)
  529. Vel:Remove()
  530. end),bodyVelocity)
  531. end
  532. end
  533. end
  534. end
  535. local hum = c[i]:findFirstChild("Humanoid")
  536. if hum ~= nil and hum.Health ~= 0 then
  537. local head = c[i]:findFirstChild("Head");
  538. if head ~= nil then
  539. local targ = head.Position - Bomb.Position;
  540. local mag = targ.magnitude;
  541. if mag <= 20 then
  542. newpos2=Bomb.Position
  543. Damagefunc2(head,60,20)
  544. end
  545. end
  546. end
  547. end
  548. CF22=Bomb.CFrame
  549. for i=1,6 do
  550. newdynamite=part(3,workspace,0,0,BrickColor.new("Bright red"),"Mini Dynamite",vt(1,1,1))
  551. newdynamite.CanCollide=true
  552. newdynamsh=mesh("SpecialMesh",newdynamite,"FileMesh","http://www.roblox.com/asset/?id=12551202",vt(0,0,0),vt(0.3,1,0.3))
  553. newdynamsh.TextureId="http://www.roblox.com/asset/?id=20729766"
  554. newdynamite.CFrame=CF22*cf(math.random(-10,10),math.random(0,10),math.random(-10,10))
  555. newdynamite.Velocity=vt(math.random(-5,5),10,math.random(-5,5))
  556. --newdynamite.Velocity=vt(0,20,0)
  557. coroutine.resume(coroutine.create(function(Bombeh)
  558. Bombeh.Parent=workspace
  559. --Bombeh.CanCollide=false
  560. wait(0.1)
  561. --Bombeh.CanCollide=false
  562. print(Bombeh.CanCollide)
  563. wait(0.2)
  564. Bombeh.CFrame=CF22*cf(math.random(-10,10),math.random(0,10),math.random(-10,10))
  565. Bombeh.CanCollide=true
  566. wait(4+math.random())
  567. so("http://www.roblox.com/asset?id=2233908",Bombeh,3,1)
  568. b=it("Explosion")
  569. b.Parent=workspace
  570. b.Position=Bombeh.Position
  571. b.BlastPressure=0
  572. local c = game.Workspace:GetChildren();
  573. for i = 1, #c do
  574. local hum = c[i]:findFirstChild("Humanoid")
  575. if hum ~= nil and hum.Health ~= 0 then
  576. local head = c[i]:findFirstChild("Head");
  577. if head ~= nil then
  578. local targ = head.Position - Bombeh.Position;
  579. local mag = targ.magnitude;
  580. if mag <= 10 then
  581. newpos2=Bombeh.Position
  582. Damagefunc2(head,30,20)
  583. end
  584. end
  585. end
  586. end
  587. Bombeh.Transparency=1
  588. wait(1)
  589. Bombeh.Parent=nil
  590. end),newdynamite)
  591. end
  592. wait(1)
  593. Bomb.Parent=nil
  594. end),dynamite)
  595. for i=0,1,0.1 do
  596. wait()
  597. numb=3.14-0.8*i
  598. Neck.C0=necko*euler(0,0,0.8*i)
  599. Neck.C1=necko2*euler(offset*i,0,0)
  600. RW.C0=cf(1.5, 0.5, 0) * euler(0.9-0.5+0.5*i,0,0)
  601. RW.C1=cf(0, 0.5, 0) * euler(offset*i,-0.4*i,0.6*i)
  602. LW.C0=cf(-1.5+0.5*i, 0.5, -0.5*i) * euler(1.17+0.03*i,0,0.2*i)
  603. LW.C1=cf(0, 0.5, 0) * euler(offset*i,0,0)
  604. end
  605. --[[Neck.C0=necko*euler(0,0,0.8)
  606. Neck.C1=necko2*euler(-offset,0,0)
  607. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  608. RW.C1=cf(0, 0.5, 0) * euler(offset,-0.4,0.6)
  609. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.2,0,0.2)
  610. LW.C1=cf(0, 0.5, 0) * euler(offset,0,0)]]
  611. attack=false
  612. wait(1)
  613. end
  614.  
  615. function CircleEffect(part,x1,y1,z1,color)
  616. local msh1 = it("SpecialMesh")
  617. msh1.Scale = vt(0.5,0.5,0.5)
  618. msh1.MeshType = "Sphere"
  619. S=it("Part")
  620. S.Name="Effect"
  621. S.formFactor=0
  622. S.Size=vt(x1,y1,z1)
  623. S.BrickColor=color
  624. S.Reflectance = 0
  625. S.TopSurface=0
  626. S.BottomSurface=0
  627. S.Transparency=0
  628. S.Anchored=true
  629. S.CanCollide=false
  630. S.CFrame=part
  631. S.Parent=modelzorz
  632. msh1.Parent = S
  633. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 5 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.3,0.3,0.3) Part.Transparency=Part.Transparency+0.15 wait() end Part.Parent=nil end),S,S.CFrame)
  634. end
  635.  
  636. function BlastEffect(part,x1,y1,z1,color)
  637. local msh1=it("SpecialMesh")
  638. msh1.Scale=vt(0.5,0.5,0.5)
  639. msh1.MeshId="http://www.roblox.com/asset/?id=1323306"
  640. S=it("Part")
  641. S.Name="Effect"
  642. S.formFactor=0
  643. S.Size=vt(x1,y1,z1)
  644. S.BrickColor=color
  645. S.Reflectance = 0
  646. S.TopSurface=0
  647. S.BottomSurface=0
  648. S.Transparency=0
  649. S.Anchored=true
  650. S.CanCollide=false
  651. S.CFrame=part
  652. S.Parent=modelzorz
  653. msh1.Parent = S
  654. coroutine.resume(coroutine.create(function(Part,CF) for i=1, 10 do Part.Mesh.Scale = Part.Mesh.Scale + vt(0.05,0.3,0.05) Part.Transparency=Part.Transparency+0.1 wait() end Part.Parent=nil end),S,S.CFrame)
  655. end
  656.  
  657. local function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants
  658. return game.Workspace:FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
  659. end
  660.  
  661. partd=nil
  662. dynaammo=false
  663. spread = 0
  664. range = 400
  665. rangepower = 7
  666. function shoottrail(mouse)
  667. if mode=="LnL" then
  668. if count==0 then
  669. count=1
  670. partd=prt23
  671. else
  672. count=2
  673. partd=prt24
  674. end
  675. else
  676. partd=RightArm
  677. end
  678. --print(count)
  679. arrowtrail = BrickColor.new("White")
  680. local mode,bprt1=bomb()
  681. if dynamiteammo==true then
  682. dynaammo=true
  683. local dynamsh=mesh("SpecialMesh",bprt1,"FileMesh","http://www.roblox.com/asset/?id=12891705",vt(0,0,0),vt(0.3,0.3,0.3))
  684. dynamsh.TextureId="http://www.roblox.com/asset/?id=12891577"
  685. mode["Bomb Part2"].Transparency=1
  686. mode["Bomb Part3"].Transparency=1
  687. end
  688. countt=0
  689. --local bwldderp=weld(bprt1,bprt1,effectsg,euler(0,0,0)*cf(0,0,0))
  690. --bprt1.CFrame=effectsg.CFrame*euler(3.14,0,0)
  691. --mode.Parent=nil
  692. local spreadvector = (Vector3.new(math.random(-spread,spread),math.random(-spread,spread),math.random(-spread,spread)))
  693. local dir = CFrame.new((partd.Position+mouse.Hit.p)/2,mouse.Hit.p+spreadvector)
  694. local hit,pos = rayCast(partd.Position,dir.lookVector,10,Character)
  695. local rangepos = range
  696. local function drawtrail(From,To)
  697. --mode.Parent=workspace
  698. local effectsmsh = Instance.new("CylinderMesh")
  699. effectsmsh.Scale = Vector3.new(1,1,1)
  700. effectsmsh.Name = "Mesh"
  701. local effectsg = Instance.new("Part")
  702. effectsg.formFactor = 3
  703. effectsg.CanCollide = false
  704. effectsg.Name = "Eff"
  705. effectsg.Locked = true
  706. effectsg.Anchored = true
  707. effectsg.Size = Vector3.new(1,0.2,1)
  708. effectsg.Parent = modelzorz
  709. effectsmsh.Parent = effectsg
  710. effectsg.BrickColor = arrowtrail
  711. effectsg.Reflectance = 0.25
  712. local LP = From
  713. local point1 = To
  714. local mg = (LP - point1).magnitude
  715. effectsmsh.Scale = Vector3.new(1,mg*5,1)
  716. effectsg.CFrame = CFrame.new((LP+point1)/2,point1) * CFrame.Angles(math.rad(90),0,0)
  717. bprt1.CFrame=effectsg.CFrame*euler(1.57-countt,0,0)
  718. dynacf=bprt1.CFrame
  719. countt=countt+0.7
  720. local bwldderp=weld(bprt1,bprt1,effectsg,euler(0,0,0)*cf(0,0,0))
  721. coroutine.resume(coroutine.create(function()
  722. effectsg.Transparency=1
  723. wait(0.1)
  724. effectsg.Parent = nil
  725. end))
  726. end
  727. local newpos = partd.Position
  728. local inc = rangepower
  729. repeat
  730. wait(0)
  731. rangepos = rangepos - 10
  732. dir = dir * CFrame.Angles(math.rad(-0.5),0,0)
  733. hit,pos = rayCast(newpos,dir.lookVector,inc,Character)
  734. drawtrail(newpos,pos)
  735. newpos = newpos + (dir.lookVector * inc)
  736. if inc >= 20 then
  737. --inc = inc - 10
  738. end
  739. if hit ~= nil then
  740. rangepos = 0
  741. end
  742. until rangepos <= 0
  743. if dynaammo==false then
  744. b=Instance.new("Explosion")
  745. b.Parent=workspace
  746. b.Position=newpos
  747. b.BlastRadius=10
  748. b.BlastPressure=0
  749. local c = game.Workspace:GetChildren();
  750. for i = 1, #c do
  751. if c[i].className=="Script" then
  752. local b=c[i]:GetChildren()
  753. for i=1,#b do
  754. if b[i].className=="Part" then
  755. local targ = b[i].Position - newpos;
  756. local mag = targ.magnitude;
  757. if mag <= 10 then
  758. b[i]:BreakJoints()
  759. local angle = (b[i].Position-(newpos+Vector3.new(0,-3,0))).unit
  760. local bodyVelocity=Instance.new("BodyVelocity")
  761. bodyVelocity.velocity=angle*40+Vector3.new(0,10,0)
  762. bodyVelocity.P=5000
  763. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  764. bodyVelocity.Parent=b[i]
  765. coroutine.resume(coroutine.create(function(Vel)
  766. wait(0.7)
  767. Vel:Remove()
  768. end),bodyVelocity)
  769. print("BROKE PART")
  770. end
  771. end
  772. end
  773. end
  774. if c[i].className=="Model" and c[i]:findFirstChild("Humanoid")==nil then
  775. local b = c[i]:GetChildren();
  776. for i = 1, #b do
  777. if b[i].className=="Part" then
  778. local targ = b[i].Position - newpos;
  779. local mag = targ.magnitude;
  780. if mag <= 10 then
  781. b[i].Velocity=vt(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  782. b[i]:BreakJoints()
  783. local angle = (b[i].Position-(newpos+Vector3.new(0,-3,0))).unit
  784. print(angle)
  785. --b[i].CFrame=CFrame.new(b[i].Position,Vector3.new(angle.x,b[i].Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  786. local bodyVelocity=Instance.new("BodyVelocity")
  787. bodyVelocity.velocity=angle*40+Vector3.new(0,10,0)
  788. bodyVelocity.P=5000
  789. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  790. bodyVelocity.Parent=b[i]
  791. coroutine.resume(coroutine.create(function(Vel)
  792. wait(0.7)
  793. Vel:Remove()
  794. end),bodyVelocity)
  795. end
  796. end
  797. end
  798. end
  799. local hum = c[i]:findFirstChild("Humanoid")
  800. if hum ~= nil and hum.Health ~= 0 then
  801. local head = c[i]:findFirstChild("Head");
  802. if head ~= nil then
  803. local targ = head.Position - newpos;
  804. local mag = targ.magnitude;
  805. if mag <= 20 then
  806. newpos2=newpos
  807. Damagefunc2(head,40,20)
  808. end
  809. end
  810. end
  811. end
  812. end
  813. if dynaammo==true then
  814. dynaammo=false
  815. local dynamite=part(3,modelzorz,0,0,BrickColor.new("Bright red"),"Dynamite",vt(1,1,1))
  816. dynamite.CanCollide=true
  817. local dynamsh=mesh("SpecialMesh",dynamite,"FileMesh","http://www.roblox.com/asset/?id=12891705",vt(0,0,0),vt(0.3,0.3,0.3))
  818. dynamsh.TextureId="http://www.roblox.com/asset/?id=12891577"
  819. dynamite.CFrame=dynacf
  820. dynamite.Velocity=dynamite.CFrame.lookVector*30
  821. coroutine.resume(coroutine.create(function(Bomb)
  822. wait(5)
  823. --Bomb=dynamite
  824. so("http://www.roblox.com/asset?id=2233908",Bomb,3,1)
  825. Bomb.Transparency=1
  826. b=it("Explosion")
  827. b.Parent=workspace
  828. b.Position=Bomb.Position
  829. b.BlastPressure=0
  830. local c = game.Workspace:GetChildren();
  831. for i = 1, #c do
  832. if c[i].className=="Model" and c[i]:findFirstChild("Humanoid")==nil then
  833. local b = c[i]:GetChildren();
  834. for i = 1, #b do
  835. if b[i].className=="Part" then
  836. local targ = b[i].Position - Bomb.Position;
  837. local mag = targ.magnitude;
  838. if mag <= 20 then
  839. b[i].Velocity=vt(math.random(-5,5),math.random(-5,5),math.random(-5,5))
  840. b[i]:BreakJoints()
  841. local angle = (b[i].Position-(newpos+Vector3.new(0,-3,0))).unit
  842. print(angle)
  843. --b[i].CFrame=CFrame.new(b[i].Position,Vector3.new(angle.x,b[i].Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  844. local bodyVelocity=Instance.new("BodyVelocity")
  845. bodyVelocity.velocity=angle*40+Vector3.new(0,10,0)
  846. bodyVelocity.P=5000
  847. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  848. bodyVelocity.Parent=b[i]
  849. coroutine.resume(coroutine.create(function(Vel)
  850. wait(0.7)
  851. Vel:Remove()
  852. end),bodyVelocity)
  853. end
  854. end
  855. end
  856. end
  857. local hum = c[i]:findFirstChild("Humanoid")
  858. if hum ~= nil and hum.Health ~= 0 then
  859. local head = c[i]:findFirstChild("Head");
  860. if head ~= nil then
  861. local targ = head.Position - Bomb.Position;
  862. local mag = targ.magnitude;
  863. if mag <= 20 then
  864. newpos2=Bomb.Position
  865. Damagefunc2(head,60,20)
  866. end
  867. end
  868. end
  869. end
  870. print("MULTI DYNAMITES")
  871. CF22=dynamite.CFrame
  872. for i=1,6 do
  873. newdynamite=part(3,workspace,0,0,BrickColor.new("Bright red"),"Mini Dynamite",vt(1,1,1))
  874. newdynamite.CanCollide=true
  875. newdynamsh=mesh("SpecialMesh",newdynamite,"FileMesh","http://www.roblox.com/asset/?id=12551202",vt(0,0,0),vt(0.3,1,0.3))
  876. newdynamsh.TextureId="http://www.roblox.com/asset/?id=20729766"
  877. newdynamite.CFrame=CF22*cf(math.random(-10,10),math.random(0,10),math.random(-10,10))
  878. newdynamite.Velocity=vt(math.random(-5,5),10,math.random(-5,5))
  879. --newdynamite.Velocity=vt(0,20,0)
  880. coroutine.resume(coroutine.create(function(Bombeh)
  881. Bombeh.Parent=workspace
  882. --Bombeh.CanCollide=false
  883. wait(0.1)
  884. --Bombeh.CanCollide=false
  885. print(Bombeh.CanCollide)
  886. wait(0.2)
  887. Bombeh.CFrame=CF22*cf(math.random(-10,10),math.random(0,10),math.random(-10,10))
  888. Bombeh.CanCollide=true
  889. wait(4+math.random())
  890. so("http://www.roblox.com/asset?id=2233908",Bombeh,3,1)
  891. b=it("Explosion")
  892. b.Parent=workspace
  893. b.Position=Bombeh.Position
  894. b.BlastPressure=0
  895. local c = game.Workspace:GetChildren();
  896. for i = 1, #c do
  897. local hum = c[i]:findFirstChild("Humanoid")
  898. if hum ~= nil and hum.Health ~= 0 then
  899. local head = c[i]:findFirstChild("Head");
  900. if head ~= nil then
  901. local targ = head.Position - Bombeh.Position;
  902. local mag = targ.magnitude;
  903. if mag <= 10 then
  904. newpos2=Bombeh.Position
  905. Damagefunc2(head,30,20)
  906. end
  907. end
  908. end
  909. end
  910. Bombeh.Transparency=1
  911. wait(1)
  912. Bombeh.Parent=nil
  913. end),newdynamite)
  914. end
  915. end),dynamite)
  916. end
  917. coroutine.resume(coroutine.create(function(Model)
  918. wait(0)
  919. Model.Parent=nil
  920. end),mode)
  921. end
  922.  
  923. Damagefunc1=function(hit,Damage,Knockback)
  924. if hit.Parent==nil then
  925. return
  926. end
  927. CPlayer=Bin
  928. h=hit.Parent:FindFirstChild("Humanoid")
  929. if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
  930. if attackdebounce == false then
  931. attackdebounce = true
  932. coroutine.resume(coroutine.create(function()
  933. wait(0.2)
  934. attackdebounce = false
  935. end))
  936. Damage=Damage
  937. --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
  938. return
  939. end]]
  940. -- hs(hit,1.2)
  941. c=Instance.new("ObjectValue")
  942. c.Name="creator"
  943. c.Value=game.Players.LocalPlayer
  944. c.Parent=h
  945. game:GetService("Debris"):AddItem(c,.5)
  946. Damage=Damage+math.random(0,10)
  947. -- h:TakeDamage(Damage)
  948. h.Health=h.Health-Damage
  949. showDamage(hit.Parent,Damage,.5)
  950. vp=Instance.new("BodyVelocity")
  951. vp.P=500
  952. vp.maxForce=Vector3.new(math.huge,0,math.huge)
  953. -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback
  954. vp.velocity=Torso.CFrame.lookVector*Knockback+Torso.Velocity/1.05
  955. if Knockback>0 then
  956. vp.Parent=hit.Parent.Torso
  957. end
  958. game:GetService("Debris"):AddItem(vp,.25)
  959. game:GetService("Debris"):AddItem(r,.5)
  960. c=Instance.new("ObjectValue")
  961. c.Name="creator"
  962. c.Value=Player
  963. c.Parent=h
  964. game:GetService("Debris"):AddItem(c,.5)
  965. CRIT=false
  966. hitDeb=true
  967. AttackPos=6
  968. end
  969. end
  970. end
  971.  
  972. Damagefunc2=function(hit,Damage,Knockback)
  973. --[[ if attackdebounce == false then
  974. attackdebounce = true
  975. coroutine.resume(coroutine.create(function()
  976. wait(0.1)
  977. attackdebounce = false
  978. end)) ]]
  979. if hit.Parent==nil then
  980. return
  981. end
  982. CPlayer=Bin
  983. blocked=false
  984. h=hit.Parent:FindFirstChild("Humanoid")
  985. if h~=nil and hit.Parent:FindFirstChild("Torso")~=nil then
  986. Damage=Damage
  987. c=it("ObjectValue")
  988. c.Name="creator"
  989. c.Value=game.Players.LocalPlayer
  990. c.Parent=h
  991. game:GetService("Debris"):AddItem(c,.5)
  992. -- print(c.Value)
  993. --[[ if math.random(0,99)+math.random()<=7.8 then
  994. CRIT=true
  995. Damage=Damage*2
  996. s=it("Sound")
  997. s.SoundId="http://www.roblox.com/asset/?id=2801263"
  998. s.Volume=1
  999. s.Pitch=2
  1000. s.Parent=hit
  1001. s.PlayOnRemove=true
  1002. s.Parent=nil
  1003.  
  1004. end]]
  1005. Damage=Damage+math.random(0,10)
  1006. -- Blood(hit.CFrame*cf(math.random(-10,10)/10,math.random(-10,10)/10,0),math.floor(Damage/2))
  1007. block=hit.Parent:findFirstChild("Block")
  1008. --[[ if block~=nil then
  1009. print("herp")
  1010. if block.Value>0 then
  1011. blocked=true
  1012. block.Value=block.Value-3
  1013. print(block.Value)
  1014. end
  1015. end]]
  1016. if blocked==false then
  1017. -- h:TakeDamage(Damage)
  1018. h.Health=h.Health-Damage
  1019. showDamage(hit.Parent,Damage,.5)
  1020. else
  1021. h:TakeDamage(1)
  1022. showDamage(hit.Parent,1,.5)
  1023. end
  1024. --if blocked==false then
  1025. local angle = (hit.Position-(newpos2+Vector3.new(0,-3,0))).unit
  1026. print(angle)
  1027. hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
  1028. rl=Instance.new("BodyAngularVelocity")
  1029. rl.P=3000
  1030. rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
  1031. rl.angularvelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  1032. rl.Parent=hit
  1033. coroutine.resume(coroutine.create(function(vel)
  1034. wait(1)
  1035. vel:Remove()
  1036. end),rl)
  1037. --end
  1038. local bodyVelocity=Instance.new("BodyVelocity")
  1039. bodyVelocity.velocity=angle*40+Vector3.new(0,35,0)
  1040. bodyVelocity.P=5000
  1041. bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
  1042. bodyVelocity.Parent=hit
  1043. coroutine.resume(coroutine.create(function(Vel)
  1044. wait(0.7)
  1045. Vel:Remove()
  1046. end),bodyVelocity)
  1047. game:GetService("Debris"):AddItem(vp,1)
  1048. c=it("ObjectValue")
  1049. c.Name="creator"
  1050. c.Value=Player
  1051. c.Parent=h
  1052. game:GetService("Debris"):AddItem(c,.5)
  1053. CRIT=false
  1054. hitDeb=true
  1055. AttackPos=6
  1056. end
  1057. -- end
  1058. end
  1059.  
  1060. showDamage=function(Char,Dealt,du)
  1061. m=Instance.new("Model")
  1062. m.Name=tostring(Dealt)
  1063. h=Instance.new("Humanoid")
  1064. h.Health=0
  1065. h.MaxHealth=0
  1066. h.Parent=m
  1067. c=Instance.new("Part")
  1068. c.Transparency=0
  1069. c.BrickColor=BrickColor:Red()
  1070. if CRIT==true then
  1071. c.BrickColor=BrickColor.new("Really red")
  1072. end
  1073. c.Name="Head"
  1074. c.TopSurface=0
  1075. c.BottomSurface=0
  1076. c.formFactor="Plate"
  1077. c.Size=Vector3.new(1,.4,1)
  1078. ms=Instance.new("CylinderMesh")
  1079. ms.Scale=Vector3.new(.8,.8,.8)
  1080. if CRIT==true then
  1081. ms.Scale=Vector3.new(1,1.25,1)
  1082. end
  1083. ms.Parent=c
  1084. c.Reflectance=0
  1085. Instance.new("BodyGyro").Parent=c
  1086. c.Parent=m
  1087. c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
  1088. f=Instance.new("BodyPosition")
  1089. f.P=2000
  1090. f.D=100
  1091. f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
  1092. f.position=c.Position+Vector3.new(0,3,0)
  1093. f.Parent=c
  1094. game:GetService("Debris"):AddItem(m,.5+du)
  1095. c.CanCollide=false
  1096. m.Parent=workspace
  1097. c.CanCollide=false
  1098. end
  1099.  
  1100. function ob1d(mouse)
  1101. dynamiting=false
  1102. if attack == true then return end
  1103. hold=true
  1104. attack=true
  1105. if mode=="Sword" then
  1106. repeat
  1107. if math.random(1,3)==1 then
  1108. rand=3
  1109. else
  1110. rand=math.random(1,2)
  1111. end
  1112. --rand=3
  1113. if rand==1 then
  1114. for i=0,1,0.15 do
  1115. wait()
  1116. Neck.C0=necko*euler(0,0,0)
  1117. Neck.C1=necko2*euler(-offset,0,0)
  1118. RW.C0=cf(1.5, 0.5, 0) * euler(0.5,0,0.2)
  1119. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4,0)
  1120. LW.C0=cf(-1.5, 0.5, 0) * euler(1-offset+2*i,0,0)
  1121. LW.C1=cf(0, 0.5, 0) * euler(0,0,0.2-0.2*i)
  1122. end
  1123. con1=prt33.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  1124. so("http://roblox.com/asset/?id=10209640",LeftArm,0.5,1)
  1125. for i=0,1,0.2 do
  1126. wait()
  1127. Neck.C0=necko*euler(0,0,0)
  1128. Neck.C1=necko2*euler(-offset,0,0)
  1129. RW.C0=cf(1.5, 0.5, 0) * euler(0.5,0,0.2)
  1130. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4,0)
  1131. LW.C0=cf(-1.5, 0.5, 0) * euler(1-offset+2-4*i,0,0)
  1132. LW.C1=cf(0, 0.5, 0) * euler(0,0,0)
  1133. end
  1134. con1:disconnect()
  1135. for i=0,1,0.15 do
  1136. wait()
  1137. Neck.C0=necko*euler(0,0,0)
  1138. Neck.C1=necko2*euler(-offset,0,0)
  1139. RW.C0=cf(1.5, 0.5, 0) * euler(0.5,0,0.2)
  1140. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4,0)
  1141. LW.C0=cf(-1.5, 0.5, 0) * euler(1-offset-2+2*i,0,0)
  1142. LW.C1=cf(0, 0.5, 0) * euler(0,0,0.2*i)
  1143. end
  1144. elseif rand==2 then
  1145. for i=0,1,0.15 do
  1146. wait()
  1147. Neck.C0=necko*euler(0,0,0)
  1148. Neck.C1=necko2*euler(-offset,0,0)
  1149. RW.C0=cf(1.5, 0.5, 0) * euler(0.5,0,0.2)
  1150. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4,0)
  1151. LW.C0=cf(-1.5+0.8*i, 0.5+0.5*i, -0.5*i) * euler(1-offset+0.57*i,0,1.57*i)
  1152. LW.C1=cf(0, 0.5, 0) * euler(0,1.57*i,0.2-0.2*i)
  1153. end
  1154. con1=prt33.Touched:connect(function(hit) Damagefunc1(hit,20,10) end)
  1155. so("http://roblox.com/asset/?id=10209640",LeftArm,0.5,1)
  1156. for i=0,1,0.2 do
  1157. wait()
  1158. Neck.C0=necko*euler(0,0,0)
  1159. Neck.C1=necko2*euler(-offset,0,0)
  1160. RW.C0=cf(1.5, 0.5, 0) * euler(0.5,0,0.2)
  1161. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4,0)
  1162. LW.C0=cf(-1.5+0.8-0.8*i, 0.5+0.5-0.5*i, -0.5+0.5*i) * euler(1-offset+0.57,0,1.57-3.14*i)
  1163. LW.C1=cf(0, 0.5, 0) * euler(0,1.57,0)
  1164. end
  1165. con1:disconnect()
  1166. for i=0,1,0.15 do
  1167. wait()
  1168. Neck.C0=necko*euler(0,0,0)
  1169. Neck.C1=necko2*euler(-offset,0,0)
  1170. RW.C0=cf(1.5, 0.5, 0) * euler(0.5,0,0.2)
  1171. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4,0)
  1172. LW.C0=cf(-1.5, 0.5, 0) * euler(1-offset+0.57-0.57*i,0,-1.57+1.57*i)
  1173. LW.C1=cf(0, 0.5, 0) * euler(0,1.57-1.57*i,0.2*i)
  1174. end
  1175. elseif rand==3 then
  1176. CRIT=true
  1177. for i=0,1,0.1 do
  1178. wait()
  1179. Neck.C0=necko*euler(0,0,0)
  1180. Neck.C1=necko2*euler(-offset,0,0)
  1181. RW.C0=cf(1.5-0.7*i, 0.5+0.2*i, -0.5*i) * euler(0.5+1.5*i,0,0.2-0.2*i)
  1182. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4+0.4*i,0.6*i)
  1183. LW.C0=cf(-1.5+0.7*i, 0.5+0.2*i, -0.5*i) * euler(1-offset+(offset+1)*i,0,0)
  1184. LW.C1=cf(0, 0.5, 0) * euler(0,0,0.2-0.8*i)
  1185. wld27.C0=euler(-1.57,0,-1.57+0.6*i)*cf(0,1,0)
  1186. end
  1187. con1=prt33.Touched:connect(function(hit) Damagefunc1(hit,60,10) end)
  1188. so("http://roblox.com/asset/?id=10209640",LeftArm,1,0.8)
  1189. for i=0,1,0.3 do
  1190. wait()
  1191. Neck.C0=necko*euler(0,0,0)
  1192. Neck.C1=necko2*euler(-offset,0,0)
  1193. RW.C0=cf(1.5-0.7, 0.5+0.2-0.4*i, -0.5) * euler(2-1.8*i,0,0)
  1194. RW.C1=cf(0, 0.5, 0) * euler(0,0,0.6)
  1195. LW.C0=cf(-1.5+0.7, 0.5+0.2-0.4*i, -0.5) * euler(2-1.8*i,0,0)
  1196. LW.C1=cf(0, 0.5, 0) * euler(0,0,-0.6)
  1197. wld27.C0=euler(-1.57,0,-1.57+0.6)*cf(0,1,0)
  1198. end
  1199. con1:disconnect()
  1200. for i=0,1,0.1 do
  1201. wait()
  1202. Neck.C0=necko*euler(0,0,0)
  1203. Neck.C1=necko2*euler(-offset,0,0)
  1204. RW.C0=cf(1.5-0.7+0.7*i, 0.5-0.2+0.2*i, -0.5+0.5*i) * euler(0.2+0.3*i,0,0.2*i)
  1205. RW.C1=cf(0, 0.5, 0) * euler(0,-0.4*i,0.6-0.6*i)
  1206. LW.C0=cf(-1.5+0.7-0.7*i, 0.5-0.2+0.2*i, -0.5+0.5*i) * euler(0.2+(0.8-offset)*i,0,0)
  1207. LW.C1=cf(0, 0.5, 0) * euler(0,0,-0.6+0.8*i)
  1208. wld27.C0=euler(-1.57,0,-1.57+0.6-0.6*i)*cf(0,1,0)
  1209. end
  1210. CRIT=false
  1211. end
  1212. wait()
  1213. until hold==false
  1214. else
  1215. repeat
  1216. if count~=2 then
  1217. if count==0 then
  1218. CircleEffect(prt23.CFrame*cf(0,1,0),3,3,3,BrickColor.new("Bright red"))
  1219. BlastEffect(prt23.CFrame*cf(0,2,0),3,3,3,BrickColor.new("Bright red"))
  1220. else
  1221. CircleEffect(prt24.CFrame*cf(0,1,0),3,3,3,BrickColor.new("Bright red"))
  1222. BlastEffect(prt24.CFrame*cf(0,2,0),3,3,3,BrickColor.new("Bright red"))
  1223. end
  1224. coroutine.resume(coroutine.create(function()
  1225. so("http://www.roblox.com/asset?id=10209633",prt26,1,1)
  1226. shoottrail(mouse)
  1227. end))
  1228. dynamiteammo=false
  1229. for i=0,1,0.5 do
  1230. wait(0)
  1231. Neck.C1=necko2*euler(-offset,0,0)
  1232. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  1233. RW.C1=cf(0, 0.5, 0) * euler(offset-0.3*i,-0.4,0.6)
  1234. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.2,0,0.2)
  1235. LW.C1=cf(0, 0.5, 0) * euler(offset-0.3*i,0,0)
  1236. end
  1237. for i=0,1,0.5 do
  1238. wait(0)
  1239. Neck.C1=necko2*euler(-offset,0,0)
  1240. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  1241. RW.C1=cf(0, 0.5, 0) * euler(offset-0.3+0.3*i,-0.4,0.6)
  1242. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.2,0,0.2)
  1243. LW.C1=cf(0, 0.5, 0) * euler(offset-0.3+0.3*i,0,0)
  1244. end
  1245. end
  1246. wait(0.2)
  1247. until hold==false
  1248. end
  1249. attack=false
  1250. end
  1251.  
  1252. function ob1u(mouse)
  1253. hold = false
  1254. end
  1255.  
  1256. buttonhold = false
  1257.  
  1258. function key(key)
  1259. if attack == true then return end
  1260. if key=="f" then
  1261. if mode=="LnL" then
  1262. mode="Sword"
  1263. numb=3.14
  1264. unequipweld()
  1265. wld27.Part1=LeftArm
  1266. wld27.C0=euler(-1.57,0,-1.57)*cf(0,1,0)
  1267. elseif mode=="Sword" then
  1268. mode="LnL"
  1269. numb=3.14-0.8
  1270. equipweld()
  1271. wld1.C0=euler(1,0,0)*cf(0,0.8,0)
  1272. wld27.Part1=Torso
  1273. wld27.C0=euler(0,0,0)*cf(0.5,-2,-0.5)
  1274. end
  1275. end
  1276. if mode=="Sword" then
  1277. if key=="g" then
  1278. ThrowGrenade()
  1279. end
  1280. elseif mode=="LnL" then
  1281. if key=="z" then
  1282. Command1()
  1283. end
  1284. if key=="g" then
  1285. Dynamite()
  1286. end
  1287. if key=="h" and count~=0 then
  1288. reloading=true
  1289. attack=true
  1290. so("http://roblox.com/asset/?id=10209636",prt1,1,0.7)
  1291. for i=0,1,0.2 do
  1292. wait()
  1293. wld10.C0=euler(0,0.785*i,0)*cf(0,0,0)
  1294. Neck.C1=necko2*euler(-offset+0.3*i,0,0)
  1295. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  1296. RW.C1=cf(0, 0.5, 0) * euler(offset-0.3*i,-0.4,0.6)
  1297. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.2,0,0.2)
  1298. LW.C1=cf(0, 0.5, 0) * euler(offset-0.3*i,0,0)
  1299. end
  1300. for i=0,1,0.2 do
  1301. wait()
  1302. wld10.C0=euler(0,0.785+0.785*i,0)*cf(0,0,0)
  1303. Neck.C1=necko2*euler(-offset+0.3+(offset-0.5)*i,0,0)
  1304. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  1305. RW.C1=cf(0, 0.5, 0) * euler(offset-0.3-(offset-0.5)*i,-0.4,0.6+0.2*i)
  1306. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.2,0,0.2)
  1307. LW.C1=cf(0, 0.5, 0) * euler(offset-0.3-(offset-0.5)*i,0,0)
  1308. end
  1309. for i=0,1,0.2 do
  1310. wait()
  1311. Neck.C1=necko2*euler(-0.2,0,0)
  1312. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  1313. RW.C1=cf(0, 0.5, 0) * euler(0.2,-0.4,0.6+0.2)
  1314. 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)
  1315. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  1316. end
  1317. local dynamite=part(3,modelzorz,0,0,BrickColor.new("Bright red"),"Dynamite",vt(1,1,1))
  1318. local dynamsh=mesh("SpecialMesh",dynamite,"FileMesh","http://www.roblox.com/asset/?id=12891705",vt(0,0,0),vt(0.3,0.3,0.3))
  1319. dynamsh.TextureId="http://www.roblox.com/asset/?id=12891577"
  1320. bwld4=weld(dynamite,dynamite,LeftArm,euler(0,0,0)*cf(0,1,0))
  1321. for i=0,1,0.2 do
  1322. wait()
  1323. 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)
  1324. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  1325. bwld4.C0=euler(0,0,0)*cf(0.2*i,1,0)
  1326. end
  1327. bwld4.Part1=prt13
  1328. bwld4.C0=euler(1.57,0,0)*cf(0,2,0)
  1329. so("http://roblox.com/asset/?id=10209636",dynamite,1,1)
  1330. for i=0,1,0.2 do
  1331. wait()
  1332. LW.C0=cf(-1.5+0.5, 0.5, -0.7) * euler(1.2-0.5*i,0,-0.1)
  1333. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  1334. bwld4.C0=euler(1.57,0,0)*cf(0,2-2*i,0)
  1335. end
  1336. dynamite.Parent=nil
  1337. count=count-1
  1338. so("http://roblox.com/asset/?id=10209636",prt1,1,0.7)
  1339. for i=0,1,0.2 do
  1340. wait()
  1341. wld10.C0=euler(0,1.57-1.57*i,0)*cf(0,0,0)
  1342. Neck.C1=necko2*euler(-0.2+0.4*i,0,0)
  1343. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  1344. RW.C1=cf(0, 0.5, 0) * euler(0.2-0.4*i,-0.4,0.8-0.2*i)
  1345. 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)
  1346. LW.C1=cf(0, 0.5, 0) * euler(0.2-0.4*i,0,0)
  1347. end
  1348. for i=0,1,0.2 do
  1349. wait()
  1350. Neck.C1=necko2*euler(-0.2+0.4-(0.2+offset)*i,0,0)
  1351. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  1352. RW.C1=cf(0, 0.5, 0) * euler(0.2-0.4+(0.2+offset)*i,-0.4,0.6)
  1353. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.2,0,0.2)
  1354. LW.C1=cf(0, 0.5, 0) * euler(0.2-0.4+(0.2+offset)*i,0,0)
  1355. end
  1356. dynamiteammo=true
  1357. attack=false
  1358. reloading=false
  1359. end
  1360. if key=="r" and count~=0 then
  1361. reloading=true
  1362. attack=true
  1363. so("http://roblox.com/asset/?id=10209636",prt1,1,0.7)
  1364. for i=0,1,0.2 do
  1365. wait()
  1366. wld10.C0=euler(0,0.785*i,0)*cf(0,0,0)
  1367. Neck.C1=necko2*euler(-offset+0.3*i,0,0)
  1368. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  1369. RW.C1=cf(0, 0.5, 0) * euler(offset-0.3*i,-0.4,0.6)
  1370. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.2,0,0.2)
  1371. LW.C1=cf(0, 0.5, 0) * euler(offset-0.3*i,0,0)
  1372. end
  1373. for i=0,1,0.2 do
  1374. wait()
  1375. wld10.C0=euler(0,0.785+0.785*i,0)*cf(0,0,0)
  1376. Neck.C1=necko2*euler(-offset+0.3+(offset-0.5)*i,0,0)
  1377. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  1378. RW.C1=cf(0, 0.5, 0) * euler(offset-0.3-(offset-0.5)*i,-0.4,0.6+0.2*i)
  1379. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.2,0,0.2)
  1380. LW.C1=cf(0, 0.5, 0) * euler(offset-0.3-(offset-0.5)*i,0,0)
  1381. end
  1382. for i=0,1,0.2 do
  1383. wait()
  1384. Neck.C1=necko2*euler(-0.2,0,0)
  1385. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  1386. RW.C1=cf(0, 0.5, 0) * euler(0.2,-0.4,0.6+0.2)
  1387. 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)
  1388. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  1389. end
  1390. local mode,bprt1=bomb()
  1391. mode["Bomb Part2"].BrickColor=BrickColor.new("White")
  1392. mode["Bomb Part3"].BrickColor=BrickColor.new("White")
  1393. bprt1.Weld.Parent=nil
  1394. bwld4=weld(bprt1,bprt1,LeftArm,euler(1.57,0,0)*cf(0,1,0))
  1395. for i=0,1,0.2 do
  1396. wait()
  1397. 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)
  1398. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  1399. bwld4.C0=euler(1.57-3.6*i,0,0)*cf(0.2*i,1,0)
  1400. end
  1401. bwld4.Part1=prt13
  1402. bwld4.C0=cf(0,2,0)
  1403. so("http://roblox.com/asset/?id=10209636",bprt1,1,1)
  1404. for i=0,1,0.2 do
  1405. wait()
  1406. LW.C0=cf(-1.5+0.5, 0.5, -0.7) * euler(1.2-0.5*i,0,-0.1)
  1407. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  1408. bwld4.C0=cf(0,2-2*i,0)
  1409. end
  1410. mode.Parent=nil
  1411. count=count-1
  1412. if count==1 then
  1413. for i=0,1,0.2 do
  1414. wait()
  1415. 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)
  1416. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  1417. end
  1418. local mode,bprt1=bomb()
  1419. mode["Bomb Part2"].BrickColor=BrickColor.new("White")
  1420. mode["Bomb Part3"].BrickColor=BrickColor.new("White")
  1421. bprt1.Weld.Parent=nil
  1422. bwld4=weld(bprt1,bprt1,LeftArm,euler(1.57,0,0)*cf(0,1,0))
  1423. for i=0,1,0.2 do
  1424. wait()
  1425. 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)
  1426. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  1427. bwld4.C0=euler(1.57-3.6*i,0,0)*cf(0.4*i,1+0.5*i,0)
  1428. end
  1429. bwld4.Part1=prt15
  1430. bwld4.C0=cf(0,2,0)
  1431. so("http://roblox.com/asset/?id=10209636",bprt1,1,1)
  1432. for i=0,1,0.2 do
  1433. wait()
  1434. LW.C0=cf(-1.5+0.5, 0.5, -0.7) * euler(1.2-0.5*i,0,-0.1)
  1435. LW.C1=cf(0, 0.5, 0) * euler(0.2,0,0)
  1436. bwld4.C0=cf(0,2-2*i,0)
  1437. end
  1438. mode.Parent=nil
  1439. end
  1440. so("http://roblox.com/asset/?id=10209636",prt1,1,0.7)
  1441. for i=0,1,0.2 do
  1442. wait()
  1443. wld10.C0=euler(0,1.57-1.57*i,0)*cf(0,0,0)
  1444. Neck.C1=necko2*euler(-0.2+0.4*i,0,0)
  1445. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  1446. RW.C1=cf(0, 0.5, 0) * euler(0.2-0.4*i,-0.4,0.8-0.2*i)
  1447. 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)
  1448. LW.C1=cf(0, 0.5, 0) * euler(0.2-0.4*i,0,0)
  1449. end
  1450. for i=0,1,0.2 do
  1451. wait()
  1452. Neck.C1=necko2*euler(-0.2+0.4-(0.2+offset)*i,0,0)
  1453. RW.C0=cf(1.5, 0.5, 0) * euler(0.9,0,0)
  1454. RW.C1=cf(0, 0.5, 0) * euler(0.2-0.4+(0.2+offset)*i,-0.4,0.6)
  1455. LW.C0=cf(-1.5+0.5, 0.5, -0.5) * euler(1.2,0,0.2)
  1456. LW.C1=cf(0, 0.5, 0) * euler(0.2-0.4+(0.2+offset)*i,0,0)
  1457. end
  1458. count=0
  1459. attack=false
  1460. reloading=false
  1461. end
  1462. end
  1463. end
  1464.  
  1465. function key2(key)
  1466. end
  1467.  
  1468. function s(mouse)
  1469. unsheathed = true
  1470. player = Player
  1471. ch = Character
  1472. MMouse = mouse
  1473. RSH = ch.Torso["Right Shoulder"]
  1474. LSH = ch.Torso["Left Shoulder"]
  1475. --
  1476. RSH.Parent = nil
  1477. LSH.Parent = nil
  1478. --
  1479. RW.Part0 = ch.Torso
  1480. RW.C0 = CFrame.new(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
  1481. RW.C1 = CFrame.new(0, 0.5, 0)
  1482. RW.Part1 = ch["Right Arm"]
  1483. RW.Parent = ch.Torso
  1484. --_G.R = RW
  1485. --
  1486. LW.Part0 = ch.Torso
  1487. LW.C0 = CFrame.new(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
  1488. LW.C1 = CFrame.new(0, 0.5, 0)
  1489. LW.Part1 = ch["Left Arm"]
  1490. LW.Parent = ch.Torso
  1491. --_G.L = LW
  1492. --
  1493. equipanim(mouse)
  1494. end
  1495.  
  1496. function ds(mouse)
  1497. mode="LnL"
  1498. numb=3.14-0.8
  1499. wld27.Part1=Torso
  1500. wld27.C0=euler(0,0,0)*cf(0.5,-2,-0.5)
  1501. unsheathed = false
  1502. hideanim()
  1503. wait(0)
  1504. RW.Parent = nil
  1505. LW.Parent = nil
  1506. RSH.Parent = player.Character.Torso
  1507. LSH.Parent = player.Character.Torso
  1508. end
  1509.  
  1510.  
  1511. print("Fenrier's Loch-n-Load loaded.")
  1512. -- mediafire
  1513. --[[
  1514. Copyrighted (C) Fenrier 2012
  1515. This script is copyrighted for Fenrier. Any use of this script is breaking
  1516. this copyright.
  1517. All Rights Reserved.
  1518. ]]
  1519.  
  1520. remote = Instance.new 'RemoteFunction';
  1521. remote.Parent = script;
  1522. remote.OnServerInvoke = function (player, request, ...)
  1523. if (player ~= owner) then
  1524. return error ('You cannot invoke this remote', 0);
  1525. end;
  1526. if (request == 1) then
  1527. local mouse = ...;
  1528. ob1d(mouse)
  1529. end
  1530. if (request == 2) then
  1531. local k = ...;
  1532. key(k)
  1533.  
  1534. end;
  1535. if (request == 3) then
  1536. local mouse = ...;
  1537. ob1u(mouse)
  1538. end
  1539. if (request == 4) then
  1540. local mouse = ...;
  1541. s(mouse)
  1542. end;
  1543. if (request == 5) then
  1544. local mouse = ...;
  1545. ds(mouse)
  1546. end;
  1547. if (request == 6) then
  1548. local k = ...;
  1549. key2(k)
  1550. end;
  1551. end
  1552. remote.Name = 'ServerRemote';
  1553. ]=], owner.Character):WaitForChild 'ServerRemote';
  1554.  
  1555. local plr = game.Players.LocalPlayer
  1556. local chr = plr.Character
  1557. local fakemouse = plr:GetMouse()
  1558.  
  1559. q = Instance.new('HopperBin', plr.Backpack)
  1560. q.Name = 'LnL'
  1561. Bin=q
  1562.  
  1563. Bin.Selected:connect(function(mouse)
  1564. remote:InvokeServer(4,fakemouse);
  1565. mouse.Button1Down:connect(function()
  1566. remote:InvokeServer (1,fakemouse);
  1567. end)
  1568. mouse.Button1Up:Connect(function()
  1569. remote:InvokeServer (3,fakemouse);
  1570. end)
  1571. mouse.KeyDown:connect(function(k)
  1572. k = k:lower()
  1573.  
  1574. remote:InvokeServer (2, k);
  1575. end)
  1576. mouse.KeyUp:connect(function(k)
  1577. k = k:lower()
  1578.  
  1579. remote:InvokeServer (6, k);
  1580. end)
  1581. end)
  1582.  
  1583. Bin.Deselected:Connect(function()
  1584. remote:InvokeServer(5);
  1585. end)
  1586.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement