zachhy

lol

Jul 23rd, 2020
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.69 KB | None | 0 0
  1. -- Synapse Decompiler
  2. -- Purchase Here: https://brack4712.xyz/synapse/purchase/
  3. -- synapse is amazing.
  4. ---made by MichaelJackson AKA pickachu500
  5.  
  6. local PERKY = "Quick Hands"
  7. local ABIL = "Quickscoper"
  8.  
  9. local Player = game.Players.LocalPlayer
  10. Player.Backpack:FindFirstChild("Client").Disabled = true
  11. local IS = game:GetService("UserInputService")
  12. local Camera = workspace.CurrentCamera
  13. local KT = Instance.new("Tool", Player.Backpack)
  14. KT.Name = "Knife"
  15. KT.RequiresHandle = false
  16. KT.CanBeDropped = false
  17. local GT = Instance.new("Tool", Player.Backpack)
  18. GT.Name = "Gun"
  19. GT.RequiresHandle = false
  20. GT.CanBeDropped = false
  21. local Spec = 0
  22. local WeaponType
  23. local Spectatable = {}
  24. local SpectatingPlayer
  25. local FPS = false
  26. local PlayerIgnore = workspace:WaitForChild("Ignore"):WaitForChild("Players")
  27. local runService = game:GetService("RunService")
  28. local RS = game:GetService("RunService").RenderStepped
  29. local Char = Player.Character
  30. local Rig = Instance.new("Model", Char)
  31. local Humanoid = Char:WaitForChild("Humanoid")
  32. local Primed = false
  33. if 0 >= Humanoid.Health then
  34. return
  35. end
  36. local Mouse = Player:GetMouse()
  37. Mouse.TargetFilter = workspace.CurrentCamera
  38. local Disabled = false
  39. if Camera:findFirstChild("FpsModel") then
  40. Camera:findFirstChild("FpsModel"):Destroy()
  41. end
  42. local LA, RA, Head, T = Char:WaitForChild("Left Arm"), Char:WaitForChild("Right Arm"), Char:WaitForChild("Head"), Char:WaitForChild("Torso")
  43. local FpsModel = Instance.new("Model", Camera)
  44. FpsModel.Name = "FpsModel"
  45. local FpsWeapon = Instance.new("Part")
  46. FpsWeapon.Parent = FpsModel
  47. FpsWeapon.CanCollide = false
  48. FpsWeapon.Transparency = 1
  49. FpsWeapon.Size = Vector3.new(1, 1, 1)
  50. FpsWeapon.Name = "WeaponFPS"
  51. local FpsLArm = Char:WaitForChild("Left Arm"):clone()
  52. FpsLArm.Parent = FpsModel
  53. FpsLArm.CanCollide = false
  54. FpsLArm.Transparency = 1
  55. local m = Instance.new("BlockMesh", FpsLArm)
  56. m.Scale = Vector3.new(1, 1, 1)
  57. local FpsRArm = Char:WaitForChild("Right Arm"):clone()
  58. FpsRArm.Parent = FpsModel
  59. FpsRArm.CanCollide = false
  60. FpsRArm.Transparency = 1
  61. local m = Instance.new("BlockMesh", FpsRArm)
  62. m.Scale = Vector3.new(1, 1.1, 1)
  63. spawn(function()
  64. wait(0.5)
  65. if Char:FindFirstChild("Body Colors") then
  66. FpsLArm.BrickColor = Char:FindFirstChild("Body Colors").LeftArmColor
  67. FpsRArm.BrickColor = Char:FindFirstChild("Body Colors").RightArmColor
  68. end
  69. end)
  70. local Modules = game.ReplicatedStorage:WaitForChild("Modules")
  71. local M = require(Modules:WaitForChild("AnimationCore"))
  72. local WC = require(Modules:WaitForChild("WeaponCore"))
  73. local AniDB = false
  74. local Selected = false
  75. function AniEquipKnife()
  76. if WeaponType == "Gun" or not Selected then
  77. return
  78. end
  79. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.45, 0.5, -0.25) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(25)), 0.1, true)
  80. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(0)), 0.25, true)
  81. wait(0.1)
  82. if WeaponType == "Gun" or not Selected then
  83. return
  84. end
  85. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-75), math.rad(-25), math.rad(0)), 0.25, true)
  86. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-55), math.rad(25), math.rad(0)), 0.25, true)
  87. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.25, true)
  88. end
  89. function AniChargeKnife()
  90. if WeaponType == "Gun" or not Selected then
  91. return
  92. end
  93. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(0)), .1, true)
  94. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-90), math.rad(25), math.rad(0)), .1, true)
  95. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), .1, true)
  96. end
  97. function AniChargeKnife2()
  98. if WeaponType == "Gun" or not Selected then
  99. return
  100. end
  101. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-180), math.rad(0), math.rad(0)), .1, true)
  102. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-90), math.rad(25), math.rad(0)), .1, true)
  103. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), .1, true)
  104. end
  105. function AniThrowKnife()
  106. if WeaponType == "Gun" or not Selected then
  107. return
  108. end
  109. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-10), math.rad(-25), math.rad(0)), 0.1, true)
  110. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-35), math.rad(25), math.rad(0)), 0.1, true)
  111. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.1, true)
  112. wait(0.1)
  113. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.5, 0.5, -0.25) * CFrame.Angles(math.rad(25), math.rad(-25), math.rad(0)), 0.2, true)
  114. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-35), math.rad(25), math.rad(0)), 0.2, true)
  115. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.2, true)
  116. end
  117. function AniSlashKnife1()
  118. if WeaponType == "Gun" or not Selected then
  119. return
  120. end
  121. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-125), math.rad(-30), math.rad(0)), 0.15, true)
  122. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-65), math.rad(30), math.rad(0)), 0.15, true)
  123. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.15, true)
  124. wait(0.15)
  125. if WeaponType == "Gun" or not Selected then
  126. return
  127. end
  128. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.5, 1, -0.25) * CFrame.Angles(math.rad(-15), math.rad(-35), math.rad(0)), 0.05, true)
  129. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-35), math.rad(35), math.rad(0)), 0.05, true)
  130. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.05, true)
  131. wait(0.05)
  132. if WeaponType == "Gun" or not Selected then
  133. return
  134. end
  135. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-75), math.rad(-25), math.rad(0)), 0.25, true)
  136. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-55), math.rad(25), math.rad(0)), 0.25, true)
  137. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.25, true)
  138. end
  139. function AniSlashKnife2()
  140. if WeaponType == "Gun" or not Selected then
  141. return
  142. end
  143. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-175), math.rad(-10), math.rad(0)), 0.25, true)
  144. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-65), math.rad(10), math.rad(0)), 0.25, true)
  145. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(110), math.rad(180), math.rad(0)), 0.25, true)
  146. wait(0.25)
  147. if WeaponType == "Gun" or not Selected then
  148. return
  149. end
  150. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.5, 1, -0.25) * CFrame.Angles(math.rad(-35), math.rad(-35), math.rad(0)), 0.05, true)
  151. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.5, 1, -0.25) * CFrame.Angles(math.rad(-35), math.rad(15), math.rad(0)), 0.05, true)
  152. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(110), math.rad(180), math.rad(0)), 0.05, true)
  153. wait(0.05)
  154. if WeaponType == "Gun" or not Selected then
  155. return
  156. end
  157. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.5, 1, -0.25) * CFrame.Angles(math.rad(-55), math.rad(-35), math.rad(0)), 0.25, true)
  158. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-55), math.rad(25), math.rad(0)), 0.25, true)
  159. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(110), math.rad(180), math.rad(0)), 0.25, true)
  160. wait(0.25)
  161. if WeaponType == "Gun" or not Selected then
  162. return
  163. end
  164. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-75), math.rad(-25), math.rad(0)), 0.25, true)
  165. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.25, true)
  166. end
  167. function AniSlashKnife3()
  168. if WeaponType == "Gun" or not Selected then
  169. return
  170. end
  171. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.5, 0.5, -0.7) * CFrame.Angles(math.rad(45), math.rad(-30), math.rad(0)), 0.2, true)
  172. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-35), math.rad(10), math.rad(0)), 0.2, true)
  173. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.2, true)
  174. wait(0.2)
  175. if WeaponType == "Gun" or not Selected then
  176. return
  177. end
  178. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.5, 1, -0.25) * CFrame.Angles(math.rad(-60), math.rad(-35), math.rad(0)), 0.05, true)
  179. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-45), math.rad(35), math.rad(0)), 0.05, true)
  180. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0, -1.5, 1) * CFrame.Angles(math.rad(130), math.rad(0), math.rad(0)), 0.05, true)
  181. wait(0.05)
  182. if WeaponType == "Gun" or not Selected then
  183. return
  184. end
  185. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.5, 1, -0.25) * CFrame.Angles(math.rad(-65), math.rad(-35), math.rad(0)), 0.25, true)
  186. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-55), math.rad(25), math.rad(0)), 0.25, true)
  187. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0, -1.5, 1) * CFrame.Angles(math.rad(130), math.rad(0), math.rad(0)), 0.25, true)
  188. wait(0.25)
  189. if WeaponType == "Gun" or not Selected then
  190. return
  191. end
  192. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-75), math.rad(-25), math.rad(0)), 0.25, true)
  193. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.25, true)
  194. end
  195. function AniSlashKnife4()
  196. if WeaponType == "Gun" or not Selected then
  197. return
  198. end
  199. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-125), math.rad(0), math.rad(0)), 0.15, true)
  200. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-65), math.rad(0), math.rad(0)), 0.15, true)
  201. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.15, true)
  202. wait(0.15)
  203. if WeaponType == "Gun" or not Selected then
  204. return
  205. end
  206. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.5, 1, -0.25) * CFrame.Angles(math.rad(-15), math.rad(-45), math.rad(0)), 0.05, true)
  207. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-35), math.rad(45), math.rad(0)), 0.05, true)
  208. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.05, true)
  209. wait(0.05)
  210. if WeaponType == "Gun" or not Selected then
  211. return
  212. end
  213. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-75), math.rad(-25), math.rad(0)), 0.25, true)
  214. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.5, 0.5, -0.25) * CFrame.Angles(math.rad(-55), math.rad(25), math.rad(0)), 0.25, true)
  215. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)), 0.25, true)
  216. end
  217. function AniEquipGun()
  218. if WeaponType == "Knife" or not Selected then
  219. return
  220. end
  221. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.45, 0.5, -0.25) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(25)), 0.1, true)
  222. wait(0.1)
  223. if WeaponType == "Knife" or not Selected then
  224. return
  225. end
  226. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.45, 0.5, -0.25) * CFrame.Angles(math.rad(-90), math.rad(-25), math.rad(0)), 0.25, true)
  227. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.9, 1, -0.25) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(0)), 0.25, true)
  228. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0.5, -1.75, -0.35) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(-25)), 0.25, true)
  229. end
  230. function AniShootGun()
  231. if WeaponType == "Knife" or not Selected then
  232. return
  233. end
  234. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.45, 0.5, -0.25) * CFrame.Angles(math.rad(-120), math.rad(-25), math.rad(-8)), 0.06, true)
  235. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.9, 1, -0.25) * CFrame.Angles(math.rad(-110), math.rad(78), math.rad(5)), 0.06, true)
  236. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0.5, -1.75, -0.35) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(-25)), 0.06, true)
  237. wait(0.06)
  238. if WeaponType == "Knife" or not Selected then
  239. return
  240. end
  241. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.45, 0.5, -0.25) * CFrame.Angles(math.rad(-90), math.rad(-25), math.rad(0)), 0.15, true)
  242. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.9, 1, -0.25) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(0)), 0.15, true)
  243. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0.5, -1.75, -0.35) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(-25)), 0.15, true)
  244. wait(0.15)
  245. if WeaponType == "Knife" or not Selected then
  246. return
  247. end
  248. end
  249. function AniReloadGun()
  250. if WeaponType == "Knife" or not Selected then
  251. return
  252. end
  253. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.5, 0.5, -0.25) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-25)), 0.55, true)
  254. wait(0.55)
  255. if WeaponType == "Knife" or not Selected then
  256. return
  257. end
  258. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.45, 0.5, -0.25) * CFrame.Angles(math.rad(-90), math.rad(-25), math.rad(-15)), 0.4, true)
  259. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.7, 1.5, -0.5) * CFrame.Angles(math.rad(-100), math.rad(55), math.rad(-25)), 0.4, true)
  260. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0.5, -1.75, -0.35) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(-25)), 0.4, true)
  261. wait(0.4)
  262. if WeaponType == "Knife" or not Selected then
  263. return
  264. end
  265. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.45, 0.5, -0.25) * CFrame.Angles(math.rad(-95), math.rad(-30), math.rad(20)), 0.35, true)
  266. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.7, 1.5, -0.5) * CFrame.Angles(math.rad(-100), math.rad(60), math.rad(-25)), 0.35, true)
  267. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0.5, -1.75, -0.35) * CFrame.Angles(math.rad(180), math.rad(25), math.rad(-25)), 0.35, true)
  268. wait(0.35)
  269. if WeaponType == "Knife" or not Selected then
  270. return
  271. end
  272. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.45, 0.5, -0.25) * CFrame.Angles(math.rad(-90), math.rad(-25), math.rad(0)), 0.25, true)
  273. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.9, 1, -0.25) * CFrame.Angles(math.rad(-80), math.rad(75), math.rad(0)), 0.25, true)
  274. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0.5, -1.75, -0.35) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(-25)), 0.25, true)
  275. wait(0.25)
  276. if WeaponType == "Knife" then
  277. return
  278. end
  279. M.Animate(Char:findFirstChild("MotorRight Arm", true), CFrame.new(-0.45, 0.5, -0.25) * CFrame.Angles(math.rad(-90), math.rad(-25), math.rad(0)), 0.5, true)
  280. M.Animate(Char:findFirstChild("MotorLeft Arm", true), CFrame.new(0.9, 1, -0.25) * CFrame.Angles(math.rad(-90), math.rad(75), math.rad(0)), 0.5, true)
  281. M.Animate(Char:findFirstChild("MotorWeapon", true), CFrame.new(0.5, -1.75, -0.35) * CFrame.Angles(math.rad(180), math.rad(0), math.rad(-25)), 0.5, true)
  282. end
  283. local FpsPart = Instance.new("Part")
  284. FpsPart.Transparency = 1
  285. FpsPart.Anchored = true
  286. FpsPart.Parent = FpsModel
  287. FpsPart.CanCollide = false
  288. FpsPart.FormFactor = "Custom"
  289. FpsPart.Size = Vector3.new(0.2, 0.2, 0.2)
  290. local FpsWeaponWeld = Instance.new("Motor")
  291. FpsWeaponWeld.Parent = FpsPart
  292. FpsWeaponWeld.Part1 = FpsWeapon
  293. FpsWeaponWeld.Part0 = FpsRArm
  294. FpsWeaponWeld.C1 = CFrame.new(0, 2, 1)
  295. FpsWeaponWeld.C0 = CFrame.new()
  296. local FpsLArmWeld = Instance.new("Motor")
  297. FpsLArmWeld.Parent = FpsLArm
  298. FpsLArmWeld.Part1 = FpsLArm
  299. FpsLArmWeld.Part0 = FpsPart
  300. FpsLArmWeld.C1 = CFrame.new(0.5, 0, 0)
  301. FpsLArmWeld.C0 = CFrame.new(-1, 0.75, 0)
  302. local FpsRArmWeld = Instance.new("Motor")
  303. FpsRArmWeld.Parent = FpsRArm
  304. FpsRArmWeld.Part1 = FpsRArm
  305. FpsRArmWeld.Part0 = FpsPart
  306. FpsRArmWeld.C1 = CFrame.new(-0.5, 0, 0)
  307. FpsRArmWeld.C0 = CFrame.new(1, 0.75, 0)
  308. local energy = 100
  309. local maxEnergy = 100
  310. local move_anim_speed = 5
  311. local last_p = Vector3.new()
  312. local move_amm = 0
  313. local walking = false
  314. local running = false
  315. local walkingStop = true
  316. local aniRun = false
  317. local aniLegs = false
  318. local idle = true
  319. local WalkSpeed = Humanoid.WalkSpeed
  320. Humanoid.WalkSpeed = WalkSpeed
  321. local DB = false
  322. local Charging = false
  323. local Speed = 0.35
  324. local shake_freq = 5
  325. local CanMelee = true
  326. local CanReload = true
  327. local Shooting = false
  328. local Aimed = false
  329. local Zoomed = false
  330. local RunSpeed = 20
  331. Camera.CameraType = "Custom"
  332. Camera.CameraSubject = Humanoid
  333. coroutine.resume(coroutine.create(function()
  334. while FpsModel ~= nil do
  335. local delta = wait()
  336. local cur_p = T.Position
  337. if (cur_p - last_p).magnitude >= 0.1 then
  338. move_amm = math.min(1, move_amm + delta * move_anim_speed)
  339. walking = true
  340. if running then
  341. if energy <= 0 then
  342. aniRun = false
  343. running = false
  344. shake_freq = 5
  345. Humanoid.WalkSpeed = WalkSpeed
  346. end
  347. elseif energy < maxEnergy then
  348. energy = energy + 0.2
  349. end
  350. else
  351. move_amm = math.max(0, move_amm - delta * move_anim_speed)
  352. walking = false
  353. if energy < maxEnergy then
  354. energy = energy + 0.2
  355. end
  356. end
  357. last_p = cur_p
  358. end
  359. end))
  360. local RightArmWeld, LeftArmWeld, WeaponWeld
  361. local Cloaked = false
  362. local UserInputService = game:GetService("UserInputService")
  363. local Mobile = UserInputService.TouchEnabled
  364. if UserInputService.KeyboardEnabled then
  365. Mobile = false
  366. end
  367. runService.RenderStepped:connect(function()
  368. local last_time = tick()
  369. local delta = tick() - last_time
  370. last_time = tick()
  371. local breathe_amp = 1.5
  372. local breathe_freq = 1
  373. local breathe = math.sin(math.rad(tick() * 90 * breathe_freq)) * breathe_amp
  374. local shake_amp = {0.075, 0.075}
  375. local arm_shake = CFrame.new(math.cos(math.rad(tick() * 90 * shake_freq)) * move_amm * shake_amp[1], math.abs(math.cos(math.rad(tick() * 90 * shake_freq)) * move_amm * shake_amp[2]), 0)
  376. if (Head.Position - Camera.CoordinateFrame.p).magnitude < 2.5 and Selected then
  377. if Cloaked then
  378. FpsLArm.Transparency = 0.5
  379. FpsRArm.Transparency = 0.5
  380. FpsWeapon.Transparency = 0.5
  381. else
  382. FpsLArm.Transparency = 0
  383. FpsRArm.Transparency = 0
  384. FpsWeapon.Transparency = 0
  385. end
  386. FPS = true
  387. else
  388. FpsLArm.Transparency = 1
  389. FpsRArm.Transparency = 1
  390. FpsWeapon.Transparency = 1
  391. FPS = false
  392. end
  393. if FpsModel ~= nil and Char ~= nil and 0 < Humanoid.Health then
  394. if WeaponType == "Gun" then
  395. FpsPart.CFrame = Camera.CoordinateFrame * CFrame.new(0.7, -2, -0.4) * CFrame.Angles(math.rad(0 + breathe / 2), math.rad(0), math.rad(0)) * arm_shake
  396. elseif WeaponType == "Knife" then
  397. FpsPart.CFrame = Camera.CoordinateFrame * CFrame.new(0, -1.6, -0.4) * CFrame.Angles(math.rad(0 + breathe / 2), math.rad(0), math.rad(0)) * arm_shake
  398. end
  399. if RightArmWeld ~= nil and LeftArmWeld ~= nil and WeaponWeld ~= nil then
  400. if WeaponType == "Gun" then
  401. FpsLArmWeld.C1 = LeftArmWeld.C1 * CFrame.new(0.15, 0.09, -0.43) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-5))
  402. FpsRArmWeld.C1 = RightArmWeld.C1
  403. FpsWeaponWeld.C1 = WeaponWeld.C1 * CFrame.new(0.1, -0.2, 0.25)
  404. elseif WeaponType == "Knife" then
  405. FpsLArmWeld.C1 = LeftArmWeld.C1 * CFrame.new(0.15, 0.09, -0.43)
  406. FpsRArmWeld.C1 = RightArmWeld.C1 * CFrame.Angles(math.rad(0), math.rad(25), math.rad(0))
  407. FpsWeaponWeld.C1 = WeaponWeld.C1 * CFrame.new(0, 0.15, 0.25)
  408. end
  409. end
  410. end
  411. end)
  412. local debouncetime = 1
  413. local lastjump = time()
  414. local WeaponMesh
  415. local used = false
  416. local Perk = PERKY
  417. Humanoid.Changed:connect(function(prop)
  418. if Perk == "Kevlar" and (Humanoid.Health == 98 or Humanoid.Health == 1398) and not used then
  419. Player.PlayerGui.Sounds.KevlarHurt:Play()
  420. used = true
  421. end
  422. end)
  423. local GunSkin = "http://www.roblox.com/asset/?id=79401500"
  424. local KnifeSkin = "http://www.roblox.com/asset/?id=130252453"
  425. local Charged = false
  426. local MouseDown = false
  427. local DB2 = false
  428. local Ability = ABIL
  429. local Gamemode
  430. local CanCloak = true
  431. local Knife = false
  432. local Gun = false
  433. local ThrowGui = Player.PlayerGui.GUI.ThrowKnife
  434. local CloakGui = Player.PlayerGui.GUI.CloakGui
  435. local Crosshair = Player.PlayerGui.GUI.MobileCrosshair
  436. local Gui = Player.PlayerGui.GUI
  437. game.Players.LocalPlayer.Backpack.ChildAdded:connect(function(c)
  438. if c.Name == "Gun" and not Gun then
  439. spawn(function()
  440. Gamemode = game.ReplicatedStorage.RemoteFunction:InvokeServer("Gamemode")
  441. Perk = game.ReplicatedStorage.RemoteFunction:InvokeServer("Perk")
  442. end)
  443. local Skin = game.ReplicatedStorage.RemoteFunction:InvokeServer("Skin", "Gun")
  444. if Skin ~= nil then
  445. GunSkin = Skin
  446. end
  447. if game.Players.LocalPlayer.Backpack:findFirstChild("Gun") ~= nil then
  448. Gun = true
  449. if Mobile then
  450. else
  451. GT.Activated:connect(function()
  452. if Gamemode == "One In The Chamber" and Char.Bullet.Value == false then
  453. return
  454. end
  455. if not DB then
  456. DB = false
  457. WC.ShootGun(Char, Char, Mouse.Hit.p, FPS, FpsWeapon)
  458. AniShootGun()
  459. wait(0.21)
  460. AniReloadGun()
  461. if not Selected then
  462. wait()
  463. end
  464. wait(0.1)
  465. DB = false
  466. end
  467. end)
  468. end
  469. GT.Equipped:connect(function()
  470. Selected = true
  471. WeaponType = "Gun"
  472. Mouse.Icon = "http://www.roblox.com/asset/?id=117431027"
  473. WC.EquipGun(Char, Char, GunSkin)
  474. RightArmWeld = Char:WaitForChild("MotorRight Arm")
  475. LeftArmWeld = Char:WaitForChild("MotorLeft Arm")
  476. WeaponWeld = Char:WaitForChild("MotorWeapon")
  477. WeaponMesh = Char:WaitForChild("Weapon"):findFirstChild("Mesh"):clone()
  478. WeaponMesh.Parent = FpsWeapon
  479. AniEquipGun()
  480. end)
  481. GT.Unequipped:connect(function()
  482. Selected = false
  483. Mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
  484. if WeaponMesh ~= nil then
  485. WeaponMesh:Destroy()
  486. end
  487. WeaponType = nil
  488. WC.Unequip(Char, Char)
  489. end)
  490. end
  491. elseif c.Name == "Knife" and not Knife then
  492. spawn(function()
  493. Ability = ABIL
  494. Perk = PERKY
  495. if Ability == nil then
  496. Ability = ABIL
  497. end
  498. Gamemode = game.ReplicatedStorage.RemoteFunction:InvokeServer("Gamemode")
  499. end)
  500. local Skin = game.ReplicatedStorage.RemoteFunction:InvokeServer("Skin", "Knife")
  501. if Skin ~= nil then
  502. KnifeSkin = Skin
  503. end
  504. if game.Players.LocalPlayer.Backpack:findFirstChild("Knife") ~= nil then
  505. Knife = true
  506. KT.Activated:connect(function()
  507. MouseDown = true
  508. spawn(function()
  509. if Cloaked then
  510. WC.UnCloak(Char, Char)
  511. Cloaked = false
  512. end
  513. end)
  514. if Gamemode == "Infected" or Gamemode == "One In The Chamber" then
  515. return
  516. end
  517. if not DB2 and not DB then
  518. DB2 = true
  519. spawn(function()
  520. wait(0.35)
  521. if MouseDown and not DB then
  522. DB2 = true
  523. if Perk ~= "Quick Hands" then
  524. AniChargeKnife()
  525. wait(.1)
  526. else
  527. AniChargeKnife2()
  528. wait(.1)
  529. end
  530. if MouseDown and not DB then
  531. Charged = true
  532. end
  533. wait(0.5)
  534. DB2 = false
  535. else
  536. DB2 = false
  537. end
  538. end)
  539. end
  540. end)
  541. KT.Deactivated:connect(function()
  542. MouseDown = false
  543. if Charged then
  544. DB = true
  545. DB2 = true
  546. Charged = false
  547. spawn(function()
  548.  
  549. WC.ThrowKnife(Char, Char, Mouse.Hit.p, Ability)
  550. end)
  551. AniThrowKnife()
  552. wait(0.3)
  553. AniEquipKnife()
  554. DB = false
  555. DB2 = false
  556. elseif not DB then
  557. DB = true
  558. do
  559. local Ran = math.random(1, 3)
  560. spawn(function()
  561. WC.StabKnife(Char, Char, Ran, Ability)
  562. end)
  563. if Ran == 1 then
  564. AniSlashKnife1()
  565. elseif Ran == 2 then
  566. AniSlashKnife2()
  567. elseif Ran == 3 then
  568. AniSlashKnife3()
  569. elseif Ran == 4 then
  570. AniSlashKnife4()
  571. end
  572. wait(0.25)
  573. DB = false
  574. end
  575. end
  576. end)
  577. KT.Equipped:connect(function()
  578. Selected = true
  579. WeaponType = "Knife"
  580. Mouse.Icon = "http://www.roblox.com/asset/?id=117431027"
  581. WC.EquipKnife(Char, Char, KnifeSkin)
  582. RightArmWeld = Char:WaitForChild("MotorRight Arm")
  583. LeftArmWeld = Char:WaitForChild("MotorLeft Arm")
  584. WeaponWeld = Char:WaitForChild("MotorWeapon")
  585. WeaponMesh = Char:WaitForChild("Weapon"):findFirstChild("Mesh"):clone()
  586. WeaponMesh.Parent = FpsWeapon
  587. AniEquipKnife()
  588. if Char then
  589. if workspace.GameInProgress.Mode.Value ~= "Infected" then
  590. Char.Humanoid.WalkSpeed = 20
  591. if workspace.GameInProgress.Mode.Value == "Cold Killer" then
  592. Char.Humanoid.WalkSpeed = 20
  593. elseif Perk == "Speedy Gonzales" then
  594. Char.Humanoid.WalkSpeed = 25
  595. else
  596. Char.Humanoid.WalkSpeed = 20
  597. end
  598. else
  599. Char.Humanoid.WalkSpeed = 13
  600. end
  601. end
  602. end)
  603. KT.Unequipped:connect(function()
  604. if Mobile then
  605. ThrowGui.Visible = false
  606. if Perk == "Shadow Cloak" then
  607. CloakGui.Visible = false
  608. end
  609. end
  610. Charged = false
  611. MouseDown = false
  612. Selected = false
  613. Mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
  614. if WeaponMesh ~= nil then
  615. WeaponMesh:Destroy()
  616. end
  617. WeaponType = nil
  618. WC.Unequip(Char, Char)
  619. if workspace.GameInProgress.Mode.Value ~= "Infected" then
  620. Char.Humanoid.WalkSpeed = 16
  621. else
  622. Char.Humanoid.WalkSpeed = 13
  623. end
  624. if Cloaked then
  625. WC.UnCloak(Char, Char)
  626. Cloaked = false
  627. end
  628. end)
  629. end
  630. end
  631. end)
  632. local DB3 = false
  633. IS.InputBegan:connect(function(input, chatting)
  634. if input.UserInputType == Enum.UserInputType.Gamepad1 and input.UserInputState == Enum.UserInputState.Begin and not chatting and Selected and input.KeyCode == Enum.KeyCode.ButtonX and WeaponType == "Knife" and CanCloak and Perk == "Shadow Cloak" then
  635. if Gamemode == "Infected" or Gamemode == "One In The Chamber" then
  636. return
  637. end
  638. CanCloak = false
  639. WC.Cloak(Char, Char)
  640. Cloaked = true
  641. wait(10)
  642. if Cloaked then
  643. WC.UnCloak(Char, Char)
  644. Cloaked = false
  645. end
  646. wait(15)
  647. CanCloak = true
  648. end
  649. if input.UserInputType == Enum.UserInputType.Keyboard and input.UserInputState == Enum.UserInputState.Begin and not chatting and Selected then
  650. if input.KeyCode == Enum.KeyCode.E and WeaponType == "Knife" and not DB3 then
  651. if Gamemode == "Infected" or Gamemode == "One In The Chamber" then
  652. return
  653. end
  654. DB3 = true
  655. spawn(function()
  656. if Cloaked then
  657. WC.UnCloak(Char, Char)
  658. Cloaked = false
  659. end
  660. end)
  661. if not DB2 and not DB then
  662. DB2 = true
  663. if not DB then
  664. DB2 = true
  665. DB = true
  666. if Perk ~= "Quick Hands" then
  667. AniChargeKnife()
  668. wait(.1)
  669. else
  670. AniChargeKnife2()
  671. wait(.1)
  672. end
  673. if not Selected or WeaponType ~= "Knife" then
  674. DB2 = false
  675. DB = false
  676. return
  677. end
  678. spawn(function()
  679. WC.ThrowKnife(Char, Char, Mouse.Hit.p, Ability)
  680. end)
  681. AniThrowKnife()
  682. wait(0.3)
  683. AniEquipKnife()
  684. DB = false
  685. DB2 = false
  686. else
  687. DB2 = false
  688. end
  689. end
  690. wait(0.25)
  691. DB3 = false
  692. elseif input.KeyCode == Enum.KeyCode.Q and WeaponType == "Knife" and CanCloak and Perk == "Shadow Cloak" then
  693. if Gamemode == "Infected" or Gamemode == "One In The Chamber" then
  694. return
  695. end
  696. CanCloak = false
  697. WC.Cloak(Char, Char)
  698. Cloaked = true
  699. wait(10)
  700. if Cloaked then
  701. WC.UnCloak(Char, Char)
  702. Cloaked = false
  703. end
  704. wait(15)
  705. CanCloak = true
  706. end
  707. end
  708. end)
  709. game.Players.ChildAdded:connect(function(c)
  710. wait(3)
  711. repeat
  712. wait()
  713. until not DB and not DB2 and not MouseDown
  714. if WeaponType == "Gun" then
  715. WC.EquipGun(Char, Char, GunSkin)
  716. AniEquipGun()
  717. elseif WeaponType == "Knife" then
  718. WC.EquipKnife(Char, Char, KnifeSkin)
  719. AniEquipKnife()
  720. end
  721. end)
  722. local Modules = game.ReplicatedStorage:WaitForChild("Modules")
  723. local M = require(Modules:WaitForChild("AnimationCore"))
  724. local WC = require(Modules:WaitForChild("WeaponCore"))
  725. local Mouse = game.Players.LocalPlayer:GetMouse()
  726. local Char = game.Players.LocalPlayer.Character
  727. Mouse.Button1Down:Connect(function()
  728. WC.ThrowKnife(Char, Char, Mouse.Hit.p, "Quickscoper")
  729. end)
Add Comment
Please, Sign In to add comment