Advertisement
Guest User

Twisted Murderer Gun/Knife Equip!

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