TheProNoob2004

TB Dual Pistolz

Jun 18th, 2016
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.03 KB | None | 0 0
  1. script:ClearAllChildren()
  2. loadstring(_G[" TBLib "])()
  3.  
  4. Player=game:GetService("Players").LocalPlayer
  5. Char=Player.Character
  6. Backpack=Player.Backpack
  7. PlayerGui=Player.PlayerGui
  8. Torso=Char.Torso
  9. Head=Char.Head
  10. Hum=Char.Humanoid
  11. Cam=workspace.CurrentCamera
  12. Tn="Dual-Pistols"
  13.  
  14. pcall(function() Backpack[Tn]:Remove() end)
  15. pcall(function() Cam[Tn]:Remove() end)
  16. pcall(function() thesuit=Char[''] end)
  17. pcall(function() Char.Block:Remove() end)
  18. pcall(function() PlayerGui[Tn]:Remove() end)
  19.  
  20. CModel=qi{'Model',Cam,Name=Tn}
  21. Tool=qi{'HopperBin',Player.Backpack,Name=Tn}
  22. Suit=qi{'Model',Char,Name=''}
  23. Gui=qi{'ScreenGui',PlayerGui,Name=Tn}
  24.  
  25. equip="unequipped"
  26. anim=""
  27. animb=""
  28. animc=""
  29. keys={}
  30. buttons={}
  31. buttons["1"]=0
  32. buttons["2"]=0
  33. Last = 1
  34. coolt=0.2
  35. lastt=0
  36. Gyr0z=false
  37. b1d=false
  38. b2d=false
  39. Prone=false
  40. lastctr=""
  41.  
  42. ids = {}
  43. ids.Slash = 10209645
  44. ids.Slash2 = 46760716
  45. ids.Shoot = 2691586
  46. ids.Shoot2 = 10209842
  47. ids.Ring = 3270017
  48. ids.Crown = 20329976
  49. ids.Icon = 52611635
  50. ids.Flame = 31760113
  51. ids.Spike = 1033714
  52. ids.Hit = 10209590
  53.  
  54. for i,v in pairs(ids) do
  55. if type(v)=='number' then
  56. ids[i]='http://www.roblox.com/asset/?id='..v
  57. end
  58. end
  59.  
  60. Limbs={LS=Torso:findFirstChild'Left Shoulder',RS=Torso:findFirstChild'Right Shoulder',LH=Torso:findFirstChild'Left Hip',RH=Torso:findFirstChild'Right Hip'}
  61. if _G.Limbz then
  62. Limbs.LS=Limbs.LS or _G.Limbz.LS
  63. Limbs.RS=Limbs.RS or _G.Limbz.RS
  64. Limbs.LH=Limbs.LH or _G.Limbz.LH
  65. Limbs.RH=Limbs.RH or _G.Limbz.RH
  66. end
  67. _G.Limbz=Limbs
  68. Torso.Neck.C0=cn(0,1.5,0) Torso.Neck.C1=cn(0,0,0)
  69. c2(Torso.Neck,1,3,0,1.5,0,0,0,0)
  70. LS,RS,LH,RH=Limbs.LS,Limbs.RS,Limbs.LH,Limbs.RH
  71. LA,RA,LL,RL=Char['Left Arm'],Char['Right Arm'],Char['Left Leg'],Char['Right Leg']
  72. LS.Part0,RS.Part0,LH.Part0,RH.Part0=Torso,Torso,Torso,Torso
  73. LS.Part1,RS.Part1,LH.Part1,RH.Part1=LA,RA,LL,RL
  74.  
  75. pcall(function() thesuit:Remove() end)
  76.  
  77. fTorso=Char.HumanoidRootPart
  78. tw=weld(Torso,fTorso,Torso,0,0,0,0,0,0)
  79. hw=weld(Head,Torso,Head,0,1.5,0,0,0,0)
  80. la=qi{'Weld',Torso,Part0=Torso,C0=cn(-1.5,0.5,0),C1=cn(0,0.5,0)}ra=qi{'Weld',Torso,Part0=Torso,C0=cn(1.5,0.5,0),C1=cn(0,0.5,0)}
  81. ll=qi{'Weld',Torso,Part0=Torso,C0=cn(-0.5,-1,0),C1=cn(0,1,0)}rl=qi{'Weld',Torso,Part0=Torso,C0=cn(0.5,-1,0),C1=cn(0,1,0)}
  82.  
  83. Armz=false
  84. Legz=false
  85. Arms = function(on) Armz=on
  86. if on then
  87. LS.Part1=nil RS.Part1=nil
  88. la.Part0=Torso ra.Part0=Torso
  89. la.Part1=LA ra.Part1=RA
  90. la.C0,la.C1=cn(-1.5,0.5,0),cn(0,0.5,0)
  91. ra.C0,ra.C1=cn(1.5,0.5,0),cn(0,0.5,0)
  92. else
  93. LS.Parent,RS.Parent=Torso,Torso LS.Part0=Torso RS.Part0=Torso LS.Part1=LA RS.Part1=RA
  94. la.Part1=nil ra.Part1=nil
  95. end
  96. end
  97.  
  98. Legs = function(on) Legz=on
  99. if on then
  100. LH.Part1=nil RH.Part1=nil
  101. ll.Part0=Torso rl.Part0=Torso
  102. ll.Part1=LL rl.Part1=RL
  103. ll.C0,ll.C1=cn(-0.5,-1,0),cn(0,1,0)
  104. rl.C0,rl.C1=cn(0.5,-1,0),cn(0,1,0)
  105. else
  106. LH.Parent,RH.Parent=Torso,Torso LH.Part0=Torso RH.Part0=Torso LH.Part1=LL RH.Part1=RL
  107. ll.Part1=nil rl.Part1=nil
  108. end
  109. end
  110. Arms'' Legs''
  111.  
  112. WDesign=function()
  113. belt=pa(Suit,"","Block",2.1,0.2,1.1,false,false,0,0,"Brown") weld(belt,Torso,belt,0,-1,0,0,0,0)
  114. pack=pa(Suit,"","Block",0.4,1.35,0.8,false,false,0,0,"Brown") weld(pack,belt,pack,1.15,-1.25/2,0,0,0,0)
  115. pack2=pa(Suit,"","Block",0.2,0,0.8/2+0.8/4,false,false,0,0,"Really black")weld(pack2,pack,pack2,0,1.35/2,0,0,0,0) qi{"BlockMesh",pack2,Scale=v3(1,0.01,1)}
  116. pack2=pa(Suit,"","Block",0.4,1.35,0.8,false,false,0,0,"Brown")weld(pack2,belt,pack2,-1.15,-1.25/2,0,0,0,0)
  117. pack22=pa(Suit,"","Block",0.2,0,0.8/2+0.8/4,false,false,0,0,"Really black")weld(pack22,pack2,pack22,0,1.35/2,0,0,0,0) qi{"BlockMesh",pack22,Scale=v3(1,0.01,1)}
  118. ha=pa(Suit,"","Block",0,0,0,false,false,1,0) haw=weld(ha,pack,ha,0,0.9,0.425,rd(-90),0,0)
  119. hp1=pa(Suit,"","Block",0.2,1,0.4,false,false,0,0) weld(hp1,ha,hp1,0,0,0,rd(-8),0,0) qi{"BlockMesh",hp1}
  120. hp=pa(Suit,"","Block",0.2,0.2,0.4,false,false,0,0) weld(hp,ha,hp,0,-0.5,0.065,0,0,0)qi{"BlockMesh",hp,Scale=v3(1,0.5,1)}
  121. hp=pa(Suit,"","Block",0.21,0.9,0.3,false,false,0,0,"Black") weld(hp,hp1,hp,0,0,0,0,0,0)qi{"BlockMesh",hp}
  122. hp=pa(Suit,"","Block",0.2,0.2,0.4,false,false,0,0) weld(hp,ha,hp,0,0.5,-0.065,0,0,0)qi{"BlockMesh",hp,Scale=v3(1,0.5,1)}
  123. hp=pa(Suit,"","Block",0.2,0.22,0.2,false,false,0,0) weld(hp,hp1,hp,0,0.25,0,0,0,rd(-90))qi{"CylinderMesh",hp,Scale=v3(0.5,1,0.5)}
  124. hp=pa(Suit,"","Block",0.2,0.22,0.2,false,false,0,0) weld(hp,hp1,hp,0,-0.25,0,0,0,rd(-90))qi{"CylinderMesh",hp,Scale=v3(0.5,1,0.5)}
  125. hp=pa(Suit,"","Block",0.2,0.2,1.25,false,false,0,0) weld(hp,ha,hp,0,0.5,-0.625+0.2,0,0,0)qi{"BlockMesh",hp}
  126. hp=pa(Suit,"","Block",0.2,1.25,0.2,false,false,0,0) weld(hp,ha,hp,0,0.4,-0.625+0.2,rd(-90),0,0)qi{"CylinderMesh",hp}
  127. hp=pa(Suit,"","Block",0.25,0.15,1.35,false,false,0,0) weld(hp,ha,hp,0,0.6,-0.625+0.2-0.05,0,0,0)qi{"BlockMesh",hp}
  128. hp=pa(Suit,"","Block",0.2,1,0.25,false,false,0,0) weld(hp,ha,hp,0,0.1,-0.3,0,0,0)qi{"BlockMesh",hp,Scale=v3(0.25,0.04,1)}
  129. hp=pa(Suit,"","Block",0.2,1,0.25,false,false,0,0) weld(hp,ha,hp,0,0.225,-0.425,rd(-100),0,0)qi{"BlockMesh",hp,Scale=v3(0.25,0.04,1)}
  130. hp=pa(Suit,"","Block",0.2,1,0.2,false,false,0,0) weld(hp,ha,hp,0,0.225,-0.325,rd(-100),0,0)qi{"BlockMesh",hp,Scale=v3(0.25,0.04,0.75)}
  131. hp=pa(Suit,"","Block",0.2,0.2,0.2,false,false,0,0) weld(hp,ha,hp,0,0.45,-0.625-0.45,rd(-90),0,0)qi{"CylinderMesh",hp,Scale=v3(0.75,0.75,0.75)}
  132. hp=pa(Suit,"","Block",0.2,0.2,0.2,false,false,0,0) weld(hp,ha,hp,0,0.525,-0.625-0.45,rd(-90),0,0)qi{"BlockMesh",hp,Scale=v3(0.75,0.75,0.75)}
  133. hp=pa(Suit,"","Block",0.25,0.15,1.35,false,false,0,0) weld(hp,ha,hp,0,0.6,-0.625+0.2-0.05,0,0,0)qi{"BlockMesh",hp}
  134. hp=pa(Suit,"","Block",0.25,0.3,0.25,false,false,0,0) weld(hp,ha,hp,0,0.7,0.05,rd(-90),0,0)qi{"CylinderMesh",hp}
  135. b1=pa(Suit,"","Block",0.2,1.4,0.2,false,false,0,0) weld(b1,ha,b1,0,0.7,-0.5,rd(-90),0,0)qi{"CylinderMesh",b1,Scale=v3(0.6,1,0.6)}
  136. hp=pa(Suit,"","Block",0.25,0.2,0.25,false,false,0,0) weld(hp,ha,hp,0,0.7,-1.05,rd(-90),0,0)qi{"CylinderMesh",hp}
  137. hp=pa(Suit,"","Block",0.2,0.2,0.2,false,false,0,0,"Really black") weld(hp,ha,hp,0,0.7,-1.2,rd(-90),0,0)qi{"CylinderMesh",hp,Scale=v3(0.4,0.01,0.4)}
  138. ha2=pa(Suit,"","Block",0,0,0,false,false,1,0) haw2=weld(ha2,pack2,ha2,0,0.9,0.425,rd(-90),0,0)
  139. hp1=pa(Suit,"","Block",0.2,1,0.4,false,false,0,0) weld(hp1,ha2,hp1,0,0,0,rd(-8),0,0) qi{"BlockMesh",hp1}
  140. hp=pa(Suit,"","Block",0.2,0.2,0.4,false,false,0,0) weld(hp,ha2,hp,0,-0.5,0.065,0,0,0)qi{"BlockMesh",hp,Scale=v3(1,0.5,1)}
  141. hp=pa(Suit,"","Block",0.21,0.9,0.3,false,false,0,0,"Black") weld(hp,hp1,hp,0,0,0,0,0,0)qi{"BlockMesh",hp}
  142. hp=pa(Suit,"","Block",0.2,0.2,0.4,false,false,0,0) weld(hp,ha2,hp,0,0.5,-0.065,0,0,0)qi{"BlockMesh",hp,Scale=v3(1,0.5,1)}
  143. hp=pa(Suit,"","Block",0.2,0.22,0.2,false,false,0,0) weld(hp,hp1,hp,0,0.25,0,0,0,rd(-90))qi{"CylinderMesh",hp,Scale=v3(0.5,1,0.5)}
  144. hp=pa(Suit,"","Block",0.2,0.22,0.2,false,false,0,0) weld(hp,hp1,hp,0,-0.25,0,0,0,rd(-90))qi{"CylinderMesh",hp,Scale=v3(0.5,1,0.5)}
  145. hp=pa(Suit,"","Block",0.2,0.2,1.25,false,false,0,0) weld(hp,ha2,hp,0,0.5,-0.625+0.2,0,0,0)qi{"BlockMesh",hp}
  146. hp=pa(Suit,"","Block",0.2,1.25,0.2,false,false,0,0) weld(hp,ha2,hp,0,0.4,-0.625+0.2,rd(-90),0,0)qi{"CylinderMesh",hp}
  147. hp=pa(Suit,"","Block",0.25,0.15,1.35,false,false,0,0) weld(hp,ha2,hp,0,0.6,-0.625+0.2-0.05,0,0,0)qi{"BlockMesh",hp}
  148. hp=pa(Suit,"","Block",0.2,1,0.25,false,false,0,0) weld(hp,ha2,hp,0,0.1,-0.3,0,0,0)qi{"BlockMesh",hp,Scale=v3(0.25,0.04,1)}
  149. hp=pa(Suit,"","Block",0.2,1,0.25,false,false,0,0) weld(hp,ha2,hp,0,0.225,-0.425,rd(-100),0,0)qi{"BlockMesh",hp,Scale=v3(0.25,0.04,1)}
  150. hp=pa(Suit,"","Block",0.2,1,0.2,false,false,0,0) weld(hp,ha2,hp,0,0.225,-0.325,rd(-100),0,0)qi{"BlockMesh",hp,Scale=v3(0.25,0.04,0.75)}
  151. hp=pa(Suit,"","Block",0.2,0.2,0.2,false,false,0,0) weld(hp,ha2,hp,0,0.45,-0.625-0.45,rd(-90),0,0)qi{"CylinderMesh",hp,Scale=v3(0.75,0.75,0.75)}
  152. hp=pa(Suit,"","Block",0.2,0.2,0.2,false,false,0,0) weld(hp,ha2,hp,0,0.525,-0.625-0.45,rd(-90),0,0)qi{"BlockMesh",hp,Scale=v3(0.75,0.75,0.75)}
  153. hp=pa(Suit,"","Block",0.25,0.15,1.35,false,false,0,0) weld(hp,ha2,hp,0,0.6,-0.625+0.2-0.05,0,0,0)qi{"BlockMesh",hp}
  154. hp=pa(Suit,"","Block",0.25,0.3,0.25,false,false,0,0) weld(hp,ha2,hp,0,0.7,0.05,rd(-90),0,0)qi{"CylinderMesh",hp}
  155. b2=pa(Suit,"","Block",0.2,1.4,0.2,false,false,0,0) weld(b2,ha2,b2,0,0.7,-0.5,rd(-90),0,0)qi{"CylinderMesh",b2,Scale=v3(0.6,1,0.6)}
  156. hp=pa(Suit,"","Block",0.25,0.2,0.25,false,false,0,0) weld(hp,ha2,hp,0,0.7,-1.05,rd(-90),0,0)qi{"CylinderMesh",hp}
  157. hp=pa(Suit,"","Block",0.2,0.2,0.2,false,false,0,0,"Really black") weld(hp,ha2,hp,0,0.7,-1.2,rd(-90),0,0)qi{"CylinderMesh",hp,Scale=v3(0.4,0.01,0.4)}
  158. end
  159.  
  160. CDesign=function()
  161. ccra=pa(CModel,"Right Arm","Block",0.2,0.2,0.2,false,false,0,0,RA.BrickColor.Name)weld(ccra,RA,ccra,0,0,0,0,0,0) qi{"BlockMesh",ccra,Scale=v3(5,10,5)}
  162. ccla=pa(CModel,"Left Arm","Block",0.2,0.2,0.2,false,false,0,0,LA.BrickColor.Name)weld(ccla,LA,ccla,0,0,0,0,0,0) qi{"BlockMesh",ccla,Scale=v3(5,10,5)}
  163.  
  164. camha=pa(CModel,"","Block",0,0,0,false,false,1,0) weld(camha,ha,camha,0,0,0,0,0,0)
  165. hp1=pa(CModel,"","Block",0.2,1,0.4,false,false,0,0) weld(hp1,camha,hp1,0,0,0,rd(-8),0,0)qi{"BlockMesh",hp1}
  166. hp=pa(CModel,"","Block",0.2,0.2,0.4,false,false,0,0) weld(hp,camha,hp,0,-0.5,0.065,0,0,0)qi{"BlockMesh",hp,Scale=v3(1,0.5,1)}
  167. hp=pa(CModel,"","Block",0.21,0.9,0.3,false,false,0,0,"Black") weld(hp,hp1,hp,0,0,0,0,0,0)qi{"BlockMesh",hp}
  168. hp=pa(CModel,"","Block",0.2,0.2,0.4,false,false,0,0) weld(hp,camha,hp,0,0.5,-0.065,0,0,0)qi{"BlockMesh",hp,Scale=v3(1,0.5,1)}
  169. hp=pa(CModel,"","Block",0.2,0.22,0.2,false,false,0,0) weld(hp,hp1,hp,0,0.25,0,0,0,rd(-90))qi{"CylinderMesh",hp,Scale=v3(0.5,1,0.5)}
  170. hp=pa(CModel,"","Block",0.2,0.22,0.2,false,false,0,0) weld(hp,hp1,hp,0,-0.25,0,0,0,rd(-90))qi{"CylinderMesh",hp,Scale=v3(0.5,1,0.5)}
  171. hp=pa(CModel,"","Block",0.2,0.2,1.25,false,false,0,0) weld(hp,camha,hp,0,0.5,-0.625+0.2,0,0,0)qi{"BlockMesh",hp}
  172. hp=pa(CModel,"","Block",0.2,1.25,0.2,false,false,0,0) weld(hp,camha,hp,0,0.4,-0.625+0.2,rd(-90),0,0)qi{"CylinderMesh",hp}
  173. hp=pa(CModel,"","Block",0.25,0.15,1.35,false,false,0,0) weld(hp,camha,hp,0,0.6,-0.625+0.2-0.05,0,0,0)qi{"BlockMesh",hp}
  174. hp=pa(CModel,"","Block",0.2,1,0.25,false,false,0,0) weld(hp,camha,hp,0,0.1,-0.3,0,0,0)qi{"BlockMesh",hp,Scale=v3(0.25,0.04,1)}
  175. hp=pa(CModel,"","Block",0.2,1,0.25,false,false,0,0) weld(hp,camha,hp,0,0.225,-0.425,rd(-100),0,0)qi{"BlockMesh",hp,Scale=v3(0.25,0.04,1)}
  176. hp=pa(CModel,"","Block",0.2,1,0.2,false,false,0,0) weld(hp,camha,hp,0,0.225,-0.325,rd(-100),0,0)qi{"BlockMesh",hp,Scale=v3(0.25,0.04,0.75)}
  177. hp=pa(CModel,"","Block",0.2,0.2,0.2,false,false,0,0) weld(hp,camha,hp,0,0.45,-0.625-0.45,rd(-90),0,0)qi{"CylinderMesh",hp,Scale=v3(0.75,0.75,0.75)}
  178. hp=pa(CModel,"","Block",0.2,0.2,0.2,false,false,0,0) weld(hp,camha,hp,0,0.525,-0.625-0.45,rd(-90),0,0)qi{"BlockMesh",hp,Scale=v3(0.75,0.75,0.75)}
  179. hp=pa(CModel,"","Block",0.25,0.15,1.35,false,false,0,0) weld(hp,camha,hp,0,0.6,-0.625+0.2-0.05,0,0,0)qi{"BlockMesh",hp}
  180. hp=pa(CModel,"","Block",0.25,0.3,0.25,false,false,0,0) weld(hp,camha,hp,0,0.7,0.05,rd(-90),0,0)qi{"CylinderMesh",hp}
  181. cb1=pa(CModel,"","Block",0.2,1.4,0.2,false,false,0,0) weld(cb1,camha,cb1,0,0.7,-0.5,rd(-90),0,0)qi{"CylinderMesh",cb1,Scale=v3(0.6,1,0.6)}
  182. hp=pa(CModel,"","Block",0.25,0.2,0.25,false,false,0,0) weld(hp,camha,hp,0,0.7,-1.05,rd(-90),0,0)qi{"CylinderMesh",hp}
  183. hp=pa(CModel,"","Block",0.2,0.2,0.2,false,false,0,0,"Really black")weld(hp,camha,hp,0,0.7,-1.2,rd(90),0,0) qi{"CylinderMesh",hp,Scale=v3(0.4,0.01,0.4)}
  184. ccha2=pa(CModel,"","Block",0,0,0,false,false,1,0) weld(ccha2,ha2,ccha2,0,0,0,0,0,0)
  185. hp1=pa(CModel,"","Block",0.2,1,0.4,false,false,0,0) weld(hp1,ccha2,hp1,0,0,0,rd(-8),0,0)qi{"BlockMesh",hp1}
  186. hp=pa(CModel,"","Block",0.2,0.2,0.4,false,false,0,0) weld(hp,ccha2,hp,0,-0.5,0.065,0,0,0)qi{"BlockMesh",hp,Scale=v3(1,0.5,1)}
  187. hp=pa(CModel,"","Block",0.21,0.9,0.3,false,false,0,0,"Black") weld(hp,hp1,hp,0,0,0,0,0,0)qi{"BlockMesh",hp}
  188. hp=pa(CModel,"","Block",0.2,0.2,0.4,false,false,0,0) weld(hp,ccha2,hp,0,0.5,-0.065,0,0,0)qi{"BlockMesh",hp,Scale=v3(1,0.5,1)}
  189. hp=pa(CModel,"","Block",0.2,0.22,0.2,false,false,0,0) weld(hp,hp1,hp,0,0.25,0,0,0,rd(-90))qi{"CylinderMesh",hp,Scale=v3(0.5,1,0.5)}
  190. hp=pa(CModel,"","Block",0.2,0.22,0.2,false,false,0,0) weld(hp,hp1,hp,0,-0.25,0,0,0,rd(-90))qi{"CylinderMesh",hp,Scale=v3(0.5,1,0.5)}
  191. hp=pa(CModel,"","Block",0.2,0.2,1.25,false,false,0,0) weld(hp,ccha2,hp,0,0.5,-0.625+0.2,0,0,0)qi{"BlockMesh",hp}
  192. hp=pa(CModel,"","Block",0.2,1.25,0.2,false,false,0,0) weld(hp,ccha2,hp,0,0.4,-0.625+0.2,rd(-90),0,0)qi{"CylinderMesh",hp}
  193. hp=pa(CModel,"","Block",0.25,0.15,1.35,false,false,0,0) weld(hp,ccha2,hp,0,0.6,-0.625+0.2-0.05,0,0,0)qi{"BlockMesh",hp}
  194. hp=pa(CModel,"","Block",0.2,1,0.25,false,false,0,0) weld(hp,ccha2,hp,0,0.1,-0.3,0,0,0)qi{"BlockMesh",hp,Scale=v3(0.25,0.04,1)}
  195. hp=pa(CModel,"","Block",0.2,1,0.25,false,false,0,0) weld(hp,ccha2,hp,0,0.225,-0.425,rd(-100),0,0)qi{"BlockMesh",hp,Scale=v3(0.25,0.04,1)}
  196. hp=pa(CModel,"","Block",0.2,1,0.2,false,false,0,0) weld(hp,ccha2,hp,0,0.225,-0.325,rd(-100),0,0)qi{"BlockMesh",hp,Scale=v3(0.25,0.04,0.75)}
  197. hp=pa(CModel,"","Block",0.2,0.2,0.2,false,false,0,0) weld(hp,ccha2,hp,0,0.45,-0.625-0.45,rd(-90),0,0)qi{"CylinderMesh",hp,Scale=v3(0.75,0.75,0.75)}
  198. hp=pa(CModel,"","Block",0.2,0.2,0.2,false,false,0,0) weld(hp,ccha2,hp,0,0.525,-0.625-0.45,rd(-90),0,0)qi{"BlockMesh",hp,Scale=v3(0.75,0.75,0.75)}
  199. hp=pa(CModel,"","Block",0.25,0.15,1.35,false,false,0,0) weld(hp,ccha2,hp,0,0.6,-0.625+0.2-0.05,0,0,0)qi{"BlockMesh",hp}
  200. hp=pa(CModel,"","Block",0.25,0.3,0.25,false,false,0,0) weld(hp,ccha2,hp,0,0.7,0.05,rd(-90),0,0)qi{"CylinderMesh",hp}
  201. cb2=pa(CModel,"","Block",0.2,1.4,0.2,false,false,0,0) weld(cb2,ccha2,cb2,0,0.7,-0.5,rd(-90),0,0)qi{"CylinderMesh",cb2,Scale=v3(0.6,1,0.6)}
  202. hp=pa(CModel,"","Block",0.25,0.2,0.25,false,false,0,0) weld(hp,ccha2,hp,0,0.7,-1.05,rd(-90),0,0)qi{"CylinderMesh",hp}
  203. hp=pa(CModel,"","Block",0.2,0.2,0.2,false,false,0,0,"Really black")weld(hp,ccha2,hp,0,0.7,-1.2,rd(-90),0,0) qi{"CylinderMesh",hp,Scale=v3(0.4,0.01,0.4)}
  204. for i,v in pairs(CModel:GetChildren()) do v.CanCollide=false end
  205. end
  206.  
  207. WDesign() CDesign() Arms(false) Legs(false)
  208.  
  209. a,b,c=haw.C0:toEulerAnglesXYZ() a,b,c=rd(a),rd(b),rd(c)
  210. HFS={haw.C0.x,haw.C0.y,haw.C0.z,a,b,c}
  211. a,b,c=haw2.C0:toEulerAnglesXYZ() a,b,c=rd(a),rd(b),rd(c)
  212. HFS2={haw2.C0.x,haw2.C0.y,haw2.C0.z,a,b,c}
  213.  
  214. function Stance(speed)
  215. c2(ra,speed,3,1.5,0.5,0,-90,45,0)
  216. c2(la,speed,3,-0.5,0.5,-0.75,-90,45,0)
  217. c2(ll,speed,3,-0.5,-1,0,0,0,0)
  218. c2(rl,speed,3,0.5,-1,0,0,0,0)
  219. c2(hw,speed,3,0,1.5,0,0,45,0)
  220. c2(tw,speed,3,0,0,0,0,-45,0)
  221. c2(speed,3,0,1.5,0,0,0,0)
  222. qAni(haw,0,-1.1,0,-90,0,0,0,speed/2,1)
  223. Ani(haw2,0,-1.1,0,-90,0,0,0,speed/2,1)
  224. end
  225.  
  226. ShowDmg=function(Dmg,Type,cf)
  227. local fakeM=it("Model",workspace)
  228. if Type=="Headshot" then fakeM.Name="Headshot!" elseif Type=="Normal" then fakeM.Name=tostring(Dmg) end
  229. local fakeH=it("Humanoid",fakeM) fakeH.MaxHealth=0 fakeH.Health=0
  230. local effect=pa(fakeM,"Head","Block",1.25,0.4,1.25,true,true,0,0,"Really red")qi{"CylinderMesh",effect,Scale=v3(1,1,1)}
  231. if Type=="Headshot" then effect.Size=v3(1.25,0.4,1.25) elseif Type=="Normal" then effect.Size=v3(1,0.2,1) end
  232. effect.CFrame=cf
  233. game:GetService("Debris"):AddItem(fakeM,2)
  234. end
  235.  
  236. Fire = function(speed,sc,dmg,cff,dest,side) q(function()
  237. local bb = pa(workspace,"bullet","Block",0.2*sc,4*sc,0.2*sc,false,true,0,0.1,"Bright yellow")game:GetService("Debris"):AddItem(bb,5) qi{"CylinderMesh",bb} bb.CanCollide=false
  238. bb.CFrame = cn(cff.p,dest)*ca(rd(-90),0,0)
  239. local muzzle=pa(workspace,"muzzle","Block",0,0,0,false,false,0.5,0,"Bright yellow")qi{"SpecialMesh",muzzle,MeshId=ids.Crown,Scale=v3(0.2,0.3,0.2)} muzzle.CanCollide=false
  240. weld(muzzle,side,muzzle,0,0.7,0,0,0,0) so(ids.Shoot,side,1.1,1.1) wait()game:GetService("Debris"):AddItem(muzzle,0.1)
  241. for i=1,100 do
  242. bhit,bpos=ray(bb.Position,bb.Position - (bb.CFrame *cn(0,-2,0)).p)
  243. if bhit and bhit.Name ~= "bullet" and bhit.Name ~= "bullethole" and bhit.Name~="muzzle" and bpos and(bpos - bb.Position).magnitude < speed and bhit~=Suit and bhit.Parent.Name~=Player.Name then break end
  244. bb.CFrame=bb.CFrame*cn(0,speed,0)
  245. wait()
  246. end
  247. game:GetService("Debris"):AddItem(bb,0.1) if bhit.Parent:FindFirstChild("Humanoid")==nil and bhit.Parent.Parent:FindFirstChild("Humanoid")==nil then BulletHole(bpos,bhit,sc) end
  248. local aihu,aito,aibl=GetHum(bhit)
  249. local aihu2,aito2,aibl2=GetHum(bhit.Parent)
  250. if aihu and aito and bhit.Name=="Head" then
  251. so(ids.Hit,bb,0.6,1)
  252. bhit:BreakJoints() ShowDmg(1/0,"Headshot",aito.CFrame*cn(rn(-5,5),5,rn(-5,5)))
  253. elseif aihu2 and aito2 and bhit.Parent:IsA("Hat") then
  254. so(ids.Hit,bb,0.6,1)
  255. aito2:BreakJoints() ShowDmg(1/0,"Headshot",aito2.CFrame*cn(rn(-5,5),5,rn(-5,5)))
  256. elseif aihu2 and aito2 and bhit.Name=="Hat" then
  257. so(ids.Hit,bb,0.6,1)
  258. aito2:BreakJoints() ShowDmg(1/0,"Headshot",aito2.CFrame*cn(rn(-5,5),5,rn(-5,5)))
  259. elseif aihu and bhit.Name~="Head" then
  260. so(ids.Hit,bb,0.6,1)
  261. aihu.Health=aihu.Health-dmg ShowDmg(dmg,"Normal",aito.CFrame*cn(rn(-5,5),5,rn(-5,5)))
  262. end
  263. bb.CFrame=bb.CFrame*cn(0,(bpos-bb.Position).magnitude,0)
  264. end) end
  265.  
  266. Tool.Selected:connect(function(mouse)
  267. Gyr0z=true
  268. fmouse=mouse
  269. mouse.Icon=ids.Icon
  270. if equip=="unequipped" and anim=="" then
  271. equip="equipping" Arms(true)
  272. local ofs = RA.CFrame:toObjectSpace(ha.CFrame)
  273. haw.Part0=RA haw.C0=ofs haw.C1=cn(0,0,0) rAni(haw) qAni(haw,0,-1.1,0,-90,0,0,0,0.1,1)
  274. local ofs2 = LA.CFrame:toObjectSpace(ha2.CFrame)
  275. haw2.Part0=LA haw2.C0=ofs2 haw2.C1=cn(0,0,0) rAni(haw2) Ani(haw2,0,-1.1,0,-90,0,0,0,0.1,1)
  276. Stance(0.2) equip="equipped"
  277. end
  278. mouse.Button1Down:connect(function()
  279. b1d=true
  280. q(function()
  281. while b1d and wait(0.1) do
  282. buttons["1"]=buttons["1"]+0.1
  283. end
  284. end)
  285. if (tick()-lastt)>=coolt then lastt=tick()
  286. if Last==1 then Last=2 anim="shooting"
  287. Fire(20,1,rn(15,34),b1.CFrame*cn(0,2,0),mouse.Hit.p,b1)
  288. if animb~="prone" then
  289. c1(ra,0.4,3,1.5,0.5,0,-120+math.deg((Torso.Position-mouse.Hit.p).unit.y),45,0)c1(ra,0.4,3,1.5,0.5,0,-90+math.deg((Torso.Position-mouse.Hit.p).unit.y),45,0)
  290. elseif animb=="prone" then
  291. c1(ra,0.4,3,1.5,0.9,0,-210+math.deg((Torso.Position-mouse.Hit.p).unit.y),0,0)c1(ra,0.4,3,1.5,0.9,0,-180+math.deg((Torso.Position-mouse.Hit.p).unit.y),0,0)
  292. end anim=""
  293. elseif Last==2 then Last=1 anim="shooting"
  294. Fire(20,1,rn(15,34),b2.CFrame*cn(0,2,0),mouse.Hit.p,b2)
  295. if animb~="prone" then
  296. c1(la,0.4,3,-0.5,0.5,-0.75,-120+math.deg((Torso.Position-fmouse.hit.p).unit.y),45,0)c1(la,0.4,3,-0.5,0.5,-0.75,-90+math.deg((Torso.Position-fmouse.hit.p).unit.y),45,0)
  297. elseif animb=="prone" then
  298. c1(la,0.4,3,-1.5,0.9,0,-210+math.deg((Torso.Position-mouse.Hit.p).unit.y),0,0)c1(la,0.4,3,-1.5,0.9,0,-180+math.deg((Torso.Position-mouse.Hit.p).unit.y),0,0)
  299. end anim=""
  300. end
  301. end
  302. end)
  303. mouse.Button1Up:connect(function()
  304. b1d=false
  305. buttons["1"]=0
  306. end)
  307. mouse.Button2Down:connect(function()
  308. b2d=true
  309. q(function()
  310. while b2d and wait(0.1) do
  311. buttons["2"]=buttons["2"]+0.1
  312. end
  313. end)
  314. q(function() while b2d and wait(0.1) do
  315. if buttons["2"]>=1 then animc="zooming"
  316. for i=70,20,-3 do Cam.FieldOfView=i wait() end break
  317. end
  318. end end)
  319. end)
  320. mouse.Button2Up:connect(function()
  321. b2d=false
  322. if buttons["2"]>=1 and animc=="zooming" then local lolcamfov=Cam.FieldOfView
  323. q(function() for i=lolcamfov,70.1,6 do Cam.FieldOfView=i wait() end Cam.FieldOfView=70 animc="" end)
  324. end
  325. buttons["2"]=0
  326. end)
  327. mouse.KeyDown:connect(function(key) key=key:lower()
  328. keys[key]="down"
  329. if key:byte()==50 and animb=="" and lastctr=="" then
  330. animb="crouching" Legs(true) Hum.WalkSpeed=8 lastctr=""
  331. c2(rl,0.1,3,0.5,-1.5,-0.5,90,0,0) c2(ll,0.1,3,-0.5,0,-1,0,0,0) c2(tw,0.1,3,0,-1,0,0,-45,0)c1(Torso.Neck,0.1,3,0,0.5,0,rd(-90),0,0) animb="crouch"
  332. elseif key:byte()==50 and animb=="crouch" and lastctr=="" then
  333. animb="proning" Legs(true) Hum.WalkSpeed=4 lastctr="crouch" anim="stopteharms" Prone=true
  334. c2(tw,0.1,3,0,-2.5,0,90,0,0) c2(hw,0.1,3,0,1.5,0,-90,0,0) c2(ra,0.1,3,1.5,0.9,0,-180,0,0)c2(la,0.1,3,-1.5,0.9,0,-180,0,0) c1(Torso.Neck,0.1,3,0,-2.5,-1.5,0,0,0) animb="prone"
  335. anim=""
  336. elseif key:byte()==50 and animb=="prone" and lastctr=="crouch" then
  337. animb="crouching" Legs(true) Hum.WalkSpeed=8 lastctr="prone" Prone=false
  338. c2(rl,0.1,3,0.5,-1.5,-0.5,90,0,0) c2(ll,0.1,3,-0.5,0,-1,0,0,0) c2(tw,0.1,3,0,-1,0,0,-45,0)c2(ra,speed,3,1.5,0.5,0,-90,45,0) c2(la,speed,3,-0.5,0.5,-0.75,-90,45,0) c2(hw,speed,3,0,1.5,0,0,45,0)
  339. c1(Torso.Neck,0.1,3,0,0.5,0,rd(-90),0,0) animb="crouch" anim=""
  340. elseif key:byte()==50 and animb=="crouch" and lastctr=="prone" then
  341. anim="returning" c2(Torso.Neck,0.1,3,0,1.5,0,rd(-90),0,0) Legs(true) lastctr=""
  342. Stance(0.1) Legs(false) anim="" animb="" Hum.WalkSpeed=16
  343. end
  344.  
  345. if key==";" then if Gyr0z then Gyr0z=false elseif not Gyr0z then Gyr0z=true end end
  346. end)
  347. mouse.KeyUp:connect(function(key) key=key:lower()
  348. keys[key]="up"
  349. end)
  350. end)
  351.  
  352. Tool.Deselected:connect(function()
  353. Gyr0z=false
  354. fmouse=nil
  355. if equip=="equipped" and anim=="" then
  356. equip="unequipping"
  357. c2(tw,0.1,3,0,0,0,0,0,0) --[[Torso.Neck.C1=cn() Torso.Neck.C0=cn(0,1.5,0) c2(Torso.Neck,0.1,3,0,1.5,0,0,0,0)]]c2(hw,0.1,3,0,1.5,0,0,0,0) c2(ra,0.1,3,1.5,0.5,0,0,0,0) c1(la,0.1,3,-1.5,0.5,0,0,0,0)
  358. local ofs = pack.CFrame:toObjectSpace(ha.CFrame)
  359. haw.Part0=pack haw.C0=ofs haw.C1=cn(0,0,0) rAni(haw)
  360. qAni(haw,0,0.9,0.425,-90,0,0,0,0.1/1.3,1)
  361. local ofs2 = pack2.CFrame:toObjectSpace(ha2.CFrame)
  362. haw2.Part0=pack2 haw2.C0=ofs2 haw2.C1=cn(0,0,0) rAni(haw2)
  363. qAni(haw2,0,0.9,0.425,-90,0,0,0,0.1/1.3,1)
  364. Arms(false) Legs(false) equip="unequipped" Hum.WalkSpeed=16 Prone=false lastctr="" animb="" anim=""
  365. end
  366. end)
  367.  
  368. Gyro=qi{"BodyGyro",fTorso,D=50,P=1500}
  369. game:GetService("RunService").Stepped:connect(function()
  370. if equip=="equipped" and anim=="" and not Prone then
  371. c2(ra,1,3,1.5,0.5,0,-90+math.deg((Torso.Position-fmouse.Hit.p).unit.y),45,0)
  372. c2(la,1,3,-0.5,0.5,-0.75,-90+math.deg((Torso.Position-fmouse.Hit.p).unit.y),45,0)
  373. c2(hw,1,3,0,1.5,0,math.deg((Torso.Position-fmouse.Hit.p).unit.y),45,0)
  374. elseif equip=="equipped" and anim=="" and Prone then
  375. c2(ra,1,3,1.5,0.9,0,-180+math.deg((Torso.Position-fmouse.Hit.p).unit.y),0,0)
  376. c2(la,1,3,-1.5,0.9,0,-180+math.deg((Torso.Position-fmouse.Hit.p).unit.y),0,0)
  377. c2(hw,1,3,0,1.5,0,-90+math.deg((Torso.Position-fmouse.Hit.p).unit.y),0,0)
  378. end
  379. if Gyr0z==true then
  380. Gyro.maxTorque=v3(1/0,1/0,1/0)
  381. Gyro.cframe = cn(Torso.Position,v3(fmouse.hit.p.x,Torso.Position.y,fmouse.hit.p.z))
  382. else
  383. Gyro.maxTorque = v3(0,0,0)
  384. end
  385. if (Cam.CoordinateFrame.p-Head.Position).magnitude>3 then
  386. for i,v in pairs(CModel:GetChildren()) do v.Transparency=1 end
  387. elseif (Cam.CoordinateFrame.p-Head.Position).magnitude<3 then
  388. for i,v in pairs(CModel:GetChildren()) do v.Transparency=0 end
  389. end
  390. end)
Add Comment
Please, Sign In to add comment