Advertisement
Christoffer07700Extr

e

Oct 15th, 2019
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 117.33 KB | None | 0 0
  1. --------------------------
  2. --Zenith Battle Rifle-70--
  3. ----------------------------------------------------------------
  4. --By CKbackup (Sugarie Saffron) --
  5. --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw--
  6. --Discord: Sugarie Saffron#4705 --
  7. ----------------------------------------------------------------
  8.  
  9. print([[
  10. --------------------------------
  11. By CKbackup (Sugarie Saffron)
  12. YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw
  13. Discord: Sugarie Saffron#4705
  14. --------------------------------
  15. The Zenith Battle Rifle 70 (ZBR-70)
  16. The ZBR-70 was a rifle designed by
  17. Engineer Alexander Zenith in 1970, for a
  18. cheap yet reliable option to be used
  19. as a standard issue rifle.
  20. It fires 5.56 calibre rounds and
  21. is still used today in several armies
  22. and police forces.
  23. --------------------------------
  24. (Keys)
  25. Click (Hold) - Fire
  26. R - Reload
  27. Q/E - Quick Strafe
  28. Z - Dive
  29. X - Knife Stab
  30. F - Heal
  31. H - Flashlight
  32.  
  33. Reloading while there's still ammo will
  34. add an extra bullet.
  35. Rifle only has an effective range of
  36. 200 studs.
  37. Healing will add a health point for 200
  38. frames before wearing out, and has a
  39. cooldown of 30 seconds.
  40. ]])
  41.  
  42. wait(1/60)
  43. Effects = { }
  44. local Player = game:service'Players'.localPlayer
  45. local chara = Player.Character
  46. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  47. local Mouse = Player:GetMouse()
  48. local LeftArm = chara["Left Arm"]
  49. local RightArm = chara["Right Arm"]
  50. local LeftLeg = chara["Left Leg"]
  51. local RightLeg = chara["Right Leg"]
  52. local Head = chara.Head
  53. local Torso = chara.Torso
  54. local Camera = workspace.CurrentCamera
  55. local RootPart = chara.HumanoidRootPart
  56. local RootJoint = RootPart.RootJoint
  57. local attack = false
  58. local Anim = 'Idle'
  59. local attacktype = 1
  60. local delays = false
  61. local play = true
  62. local targetted = nil
  63. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  64. local velocity = RootPart.Velocity.y
  65. local sine = 0
  66. local change = 1
  67. local doe = 0
  68. local Create = LoadLibrary("RbxUtility").Create
  69. local debby = game:GetService("Debris")
  70. Humanoid.WalkSpeed = 16
  71.  
  72. local shots = 30
  73.  
  74. local healing = false
  75.  
  76. Humanoid.Animator.Parent = nil
  77. chara.Animate.Parent = nil
  78.  
  79. local newMotor = function(part0, part1, c0, c1)
  80. local w = Create('Motor'){
  81. Parent = part0,
  82. Part0 = part0,
  83. Part1 = part1,
  84. C0 = c0,
  85. C1 = c1,
  86. }
  87. return w
  88. end
  89.  
  90. function clerp(a, b, t)
  91. return a:lerp(b, t)
  92. end
  93.  
  94. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  95. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  96.  
  97. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  98. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  99. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  100. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  101. RootJoint.C1 = CFrame.new(0, 0, 0)
  102. RootJoint.C0 = CFrame.new(0, 0, 0)
  103. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  104. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  105.  
  106. local rarmc1 = RW.C1
  107. local larmc1 = LW.C1
  108. local rlegc1 = RH.C1
  109. local llegc1 = LH.C1
  110.  
  111. local resetc1 = false
  112.  
  113. function PlayAnimationFromTable(table, speed, bool)
  114. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  115. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  116. RW.C0 = clerp(RW.C0, table[3], speed)
  117. LW.C0 = clerp(LW.C0, table[4], speed)
  118. RH.C0 = clerp(RH.C0, table[5], speed)
  119. LH.C0 = clerp(LH.C0, table[6], speed)
  120. if bool == true then
  121. if resetc1 == false then
  122. resetc1 = true
  123. RootJoint.C1 = RootJoint.C1
  124. Torso.Neck.C1 = Torso.Neck.C1
  125. RW.C1 = rarmc1
  126. LW.C1 = larmc1
  127. RH.C1 = rlegc1
  128. LH.C1 = llegc1
  129. end
  130. end
  131. end
  132.  
  133. ArtificialHB = Instance.new("BindableEvent", script)
  134. ArtificialHB.Name = "Heartbeat"
  135. script:WaitForChild("Heartbeat")
  136. frame = 0.03333333333333
  137. tf = 0
  138. allowframeloss = false
  139. tossremainder = false
  140. lastframe = tick()
  141. script.Heartbeat:Fire()
  142. game:GetService("RunService").Heartbeat:connect(function(s, p)
  143. tf = tf + s
  144. if tf >= frame then
  145. if allowframeloss then
  146. script.Heartbeat:Fire()
  147. lastframe = tick()
  148. else
  149. for i = 1, math.floor(tf / frame) do
  150. script.Heartbeat:Fire()
  151. end
  152. lastframe = tick()
  153. end
  154. if tossremainder then
  155. tf = 0
  156. else
  157. tf = tf - frame * math.floor(tf / frame)
  158. end
  159. end
  160. end)
  161. function swait(num)
  162. if num == 0 or num == nil then
  163. ArtificialHB.Event:wait()
  164. else
  165. for i = 0, num do
  166. ArtificialHB.Event:wait()
  167. end
  168. end
  169. end
  170.  
  171. function RemoveOutlines(part)
  172. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  173. end
  174.  
  175. function so(id,par,pit,vol)
  176. local sou = Instance.new("Sound", par or workspace)
  177. if par == chara then
  178. sou.Parent = chara.Torso
  179. end
  180. sou.Volume = vol
  181. sou.Pitch = pit or 1
  182. sou.SoundId = "rbxassetid://" .. id
  183. sou.PlayOnRemove = true
  184. sou:Destroy()
  185. end
  186.  
  187. --This is just for builds--
  188. New = function(Object, Parent, Name, Data)
  189. local Object = Instance.new(Object)
  190. for Index, Value in pairs(Data or {}) do
  191. Object[Index] = Value
  192. end
  193. Object.Parent = Parent
  194. Object.Name = Name
  195. return Object
  196. end
  197.  
  198. SniperPart = New("Part",chara,"SniperPart",{FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.299999923, 5.59999752, 1.20000005),CFrame = CFrame.new(12.6994934, 10.8995457, -104.84919, -0.999997199, 0.000127014282, 7.70353145e-05, -0.000136496106, -1.00000858, -7.61961637e-05, 8.27468975e-05, -8.1929189e-05, 0.999997139),CanCollide = false,})
  199. Mesh = New("SpecialMesh",SniperPart,"Mesh",{Scale = Vector3.new(1.5, 1.5, 1.5),MeshId = "http://www.roblox.com/asset?id=71947387",TextureId = "http://www.roblox.com/asset?id=71947339",MeshType = Enum.MeshType.FileMesh,})
  200. Weld = New("ManualWeld",SniperPart,"Weld",{Part0 = SniperPart,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, -1, -3.8146934e-06, 2.64410255e-06, 3.81311042e-06, -1, -1.81502128e-06, 2.6441096e-06, -1.81501105e-06, 1),C1 = CFrame.new(-0.0998973846, -2.69990635, -0.250015259, -1, -7.88987098e-10, -1.34516404e-23, 7.88987098e-10, 1, 3.40985073e-14, -1.34516388e-23, -3.40985073e-14, -1),})
  201. SniperF = New("Part",chara,"SniperF",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.0999997407, 0.100000001, 0.0999999866),CFrame = CFrame.new(12.6998749, 8.04950333, -104.599442, 0.999997199, -0.000123199745, 7.43909914e-05, 0.000132682762, 1.00000858, -7.4381489e-05, -8.01031056e-05, 8.01138667e-05, 0.999997139),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  202. Weld = New("ManualWeld",SniperF,"Weld",{Part0 = SniperF,Part1 = SniperPart,C1 = CFrame.new(0, 2.84999847, 0.249984741, -1, -3.8146934e-06, 2.64410255e-06, 3.81311042e-06, -1, -1.81502128e-06, 2.6441096e-06, -1.81501105e-06, 1),})
  203.  
  204. ShottyPart = New("Part",chara,"ShottyPart",{FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 3, 0.600000024),CFrame = CFrame.new(-14.4535122, 9.59664345, -109.497604, -0.999997258, 0.000102982318, -9.57794546e-05, -0.000112362795, -1.00000811, -0.00097725715, -9.01586318e-05, -0.000982958474, 0.999996722),CanCollide = false,})
  205. Mesh = New("SpecialMesh",ShottyPart,"Mesh",{VertexColor = Vector3.new(2, 2, 2),MeshId = "http://www.roblox.com/asset/?id=71947462",TextureId = "http://www.roblox.com/asset/?id=150079972",MeshType = Enum.MeshType.FileMesh,})
  206. Weld = New("ManualWeld",ShottyPart,"Weld",{Part0 = ShottyPart,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, -1, 2.03055642e-05, -0.00017026384, -2.01518324e-05, -0.999999583, -0.000902848784, -0.000170282117, -0.00090284535, 0.999999642),C1 = CFrame.new(-0.149913788, -2.39947891, -0.197479248, -1, 2.0288815e-05, 0.000126775703, 2.02955143e-05, 1, 5.28392593e-05, -0.000126774627, 5.28418313e-05, -1),})
  207. ShotgunF = New("Part",chara,"ShotgunF",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.0999997407, 0.100000001, 0.0999999866),CFrame = CFrame.new(-14.4533739, 7.94634056, -109.249107, 0.999997258, -0.000123201316, 7.43909841e-05, 0.000132681205, 1.00000846, -7.43815326e-05, -8.01031274e-05, 8.01137649e-05, 0.999997258),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  208. Weld = New("ManualWeld",ShotgunF,"Weld",{Part0 = ShotgunF,Part1 = ShottyPart,C1 = CFrame.new(7.62939453e-06, 1.65004492, 0.25012207, -1, 2.03055642e-05, -0.00017026384, -2.01518324e-05, -0.999999583, -0.000902848784, -0.000170282117, -0.00090284535, 0.999999642),})
  209.  
  210. PistolPart = New("Part",chara,"PistolPart",{FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 1, 1.60000014),CFrame = CFrame.new(18.0989876, 7.69964027, -101.500366, -0.999996424, 0.000773654203, -0.00101959216, -0.0010287785, 0.000385828374, 1.00000811, 0.00077976333, 0.999996781, -0.000379299192),CanCollide = false,BackSurface = Enum.SurfaceType.Weld,BottomSurface = Enum.SurfaceType.Weld,FrontSurface = Enum.SurfaceType.Weld,LeftSurface = Enum.SurfaceType.Weld,RightSurface = Enum.SurfaceType.Weld,TopSurface = Enum.SurfaceType.Weld,})
  211. Mesh = New("SpecialMesh",PistolPart,"Mesh",{Scale = Vector3.new(2, 2, 2),MeshId = "http://www.roblox.com/asset?id=77882703",TextureId = "http://www.roblox.com/asset?id=77882618",MeshType = Enum.MeshType.FileMesh,})
  212. Weld = New("ManualWeld",PistolPart,"Weld",{Part0 = PistolPart,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, -0.999996424, -0.0010287785, 0.00077976333, 0.000773654203, 0.000385828374, 0.999996781, -0.00101959216, 1.00000811, -0.000379299192),C1 = CFrame.new(-0.198720932, -1.50034809, -0.199378967, -1, -0.00026502274, 0.000159957795, -0.000264997128, 1, 0.000160029536, -0.0001600002, 0.000159987132, -1),})
  213. Pistol2Part = New("Part",chara,"Pistol2Part",{FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 1, 1.60000014),CFrame = CFrame.new(20.7989807, 7.70241833, -101.502472, -0.999996424, 0.000773654203, -0.00101959216, -0.0010287785, 0.000385828374, 1.00000811, 0.00077976333, 0.999996781, -0.000379299192),CanCollide = false,BackSurface = Enum.SurfaceType.Weld,BottomSurface = Enum.SurfaceType.Weld,FrontSurface = Enum.SurfaceType.Weld,LeftSurface = Enum.SurfaceType.Weld,RightSurface = Enum.SurfaceType.Weld,TopSurface = Enum.SurfaceType.Weld,})
  214. Mesh = New("SpecialMesh",Pistol2Part,"Mesh",{Scale = Vector3.new(2, 2, 2),MeshId = "http://www.roblox.com/asset?id=77882703",TextureId = "http://www.roblox.com/asset?id=77882618",MeshType = Enum.MeshType.FileMesh,})
  215. Weld = New("ManualWeld",Pistol2Part,"Weld",{Part0 = Pistol2Part,Part1 = LeftArm,C0 = CFrame.new(0, 0, 0, -0.999999404, -0.000896037673, 0.000699733966, 0.000699321856, 0.000460113079, 0.999999642, -0.00089635927, 0.999999523, -0.000459486182),C1 = CFrame.new(0.101261139, -1.49828005, -0.19770813, -0.999999046, -0.00013233356, 7.98649926e-05, -0.000129168649, 1.00000286, 7.99051195e-05, -7.79679685e-05, 7.79874026e-05, -0.999999046),})
  216. PistolF = New("Part",chara,"PistolF",{Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.199999988, 0.200000003),CFrame = CFrame.new(18.1002274, 6.79980469, -101.100029, -0.999996781, 0.00116357114, 0.000773530744, -0.0011731172, -1.00000811, 0.000386120519, 0.000779943191, 0.000379309029, 0.999996781),CanCollide = false,})
  217. Weld = New("ManualWeld",PistolF,"Weld",{Part0 = PistolF,Part1 = PistolPart,C0 = CFrame.new(0, 0, 0, -0.999999642, -0.00104037486, 0.000699925295, 0.00104033854, -0.999999404, 0.000459507515, 0.000699198456, 0.000460405223, 0.999999642),C1 = CFrame.new(-1.33514404e-05, 0.399993896, -0.899982452, -0.999999404, -0.000896037673, 0.000699733966, 0.000699321856, 0.000460113079, 0.999999642, -0.00089635927, 0.999999523, -0.000459486182),})
  218. Pistol2F = New("Part",chara,"Pistol2F",{Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.199999988, 0.200000003),CFrame = CFrame.new(20.8002224, 6.80258274, -101.102135, -0.999996781, 0.00116357114, 0.000773530744, -0.0011731172, -1.00000811, 0.000386120519, 0.000779943191, 0.000379309029, 0.999996781),CanCollide = false,})
  219. Weld = New("ManualWeld",Pistol2F,"Weld",{Part0 = Pistol2F,Part1 = Pistol2Part,C0 = CFrame.new(0, 0, 0, -0.999999642, -0.00104037486, 0.000699925295, 0.00104033854, -0.999999404, 0.000459507515, 0.000699198456, 0.000460405223, 0.999999642),C1 = CFrame.new(-1.52587891e-05, 0.399993896, -0.899982452, -0.999999404, -0.000896037673, 0.000699733966, 0.000699321856, 0.000460113079, 0.999999642, -0.00089635927, 0.999999523, -0.000459486182),})
  220.  
  221. Knife = New("Part",chara,"Knife",{BrickColor = BrickColor.new("Really black"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000018, 3, 0.600000024),CFrame = CFrame.new(18.1000671, 8.20049858, -102.599922, 0.999997199, -7.43909914e-05, -0.000123201287, 0.000132681176, 7.43816781e-05, 1.00000858, -8.01031129e-05, -0.999997139, 8.01140704e-05),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  222. Mesh = New("SpecialMesh",Knife,"Mesh",{MeshId = "rbxassetid://121944778",TextureId = "rbxassetid://121944805",MeshType = Enum.MeshType.FileMesh,})
  223. Weld = New("ManualWeld",Knife,"Weld",{Part0 = Knife,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 1, -1.83178334e-11, -9.29553131e-20, -8.93234474e-20, 1.9826904e-10, -1, 1.83178334e-11, 1, 1.9826904e-10),C1 = CFrame.new(-0.200113297, -0.99965477, 0.900268555, -0.999999046, -0.00013233356, 7.98649926e-05, -0.000129168649, 1.00000286, 7.99051195e-05, -7.79679685e-05, 7.79874026e-05, -0.999999046),})
  224. Knife2 = New("Part",chara,"Knife2",{BrickColor = BrickColor.new("Really black"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000018, 3, 0.600000024),CFrame = CFrame.new(20.800066, 8.20085621, -102.600151, 0.999997199, -7.43909914e-05, -0.000123201287, 0.000132681176, 7.43816781e-05, 1.00000858, -8.01031129e-05, -0.999997139, 8.01140704e-05),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  225. Mesh = New("SpecialMesh",Knife2,"Mesh",{MeshId = "rbxassetid://121944778",TextureId = "rbxassetid://121944805",MeshType = Enum.MeshType.FileMesh,})
  226. Weld = New("ManualWeld",Knife2,"Weld",{Part0 = Knife2,Part1 = LeftArm,C0 = CFrame.new(0, 0, 0, 1, -1.83178334e-11, -9.29553131e-20, -8.93234474e-20, 1.9826904e-10, -1, 1.83178334e-11, 1, 1.9826904e-10),C1 = CFrame.new(0.0998783112, -1.00001431, 0.900054932, -0.999999046, -0.00013233356, 7.98649926e-05, -0.000129168649, 1.00000286, 7.99051195e-05, -7.79679685e-05, 7.79874026e-05, -0.999999046),})
  227.  
  228. SheathPart = New("Part",chara,"SheathPart",{BrickColor = BrickColor.new("Really black"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-4.70037603, 7.11581182, -105.941528, 0.000411997637, 0.000128002648, 1, 0.765914023, -0.642943084, -0.00023325636, 0.642943025, 0.765914023, -0.000362930034),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  229. Mesh = New("SpecialMesh",SheathPart,"Mesh",{Scale = Vector3.new(0.419999987, 2.5, 5),MeshId = "rbxassetid://504776834",MeshType = Enum.MeshType.FileMesh,})
  230. Weld = New("ManualWeld",SheathPart,"Weld",{Part0 = SheathPart,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 0.000411997637, 0.765914023, 0.642943025, 0.000128002648, -0.642943084, 0.765914023, 1, -0.00023325636, -0.000362930034),C1 = CFrame.new(-0.399157524, -0.0849089622, 0.44103241, -1, -0.000285560207, 0.000172345346, -0.000285530492, 1, 0.000172423926, -0.000172394575, 0.000172374697, -1),})
  231. KnifeH = New("Part",chara,"KnifeH",{BrickColor = BrickColor.new("Really black"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-4.70015621, 7.43445921, -105.543449, 1, -0.000408680877, -0.00014000498, -0.000222999661, -0.765914917, 0.642942011, -0.000369990012, -0.642941952, -0.765914917),CanCollide = false,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
  232. Mesh = New("SpecialMesh",KnifeH,"Mesh",{MeshId = "rbxassetid://121944778",TextureId = "rbxassetid://121944805",MeshType = Enum.MeshType.FileMesh,})
  233. Weld = New("ManualWeld",KnifeH,"Weld",{Part0 = KnifeH,Part1 = LeftLeg,C0 = CFrame.new(0, 0, 0, 1, -0.000222999661, -0.000369990012, -0.000408680877, -0.765914917, -0.642941952, -0.00014000498, 0.642942011, -0.765914917),C1 = CFrame.new(-0.399399757, 0.23380661, 0.043006897, -1, -0.000285560207, 0.000172345346, -0.000285530492, 1, 0.000172423926, -0.000172394575, 0.000172374697, -1),})
  234. PistolH = New("Part",chara,"PistolH",{FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-6.49966383, 7.78175831, -105.575996, -1, 0.000318881212, -5.09696583e-05, -0.000277000305, -0.765891254, 0.642970145, 0.000165993857, 0.642970145, 0.765891314),CanCollide = false,BackSurface = Enum.SurfaceType.Weld,BottomSurface = Enum.SurfaceType.Weld,FrontSurface = Enum.SurfaceType.Weld,LeftSurface = Enum.SurfaceType.Weld,RightSurface = Enum.SurfaceType.Weld,TopSurface = Enum.SurfaceType.Weld,})
  235. Mesh = New("SpecialMesh",PistolH,"Mesh",{Scale = Vector3.new(2, 2, 2),MeshId = "http://www.roblox.com/asset?id=77882703",TextureId = "http://www.roblox.com/asset?id=77882618",MeshType = Enum.MeshType.FileMesh,})
  236. Weld = New("ManualWeld",PistolH,"Weld",{Part0 = PistolH,Part1 = RightLeg,C0 = CFrame.new(0, 0, 0, -1, -0.000277000305, 0.000165993857, 0.000318881212, -0.765891254, 0.642970145, -5.09696583e-05, 0.642970145, 0.765891314),C1 = CFrame.new(0.399995804, 0.581613064, 0.0758972168, -1, -0.000285560207, 0.000172345346, -0.000285530492, 1, 0.000172423926, -0.000172394575, 0.000172374697, -1),})
  237. ShottyH = New("Part",chara,"ShottyH",{FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-5.59976482, 8.30091476, -106.050423, 9.99167696e-06, 1, 3.19996834e-05, 5.30095167e-05, -3.20002146e-05, 1, 1, -9.98998075e-06, -5.30098368e-05),CanCollide = false,})
  238. Mesh = New("SpecialMesh",ShottyH,"Mesh",{VertexColor = Vector3.new(2, 2, 2),MeshId = "http://www.roblox.com/asset/?id=71947462",TextureId = "http://www.roblox.com/asset/?id=150079972",MeshType = Enum.MeshType.FileMesh,})
  239. Weld = New("ManualWeld",ShottyH,"Weld",{Part0 = ShottyH,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 9.99167696e-06, 5.30095167e-05, 1, 1, -3.20002146e-05, -9.98998075e-06, 3.19996834e-05, 1, -5.30098368e-05),C1 = CFrame.new(-8.48770142e-05, -0.899636269, 0.55027771, -1, -0.000285560207, 0.000172345346, -0.000285530492, 1, 0.000172423926, -0.000172394575, 0.000172374697, -1),})
  240. SniperH = New("Part",chara,"SniperH",{FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.200000003, 0.200000003, 0.200000003),CFrame = CFrame.new(-5.47727585, 9.23893642, -106.150467, 0.000373998424, 0.865912914, 0.500194848, 0.000229012818, -0.500194967, 0.865912855, 0.999999881, -0.000209299018, -0.000385377265),CanCollide = false,})
  241. Mesh = New("SpecialMesh",SniperH,"Mesh",{Scale = Vector3.new(1.5, 1.5, 1.5),MeshId = "http://www.roblox.com/asset?id=71947387",TextureId = "http://www.roblox.com/asset?id=71947339",MeshType = Enum.MeshType.FileMesh,})
  242. Weld = New("ManualWeld",SniperH,"Weld",{Part0 = SniperH,Part1 = Torso,C0 = CFrame.new(0, 0, 0, 0.000373998424, 0.000229012818, 0.999999881, 0.865912914, -0.500194967, -0.000209299018, 0.500194848, 0.865912855, -0.000385377265),C1 = CFrame.new(-0.122859001, 0.0383329391, 0.650466919, -1, -0.000285560207, 0.000172345346, -0.000285530492, 1, 0.000172423926, -0.000172394575, 0.000172374697, -1),})
  243.  
  244. Knife2.Transparency = 1
  245. Pistol2Part.Transparency = 1
  246. PistolPart.Transparency = 1
  247. ShottyPart.Transparency = 1
  248. SniperPart.Transparency = 1
  249. KnifeH.Transparency = 1
  250.  
  251. function CreateTrailObj(parent,color1,color2,ofsx,ofsz)
  252. local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
  253. local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
  254. local TEff = New("Trail",parent,"TrailEff",{Color = ColorSequence.new({ColorSequenceKeypoint.new(0,BrickColor.new(color1).Color),ColorSequenceKeypoint.new(1,BrickColor.new(color2).Color)}),Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,.5),NumberSequenceKeypoint.new(1,1)}),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001})
  255. return TEff
  256. end
  257.  
  258. LLTr = CreateTrailObj(LeftLeg,"White","White",0,0)
  259. RLTr = CreateTrailObj(RightLeg,"White","White",0,0)
  260. LATr = CreateTrailObj(LeftArm,"White","White",0,0)
  261. RATr = CreateTrailObj(RightArm,"White","White",0,0)
  262.  
  263. local p1mit = Instance.new("ParticleEmitter",Knife2)
  264. p1mit.Texture = "rbxasset://textures/particles/fire_main.dds"
  265. p1mit.Color = ColorSequence.new(Color3.new(.6,0,0))
  266. p1mit.Size = NumberSequence.new(1,0)
  267. p1mit.Lifetime = NumberRange.new(2)
  268. p1mit.Rate = 100
  269. p1mit.Enabled = false
  270. p1mit.Acceleration = Vector3.new(0,-10,0)
  271. p1mit.Rotation = NumberRange.new(0,359)
  272. p1mit.Speed = NumberRange.new(0)
  273. p1mit.Enabled = false
  274.  
  275. local tr2
  276. spawn(function()
  277. local Att1 = New("Attachment",Knife2,"Att1",{Position = Vector3.new(0,1.3,.2)})
  278. local Att2 = New("Attachment",Knife2,"Att2",{Position = Vector3.new(0,-.5,.2)})
  279. tr2 = New("Trail",Knife2,"TrailEff",{Color = ColorSequence.new(Color3.new(.8,.8,.8)),Transparency = NumberSequence.new(0,1),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001})
  280. end)
  281.  
  282. local scr = Instance.new("ScreenGui",Player:FindFirstChildOfClass("PlayerGui"))
  283. local fr1 = Instance.new("Frame",scr)
  284. fr1.AnchorPoint = Vector2.new(1,.5)
  285. fr1.BackgroundTransparency = 1
  286. fr1.BorderSizePixel = 0
  287. fr1.Position = UDim2.new(1,0,.6,0)
  288. fr1.Size = UDim2.new(0,150,0,200)
  289.  
  290. local imgbase = Instance.new("ImageLabel")
  291. imgbase.BackgroundTransparency = 1
  292. imgbase.BorderSizePixel = 0
  293. imgbase.Size = UDim2.new(0,50,0,50)
  294. imgbase.ImageColor3 = Color3.new(.3,.3,.3)
  295.  
  296. local img1 = imgbase:Clone()
  297. img1.Parent = fr1
  298. img1.Image = "rbxassetid://50231593"
  299. img1.ImageColor3 = Color3.new(1,1,1)
  300.  
  301. imgbase:Destroy()
  302.  
  303. local txtbase = Instance.new("TextLabel")
  304. txtbase.BackgroundTransparency = 1
  305. txtbase.BorderSizePixel = 0
  306. txtbase.Size = UDim2.new(0,100,0,50)
  307. txtbase.Font = "Highway"
  308. txtbase.TextSize = 30
  309. txtbase.TextColor3 = Color3.new(.3,.3,.3)
  310. txtbase.TextStrokeColor3 = Color3.new(0,0,0)
  311. txtbase.TextStrokeTransparency = 0
  312.  
  313. local txt1 = txtbase:Clone()
  314. txt1.Parent = fr1
  315. txt1.Text = "30/30"
  316. txt1.TextColor3 = Color3.new(1,1,1)
  317. txt1.Position = UDim2.new(0,50,0,0)
  318.  
  319. txtbase:Destroy()
  320.  
  321. local fr2 = Instance.new("Frame",scr)
  322. fr2.AnchorPoint = Vector2.new(.5,.5)
  323. fr2.BackgroundColor3 = Color3.new(0,0,0)
  324. fr2.BorderColor3 = Color3.new(0,0,0)
  325. fr2.BorderSizePixel = 5
  326. fr2.Position = UDim2.new(.5,0,.8,0)
  327. fr2.Size = UDim2.new(0,300,0,30)
  328.  
  329. local hpbar = Instance.new("Frame",fr2)
  330. hpbar.BackgroundColor3 = Color3.new(0,1,0)
  331. hpbar.BorderSizePixel = 0
  332. hpbar.Size = UDim2.new(1,0,1,0)
  333. local hptext = Instance.new("TextLabel",fr2)
  334. hptext.BackgroundTransparency = 1
  335. hptext.BorderSizePixel = 0
  336. hptext.LayoutOrder = -1
  337. hptext.Size = UDim2.new(0,100,1,0)
  338. hptext.Font = "Highway"
  339. hptext.Text = " + 100"
  340. hptext.TextColor3 = Color3.new(1,1,1)
  341. hptext.TextSize = 30
  342. hptext.TextXAlignment = "Left"
  343.  
  344. coroutine.wrap(function()
  345. while true do
  346. swait()
  347. txt1.Text = shots.."/30"
  348. end
  349. end)()
  350.  
  351. coroutine.wrap(function()
  352. while true do
  353. swait()
  354. local hp = Humanoid.Health
  355. local mhp = Humanoid.MaxHealth
  356. hpbar.Size = UDim2.new(hp/mhp,0,1,0)
  357. if healing == false then
  358. hpbar.BackgroundColor3 = Color3.new(1-(hp/mhp),hp/mhp,0)
  359. else
  360. hpbar.BackgroundColor3 = Color3.new(1,1,0)
  361. end
  362. hptext.Text = " + "..(math.floor(hp))
  363. end
  364. end)()
  365.  
  366. local li = Instance.new("SpotLight",Head)
  367. li.Angle = 90
  368. li.Brightness = 50
  369. li.Shadows = true
  370. li.Range = 30
  371. li.Enabled = false
  372.  
  373. function rayCast(Position, Direction, Range, Ignore)
  374. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  375. end
  376.  
  377. function FindNearestTorso(Position, Distance, SinglePlayer)
  378. if SinglePlayer then
  379. return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
  380. end
  381. local List = {}
  382. for i, v in pairs(workspace:GetDescendants()) do
  383. if v:IsA("Model") then
  384. if v:findFirstChild("Head") then
  385. if v ~= chara then
  386. if (v.Head.Position - Position).magnitude <= Distance then
  387. table.insert(List, v)
  388. end
  389. end
  390. end
  391. end
  392. end
  393. return List
  394. end
  395.  
  396. EffectModel = Create("Model"){
  397. Parent = chara,
  398. Name = "Effects",
  399. }
  400.  
  401. --Effect Functions--
  402. Effects = {
  403.  
  404. Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
  405. local p = Instance.new("Part",EffectModel)
  406. p.BrickColor = BrickColor.new(colour)
  407. p.Size = partsize
  408. p.Anchored = true
  409. p.CanCollide = false
  410. p.Material = matr
  411. p.CFrame = cf
  412. if inverse == true then
  413. p.Transparency = 1
  414. else
  415. p.Transparency = 0
  416. end
  417. local m = Instance.new("BlockMesh",p)
  418. m.Scale = meshstart
  419. coroutine.wrap(function()
  420. for i=0,1,factor do
  421. swait()
  422. if inverse == true then
  423. p.Transparency = 1-i
  424. else
  425. p.Transparency = i
  426. end
  427. m.Scale = m.Scale + meshadd
  428. if spin == true then
  429. p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  430. end
  431. end
  432. p:Destroy()
  433. end)()
  434. return p
  435. end,
  436.  
  437. Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  438. local p = Instance.new("Part",EffectModel)
  439. p.BrickColor = BrickColor.new(colour)
  440. p.Size = partsize
  441. p.Anchored = true
  442. p.CanCollide = false
  443. p.Material = matr
  444. p.CFrame = cf
  445. if inverse == true then
  446. p.Transparency = 1
  447. else
  448. p.Transparency = 0
  449. end
  450. local m = Instance.new("SpecialMesh",p)
  451. m.MeshType = "Sphere"
  452. m.Scale = meshstart
  453. coroutine.wrap(function()
  454. for i=0,1,factor do
  455. swait()
  456. if inverse == true then
  457. p.Transparency = 1-i
  458. else
  459. p.Transparency = i
  460. end
  461. m.Scale = m.Scale + meshadd
  462. end
  463. p:Destroy()
  464. end)()
  465. return p
  466. end,
  467.  
  468. Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  469. local p = Instance.new("Part",EffectModel)
  470. p.BrickColor = BrickColor.new(colour)
  471. p.Size = partsize
  472. p.Anchored = true
  473. p.CanCollide = false
  474. p.Material = matr
  475. p.CFrame = cf
  476. if inverse == true then
  477. p.Transparency = 1
  478. else
  479. p.Transparency = 0
  480. end
  481. local m = Instance.new("CylinderMesh",p)
  482. m.Scale = meshstart
  483. coroutine.wrap(function()
  484. for i=0,1,factor do
  485. swait()
  486. if inverse == true then
  487. p.Transparency = 1-i
  488. else
  489. p.Transparency = i
  490. end
  491. m.Scale = m.Scale + meshadd
  492. end
  493. p:Destroy()
  494. end)()
  495. return p
  496. end,
  497.  
  498. Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
  499. local p = Instance.new("Part",EffectModel)
  500. p.BrickColor = BrickColor.new(colour)
  501. p.Size = Vector3.new()
  502. p.Anchored = true
  503. p.CanCollide = false
  504. p.CFrame = cf
  505. if inverse == true then
  506. p.Transparency = 1
  507. else
  508. p.Transparency = 0
  509. end
  510. local m = Instance.new("SpecialMesh",p)
  511. m.MeshId = "rbxassetid://20329976"
  512. m.Scale = meshstart
  513. coroutine.wrap(function()
  514. for i=0,1,factor do
  515. swait()
  516. if inverse == true then
  517. p.Transparency = 1-i
  518. else
  519. p.Transparency = i
  520. end
  521. m.Scale = m.Scale + meshadd
  522. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  523. end
  524. p:Destroy()
  525. end)()
  526. return p
  527. end,
  528.  
  529. Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
  530. local p = Instance.new("Part",EffectModel)
  531. p.BrickColor = BrickColor.new(colour)
  532. p.Size = Vector3.new()
  533. p.Anchored = true
  534. p.CanCollide = false
  535. p.CFrame = cf
  536. if inverse == true then
  537. p.Transparency = 1
  538. else
  539. p.Transparency = 0
  540. end
  541. local m = Instance.new("SpecialMesh",p)
  542. m.MeshId = "rbxassetid://3270017"
  543. m.Scale = meshstart
  544. coroutine.wrap(function()
  545. for i=0,1,factor do
  546. swait()
  547. if inverse == true then
  548. p.Transparency = 1-i
  549. else
  550. p.Transparency = i
  551. end
  552. m.Scale = m.Scale + meshadd
  553. end
  554. p:Destroy()
  555. end)()
  556. return p
  557. end,
  558.  
  559. Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
  560. local p = Instance.new("Part",EffectModel)
  561. p.BrickColor = BrickColor.new(colour)
  562. p.Size = Vector3.new()
  563. p.Anchored = true
  564. p.CanCollide = false
  565. p.CFrame = cf
  566. if inverse == true then
  567. p.Transparency = 1
  568. else
  569. p.Transparency = 0
  570. end
  571. local m = Instance.new("SpecialMesh",p)
  572. m.MeshId = meshid
  573. m.TextureId = textid
  574. m.Scale = meshstart
  575. coroutine.wrap(function()
  576. for i=0,1,factor do
  577. swait()
  578. if inverse == true then
  579. p.Transparency = 1-i
  580. else
  581. p.Transparency = i
  582. end
  583. m.Scale = m.Scale + meshadd
  584. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  585. end
  586. p:Destroy()
  587. end)()
  588. return p
  589. end,
  590.  
  591. Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
  592. local p = Instance.new("Part",EffectModel)
  593. p.BrickColor = BrickColor.new(colour)
  594. p.Size = partsize
  595. p.Anchored = true
  596. p.CanCollide = false
  597. p.Material = matr
  598. p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  599. if inverse == true then
  600. p.Transparency = 1
  601. else
  602. p.Transparency = 0
  603. end
  604. local m = Instance.new("SpecialMesh",p)
  605. m.MeshType = "Sphere"
  606. m.Scale = meshstart
  607. coroutine.wrap(function()
  608. for i=0,1,factor do
  609. swait()
  610. if inverse == true then
  611. p.Transparency = 1-i
  612. else
  613. p.Transparency = i
  614. end
  615. m.Scale = m.Scale + meshadd
  616. p.CFrame = p.CFrame * CFrame.new(0,move,0)
  617. end
  618. p:Destroy()
  619. end)()
  620. return p
  621. end,
  622.  
  623. }
  624.  
  625. function GetDudesTorso(c)
  626. local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  627. if torsy ~= nil then
  628. return torsy
  629. end
  630. end
  631.  
  632. function BodyVel(part,faws)
  633. local bodyvel = Instance.new("BodyVelocity",part)
  634. local pep = 10000000
  635. bodyvel.P = pep
  636. bodyvel.MaxForce = Vector3.new(pep,pep,pep)
  637. bodyvel.Velocity = faws
  638. debby:AddItem(bodyvel,.2)
  639. end
  640.  
  641. function Dmg(dude,dmg,env,faws,trip,efftyp,toim)
  642. if dude and dude ~= chara then
  643. if dude:FindFirstChild("HITO") then return end
  644. if toim ~= 0 then
  645. local debounce = Instance.new("BoolValue",dude)
  646. debounce.Name = "HITO"
  647. debby:AddItem(debounce,toim)
  648. end
  649. local hum = dude:FindFirstChildOfClass("Humanoid")
  650. local dam = dmg+math.random(-env,env)
  651. local teksu = "-"..dam
  652. if hum then
  653. local finhel = hum.Health - dam
  654. if (finhel <= 0 and dude:FindFirstChild("DEATHED")==nil) or dmg == math.huge then
  655. teksu = "DEATH"
  656. dude:BreakJoints()
  657. Instance.new("BoolValue",dude).Name = "DEATHED"
  658. --local soaa = Instance.new("Sound",dude.Head)
  659. --local cho = math.random(1,5)
  660. --if cho == 1 then
  661. --soaa.SoundId = "rbxassetid://111896685"
  662. --elseif cho == 2 then
  663. --soaa.SoundId = "rbxassetid://535528169"
  664. --elseif cho == 3 then
  665. --soaa.SoundId = "rbxassetid://1080363252"
  666. --elseif cho == 4 then
  667. --soaa.SoundId = "rbxassetid://147758746"
  668. --elseif cho == 5 then
  669. --soaa.SoundId = "rbxassetid://626777433"
  670. --soaa.Volume = .2
  671. --soaa.TimePosition = 1
  672. --end
  673. --game:service'Debris':AddItem(soaa,6)
  674. --soaa:Play()
  675. end
  676. if dmg ~= math.huge then
  677. hum.Health = hum.Health - dam
  678. end
  679. end
  680. coroutine.wrap(function()
  681. local naeeym2 = Instance.new("BillboardGui",dude)
  682. naeeym2.Size = UDim2.new(0,100,0,40)
  683. naeeym2.StudsOffset = Vector3.new(0,3,0)
  684. naeeym2.Adornee = dude:FindFirstChild("Head")
  685. naeeym2.Name = "TalkingBillBoard"
  686. local tecks2 = Instance.new("TextLabel",naeeym2)
  687. tecks2.BackgroundTransparency = 1
  688. tecks2.BorderSizePixel = 0
  689. tecks2.Text = teksu
  690. tecks2.Font = "Fantasy"
  691. tecks2.TextSize = 24
  692. tecks2.TextStrokeTransparency = 0
  693. tecks2.TextColor3 = Color3.new(1,1,1)
  694. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  695. tecks2.Size = UDim2.new(1,0,0.5,0)
  696. swait(10)
  697. for i = 0,1,.05 do
  698. swait()
  699. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  700. tecks2.TextStrokeTransparency = i
  701. tecks2.TextTransparency = i
  702. end
  703. naeeym2:Destroy()
  704. end)()
  705. local torsy = GetDudesTorso(dude)
  706. if torsy then
  707. local amtt = dam/5
  708. if amtt > 30 then
  709. amtt = 30
  710. end
  711. for i=1,amtt do
  712. local blp = Instance.new("Part",EffectModel)
  713. blp.Size = Vector3.new(.3,.3,.3)
  714. blp.BrickColor = BrickColor.new("Crimson")
  715. blp.CFrame = torsy.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  716. blp.Velocity = torsy.CFrame.lookVector*math.random(-8,-8) + torsy.CFrame.rightVector*math.random(-8,8) + Vector3.new(0,math.random(0,5),0)
  717. blp.RotVelocity = Vector3.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))
  718. --local blm = Instance.new("SpecialMesh",blp)
  719. --blm.MeshType = "Sphere"
  720. coroutine.wrap(function()
  721. swait(10)
  722. blp.Orientation = Vector3.new(0,blp.Orientation.y,0)
  723. for i=0,1,.1 do
  724. swait()
  725. blp.Transparency = i
  726. blp.Size = blp.Size + Vector3.new(.05,-.05,.05)
  727. end
  728. blp:Destroy()
  729. end)()
  730. end
  731. if efftyp == "Blunt" then
  732. puncheff(torsy)
  733. elseif efftyp == "Sharp" then
  734. slasheff(torsy)
  735. coroutine.wrap(function()
  736. if Knife2.Transparency == 0 then
  737. p1mit.Enabled = true
  738. swait(10)
  739. p1mit.Enabled = false
  740. end
  741. end)()
  742. elseif efftyp == "Shot" then
  743. so(144884872,torsy,.9,1)
  744. end
  745. if faws ~= 0 then
  746. BodyVel(torsy,faws)
  747. end
  748. if trip == true then
  749. torsy.CFrame = torsy.CFrame * CFrame.Angles(math.rad(-90),0,0)
  750. torsy.RotVelocity = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  751. end
  752. end
  753. end
  754. end
  755.  
  756. function MagnitudeDmg(par,magni,dmg,env,faws,trip,efftyp,toim)
  757. for _, c in pairs(workspace:GetDescendants()) do
  758. local hum = c:FindFirstChildOfClass("Humanoid")
  759. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
  760. local head = GetDudesTorso(c)
  761. if head ~= nil then
  762. local targ = head.Position - par.Position
  763. local mag = targ.magnitude
  764. if magni >= mag and c ~= chara then
  765. Dmg(c,dmg,env,faws,trip,efftyp,toim)
  766. end
  767. end
  768. end
  769. end
  770. end
  771.  
  772. function CamShake(par,magni,env,dur)
  773. coroutine.wrap(function()
  774. for i=0,dur*60 do
  775. swait()
  776. Humanoid.CameraOffset = Vector3.new(math.random(-(env*10),(env*10))/10,math.random(-(env*10),(env*10))/10,math.random(-(env*10),(env*10))/10)
  777. end
  778. Humanoid.CameraOffset = Vector3.new()
  779. end)()
  780. end
  781.  
  782. function puncheff(par)
  783. if par.Parent:FindFirstChild("DebounceHit")==nil then
  784. so(386946017,par,math.random(80,120)/100,1)
  785. Effects.Sphere(par.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(.1,.1,.1),"Neon","White",false,.1)
  786. end
  787. end
  788.  
  789. function slasheff(par)
  790. if par.Parent:FindFirstChild("DebounceHit")==nil then
  791. local cho = math.random(1,3)
  792. so(444667859,par,1,1)
  793. Effects.Sphere(par.CFrame*CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360)),Vector3.new(.5,.5,.5),Vector3.new(1,0,1),Vector3.new(-.1,5,-.1),"Neon","White",false,.1)
  794. CamShake(par,3,.3,.5)
  795. end
  796. end
  797.  
  798. function pistolrel()
  799. so(1550642637,RightArm,1,1)
  800. for i=0,1,.1 do
  801. swait()
  802. PlayAnimationFromTable({
  803. CFrame.new(0, 0, 0, 0.999997139, -4.7385779e-06, -2.86100999e-06, -4.7385779e-06, 1.00000858, -2.86102522e-06, -2.86100999e-06, -2.86102522e-06, 0.999997139),
  804. CFrame.new(-1.46538582e-06, 1.54692137, -0.209853828, 0.999997139, -3.46518846e-06, -4.29317652e-06, -4.7385779e-06, 0.939701736, 0.342020184, -2.86100999e-06, -0.342021644, 0.939689159),
  805. CFrame.new(0.854522765, 0.222398087, -0.774409652, 0.642788053, 0.754401922, 0.133024976, -0.133024052, 0.280929208, -0.950473666, -0.754406512, 0.593246639, 0.280933827),
  806. CFrame.new(-1.18730974, -0.126011491, 0.160054311, 0.939689338, -0.342021286, -4.37337985e-06, 0.321391821, 0.883031905, 0.342020124, -0.116979986, -0.321394384, 0.939689398),
  807. CFrame.new(0.500016809, -2.00003767, -8.24034214e-06, 0.866021514, -4.7385779e-06, -0.500001311, -5.50745335e-06, 1.00000858, -1.17754098e-07, 0.499996305, -2.86102522e-06, 0.866024435),
  808. CFrame.new(-0.499971688, -2.00002766, 5.84125519e-06, 0.939690948, -4.7385779e-06, 0.34201622, -3.47528271e-06, 1.00000858, -4.29806732e-06, -0.342021704, -2.86102522e-06, 0.939689159),
  809. }, .4, false)
  810. end
  811. for i=0,1,.1 do
  812. swait()
  813. PlayAnimationFromTable({
  814. CFrame.new(0, 0, 0, 1, -1.52100554e-13, 0, -1.52100554e-13, 1, 0, 0, 0, 1),
  815. CFrame.new(-2.09808386e-05, 1.54693103, -0.209845006, 1, -2.72848411e-12, 0, -1.52100554e-13, 0.939695656, 0.342012048, 0, -0.342012107, 0.939695597),
  816. CFrame.new(0.854516387, 0.222410649, -0.774412334, 0.642794192, 0.754400432, 0.133024991, -0.133015573, 0.280934572, -0.950464487, -0.754402101, 0.593258619, 0.280930132),
  817. CFrame.new(-0.694014966, -0.00153057277, -0.320706695, 0.178141281, -0.439670682, 0.880315483, 0.965236425, 0.251975238, -0.0694777295, -0.191270396, 0.862089396, 0.469273359),
  818. CFrame.new(0.500024974, -2.00003481, -2.33650208e-05, 0.866023839, 1.13859137e-07, -0.500002801, -5.56927262e-06, 1, -9.41847611e-06, 0.500002801, 1.09412758e-05, 0.866023839),
  819. CFrame.new(-0.499960899, -2.00003171, -2.0518899e-05, 0.939693093, -5.80151482e-06, 0.342018753, 3.82894905e-06, 1, 6.44255488e-06, -0.342018694, -4.74444823e-06, 0.939693213),
  820. }, .4, false)
  821. end
  822. so(1550643261,RightArm,1,1)
  823. pshots = 17
  824. end
  825.  
  826. function shotgunreload()
  827. for ab=1,8-sshots do
  828. for i=0,1,.25 do
  829. swait()
  830. PlayAnimationFromTable({
  831. CFrame.new(0, 0, 0, 0.999997139, -4.7385779e-06, -2.86100999e-06, -4.7385779e-06, 1.00000858, -2.86102522e-06, -2.86100999e-06, -2.86102522e-06, 0.999997139),
  832. CFrame.new(-1.46538582e-06, 1.54692137, -0.209853828, 0.999997139, -3.46518846e-06, -4.29317652e-06, -4.7385779e-06, 0.939701736, 0.342020184, -2.86100999e-06, -0.342021644, 0.939689159),
  833. CFrame.new(0.854522765, 0.222398087, -0.774409652, 0.642788053, 0.754401922, 0.133024976, -0.133024052, 0.280929208, -0.950473666, -0.754406512, 0.593246639, 0.280933827),
  834. CFrame.new(-1.18730974, -0.126011491, 0.160054311, 0.939689338, -0.342021286, -4.37337985e-06, 0.321391821, 0.883031905, 0.342020124, -0.116979986, -0.321394384, 0.939689398),
  835. CFrame.new(0.500016809, -2.00003767, -8.24034214e-06, 0.866021514, -4.7385779e-06, -0.500001311, -5.50745335e-06, 1.00000858, -1.17754098e-07, 0.499996305, -2.86102522e-06, 0.866024435),
  836. CFrame.new(-0.499971688, -2.00002766, 5.84125519e-06, 0.939690948, -4.7385779e-06, 0.34201622, -3.47528271e-06, 1.00000858, -4.29806732e-06, -0.342021704, -2.86102522e-06, 0.939689159),
  837. }, .4, false)
  838. end
  839. so(254833667,RightArm,1,1)
  840. for i=0,1,.25 do
  841. swait()
  842. PlayAnimationFromTable({
  843. CFrame.new(0, 0, 0, 1, -1.52100554e-13, 0, -1.52100554e-13, 1, 0, 0, 0, 1),
  844. CFrame.new(-2.09808386e-05, 1.54693103, -0.209845006, 1, -2.72848411e-12, 0, -1.52100554e-13, 0.939695656, 0.342012048, 0, -0.342012107, 0.939695597),
  845. CFrame.new(0.854516387, 0.222410649, -0.774412334, 0.642794192, 0.754400432, 0.133024991, -0.133015573, 0.280934572, -0.950464487, -0.754402101, 0.593258619, 0.280930132),
  846. CFrame.new(-0.694014966, -0.00153057277, -0.320706695, 0.178141281, -0.439670682, 0.880315483, 0.965236425, 0.251975238, -0.0694777295, -0.191270396, 0.862089396, 0.469273359),
  847. CFrame.new(0.500024974, -2.00003481, -2.33650208e-05, 0.866023839, 1.13859137e-07, -0.500002801, -5.56927262e-06, 1, -9.41847611e-06, 0.500002801, 1.09412758e-05, 0.866023839),
  848. CFrame.new(-0.499960899, -2.00003171, -2.0518899e-05, 0.939693093, -5.80151482e-06, 0.342018753, 3.82894905e-06, 1, 6.44255488e-06, -0.342018694, -4.74444823e-06, 0.939693213),
  849. }, .4, false)
  850. end
  851. end
  852. sshots = 8
  853. end
  854.  
  855. function sniperreload()
  856. so(231020282,RightArm,1,1)
  857. for i=0,3,.1 do
  858. swait()
  859. PlayAnimationFromTable({
  860. CFrame.new(5.77146693e-07, -1.10000515, 2.49431691e-11, 0.499998987, -5.24676352e-07, -0.866025984, -2.62357275e-07, 1, 4.54372014e-07, 0.866025984, -2.26755021e-11, 0.499998987),
  861. CFrame.new(-0.0883058012, 1.46577156, -0.0321406126, 0.34201926, -0.321393728, 0.883022606, 0, 0.939692736, 0.342019945, -0.939693034, -0.116977401, 0.321392953),
  862. CFrame.new(0.6246773, 0.104275584, -0.932195127, 0.383021295, 0.866025984, -0.321393371, -0.642788053, 0, -0.76604414, -0.663414121, 0.499998987, 0.556671143),
  863. CFrame.new(-0.937001705, -0.262758374, 0.235416457, 0.709746599, -0.562669337, 0.423866868, 0.563250303, 0.814636171, 0.138264596, -0.423094451, 0.140610322, 0.895108819),
  864. CFrame.new(0.951329529, -1.22445107, 0.145094752, 0.499998987, -0.866025984, 0, 0, 0, 1, -0.866025984, -0.499998987, 0),
  865. CFrame.new(-0.75982517, -0.899992943, -0.150008053, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987),
  866. }, .1, false)
  867. end
  868. for i=0,.5,.1 do
  869. swait()
  870. PlayAnimationFromTable({
  871. CFrame.new(5.77146693e-07, -1.10000515, 2.49431691e-11, 0.499998987, -5.24676352e-07, -0.866025984, -2.62357275e-07, 1, 4.54372014e-07, 0.866025984, -2.26755021e-11, 0.499998987),
  872. CFrame.new(-0.0631337017, 1.48287761, -0.07564459, 0.764022708, -0.133022606, 0.63132751, 0.0301539954, 0.98480773, 0.171010077, -0.64448446, -0.111618526, 0.756426692),
  873. CFrame.new(0.599330187, 0.415035963, -1.08464372, 0.406897634, 0.754407227, -0.515076756, -0.633023202, -0.17364794, -0.754405677, -0.658571184, 0.633021474, 0.406900346),
  874. CFrame.new(-1.08033061, 0.170879692, -1.140697, 0.334739238, -0.0533845425, 0.940797448, 0.908181429, -0.247989208, -0.337206155, 0.251309216, 0.967290759, -0.0345288515),
  875. CFrame.new(0.951331437, -1.22445107, 0.145091444, 0.499998987, -0.866025984, 0, 0, 0, 1, -0.866025984, -0.499998987, 0),
  876. CFrame.new(-0.759816706, -0.899992943, -0.150007531, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987),
  877. }, .2, false)
  878. end
  879. so(293309896,RightArm,1,1)
  880. for i=0,1.5,.1 do
  881. swait()
  882. PlayAnimationFromTable({
  883. CFrame.new(5.77146693e-07, -1.10000515, 2.49431691e-11, 0.499998987, -5.24676352e-07, -0.866025984, -2.62357275e-07, 1, 4.54372014e-07, 0.866025984, -2.26755021e-11, 0.499998987),
  884. CFrame.new(-0.0631337017, 1.48287761, -0.07564459, 0.764022708, -0.133022606, 0.63132751, 0.0301539954, 0.98480773, 0.171010077, -0.64448446, -0.111618526, 0.756426692),
  885. CFrame.new(0.599330187, 0.415035963, -1.08464372, 0.406897634, 0.754407227, -0.515076756, -0.633023202, -0.17364794, -0.754405677, -0.658571184, 0.633021474, 0.406900346),
  886. CFrame.new(-1.08033061, 0.170879692, -1.140697, 0.334739238, -0.0533845425, 0.940797448, 0.908181429, -0.247989208, -0.337206155, 0.251309216, 0.967290759, -0.0345288515),
  887. CFrame.new(0.951331437, -1.22445107, 0.145091444, 0.499998987, -0.866025984, 0, 0, 0, 1, -0.866025984, -0.499998987, 0),
  888. CFrame.new(-0.759816706, -0.899992943, -0.150007531, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987),
  889. }, .2, false)
  890. end
  891. snshots = 10
  892. end
  893.  
  894. function switchweps(chosen)
  895. attack = true
  896. Humanoid.WalkSpeed = 1
  897. if currentwep == "Knife" then
  898. for i=0,1,.1 do
  899. swait()
  900. PlayAnimationFromTable({
  901. CFrame.new(0, 0, 0, 1.00000417, 1.0153105e-09, 1.01863407e-10, 1.0153105e-09, 1.00000417, 1.01863407e-10, 1.01863407e-10, 1.01863407e-10, 1),
  902. CFrame.new(-0.0347477943, 1.432706, -0.1850788, 0.984809697, -6.51056325e-07, 0.173648879, -0.0593907498, 0.939694762, 0.336824596, -0.163176462, -0.342019856, 0.925416648),
  903. CFrame.new(0.293174297, -0.354033977, -0.9000144, 0.383022904, 0.908679962, 0.166127622, -0.663413048, 0.395739228, -0.635041595, -0.642790139, 0.133023694, 0.754404128),
  904. CFrame.new(-1.20950091, -0.132228643, 0.260999858, 0.939694703, -0.342020631, -3.71568603e-07, 0.321394295, 0.883023918, 0.342021734, -0.116977692, -0.321394831, 0.939692318),
  905. CFrame.new(0.50006038, -2.00010228, 3.47271562e-05, 0.984809756, 6.4061237e-07, -0.17364867, -7.06446372e-07, 1.00000215, -3.23256245e-07, 0.173648313, 4.41126758e-07, 0.984807789),
  906. CFrame.new(-0.499968469, -2.000103, -3.59266996e-05, 0.984809935, -9.64528013e-08, 0.173648283, 1.53979272e-07, 1.00000215, -3.1181844e-07, -0.17364791, 3.33922799e-07, 0.984807909),
  907. }, .3, false)
  908. end
  909. so(211134014,Knife,1,1)
  910. elseif currentwep == "Pistol" then
  911. for i=0,1,.1 do
  912. swait()
  913. PlayAnimationFromTable({
  914. CFrame.new(0, 0, 0, 1.00000489, -4.41247039e-12, 1.16415322e-10, -4.41247039e-12, 1.00000489, 1.16415322e-10, 1.16415322e-10, 1.16415322e-10, 1),
  915. CFrame.new(-2.32979655e-05, 1.50008512, -1.26212835e-05, 0.939695001, 2.70047167e-08, -0.342020929, 0.0593913868, 0.984810174, 0.163176581, 0.336824089, -0.173648462, 0.925416589),
  916. CFrame.new(1.28574872, -0.0637521744, -7.64642391e-06, 0.984810054, 0.173648909, -7.22357072e-08, -0.173648909, 0.984810114, -1.7262355e-06, -2.28523277e-07, 1.71268766e-06, 1),
  917. CFrame.new(-1.61959648, 0.275078326, 0.00631473958, 0.939695179, 0.342020661, 1.46635284e-06, -0.321394771, 0.883024096, 0.342021495, 0.116976559, -0.321394831, 0.939692557),
  918. CFrame.new(0.500071108, -2.00013995, 2.2888009e-05, 1.00000489, -4.41247039e-12, 1.16415322e-10, -4.41247039e-12, 1.00000489, 1.16415322e-10, 1.16415322e-10, 1.16415322e-10, 1),
  919. CFrame.new(-0.499975741, -2.00013947, -5.34060528e-05, 1.00000489, -4.41247039e-12, 1.16415322e-10, -4.41247039e-12, 1.00000489, 1.16415322e-10, 1.16415322e-10, 1.16415322e-10, 1),
  920. }, .3, false)
  921. end
  922. elseif currentwep == "Shotgun" then
  923. for i=0,1,.1 do
  924. swait()
  925. PlayAnimationFromTable({
  926. CFrame.new(3.13278833e-05, -0.0192397144, -0.170645922, 1.00000191, 3.41483101e-05, -4.71123058e-05, -2.54476363e-05, 0.984809697, 0.173648506, 5.23263298e-05, -0.173648193, 0.984807849),
  927. CFrame.new(0.049214907, 1.48270142, -0.0852823704, 0.866024673, 0.0868258402, -0.492405146, -1.95205212e-06, 0.984807909, 0.173647866, 0.500001609, -0.15038231, 0.852867961),
  928. CFrame.new(1.50005758, 0.0683976784, 0.187952459, 1.00000012, -5.00145688e-07, 8.65955371e-07, 1.73811713e-07, 0.939692736, 0.342019975, -9.84779035e-07, -0.342020005, 0.939692736),
  929. CFrame.new(-1.50004637, 0.0683947429, -0.187911183, 1.00000012, 3.46981324e-07, 1.96967449e-06, 3.47630703e-07, 0.939692557, -0.34202069, -1.96955807e-06, 0.34202069, 0.939692557),
  930. CFrame.new(0.500083208, -1.98039222, -0.175920665, 1.00000191, -2.54476363e-05, 5.23263298e-05, 3.41483101e-05, 0.984809697, -0.173648193, -4.71123058e-05, 0.173648506, 0.984807849),
  931. CFrame.new(-0.499945432, -1.98041487, -0.175941259, 1.00000191, -2.54476363e-05, 5.23263298e-05, 3.41483101e-05, 0.984809697, -0.173648193, -4.71123058e-05, 0.173648506, 0.984807849),
  932. }, .3, false)
  933. end
  934. elseif currentwep == "Sniper" then
  935. for i=0,1,.1 do
  936. swait()
  937. PlayAnimationFromTable({
  938. CFrame.new(0, 0, 0, 1.00000012, -4.51194637e-12, 0, -4.51194637e-12, 1.00000012, 0, 0, 0, 1),
  939. CFrame.new(-2.2309232e-05, 1.50007844, -7.43056899e-06, 0.866025925, -3.86730449e-07, -0.499999285, 9.83127393e-08, 1.00000012, -6.03191438e-07, 0.499999285, 4.73228283e-07, 0.866025925),
  940. CFrame.new(1.41953111, 0.142448068, 0.525516391, 0.470114946, -0.170514092, 0.865977585, -0.478125989, -0.8739236, 0.0874825567, 0.741881073, -0.455173224, -0.492371738),
  941. CFrame.new(-1.57326913, 0.273198128, 2.96527305e-05, 0.866025627, 0.499999672, -7.68020982e-07, -0.499999672, 0.866025686, -1.25718361e-06, 3.65398591e-08, 1.47275568e-06, 1),
  942. CFrame.new(0.500061095, -2.00012088, 2.28881836e-05, 1.00000012, -4.51194637e-12, 0, -4.51194637e-12, 1.00000012, 0, 0, 0, 1),
  943. CFrame.new(-0.499973357, -2.0001204, -5.34057617e-05, 1.00000012, -4.51194637e-12, 0, -4.51194637e-12, 1.00000012, 0, 0, 0, 1),
  944. }, .3, false)
  945. end
  946. end
  947.  
  948. Knife.Transparency = 1
  949. PistolPart.Transparency = 1
  950. ShottyPart.Transparency = 1
  951. SniperPart.Transparency = 1
  952.  
  953. KnifeH.Transparency = 0
  954. PistolH.Transparency = 0
  955. ShottyH.Transparency = 0
  956. SniperH.Transparency = 0
  957.  
  958. txt1.TextColor3 = Color3.new(.3,.3,.3)
  959. txt2.TextColor3 = Color3.new(.3,.3,.3)
  960. txt3.TextColor3 = Color3.new(.3,.3,.3)
  961. txt4.TextColor3 = Color3.new(.3,.3,.3)
  962. img1.ImageColor3 = Color3.new(.3,.3,.3)
  963. img2.ImageColor3 = Color3.new(.3,.3,.3)
  964. img3.ImageColor3 = Color3.new(.3,.3,.3)
  965. img4.ImageColor3 = Color3.new(.3,.3,.3)
  966.  
  967. if currentwep == chosen then
  968. for i=0,1,.1 do
  969. swait()
  970. PlayAnimationFromTable({
  971. CFrame.new(0, 0, 0, 1.00000417, 1.0153105e-09, 1.01863407e-10, 1.0153105e-09, 1.00000417, 1.01863407e-10, 1.01863407e-10, 1.01863407e-10, 1),
  972. CFrame.new(-0.0347477943, 1.432706, -0.1850788, 0.984809697, -6.51056325e-07, 0.173648879, -0.0593907498, 0.939694762, 0.336824596, -0.163176462, -0.342019856, 0.925416648),
  973. CFrame.new(0.293174297, -0.354033977, -0.9000144, 0.383022904, 0.908679962, 0.166127622, -0.663413048, 0.395739228, -0.635041595, -0.642790139, 0.133023694, 0.754404128),
  974. CFrame.new(-1.20950091, -0.132228643, 0.260999858, 0.939694703, -0.342020631, -3.71568603e-07, 0.321394295, 0.883023918, 0.342021734, -0.116977692, -0.321394831, 0.939692318),
  975. CFrame.new(0.50006038, -2.00010228, 3.47271562e-05, 0.984809756, 6.4061237e-07, -0.17364867, -7.06446372e-07, 1.00000215, -3.23256245e-07, 0.173648313, 4.41126758e-07, 0.984807789),
  976. CFrame.new(-0.499968469, -2.000103, -3.59266996e-05, 0.984809935, -9.64528013e-08, 0.173648283, 1.53979272e-07, 1.00000215, -3.1181844e-07, -0.17364791, 3.33922799e-07, 0.984807909),
  977. }, .3, false)
  978. end
  979. so(211059653,Knife,1,1)
  980. KnifeH.Transparency = 1
  981. Knife.Transparency = 0
  982. txt1.TextColor3 = Color3.new(1,1,1)
  983. img1.ImageColor3 = Color3.new(1,1,1)
  984. currentwep = "Knife"
  985. elseif chosen == "Pistol" then
  986. for i=0,1,.1 do
  987. swait()
  988. PlayAnimationFromTable({
  989. CFrame.new(0, 0, 0, 1.00000489, -4.41247039e-12, 1.16415322e-10, -4.41247039e-12, 1.00000489, 1.16415322e-10, 1.16415322e-10, 1.16415322e-10, 1),
  990. CFrame.new(-2.32979655e-05, 1.50008512, -1.26212835e-05, 0.939695001, 2.70047167e-08, -0.342020929, 0.0593913868, 0.984810174, 0.163176581, 0.336824089, -0.173648462, 0.925416589),
  991. CFrame.new(1.28574872, -0.0637521744, -7.64642391e-06, 0.984810054, 0.173648909, -7.22357072e-08, -0.173648909, 0.984810114, -1.7262355e-06, -2.28523277e-07, 1.71268766e-06, 1),
  992. CFrame.new(-1.61959648, 0.275078326, 0.00631473958, 0.939695179, 0.342020661, 1.46635284e-06, -0.321394771, 0.883024096, 0.342021495, 0.116976559, -0.321394831, 0.939692557),
  993. CFrame.new(0.500071108, -2.00013995, 2.2888009e-05, 1.00000489, -4.41247039e-12, 1.16415322e-10, -4.41247039e-12, 1.00000489, 1.16415322e-10, 1.16415322e-10, 1.16415322e-10, 1),
  994. CFrame.new(-0.499975741, -2.00013947, -5.34060528e-05, 1.00000489, -4.41247039e-12, 1.16415322e-10, -4.41247039e-12, 1.00000489, 1.16415322e-10, 1.16415322e-10, 1.16415322e-10, 1),
  995. }, .3, false)
  996. end
  997. so(166196557,RightArm,1,1)
  998. PistolH.Transparency = 1
  999. PistolPart.Transparency = 0
  1000. txt2.TextColor3 = Color3.new(1,1,1)
  1001. img2.ImageColor3 = Color3.new(1,1,1)
  1002. currentwep = "Pistol"
  1003. if pshots <= 0 then
  1004. pistolrel()
  1005. end
  1006. elseif chosen == "Shotgun" then
  1007. for i=0,1,.1 do
  1008. swait()
  1009. PlayAnimationFromTable({
  1010. CFrame.new(3.13278833e-05, -0.0192397144, -0.170645922, 1.00000191, 3.41483101e-05, -4.71123058e-05, -2.54476363e-05, 0.984809697, 0.173648506, 5.23263298e-05, -0.173648193, 0.984807849),
  1011. CFrame.new(0.049214907, 1.48270142, -0.0852823704, 0.866024673, 0.0868258402, -0.492405146, -1.95205212e-06, 0.984807909, 0.173647866, 0.500001609, -0.15038231, 0.852867961),
  1012. CFrame.new(1.50005758, 0.0683976784, 0.187952459, 1.00000012, -5.00145688e-07, 8.65955371e-07, 1.73811713e-07, 0.939692736, 0.342019975, -9.84779035e-07, -0.342020005, 0.939692736),
  1013. CFrame.new(-1.50004637, 0.0683947429, -0.187911183, 1.00000012, 3.46981324e-07, 1.96967449e-06, 3.47630703e-07, 0.939692557, -0.34202069, -1.96955807e-06, 0.34202069, 0.939692557),
  1014. CFrame.new(0.500083208, -1.98039222, -0.175920665, 1.00000191, -2.54476363e-05, 5.23263298e-05, 3.41483101e-05, 0.984809697, -0.173648193, -4.71123058e-05, 0.173648506, 0.984807849),
  1015. CFrame.new(-0.499945432, -1.98041487, -0.175941259, 1.00000191, -2.54476363e-05, 5.23263298e-05, 3.41483101e-05, 0.984809697, -0.173648193, -4.71123058e-05, 0.173648506, 0.984807849),
  1016. }, .3, false)
  1017. end
  1018. so(255061173,RightArm,1,1)
  1019. ShottyH.Transparency = 1
  1020. ShottyPart.Transparency = 0
  1021. txt3.TextColor3 = Color3.new(1,1,1)
  1022. img3.ImageColor3 = Color3.new(1,1,1)
  1023. currentwep = "Shotgun"
  1024. elseif chosen == "Sniper" then
  1025. for i=0,1,.1 do
  1026. swait()
  1027. PlayAnimationFromTable({
  1028. CFrame.new(0, 0, 0, 1.00000012, -4.51194637e-12, 0, -4.51194637e-12, 1.00000012, 0, 0, 0, 1),
  1029. CFrame.new(-2.2309232e-05, 1.50007844, -7.43056899e-06, 0.866025925, -3.86730449e-07, -0.499999285, 9.83127393e-08, 1.00000012, -6.03191438e-07, 0.499999285, 4.73228283e-07, 0.866025925),
  1030. CFrame.new(1.41953111, 0.142448068, 0.525516391, 0.470114946, -0.170514092, 0.865977585, -0.478125989, -0.8739236, 0.0874825567, 0.741881073, -0.455173224, -0.492371738),
  1031. CFrame.new(-1.57326913, 0.273198128, 2.96527305e-05, 0.866025627, 0.499999672, -7.68020982e-07, -0.499999672, 0.866025686, -1.25718361e-06, 3.65398591e-08, 1.47275568e-06, 1),
  1032. CFrame.new(0.500061095, -2.00012088, 2.28881836e-05, 1.00000012, -4.51194637e-12, 0, -4.51194637e-12, 1.00000012, 0, 0, 0, 1),
  1033. CFrame.new(-0.499973357, -2.0001204, -5.34057617e-05, 1.00000012, -4.51194637e-12, 0, -4.51194637e-12, 1.00000012, 0, 0, 0, 1),
  1034. }, .3, false)
  1035. end
  1036. so(1498950813,RightArm,1,1)
  1037. SniperH.Transparency = 1
  1038. SniperPart.Transparency = 0
  1039. txt4.TextColor3 = Color3.new(1,1,1)
  1040. img4.ImageColor3 = Color3.new(1,1,1)
  1041. currentwep = "Sniper"
  1042. end
  1043.  
  1044. Humanoid.WalkSpeed = 16
  1045. attack = false
  1046. end
  1047.  
  1048. function knifestab()
  1049. attack = true
  1050. Humanoid.WalkSpeed = 16
  1051. for i=0,1,.25 do
  1052. swait()
  1053. PlayAnimationFromTable({
  1054. CFrame.new(-0.000117930649, -2.16348841e-08, -7.90364793e-05, 0.64278698, -0.00012647656, 0.766044974, 1.61708813e-05, 1, 0.000151534361, -0.766044974, -8.49460121e-05, 0.64278698),
  1055. CFrame.new(4.01744073e-05, 1.50000286, 0.000353095587, 0.64278698, 1.61708813e-05, -0.766044974, -0.00012647656, 1, -8.49460121e-05, 0.766044974, 0.000151534361, 0.64278698),
  1056. CFrame.new(0.466985971, 1.22963774, -0.639021218, -6.45965338e-06, 0.866024137, 0.500002265, 0.984807491, -0.0868200287, 0.150388524, 0.173650324, 0.492406905, -0.852866471),
  1057. CFrame.new(-1.50000262, 0.0634034351, 0.309811026, 1, 1.28149986e-06, -8.22544098e-06, 2.99929525e-06, 0.866025448, 0.5, 7.77840614e-06, -0.49999997, 0.866025388),
  1058. CFrame.new(0.50001657, -2.00001597, 1.37835741e-05, 0.64278686, 4.54951078e-07, -0.766045094, -8.69269741e-07, 1, -1.35521987e-07, 0.766045094, 7.53010681e-07, 0.64278686),
  1059. CFrame.new(-0.499961853, -2.00001669, -1.52587891e-05, 1, 1.45519152e-11, 0, 1.45519152e-11, 1, 0, 0, 0, 1),
  1060. }, .4, false)
  1061. end
  1062. Humanoid.WalkSpeed = 2
  1063. tr1.Enabled = true
  1064. so(200632136,Knife,math.random(9,11)/10,1)
  1065. for i=0,1,.2 do
  1066. swait()
  1067. PlayAnimationFromTable({
  1068. CFrame.new(6.73532486e-05, -0.0142026246, -1.91379452, 0.642823815, -8.42338923e-05, 0.766014099, -0.262003213, 0.939663291, 0.21997124, -0.719813824, -0.342100888, 0.604015827),
  1069. CFrame.new(5.23869894e-05, 1.50000405, 0.000345003995, 0.642786682, 1.60187483e-05, -0.766045332, -0.000126790037, 1.00000012, -8.55028629e-05, 0.766045213, 0.000152081251, 0.642786682),
  1070. CFrame.new(0.998481274, 1.06966388, -0.439240575, -0.26202774, 0.0297024846, 0.964603126, 0.93969065, -0.219823405, 0.26202932, 0.219825253, 0.975087404, 0.0296886563),
  1071. CFrame.new(-1.49997985, 0.0634022504, 0.309802085, 1, 1.13248825e-06, -8.64267349e-06, 3.35276127e-06, 0.866025805, 0.499999642, 8.10623169e-06, -0.499999642, 0.866025627),
  1072. CFrame.new(0.992708325, -1.73965216, -0.41339314, 0.642790794, -0.262022853, -0.719836116, 3.37498095e-05, 0.939692318, -0.342021197, 0.766041756, 0.219823748, 0.604034364),
  1073. CFrame.new(-0.756015062, -2.00166965, 0.0843268856, 0.642790794, 0.261980176, -0.719851673, 3.37463644e-05, 0.939693332, 0.342018634, 0.766041756, -0.219870716, 0.604017258),
  1074. }, .5, false)
  1075. MagnitudeDmg(Knife,1.5,100,0,RootPart.CFrame.lookVector*5,false,"Sharp",.5)
  1076. end
  1077. Humanoid.WalkSpeed = 16
  1078. tr1.Enabled = false
  1079. attack = false
  1080. end
  1081.  
  1082. function wepknifestab()
  1083. attack = true
  1084. Humanoid.WalkSpeed = 2
  1085. for i=0,1,.2 do
  1086. swait()
  1087. PlayAnimationFromTable({
  1088. CFrame.new(0.000179143899, 4.94844912e-08, -0.000147477331, 0.500000775, 1.22923609e-06, -0.86602509, -0.000292493496, 1.00000012, -0.000167452119, 0.866025031, 0.000337032834, 0.500000775),
  1089. CFrame.new(-0.000420931523, 1.50010991, -7.43984856e-06, 0.500000775, -0.000292493496, 0.866025031, 1.22923609e-06, 1.00000012, 0.000337032834, -0.86602509, -0.000167452119, 0.500000775),
  1090. CFrame.new(0.839951992, 0.256004274, -0.958486319, 0.499996692, 0.813799739, 0.2961981, 4.75931301e-06, 0.342016816, -0.939693928, -0.866027415, 0.469845295, 0.171003401),
  1091. CFrame.new(-1.22089827, -0.164978445, -0.0866824239, 0.983905554, -0.138054684, 0.113450736, 0.176127508, 0.856396437, -0.485349834, -0.0301539302, 0.497520208, 0.866928339),
  1092. CFrame.new(0.500076354, -2.00016046, 1.52737084e-05, 1.00000012, -1.45519152e-11, 2.98023224e-08, -1.45519152e-11, 1.00000012, -7.27595761e-12, 2.98023224e-08, -7.27595761e-12, 1.00000012),
  1093. CFrame.new(-0.499987543, -2.00015903, -5.56111336e-05, 0.499999285, 9.37507139e-07, 0.866025865, -1.2402096e-06, 1.00000012, -3.66519089e-07, -0.866025925, -8.90795491e-07, 0.499999374),
  1094. }, .5, false)
  1095. end
  1096. so(211059653,Knife2,1,1)
  1097. Knife2.Transparency = 0
  1098. KnifeH.Transparency = 1
  1099. for i=0,1,.1 do
  1100. swait()
  1101. PlayAnimationFromTable({
  1102. CFrame.new(0.000175330031, 1.00539501e-06, -0.000154084992, 0.500003099, 1.22933841e-06, -0.866029263, -0.000292495621, 1.00000453, -0.000167453458, 0.866029143, 0.000337033416, 0.500003219),
  1103. CFrame.new(-0.00041242165, 1.50012219, -6.93052425e-06, 0.500003099, -0.000292495621, 0.866029143, 1.22933841e-06, 1.00000453, 0.000337033416, -0.866029263, -0.000167453458, 0.500003219),
  1104. CFrame.new(1.09288597, 0.364121079, -0.802504063, 0.748180747, 0.593714058, 0.296199232, 0.116981708, 0.321389914, -0.939695835, -0.653104663, 0.737710655, 0.171003729),
  1105. CFrame.new(-0.688675284, 1.32965851, -0.712965548, 0.334458649, -0.800666928, -0.49706617, -0.926752567, -0.375185549, -0.0192363095, -0.171089798, 0.46709004, -0.867502213),
  1106. CFrame.new(0.500086367, -2.00017858, 1.52748289e-05, 1.00000489, -7.13043846e-10, 2.98023224e-08, -7.13043846e-10, 1.00000441, -5.31144906e-10, 2.98023224e-08, -5.31144906e-10, 1.00000489),
  1107. CFrame.new(-0.499991834, -2.00017858, -5.22881746e-05, 0.500001609, 9.36794095e-07, 0.866030037, -1.24011513e-06, 1.00000441, -3.673631e-07, -0.866030157, -8.91312084e-07, 0.500001788),
  1108. }, .5, false)
  1109. end
  1110. tr2.Enabled = true
  1111. so(200632136,Knife2,math.random(9,11)/10,1)
  1112. for i=0,1,.1 do
  1113. swait()
  1114. PlayAnimationFromTable({
  1115. CFrame.new(-2.50339508e-06, -0.116524018, -2.23838973, 0.342018872, -5.0964772e-08, -0.939693093, 0.321393877, 0.939692676, 0.11697726, 0.883022726, -0.342020035, 0.321392655),
  1116. CFrame.new(-6.99047723e-06, 1.49998283, -2.62057279e-06, 0.342018872, 1.1920929e-07, 0.939693093, -5.0964772e-08, 1, -1.49011612e-07, -0.939693093, -7.4505806e-09, 0.342018902),
  1117. CFrame.new(1.22636616, 0.263386577, -0.809811354, 0.939690471, 0.342026293, 1.16229057e-06, -0.0593909174, 0.163175166, -0.984808028, -0.336830378, 0.925414443, 0.173647419),
  1118. CFrame.new(-1.32934356, 1.10000336, -0.700607181, -1.1920929e-07, 0.342020571, -0.939692616, -1, -4.47034836e-08, 1.49011612e-07, 7.4505806e-09, 0.939692497, 0.342020541),
  1119. CFrame.new(0.977364421, -1.93956006, -0.0584065914, 0.854759812, -0.518661916, -0.0193820298, 0.5132581, 0.850225329, -0.116975099, 0.0771495849, 0.0900376588, 0.99294579),
  1120. CFrame.new(-0.972516656, -1.19701695, -0.393972486, 0.183487743, 0.321393877, 0.92899859, 0.0593910404, 0.939692676, -0.336824, -0.981226325, 0.11697726, 0.153334215),
  1121. }, .4, false)
  1122. MagnitudeDmg(Knife2,1.5,100,0,RootPart.CFrame.lookVector*5,false,"Sharp",.5)
  1123. end
  1124. for i=0,1,.2 do
  1125. swait()
  1126. PlayAnimationFromTable({
  1127. CFrame.new(0.000175330031, 1.00539501e-06, -0.000154084992, 0.500003099, 1.22933841e-06, -0.866029263, -0.000292495621, 1.00000453, -0.000167453458, 0.866029143, 0.000337033416, 0.500003219),
  1128. CFrame.new(-0.00041242165, 1.50012219, -6.93052425e-06, 0.500003099, -0.000292495621, 0.866029143, 1.22933841e-06, 1.00000453, 0.000337033416, -0.866029263, -0.000167453458, 0.500003219),
  1129. CFrame.new(1.09288597, 0.364121079, -0.802504063, 0.748180747, 0.593714058, 0.296199232, 0.116981708, 0.321389914, -0.939695835, -0.653104663, 0.737710655, 0.171003729),
  1130. CFrame.new(-0.688675284, 1.32965851, -0.712965548, 0.334458649, -0.800666928, -0.49706617, -0.926752567, -0.375185549, -0.0192363095, -0.171089798, 0.46709004, -0.867502213),
  1131. CFrame.new(0.500086367, -2.00017858, 1.52748289e-05, 1.00000489, -7.13043846e-10, 2.98023224e-08, -7.13043846e-10, 1.00000441, -5.31144906e-10, 2.98023224e-08, -5.31144906e-10, 1.00000489),
  1132. CFrame.new(-0.499991834, -2.00017858, -5.22881746e-05, 0.500001609, 9.36794095e-07, 0.866030037, -1.24011513e-06, 1.00000441, -3.673631e-07, -0.866030157, -8.91312084e-07, 0.500001788),
  1133. }, .5, false)
  1134. end
  1135. for i=0,1,.2 do
  1136. swait()
  1137. PlayAnimationFromTable({
  1138. CFrame.new(0.000179143899, 4.94844912e-08, -0.000147477331, 0.500000775, 1.22923609e-06, -0.86602509, -0.000292493496, 1.00000012, -0.000167452119, 0.866025031, 0.000337032834, 0.500000775),
  1139. CFrame.new(-0.000420931523, 1.50010991, -7.43984856e-06, 0.500000775, -0.000292493496, 0.866025031, 1.22923609e-06, 1.00000012, 0.000337032834, -0.86602509, -0.000167452119, 0.500000775),
  1140. CFrame.new(0.839951992, 0.256004274, -0.958486319, 0.499996692, 0.813799739, 0.2961981, 4.75931301e-06, 0.342016816, -0.939693928, -0.866027415, 0.469845295, 0.171003401),
  1141. CFrame.new(-1.22089827, -0.164978445, -0.0866824239, 0.983905554, -0.138054684, 0.113450736, 0.176127508, 0.856396437, -0.485349834, -0.0301539302, 0.497520208, 0.866928339),
  1142. CFrame.new(0.500076354, -2.00016046, 1.52737084e-05, 1.00000012, -1.45519152e-11, 2.98023224e-08, -1.45519152e-11, 1.00000012, -7.27595761e-12, 2.98023224e-08, -7.27595761e-12, 1.00000012),
  1143. CFrame.new(-0.499987543, -2.00015903, -5.56111336e-05, 0.499999285, 9.37507139e-07, 0.866025865, -1.2402096e-06, 1.00000012, -3.66519089e-07, -0.866025925, -8.90795491e-07, 0.499999374),
  1144. }, .5, false)
  1145. end
  1146. so(211134014,Knife2,1,1)
  1147. Knife2.Transparency = 1
  1148. KnifeH.Transparency = 0
  1149. Humanoid.WalkSpeed = 16
  1150. tr2.Enabled = false
  1151. attack = false
  1152. end
  1153.  
  1154. function pistolshoot()
  1155. attack = true
  1156. Humanoid.WalkSpeed = 2
  1157. CamShake(RightArm,3,.2,.3)
  1158. getNearestGuy()
  1159. local part, pos = rayCast(PistolF.Position,((TargetPoint+Vector3.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10)) - PistolF.Position),200,chara)
  1160. local aimo = Instance.new("Part",Camera)
  1161. aimo.Anchored = true
  1162. aimo.Size = Vector3.new()
  1163. aimo.Transparency = 1
  1164. aimo.CanCollide = false
  1165. aimo.CFrame = CFrame.new(pos)
  1166. Effects.Meshed(PistolF.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),Vector3.new(),Vector3.new(.0025,.0001,.0025),"","rbxassetid://662585058","",0,false,.1)
  1167. Effects.Block(PistolF.CFrame,Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.3,.3,.3),"Neon","Bright yellow",true,false,.1)
  1168. Effects.Block(PistolF.CFrame,Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.6,.6,.6),"Neon","Bright yellow",true,false,.1)
  1169. Effects.Block(CFrame.new(pos),Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.1,.1,.1),"Neon","Bright yellow",true,false,.1)
  1170. Effects.Block(CFrame.new((PistolF.Position + pos)/2,pos),Vector3.new(.2,.2,(PistolF.Position - pos).magnitude),Vector3.new(0,0,1),Vector3.new(.1,.1,0),"Neon","Bright yellow",false,false,.1)
  1171. MagnitudeDmg(aimo,3,18,2,RootPart.CFrame.lookVector*2,false,"Shot",.1)
  1172. so(1583819337,PistolPart,math.random(90,110)/100,2)
  1173. local hitpt = Instance.new("Part",EffectModel)
  1174. hitpt.Size = Vector3.new(0,0,.3)
  1175. hitpt.CFrame = PistolPart.CFrame * CFrame.new(0,.465,.5)-- * CFrame.Angles(math.rad(90),0,0)
  1176. hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
  1177. local hitm = Instance.new("SpecialMesh",hitpt)
  1178. hitm.MeshId = "rbxassetid://94295100"
  1179. hitm.TextureId = "rbxassetid://94287792"
  1180. hitm.Scale = Vector3.new(3,3,3.5)
  1181. coroutine.wrap(function()
  1182. swait(120)
  1183. for i = 0,1,.1 do
  1184. swait()
  1185. hitpt.Transparency = i
  1186. end
  1187. hitpt:Destroy()
  1188. end)()
  1189. for i=0,1,.5 do
  1190. swait()
  1191. PlayAnimationFromTable({
  1192. CFrame.new(-6.51180744e-06, -1.04836988e-06, 0.199993119, 0.499999166, -7.89761714e-07, 0.866025329, 1.24944251e-08, 1.00000143, -9.25385962e-07, -0.866025865, -4.76837158e-07, 0.499998331),
  1193. CFrame.new(-1.63912773e-07, 1.49998271, -1.7285347e-06, 0.49240312, 0.0868238658, -0.866025865, -0.173648998, 0.984809101, -4.76837158e-07, 0.852868617, 0.150382623, 0.499998331),
  1194. CFrame.new(1.5115397, 0.924184561, 0.283434004, 0.157807171, -0.832470179, 0.531121731, 0.368540525, -0.449346781, -0.813798606, 0.916118145, 0.324162781, 0.235890016),
  1195. CFrame.new(-1.4999913, -2.68245174e-07, -2.32076964e-05, 0.939692736, 0.342020005, 1.78813934e-07, -0.342020422, 0.939693928, 1.06019513e-06, 1.1920929e-06, -2.65240669e-06, 0.999999046),
  1196. CFrame.new(0.673204184, -2.00000215, -0.100005746, 0.766043723, 1.24944251e-08, -0.642788589, -5.80049061e-07, 1.00000143, -7.07089043e-07, 0.642788231, -9.25385962e-07, 0.766042709),
  1197. CFrame.new(-0.326797545, -2.00000572, -0.0999965966, 1, 1.24944251e-08, 2.08616257e-07, 1.24944251e-08, 1.00000143, -9.25385962e-07, 2.08616257e-07, -9.25385962e-07, 0.999999046),
  1198. }, .5, false)
  1199. end
  1200. pshots = pshots - 1
  1201. aimo:Destroy()
  1202. if pshots <= 0 then
  1203. pistolrel()
  1204. end
  1205. for i=0,1,.5 do
  1206. swait()
  1207. PlayAnimationFromTable({
  1208. CFrame.new(0, 0, 0, 0.499999166, -7.89761714e-07, 0.866025329, 1.24944251e-08, 1.00000143, -9.25385962e-07, -0.866025865, -4.76837158e-07, 0.499998331),
  1209. CFrame.new(1.41561031e-06, 1.49998701, 1.01327896e-06, 0.49240312, 0.0868238658, -0.866025865, -0.173648998, 0.984809101, -4.76837158e-07, 0.852868617, 0.150382623, 0.499998331),
  1210. CFrame.new(1.67497301, 0.733016193, 0.303117812, 0.433011949, -0.866025865, 0.249999687, 0.500000238, -4.76837158e-07, -0.866026938, 0.749999404, 0.499998331, 0.433013648),
  1211. CFrame.new(-1.49999261, -3.8444914e-06, 7.30986267e-06, 0.939692736, 0.342020005, 1.78813934e-07, -0.342020422, 0.939693928, 1.06019513e-06, 1.1920929e-06, -2.65240669e-06, 0.999999046),
  1212. CFrame.new(0.499994516, -2.00000048, 1.52587891e-05, 0.766043723, 1.24944251e-08, -0.642788589, -5.80049061e-07, 1.00000143, -7.07089043e-07, 0.642788231, -9.25385962e-07, 0.766042709),
  1213. CFrame.new(-0.499984771, -1.99999857, 9.37584991e-06, 1, 1.24944251e-08, 2.08616257e-07, 1.24944251e-08, 1.00000143, -9.25385962e-07, 2.08616257e-07, -9.25385962e-07, 0.999999046),
  1214. }, .5, false)
  1215. end
  1216. Humanoid.WalkSpeed = 16
  1217. attack = false
  1218. end
  1219.  
  1220. function shotgunshoot()
  1221. attack = true
  1222. Humanoid.WalkSpeed = 2
  1223. Effects.Block(ShotgunF.CFrame,Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.4,.4,.4),"Neon","Bright yellow",true,false,.1)
  1224. Effects.Block(ShotgunF.CFrame,Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.7,.7,.7),"Neon","Bright yellow",true,false,.1)
  1225. CamShake(RightArm,3,.4,.3)
  1226. for i=1,2 do
  1227. Effects.Meshed(ShotgunF.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),Vector3.new(),Vector3.new(.003,.0001,.003),"","rbxassetid://662585058","",0,false,.1)
  1228. end
  1229. getNearestGuy()
  1230. local mop = TargetPoint
  1231. for ab=1,5 do
  1232. local part, pos = rayCast(ShotgunF.Position,((mop+Vector3.new(math.random(-20,20)/10,math.random(-20,20)/10,math.random(-20,20)/10)) - ShotgunF.Position),50,chara)
  1233. local aimo = Instance.new("Part",Camera)
  1234. aimo.Anchored = true
  1235. aimo.Size = Vector3.new()
  1236. aimo.Transparency = 1
  1237. aimo.CanCollide = false
  1238. aimo.CFrame = CFrame.new(pos)
  1239. Effects.Block(CFrame.new(pos),Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.1,.1,.1),"Neon","Bright yellow",true,false,.1)
  1240. Effects.Block(CFrame.new((ShotgunF.Position + pos)/2,pos),Vector3.new(.2,.2,(ShotgunF.Position - pos).magnitude),Vector3.new(0,0,1),Vector3.new(.1,.1,0),"Neon","Bright yellow",false,false,.1)
  1241. MagnitudeDmg(aimo,3,36,2,RootPart.CFrame.lookVector*2,false,"Shot",0)
  1242. aimo:Destroy()
  1243. end
  1244. so(636319463,ShottyPart,math.random(90,110)/100,2)
  1245. for i=0,1,.1 do
  1246. swait()
  1247. PlayAnimationFromTable({
  1248. CFrame.new(-0.0426755287, -1.07805381e-05, 0.0753384382, 0.50000298, 4.92750078e-05, -0.86603117, -4.60350348e-05, 1.00000274, 3.5977002e-05, 0.8660326, 2.4223591e-05, 0.499999166),
  1249. CFrame.new(0.0426297933, 1.49998486, -0.0245249029, 0.50000298, -4.60350348e-05, 0.8660326, 4.92750078e-05, 1.00000274, 2.4223591e-05, -0.86603117, 3.5977002e-05, 0.499999166),
  1250. CFrame.new(1.12515163, 0.548250377, -0.496726394, 0.500168204, 0.813741982, -0.296093225, 0.000139903248, -0.342011213, -0.939698875, -0.865935743, 0.469959229, -0.171180338),
  1251. CFrame.new(-1.14305413, 0.864631057, -1.00320852, 0.407486796, 0.113466412, 0.906143069, 0.682771206, -0.696794927, -0.219786346, 0.606456578, 0.708240092, -0.361407727),
  1252. CFrame.new(0.413448215, -1.9999907, -0.0500168577, 1.00000775, -2.18424248e-07, -1.28149986e-06, -2.18424248e-07, 1.00000286, 2.70940654e-06, -1.28149986e-06, 2.70940654e-06, 1.00000453),
  1253. CFrame.new(-0.586602032, -1.99999666, -0.0500271767, 0.500002861, -2.56561325e-05, 0.86603272, 2.89498093e-05, 1.00000286, 1.24069702e-05, -0.866031229, 2.43783397e-05, 0.499998987),
  1254. }, .4, false)
  1255. end
  1256. so(1676656467,RightArm,1,1)
  1257. for i=0,1,.1 do
  1258. swait()
  1259. PlayAnimationFromTable({
  1260. CFrame.new(-0.0426480025, 2.5987938e-06, -0.0246586762, 0.500004113, 5.21446345e-05, -0.866026759, -3.8554077e-05, 0.999998689, 3.87465407e-05, 0.866027117, 8.27422991e-06, 0.499998033),
  1261. CFrame.new(0.0426570028, 1.49997389, -0.0245179161, 0.500004113, -3.8554077e-05, 0.866027117, 5.21446345e-05, 0.999998689, 8.27422991e-06, -0.866026759, 3.87465407e-05, 0.499998033),
  1262. CFrame.new(1.26703095, 0.386247098, -0.414777607, 0.500184178, 0.749944627, -0.432900131, 0.00013010815, -0.499997675, -0.866026044, -0.865921021, 0.433114439, -0.250186145),
  1263. CFrame.new(-1.04589081, 0.850564957, -0.914023519, -0.0296139717, -0.375769794, 0.926241755, 0.528010428, -0.792688966, -0.304709554, 0.848720849, 0.480043083, 0.221882805),
  1264. CFrame.new(0.500037611, -1.99999917, 2.00857448e-05, 1.00000358, -2.6606067e-06, -2.56299973e-06, -2.6606067e-06, 0.999998689, -1.14691647e-06, -2.56299973e-06, -1.14691647e-06, 1.00000024),
  1265. CFrame.new(-0.500000834, -1.9999944, 5.96046448e-06, 0.500003934, -1.81733503e-05, 0.866027236, 3.18790844e-05, 0.999998748, -3.55727752e-06, -0.866026998, 2.71143635e-05, 0.499997854),
  1266. }, .4, false)
  1267. end
  1268. local hitpt = Instance.new("Part",EffectModel)
  1269. hitpt.Size = Vector3.new(.2,.2,.6)
  1270. hitpt.CFrame = ShottyPart.CFrame * CFrame.new(0,-.2,.1) * CFrame.Angles(math.rad(-90),0,0)
  1271. hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
  1272. local hitm = Instance.new("SpecialMesh",hitpt)
  1273. hitm.MeshId = "rbxassetid://94248124"
  1274. hitm.TextureId = "rbxassetid://94219470"
  1275. hitm.Scale = Vector3.new(1,1,1)
  1276. coroutine.wrap(function()
  1277. swait(120)
  1278. for i = 0,1,.1 do
  1279. swait()
  1280. hitpt.Transparency = i
  1281. end
  1282. hitpt:Destroy()
  1283. end)()
  1284. sshots = sshots - 1
  1285. if sshots <= 0 then
  1286. shotgunreload()
  1287. end
  1288. for i=0,1,.1 do
  1289. swait()
  1290. PlayAnimationFromTable({
  1291. CFrame.new(-0.04265441, 3.46730985e-06, -0.0246547386, 0.500000179, 5.24776005e-05, -0.866025448, -3.59067635e-05, 1, 3.98650955e-05, 0.866025448, 1.11636218e-05, 0.500000179),
  1292. CFrame.new(0.0426664874, 1.49997485, -0.0245260373, 0.500000179, -3.59067635e-05, 0.866025448, 5.24776005e-05, 1, 1.11636218e-05, -0.866025448, 3.98650955e-05, 0.500000179),
  1293. CFrame.new(1.12514198, 0.548240304, -0.496717662, 0.500165403, 0.813733816, -0.296094865, 0.00014318082, -0.34201628, -0.939694107, -0.865930021, 0.469960093, -0.171181217),
  1294. CFrame.new(-1.14299285, 0.864633799, -1.00319052, 0.407490432, 0.113461196, 0.906133711, 0.68276906, -0.696790278, -0.219794586, 0.606446922, 0.708244324, -0.361403227),
  1295. CFrame.new(0.500045896, -2.00000525, 7.62939635e-06, 1.00000024, 1.45519152e-11, 0, 1.45519152e-11, 1, 0, 0, 0, 1.00000024),
  1296. CFrame.new(-0.500002563, -2.00000548, -8.34465027e-07, 0.5, -1.55070338e-05, 0.866025567, 3.21887746e-05, 1, -6.78202923e-07, -0.866025567, 2.82154051e-05, 0.5),
  1297. }, .4, false)
  1298. end
  1299. Humanoid.WalkSpeed = 16
  1300. attack = false
  1301. end
  1302.  
  1303. function snipershoot()
  1304. attack = true
  1305. Humanoid.WalkSpeed = 1
  1306. for i=0,1,.1 do
  1307. swait()
  1308. PlayAnimationFromTable({
  1309. CFrame.new(4.7639071e-07, -1.10001194, -1.51601284e-07, 0.500000477, -4.33079322e-07, -0.866027892, -1.05399764e-07, 1.00000358, 4.57277082e-07, 0.866024017, 1.37818347e-07, 0.499997526),
  1310. CFrame.new(0.167016879, 1.34998727, -0.199010611, 0.556670308, 0.321388304, 0.766046166, -0.500001013, 0.866026938, 6.41028782e-06, -0.663415313, -0.383027822, 0.642783642),
  1311. CFrame.new(0.911282957, 0.475031316, -0.628563344, 0.500000417, 0.866024017, 8.59218545e-08, -3.88375781e-07, 1.37818347e-07, -1.00000358, -0.866027892, 0.499997526, -4.20934384e-07),
  1312. CFrame.new(-1.21131861, 0.352097392, -0.894729018, 0.03015434, 0.171006948, 0.984807253, 0.984811544, -0.17364794, -1.001839e-06, 0.171009108, 0.969847143, -0.173650116),
  1313. CFrame.new(0.951322317, -1.22446108, 0.145102695, 0.500000417, -0.866024017, 1.71279837e-07, 1.1826463e-07, -1.37818347e-07, 1.00000358, -0.866027892, -0.499997526, -1.18554784e-08),
  1314. CFrame.new(-0.759828508, -0.900001526, -0.149999052, 0.500000417, 1.71279837e-07, 0.866024017, 1.1826463e-07, 1.00000358, 1.37818347e-07, -0.866027892, -1.18554784e-08, 0.499997526),
  1315. }, .4, false)
  1316. end
  1317. getNearestGuy()
  1318. local part, pos = rayCast(SniperF.Position,((TargetPoint+Vector3.new(math.random(-1,1)/10,math.random(-1,1)/10,math.random(-1,1)/10)) - SniperF.Position),2000,chara)
  1319. local aimo = Instance.new("Part",Camera)
  1320. aimo.Anchored = true
  1321. aimo.Size = Vector3.new()
  1322. aimo.Transparency = 1
  1323. aimo.CanCollide = false
  1324. aimo.CFrame = CFrame.new(pos)
  1325. CamShake(RightArm,3,.5,.3)
  1326. for i=1,3 do
  1327. Effects.Meshed(SniperF.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),Vector3.new(),Vector3.new(.0035,.0001,.0035),"","rbxassetid://662585058","",0,false,.1)
  1328. end
  1329. Effects.Block(SniperF.CFrame,Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.6,.6,.6),"Neon","Bright yellow",true,false,.1)
  1330. Effects.Block(SniperF.CFrame,Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.8,.8,.8),"Neon","Bright yellow",true,false,.1)
  1331. Effects.Block(CFrame.new(pos),Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.1,.1,.1),"Neon","Bright yellow",true,false,.1)
  1332. Effects.Block(CFrame.new((SniperF.Position + pos)/2,pos),Vector3.new(.2,.2,(SniperF.Position - pos).magnitude),Vector3.new(0,0,1),Vector3.new(.1,.1,0),"Neon","Bright yellow",false,false,.1)
  1333. MagnitudeDmg(aimo,3,100,1,RootPart.CFrame.lookVector*2,false,"Shot",.1)
  1334. so(1188020502,SniperPart,math.random(90,110)/100,2)
  1335. local hitpt = Instance.new("Part",EffectModel)
  1336. hitpt.Size = Vector3.new(.2,.2,.6)
  1337. hitpt.CFrame = SniperPart.CFrame * CFrame.new(0,.2,.1) * CFrame.Angles(math.rad(90),0,0)
  1338. hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
  1339. local hitm = Instance.new("SpecialMesh",hitpt)
  1340. hitm.MeshId = "rbxassetid://94295100"
  1341. hitm.TextureId = "rbxassetid://94287792"
  1342. hitm.Scale = Vector3.new(6,6,7)
  1343. coroutine.wrap(function()
  1344. swait(120)
  1345. for i = 0,1,.1 do
  1346. swait()
  1347. hitpt.Transparency = i
  1348. end
  1349. hitpt:Destroy()
  1350. end)()
  1351. for i=0,1,.2 do
  1352. swait()
  1353. PlayAnimationFromTable({
  1354. CFrame.new(2.50265002e-05, -1.10002279, 0.200007886, 0.500002146, -3.76800926e-07, -0.866029978, 7.4937816e-08, 1.00000739, 4.94749656e-07, 0.86602205, 3.01832188e-07, 0.499995917),
  1355. CFrame.new(0.167014852, 1.34999704, -0.199008107, 0.556671381, 0.321389109, 0.766043961, -0.500002861, 0.866030276, 6.54973655e-06, -0.663417339, -0.383028954, 0.642782569),
  1356. CFrame.new(1.04456306, 0.514713466, -0.551627755, 0.499997109, 0.852867961, -0.150390312, -1.31521729e-05, -0.173648402, -0.984811425, -0.866029978, 0.49240002, -0.0868116468),
  1357. CFrame.new(-1.25996089, 0.489358723, -1.10211217, 0.212837413, 0.0678575933, 0.974727511, 0.797067821, -0.589060187, -0.133035436, 0.565143704, 0.805237114, -0.179465353),
  1358. CFrame.new(0.778114498, -1.22446704, 0.0451110713, 0.500002146, -0.86602205, 3.5509629e-07, 1.89445245e-07, -3.01832188e-07, 1.00000739, -0.866029978, -0.499995917, 1.52761004e-08),
  1359. CFrame.new(-0.933037996, -0.900004268, -0.249980167, 0.500002146, 3.5509629e-07, 0.86602205, 1.89445245e-07, 1.00000739, 3.01832188e-07, -0.866029978, 1.52761004e-08, 0.499995917),
  1360. }, .4, false)
  1361. end
  1362. snshots = snshots - 1
  1363. aimo:Destroy()
  1364. if snshots <= 0 then
  1365. sniperreload()
  1366. end
  1367. for i=0,1,.2 do
  1368. swait()
  1369. PlayAnimationFromTable({
  1370. CFrame.new(4.7639071e-07, -1.10001194, -1.51601284e-07, 0.500000477, -4.33079322e-07, -0.866027892, -1.05399764e-07, 1.00000358, 4.57277082e-07, 0.866024017, 1.37818347e-07, 0.499997526),
  1371. CFrame.new(0.167016879, 1.34998727, -0.199010611, 0.556670308, 0.321388304, 0.766046166, -0.500001013, 0.866026938, 6.41028782e-06, -0.663415313, -0.383027822, 0.642783642),
  1372. CFrame.new(0.911282957, 0.475031316, -0.628563344, 0.500000417, 0.866024017, 8.59218545e-08, -3.88375781e-07, 1.37818347e-07, -1.00000358, -0.866027892, 0.499997526, -4.20934384e-07),
  1373. CFrame.new(-1.21131861, 0.352097392, -0.894729018, 0.03015434, 0.171006948, 0.984807253, 0.984811544, -0.17364794, -1.001839e-06, 0.171009108, 0.969847143, -0.173650116),
  1374. CFrame.new(0.951322317, -1.22446108, 0.145102695, 0.500000417, -0.866024017, 1.71279837e-07, 1.1826463e-07, -1.37818347e-07, 1.00000358, -0.866027892, -0.499997526, -1.18554784e-08),
  1375. CFrame.new(-0.759828508, -0.900001526, -0.149999052, 0.500000417, 1.71279837e-07, 0.866024017, 1.1826463e-07, 1.00000358, 1.37818347e-07, -0.866027892, -1.18554784e-08, 0.499997526),
  1376. }, .4, false)
  1377. end
  1378. Humanoid.WalkSpeed = 16
  1379. attack = false
  1380. end
  1381.  
  1382. function pistol2shoot()
  1383. attack = true
  1384. Humanoid.WalkSpeed = 2
  1385. for i=0,1,.2 do
  1386. swait()
  1387. PlayAnimationFromTable({
  1388. CFrame.new(0.000184101125, 5.04431128e-08, -0.000150338426, 0.500005603, 1.22921699e-06, -0.866033554, -0.000292496145, 1.00001001, -0.000167453618, 0.866025388, 0.000337033183, 0.500001013),
  1389. CFrame.new(-0.000420940924, 1.50013995, -7.44290446e-06, 0.500005603, -0.000292496145, 0.866025388, 1.22921699e-06, 1.00001001, 0.000337033183, -0.866033554, -0.000167453618, 0.500001013),
  1390. CFrame.new(1.07864964, 0.497787654, -0.827312827, 0.812867165, 0.580278814, -0.0502792969, -0.0143589694, -0.0663333088, -0.997701764, -0.582282901, 0.811714172, -0.0455874838),
  1391. CFrame.new(0.205326244, -0.00924482942, -0.802453697, -0.432021976, -0.765640318, -0.476609319, -0.0512114279, 0.548448205, -0.834623814, 0.900416195, -0.33616206, -0.276147217),
  1392. CFrame.new(0.500085354, -2.00019813, 1.89718667e-05, 1.00000286, -2.50292942e-09, -4.02331352e-06, -2.50292942e-09, 1.00000989, -1.43336365e-09, -4.02331352e-06, -1.43336365e-09, 1.00000751),
  1393. CFrame.new(-0.499986112, -2.0001986, -4.31090593e-05, 0.500004113, 9.35033313e-07, 0.866026223, -1.24029475e-06, 1.00000989, -3.6941492e-07, -0.866034448, -8.92294338e-07, 0.499999523),
  1394. }, .5, false)
  1395. end
  1396. so(166196557,LeftArm,1,1)
  1397. Pistol2Part.Transparency = 0
  1398. PistolH.Transparency = 1
  1399. for i=0,1,.1 do
  1400. swait()
  1401. PlayAnimationFromTable({
  1402. CFrame.new(0.000189566548, 4.85283067e-08, -0.000144683872, 0.499996573, 1.23889242e-06, -0.866027534, -0.000292498793, 1.00000012, -0.000167442151, 0.866027474, 0.000337032456, 0.499996573),
  1403. CFrame.new(-0.00042946852, 1.50016332, -7.94494554e-06, 0.499996573, -0.000292498793, 0.866027474, 1.23889242e-06, 1.00000012, 0.000337032456, -0.866027534, -0.000167442151, 0.499996573),
  1404. CFrame.new(0.998134136, 0.446251094, -1.11091995, 0.783737183, 0.500254512, 0.36810562, 0.159336776, 0.410895228, -0.897650898, -0.60030663, 0.762174964, 0.242324889),
  1405. CFrame.new(-1.60379899, 0.657177448, 0.290532261, 0.395718038, 0.901369691, -0.175898328, -0.292884171, -0.0576668307, -0.954407454, -0.870417237, 0.429194063, 0.241177052),
  1406. CFrame.new(0.500091672, -2.00022912, 3.0502677e-05, 1.00000024, 0, -2.98023224e-08, 0, 1.00000012, 0, -2.98023224e-08, 0, 1.00000012),
  1407. CFrame.new(-0.499991387, -2.00022721, -4.65214252e-05, 0.499995053, 9.27539077e-07, 0.866028368, -1.23065342e-06, 1.00000012, -3.60509148e-07, -0.866028428, -8.85520421e-07, 0.499995083),
  1408. }, .4, false)
  1409. end
  1410. local num = 4
  1411. if pshots <= 3 then
  1412. num = pshots
  1413. end
  1414. for aba=1,num do
  1415. CamShake(RightArm,3,.2,.3)
  1416. getNearestGuy()
  1417. local part, pos = rayCast(Pistol2F.Position,((TargetPoint+Vector3.new(math.random(-15,15)/10,math.random(-15,15)/10,math.random(-15,15)/10)) - Pistol2F.Position),200,chara)
  1418. local aimo = Instance.new("Part",Camera)
  1419. aimo.Anchored = true
  1420. aimo.Size = Vector3.new()
  1421. aimo.Transparency = 1
  1422. aimo.CanCollide = false
  1423. aimo.CFrame = CFrame.new(pos)
  1424. for i=1,3 do
  1425. Effects.Meshed(Pistol2F.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),Vector3.new(),Vector3.new(.0025,.0015,.0025),"","rbxassetid://662585058","",0,false,.1)
  1426. end
  1427. Effects.Block(Pistol2F.CFrame,Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.3,.3,.3),"Neon","Bright yellow",true,false,.1)
  1428. Effects.Block(Pistol2F.CFrame,Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.6,.6,.6),"Neon","Bright yellow",true,false,.1)
  1429. Effects.Block(CFrame.new(pos),Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.1,.1,.1),"Neon","Bright yellow",true,false,.1)
  1430. Effects.Block(CFrame.new((Pistol2F.Position + pos)/2,pos),Vector3.new(.2,.2,(Pistol2F.Position - pos).magnitude),Vector3.new(0,0,1),Vector3.new(.1,.1,0),"Neon","Bright yellow",false,false,.1)
  1431. MagnitudeDmg(aimo,3,18,2,RootPart.CFrame.lookVector*2,false,"Shot",.1)
  1432. so(1583819337,Pistol2Part,math.random(90,110)/100,2)
  1433. local hitpt = Instance.new("Part",EffectModel)
  1434. hitpt.Size = Vector3.new(0,0,.3)
  1435. hitpt.CFrame = Pistol2Part.CFrame * CFrame.new(0,.465,.1)-- * CFrame.Angles(math.rad(90),0,0)
  1436. hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
  1437. local hitm = Instance.new("SpecialMesh",hitpt)
  1438. hitm.MeshId = "rbxassetid://94295100"
  1439. hitm.TextureId = "rbxassetid://94287792"
  1440. hitm.Scale = Vector3.new(3,3,3.5)
  1441. coroutine.wrap(function()
  1442. swait(2)
  1443. for i = 0,1,.1 do
  1444. swait()
  1445. hitpt.Transparency = i
  1446. end
  1447. hitpt:Destroy()
  1448. end)()
  1449. for i=0,1,.5 do
  1450. swait()
  1451. PlayAnimationFromTable({
  1452. CFrame.new(0.000161223114, -1.64846442e-05, 0.0998439789, 0.500000834, 1.23897951e-06, -0.866034865, -0.000292500015, 1.00000441, -0.000167442922, 0.86603111, 0.000337033882, 0.499998719),
  1453. CFrame.new(-0.00042947242, 1.50017548, -7.94528023e-06, 0.500000834, -0.000292500015, 0.86603111, 1.23897951e-06, 1.00000441, 0.000337033882, -0.866034865, -0.000167442922, 0.499998719),
  1454. CFrame.new(0.998145998, 0.446257651, -1.11093545, 0.783742428, 0.500255764, 0.36810708, 0.159337461, 0.410896987, -0.897654712, -0.600312531, 0.762179732, 0.242326021),
  1455. CFrame.new(-1.66605222, 0.85397166, 0.254648387, 0.313735187, 0.832365632, -0.456884146, -0.243486553, -0.394562453, -0.886024356, -0.917765141, 0.389220238, 0.0788824111),
  1456. CFrame.new(0.41350022, -2.00026441, -0.0499946438, 1.00000536, 0, -1.81794167e-06, 0, 1.00000441, -7.27595761e-11, -1.81794167e-06, -7.27595761e-11, 1.00000751),
  1457. CFrame.new(-0.586586297, -2.00026202, -0.050061062, 0.499999285, 9.27539077e-07, 0.866031885, -1.23056634e-06, 1.00000441, -3.60538252e-07, -0.866035759, -8.85622285e-07, 0.499997169),
  1458. }, .5, false)
  1459. end
  1460. pshots = pshots - 1
  1461. aimo:Destroy()
  1462. for i=0,1,.5 do
  1463. swait()
  1464. PlayAnimationFromTable({
  1465. CFrame.new(0.000189566548, 4.85283067e-08, -0.000144683872, 0.499996573, 1.23889242e-06, -0.866027534, -0.000292498793, 1.00000012, -0.000167442151, 0.866027474, 0.000337032456, 0.499996573),
  1466. CFrame.new(-0.00042946852, 1.50016332, -7.94494554e-06, 0.499996573, -0.000292498793, 0.866027474, 1.23889242e-06, 1.00000012, 0.000337032456, -0.866027534, -0.000167442151, 0.499996573),
  1467. CFrame.new(0.998134136, 0.446251094, -1.11091995, 0.783737183, 0.500254512, 0.36810562, 0.159336776, 0.410895228, -0.897650898, -0.60030663, 0.762174964, 0.242324889),
  1468. CFrame.new(-1.60379899, 0.657177448, 0.290532261, 0.395718038, 0.901369691, -0.175898328, -0.292884171, -0.0576668307, -0.954407454, -0.870417237, 0.429194063, 0.241177052),
  1469. CFrame.new(0.500091672, -2.00022912, 3.0502677e-05, 1.00000024, 0, -2.98023224e-08, 0, 1.00000012, 0, -2.98023224e-08, 0, 1.00000012),
  1470. CFrame.new(-0.499991387, -2.00022721, -4.65214252e-05, 0.499995053, 9.27539077e-07, 0.866028368, -1.23065342e-06, 1.00000012, -3.60509148e-07, -0.866028428, -8.85520421e-07, 0.499995083),
  1471. }, .5, false)
  1472. end
  1473. end
  1474. for i=0,1,.2 do
  1475. swait()
  1476. PlayAnimationFromTable({
  1477. CFrame.new(0.000184101125, 5.04431128e-08, -0.000150338426, 0.500005603, 1.22921699e-06, -0.866033554, -0.000292496145, 1.00001001, -0.000167453618, 0.866025388, 0.000337033183, 0.500001013),
  1478. CFrame.new(-0.000420940924, 1.50013995, -7.44290446e-06, 0.500005603, -0.000292496145, 0.866025388, 1.22921699e-06, 1.00001001, 0.000337033183, -0.866033554, -0.000167453618, 0.500001013),
  1479. CFrame.new(1.07864964, 0.497787654, -0.827312827, 0.812867165, 0.580278814, -0.0502792969, -0.0143589694, -0.0663333088, -0.997701764, -0.582282901, 0.811714172, -0.0455874838),
  1480. CFrame.new(0.205326244, -0.00924482942, -0.802453697, -0.432021976, -0.765640318, -0.476609319, -0.0512114279, 0.548448205, -0.834623814, 0.900416195, -0.33616206, -0.276147217),
  1481. CFrame.new(0.500085354, -2.00019813, 1.89718667e-05, 1.00000286, -2.50292942e-09, -4.02331352e-06, -2.50292942e-09, 1.00000989, -1.43336365e-09, -4.02331352e-06, -1.43336365e-09, 1.00000751),
  1482. CFrame.new(-0.499986112, -2.0001986, -4.31090593e-05, 0.500004113, 9.35033313e-07, 0.866026223, -1.24029475e-06, 1.00000989, -3.6941492e-07, -0.866034448, -8.92294338e-07, 0.499999523),
  1483. }, .4, false)
  1484. end
  1485. Pistol2Part.Transparency = 1
  1486. PistolH.Transparency = 0
  1487. Humanoid.WalkSpeed = 16
  1488. attack = false
  1489. end
  1490.  
  1491. function silentstab()
  1492. attack = true
  1493. Humanoid.WalkSpeed = 2
  1494. local grab = nil
  1495. local torsy = nil
  1496. for i, v in pairs(FindNearestTorso(Torso.Position, 5)) do
  1497. if v:FindFirstChild('Head') and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then
  1498. torsy = GetDudesTorso(v)
  1499. grab = v
  1500. end
  1501. end
  1502. if grab ~= nil and torsy ~= nil then
  1503. so(200632136, RootPart, .8, 1)
  1504. for i = 0,1,.2 do
  1505. swait()
  1506. PlayAnimationFromTable({
  1507. CFrame.new(0, 0, 0, 1.0000037, 1.69968928e-10, 0, 1.69968928e-10, 1, -1.57160684e-09, 0, -1.57160684e-09, 1.0000037),
  1508. CFrame.new(-3.01809487e-05, 1.48262334, -0.0984517932, 1.00000286, 2.59244189e-07, -2.88084266e-07, -2.05077583e-07, 0.98480767, 0.173648551, 3.28727765e-07, -0.173649058, 0.984810591),
  1509. CFrame.new(1.30344474, -0.164363086, 0.272664785, 0.939695418, 0.342020869, 7.09114829e-08, -0.3213934, 0.883021832, 0.342021555, 0.116978429, -0.321396053, 0.939694881),
  1510. CFrame.new(-1.16895545, 0.600005031, -0.538890362, 0.642788529, -0.766047359, -1.59056867e-07, 3.28349415e-07, 4.82803443e-07, -1, 0.766047418, 0.642788589, 5.64206857e-07),
  1511. CFrame.new(0.500057638, -2.0000205, 1.92150474e-05, 0.984810531, -1.72498687e-07, -0.173649296, 1.44973455e-07, 1, -1.72876753e-07, 0.173649311, 1.42812496e-07, 0.984810591),
  1512. CFrame.new(-0.499961913, -2.00001907, 1.8030405e-06, 0.984810591, 2.5749668e-07, 0.173648581, -2.14211468e-07, 1, -2.66620191e-07, -0.173648596, 2.23022653e-07, 0.98481065),
  1513. }, .3, false)
  1514. torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3)
  1515. torsy.Velocity = Vector3.new()
  1516. end
  1517. so(211059653,Knife,1,1)
  1518. for i = 0,1,.1 do
  1519. swait()
  1520. PlayAnimationFromTable({
  1521. CFrame.new(0, 0, 0, 1.00001013, 3.01577785e-09, 1.23691279e-09, 3.01577785e-09, 0.999999762, -1.05661456e-06, 1.23691279e-09, -1.05661456e-06, 0.999995291),
  1522. CFrame.new(-3.01768723e-05, 1.48262274, -0.098456949, 1.00001013, 2.61965397e-07, -2.86352588e-07, -2.02173752e-07, 0.984807134, 0.173650354, 3.30022885e-07, -0.173651636, 0.984802246),
  1523. CFrame.new(1.5392077, 0.777850926, 0.0131720304, 0.935736716, -0.351706415, -0.0266419984, -0.324943185, -0.888975859, 0.32269752, -0.137177527, -0.293299675, -0.946125269),
  1524. CFrame.new(-1.16899812, 0.600008368, -0.538897991, 0.642793238, -0.766052902, -1.61869082e-07, -4.9744267e-07, -2.09358404e-07, -0.999999762, 0.766041577, 0.642783701, 1.59302726e-06),
  1525. CFrame.new(0.500073791, -2.00001764, 1.58026814e-05, 0.984817624, -1.67005226e-07, -0.173650563, -3.64234438e-08, 0.999999762, -1.19872857e-06, 0.173647985, -9.07632057e-07, 0.984802961),
  1526. CFrame.new(-0.499974608, -2.0000205, 1.321733e-05, 0.984817803, 2.5789538e-07, 0.173649862, -2.46509444e-08, 0.999999762, -1.31168053e-06, -0.173647255, -8.18137778e-07, 0.984803081),
  1527. }, .3, false)
  1528. torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3)
  1529. torsy.Velocity = Vector3.new()
  1530. end
  1531. tr1.Enabled = true
  1532. for i = 0,1,.2 do
  1533. swait()
  1534. PlayAnimationFromTable({
  1535. CFrame.new(0, 0, 0, 1.00000012, 1.52766688e-12, 1.45519152e-11, 1.52766688e-12, 1, 0, 1.45519152e-11, 0, 1.00000012),
  1536. CFrame.new(-3.01809741e-05, 1.48262441, -0.0984470844, 1.00000012, 2.59178705e-07, -2.88142473e-07, -2.05221269e-07, 0.984807312, 0.173650622, 3.28800525e-07, -0.173650607, 0.984807432),
  1537. CFrame.new(1.11628127, 0.212460458, -1.06663299, -0.114152029, 0.566243351, -0.816295326, -0.993282199, -0.0493562892, 0.104664929, 0.0189765152, 0.822759032, 0.568073511),
  1538. CFrame.new(-1.16897488, 0.60000807, -0.538883448, 0.642792463, -0.766040564, -1.62451698e-07, -1.30882836e-06, -8.86182534e-07, -1, 0.766040623, 0.642792284, -1.57224713e-06),
  1539. CFrame.new(0.500080049, -2.0000174, 2.25231051e-05, 0.984817743, -1.63965893e-07, -0.173650578, -2.22877134e-07, 0.999999821, -2.23875395e-06, 0.173648, 1.48982508e-07, 0.984803081),
  1540. CFrame.new(-0.499980897, -2.00001836, 1.99377537e-05, 0.984817982, 2.60905608e-07, 0.173649877, 1.55865564e-07, 0.999999821, -2.35275365e-06, -0.17364727, 2.38447683e-07, 0.9848032),
  1541. }, .4, false)
  1542. torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3)
  1543. torsy.Velocity = Vector3.new()
  1544. end
  1545. Dmg(grab,math.huge,0,Vector3.new(),false,"Sharp",0)
  1546. tr1.Enabled = false
  1547. for i=1,30 do
  1548. swait()
  1549. torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3)
  1550. torsy.Velocity = Vector3.new()
  1551. end
  1552. so(444667824,torsy,1,1)
  1553. p1mit.Enabled = true
  1554. for i = 0,2,.1 do
  1555. swait()
  1556. PlayAnimationFromTable({
  1557. CFrame.new(0, 0, 0, 1.00001013, 3.01577785e-09, 1.23691279e-09, 3.01577785e-09, 0.999999762, -1.05661456e-06, 1.23691279e-09, -1.05661456e-06, 0.999995291),
  1558. CFrame.new(-3.01768723e-05, 1.48262274, -0.098456949, 1.00001013, 2.61965397e-07, -2.86352588e-07, -2.02173752e-07, 0.984807134, 0.173650354, 3.30022885e-07, -0.173651636, 0.984802246),
  1559. CFrame.new(1.5392077, 0.777850926, 0.0131720304, 0.935736716, -0.351706415, -0.0266419984, -0.324943185, -0.888975859, 0.32269752, -0.137177527, -0.293299675, -0.946125269),
  1560. CFrame.new(-1.16899812, 0.600008368, -0.538897991, 0.642793238, -0.766052902, -1.61869082e-07, -4.9744267e-07, -2.09358404e-07, -0.999999762, 0.766041577, 0.642783701, 1.59302726e-06),
  1561. CFrame.new(0.500073791, -2.00001764, 1.58026814e-05, 0.984817624, -1.67005226e-07, -0.173650563, -3.64234438e-08, 0.999999762, -1.19872857e-06, 0.173647985, -9.07632057e-07, 0.984802961),
  1562. CFrame.new(-0.499974608, -2.0000205, 1.321733e-05, 0.984817803, 2.5789538e-07, 0.173649862, -2.46509444e-08, 0.999999762, -1.31168053e-06, -0.173647255, -8.18137778e-07, 0.984803081),
  1563. }, .3, false)
  1564. torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3)
  1565. torsy.Velocity = Vector3.new()
  1566. end
  1567. p1mit.Enabled = false
  1568. BodyVel(torsy,RootPart.CFrame.rightVector*-30)
  1569. for i = 0,2,.1 do
  1570. swait()
  1571. PlayAnimationFromTable({
  1572. CFrame.new(0, 0, 0, 1.00001895, -1.08813225e-09, -2.15858745e-06, -1.08813225e-09, 1, -5.23868948e-09, -2.15858745e-06, -5.23868948e-09, 1.00001907),
  1573. CFrame.new(-2.80096792e-05, 1.48262501, -0.0984562784, 1.00001895, 6.30865543e-07, -2.43255636e-06, -2.06277122e-07, 0.984807432, 0.173650309, -1.83083466e-06, -0.173653573, 0.984826326),
  1574. CFrame.new(1.56420577, 0.0696786866, 0.187489942, 0.984821677, -0.173651561, 2.03962554e-06, 0.163176283, 0.925417721, 0.342017293, -0.059396904, -0.336825103, 0.93970716),
  1575. CFrame.new(-1.61899722, 0.500005424, 0.240550712, 0.500009537, 0.866036475, -2.03252193e-06, -1.80752249e-06, -1.30520493e-06, -1, -0.866037965, 0.500006795, 9.20670573e-07),
  1576. CFrame.new(0.500072181, -2.0000205, 2.01910734e-05, 0.984817028, -1.70239531e-07, -0.173650548, 1.41451892e-07, 1, -1.7194543e-07, 0.173648432, 1.39552867e-07, 0.984817445),
  1577. CFrame.new(-0.499981821, -2.00002146, 1.2755394e-05, 0.984826863, 2.54893166e-07, 0.173649251, -2.13003659e-07, 1, -2.71422323e-07, -0.173653603, 2.19704816e-07, 0.984826326),
  1578. }, .4, false)
  1579. end
  1580. end
  1581. attack = false
  1582. Humanoid.WalkSpeed = 16
  1583. end
  1584.  
  1585. function silentpist()
  1586. attack = true
  1587. Humanoid.WalkSpeed = 2
  1588. local grab = nil
  1589. local torsy = nil
  1590. for i, v in pairs(FindNearestTorso(Torso.Position, 5)) do
  1591. if v:FindFirstChild('Head') and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then
  1592. torsy = GetDudesTorso(v)
  1593. grab = v
  1594. end
  1595. end
  1596. if grab ~= nil and torsy ~= nil then
  1597. so(200632136, RootPart, .8, 1)
  1598. for i = 0,1,.2 do
  1599. swait()
  1600. PlayAnimationFromTable({
  1601. CFrame.new(0, 0, 0, 1.0000037, 1.69968928e-10, 0, 1.69968928e-10, 1, -1.57160684e-09, 0, -1.57160684e-09, 1.0000037),
  1602. CFrame.new(-3.01809487e-05, 1.48262334, -0.0984517932, 1.00000286, 2.59244189e-07, -2.88084266e-07, -2.05077583e-07, 0.98480767, 0.173648551, 3.28727765e-07, -0.173649058, 0.984810591),
  1603. CFrame.new(1.30344474, -0.164363086, 0.272664785, 0.939695418, 0.342020869, 7.09114829e-08, -0.3213934, 0.883021832, 0.342021555, 0.116978429, -0.321396053, 0.939694881),
  1604. CFrame.new(-1.16895545, 0.600005031, -0.538890362, 0.642788529, -0.766047359, -1.59056867e-07, 3.28349415e-07, 4.82803443e-07, -1, 0.766047418, 0.642788589, 5.64206857e-07),
  1605. CFrame.new(0.500057638, -2.0000205, 1.92150474e-05, 0.984810531, -1.72498687e-07, -0.173649296, 1.44973455e-07, 1, -1.72876753e-07, 0.173649311, 1.42812496e-07, 0.984810591),
  1606. CFrame.new(-0.499961913, -2.00001907, 1.8030405e-06, 0.984810591, 2.5749668e-07, 0.173648581, -2.14211468e-07, 1, -2.66620191e-07, -0.173648596, 2.23022653e-07, 0.98481065),
  1607. }, .4, false)
  1608. torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3)
  1609. torsy.Velocity = Vector3.new()
  1610. end
  1611. for i = 0,1,.1 do
  1612. swait()
  1613. PlayAnimationFromTable({
  1614. CFrame.new(0, 0, 0, 1.000018, 8.09635026e-10, 0, 8.09635026e-10, 1, -7.88713805e-09, 0, -7.88713805e-09, 1.000018),
  1615. CFrame.new(-3.11340882e-05, 1.48262513, -0.0984535366, 1.00001717, 2.59900844e-07, -2.8796785e-07, -2.04408821e-07, 0.98480767, 0.173648566, 3.28756869e-07, -0.173651531, 0.984824657),
  1616. CFrame.new(1.79998624, 0.477996171, -0.413522929, 0.342012018, 0.883037329, -0.321389318, -0.163174942, -0.281007737, -0.945731819, -0.925429285, 0.375894368, 0.0479815453),
  1617. CFrame.new(-1.1689868, 0.600005031, -0.538915634, 0.642797709, -0.766058326, -1.5969654e-07, 3.23954737e-07, 4.78248694e-07, -1, 0.766058385, 0.642797768, 5.70522388e-07),
  1618. CFrame.new(0.500071704, -2.00002003, 1.27032399e-05, 0.984824598, -1.71859028e-07, -0.173651785, 1.44493242e-07, 1, -1.79221388e-07, 0.173651785, 1.36496965e-07, 0.984824657),
  1619. CFrame.new(-0.499974728, -2.00001907, 2.80886889e-06, 0.984824657, 2.58136339e-07, 0.173651055, -2.12450686e-07, 1, -2.72644684e-07, -0.173651069, 2.16707122e-07, 0.984824717),
  1620. }, .4, false)
  1621. torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3)
  1622. torsy.Velocity = Vector3.new()
  1623. end
  1624. CamShake(RightArm,3,.2,.3)
  1625. for i=1,3 do
  1626. Effects.Meshed(PistolF.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),Vector3.new(),Vector3.new(.0025,.0015,.0025),"","rbxassetid://662585058","",0,false,.1)
  1627. end
  1628. Effects.Block(PistolF.CFrame,Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.3,.3,.3),"Neon","Bright yellow",true,false,.1)
  1629. Effects.Block(PistolF.CFrame,Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.6,.6,.6),"Neon","Bright yellow",true,false,.1)
  1630. so(1583819337,PistolPart,math.random(90,110)/100,2)
  1631. Dmg(grab,math.huge,0,Vector3.new(),false,"Shot",0)
  1632. pshots = pshots - 1
  1633. for i = 0,1,.2 do
  1634. swait()
  1635. PlayAnimationFromTable({
  1636. CFrame.new(0, 0, 0, 1.00000417, 2.18335572e-10, -5.09317033e-10, 2.18335572e-10, 1, 2.32830644e-10, -5.09317033e-10, 2.32830644e-10, 1.00000417),
  1637. CFrame.new(-3.01806849e-05, 1.48262227, -0.0984561294, 1.00000417, 2.59502485e-07, -2.88564479e-07, -2.05000106e-07, 0.984807312, 0.173651457, 3.28247552e-07, -0.173652172, 0.984811306),
  1638. CFrame.new(1.56238043, 0.668045402, -0.472643495, 0.598204136, -0.325104058, -0.732436657, -0.49942559, -0.866038263, -0.0234913211, -0.626681089, 0.379850179, -0.680432916),
  1639. CFrame.new(-1.16897666, 0.600004077, -0.538914442, 0.642789423, -0.766048372, -1.59102683e-07, 3.17784725e-07, 4.73693945e-07, -1, 0.766048431, 0.642789483, 5.47443051e-07),
  1640. CFrame.new(0.500065982, -2.00001907, -2.65985727e-06, 0.984811783, -1.69772804e-07, -0.17364952, 1.42616045e-07, 1, -1.71741704e-07, 0.173649535, 1.44791557e-07, 0.984811842),
  1641. CFrame.new(-0.49996838, -2.00001955, 1.83209777e-05, 0.984811842, 2.5510019e-07, 0.173648834, -2.11686711e-07, 1, -2.65834387e-07, -0.173648834, 2.25525582e-07, 0.984811902),
  1642. }, .5, false)
  1643. torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3)
  1644. torsy.Velocity = Vector3.new()
  1645. end
  1646. for i=1,5 do
  1647. swait()
  1648. torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3)
  1649. torsy.Velocity = Vector3.new()
  1650. end
  1651. BodyVel(torsy,RootPart.CFrame.rightVector*-30)
  1652. for i = 0,2,.1 do
  1653. swait()
  1654. PlayAnimationFromTable({
  1655. CFrame.new(0, 0, 0, 1.00001895, -1.08813225e-09, -2.15858745e-06, -1.08813225e-09, 1, -5.23868948e-09, -2.15858745e-06, -5.23868948e-09, 1.00001907),
  1656. CFrame.new(-2.80096792e-05, 1.48262501, -0.0984562784, 1.00001895, 6.30865543e-07, -2.43255636e-06, -2.06277122e-07, 0.984807432, 0.173650309, -1.83083466e-06, -0.173653573, 0.984826326),
  1657. CFrame.new(1.56420577, 0.0696786866, 0.187489942, 0.984821677, -0.173651561, 2.03962554e-06, 0.163176283, 0.925417721, 0.342017293, -0.059396904, -0.336825103, 0.93970716),
  1658. CFrame.new(-1.61899722, 0.500005424, 0.240550712, 0.500009537, 0.866036475, -2.03252193e-06, -1.80752249e-06, -1.30520493e-06, -1, -0.866037965, 0.500006795, 9.20670573e-07),
  1659. CFrame.new(0.500072181, -2.0000205, 2.01910734e-05, 0.984817028, -1.70239531e-07, -0.173650548, 1.41451892e-07, 1, -1.7194543e-07, 0.173648432, 1.39552867e-07, 0.984817445),
  1660. CFrame.new(-0.499981821, -2.00002146, 1.2755394e-05, 0.984826863, 2.54893166e-07, 0.173649251, -2.13003659e-07, 1, -2.71422323e-07, -0.173653603, 2.19704816e-07, 0.984826326),
  1661. }, .4, false)
  1662. end
  1663. end
  1664. attack = false
  1665. Humanoid.WalkSpeed = 16
  1666. end
  1667.  
  1668. function heal()
  1669. attack = true
  1670. Humanoid.WalkSpeed = 2
  1671. local val = Instance.new("BoolValue",chara)
  1672. val.Name = "healcool"
  1673. debby:AddItem(val,30)
  1674. for i=0,1,.1 do
  1675. swait()
  1676. PlayAnimationFromTable({
  1677. CFrame.new(0, 0, 0, 1.00000131, 5.536549e-11, 0, 5.536549e-11, 1, 5.82076609e-11, 0, 5.82076609e-11, 1.00000131),
  1678. CFrame.new(-0.0470143259, 1.46578526, -0.0813575089, 0.866027415, -0.171009213, 0.46984449, 1.88792183e-06, 0.939693928, 0.342016727, -0.499997973, -0.296194941, 0.813800871),
  1679. CFrame.new(1.50003648, 0.699995697, 3.59429396e-05, 1.00000131, -2.06271608e-07, -6.67154382e-06, -2.06196262e-07, -1, 2.48575816e-07, -6.67157292e-06, -2.48721335e-07, -1.00000131),
  1680. CFrame.new(-1.2535826, -0.14593178, 0.0679161474, 0.941512227, -0.331708014, -0.0593915284, 0.331707656, 0.88120383, 0.336823434, -0.059390977, -0.33682391, 0.939694226),
  1681. CFrame.new(0.500059426, -2.00001574, 4.5761466e-05, 0.939693809, -1.38383513e-07, -0.342020601, -2.80560926e-08, 1, -4.82134055e-07, 0.342020571, 4.627218e-07, 0.939694047),
  1682. CFrame.new(-0.499963611, -2.0000174, 2.33203173e-05, 0.939694047, -1.69952145e-07, 0.342020452, 2.99973181e-07, 1, -3.27068847e-07, -0.342020482, 4.10043867e-07, 0.939694047),
  1683. }, .4, false)
  1684. end
  1685. local inj = New("Part",chara,"inj",{Size = Vector3.new(2.10000014, 0.299999982, 0.300000012),CFrame = CFrame.new(-37.1041107, 9.26048374, -70.1689682, -0.100794047, 0.957379222, 0.270676494, -0.129940063, 0.257064044, -0.957618713, -0.986385465, -0.131693989, 0.0984913707),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
  1686. local iMesh = New("SpecialMesh",inj,"Mesh",{Scale = Vector3.new(0.00200000009, 0.00200000009, 0.00200000009),MeshId = "rbxassetid://504973881",MeshType = Enum.MeshType.FileMesh,})
  1687. local iWeld = New("ManualWeld",inj,"Weld",{Part0 = inj,Part1 = LeftArm,C0 = CFrame.new(0, 0, 0, -0.100794047, -0.129940063, -0.986385465, 0.957379222, 0.257064044, -0.131693989, 0.270676494, -0.957618713, 0.0984913707),C1 = CFrame.new(0.250003815, -1.05000305, -0.249992371, -0.270675898, 0.957618654, -0.0984939635, 0.957379043, 0.257062733, -0.131696969, -0.100796357, -0.129943267, -0.986384809),})
  1688. for i=0,1,.1 do
  1689. swait()
  1690. PlayAnimationFromTable({
  1691. CFrame.new(0, 0, 0, 1.00000441, 2.30059527e-10, -1.45519152e-11, 2.30059527e-10, 1, 2.32830644e-10, -1.45519152e-11, 2.32830644e-10, 1.00000441),
  1692. CFrame.new(-0.0342181027, 1.48367238, -0.0925136507, 0.939694226, 1.76227331e-07, 0.342022419, -0.0593916923, 0.984807789, 0.163176015, -0.336826295, -0.173648849, 0.925418019),
  1693. CFrame.new(1.50004876, 0.69999665, 2.83136833e-05, 1.00000441, -2.06446316e-07, -6.67157292e-06, -2.06021568e-07, -1, 2.48401193e-07, -6.67160202e-06, -2.48895958e-07, -1.00000441),
  1694. CFrame.new(-1.32655382, 0.16053623, -0.618192732, 0.82254082, 0.00194577302, 0.568706632, 0.568639874, 0.0127443047, -0.82248795, -0.00884814467, 0.999919116, 0.00937626697),
  1695. CFrame.new(0.500066876, -2.00001621, 5.19603491e-05, 0.939696729, -1.38208819e-07, -0.342021674, -2.78232619e-08, 1, -4.81959432e-07, 0.342021644, 4.62896423e-07, 0.939696968),
  1696. CFrame.new(-0.499963373, -2.00001645, 2.26646662e-05, 0.939696968, -1.69777451e-07, 0.342021525, 3.00089596e-07, 1, -3.26806912e-07, -0.342021555, 4.1021849e-07, 0.939696968),
  1697. }, .4, false)
  1698. end
  1699. for i=0,1,.2 do
  1700. swait()
  1701. PlayAnimationFromTable({
  1702. CFrame.new(0, 0, 0, 1.00000012, -3.48876483e-12, 0, -3.48876483e-12, 1, 0, 0, 0, 1.00000012),
  1703. CFrame.new(-2.27339151e-05, 1.46578801, -0.0939310491, 1.00000012, -3.72103386e-07, 1.64323137e-06, -2.12327393e-07, 0.939692557, 0.342020363, -1.67140388e-06, -0.342020422, 0.939692676),
  1704. CFrame.new(1.50005758, 0.699994743, 3.59426958e-05, 1.00000012, -2.06212761e-07, -6.67157292e-06, -2.06226048e-07, -1, 2.48663127e-07, -6.67157292e-06, -2.48663127e-07, -1.00000012),
  1705. CFrame.new(-0.943567514, 0.0578621849, -0.670854151, 0.270323098, -0.957491815, 0.100672945, 0.957676411, 0.256677359, -0.130279034, 0.0989006162, 0.131629527, 0.986353219),
  1706. CFrame.new(0.500069618, -2.00001717, 4.97102737e-05, 0.939692676, -1.38762402e-07, -0.342020184, -2.76195351e-08, 1, -4.81668394e-07, 0.342020184, 4.62023309e-07, 0.939692795),
  1707. CFrame.new(-0.499966532, -2.00001884, 2.46018171e-05, 0.939692795, -1.69370765e-07, 0.342019975, 2.99449312e-07, 1, -3.27592716e-07, -0.342020005, 4.10247594e-07, 0.939692795),
  1708. }, .5, false)
  1709. end
  1710. so(566593606,Torso,1,1)
  1711. coroutine.wrap(function()
  1712. healing = true
  1713. for i=1,500 do
  1714. swait()
  1715. Humanoid.Health = Humanoid.Health + 1
  1716. end
  1717. Humanoid.WalkSpeed = 16
  1718. attack = false
  1719. end
  1720.  
  1721. zhold = false
  1722. Mouse.Button1Down:connect(function()
  1723. zhold = true
  1724. if attack == false then
  1725. gunshoot()
  1726. end
  1727. end)
  1728.  
  1729. --function aimassist()
  1730. --coroutine.wrap(function()
  1731. --for i=1,2 do
  1732. --so(613361563,Torso,1,.2)
  1733. --swait(3)
  1734. --end
  1735. --end)()
  1736. --local val = Instance.new("BoolValue",chara)
  1737. --val.Name = "targetcool"
  1738. --debby:AddItem(val,10)
  1739. --for i,v in pairs(workspace:GetDescendants()) do
  1740. --if v:IsA("Model") and v~=chara and v:FindFirstChildOfClass("Humanoid") then
  1741. --local crsha = Instance.new("BillboardGui",Camera)
  1742. --crsha.Size = UDim2.new(10,0,10,0)
  1743. --crsha.AlwaysOnTop = true
  1744. --crsha.Adornee = GetDudesTorso(v)
  1745. --local imgl = Instance.new("ImageLabel",crsha)
  1746. --imgl.Position = UDim2.new(0,0,0,0)
  1747. --imgl.Size = UDim2.new(1,0,1,0)
  1748. --imgl.Image = "rbxassetid://29066470"
  1749. --imgl.BackgroundTransparency = 1
  1750. --imgl.ImageTransparency = 1
  1751. --coroutine.wrap(function()
  1752. --while crsha~=nil do
  1753. --swait()
  1754. --imgl.Rotation = imgl.Rotation + 1
  1755. --if crsha.Adornee == nil then crsha:Destroy() end
  1756. --if crsha.Adornee.Parent:FindFirstChildOfClass("Humanoid") and crsha.Adornee.Parent:FindFirstChildOfClass("Humanoid").Health <= 0 then crsha:Destroy() end
  1757. --end
  1758. --end)()
  1759. --coroutine.wrap(function()
  1760. --for i=0,1,.05 do
  1761. --swait()
  1762. --crsha.Size = UDim2.new(50-30*i,0,50-30*i,0)
  1763. --imgl.ImageTransparency = 1-i
  1764. --end
  1765. --crsha.Size = UDim2.new(20,0,20,0)
  1766. --imgl.ImageTransparency = 0
  1767. --swait(300)
  1768. --for i=0,1,.05 do
  1769. --swait()
  1770. --crsha.Size = UDim2.new(20+30*i,0,20+30*i,0)
  1771. --imgl.ImageTransparency = i
  1772. --end
  1773. --crsha:Destroy()
  1774. --end)()
  1775. --end
  1776. --end
  1777. --end
  1778.  
  1779. function aimassist()
  1780. coroutine.wrap(function()
  1781. for i=1,2 do
  1782. so(613361563,Torso,1,.2)
  1783. swait(3)
  1784. end
  1785. end)()
  1786. local val = Instance.new("BoolValue",chara)
  1787. val.Name = "targetcool"
  1788. debby:AddItem(val,10)
  1789. for i,v in pairs(workspace:GetDescendants()) do
  1790. if v:IsA("Model") and v~=chara and v:FindFirstChildOfClass("Humanoid") then
  1791. for _,b in pairs(v:children'') do
  1792. if b:IsA("BasePart") then
  1793. local xr = Instance.new("BoxHandleAdornment",Player:FindFirstChildOfClass("PlayerGui"))
  1794. xr.Adornee = b
  1795. xr.AlwaysOnTop = true
  1796. xr.Size = b.Size + Vector3.new(.1,.1,.1)
  1797. xr.Color3 = Color3.new(1,0,0)
  1798. xr.Transparency = 1
  1799. xr.ZIndex = 5
  1800. coroutine.wrap(function()
  1801. repeat swait()
  1802. until v:FindFirstChildOfClass("Humanoid").Health <= 0
  1803. xr:Destroy()
  1804. end)()
  1805. coroutine.wrap(function()
  1806. for tr=0,.5,.1 do
  1807. swait()
  1808. xr.Transparency = 1-tr
  1809. end
  1810. xr.Transparency = .5
  1811. swait(300)
  1812. for tr=0,.5,.1 do
  1813. swait()
  1814. xr.Transparency = .5+tr
  1815. end
  1816. xr:Destroy()
  1817. end)()
  1818. end
  1819. end
  1820. end
  1821. end
  1822. end
  1823.  
  1824. fighting = false
  1825. Mouse.Button1Up:connect(function()
  1826. if ply == Player then
  1827. if attack == false then
  1828. if currentwep == "Knife" then
  1829. knifestab()
  1830. elseif currentwep == "Pistol" then
  1831. pistolshoot()
  1832. elseif currentwep == "Shotgun" then
  1833. shotgunshoot()
  1834. elseif currentwep == "Sniper" then
  1835. snipershoot()
  1836. end
  1837. end
  1838. end
  1839. end)
  1840.  
  1841. local sprintt = 0
  1842. Mouse.KeyDown:connect(function(k)
  1843. if ply == Player then
  1844. k = k:lower()
  1845. if k=='m' then
  1846. if mus.IsPlaying == true then
  1847. mus:Stop()
  1848. elseif mus.IsPaused == true then
  1849. mus:Play()
  1850. end
  1851. end
  1852. if attack == false then
  1853. if k == 'z' then
  1854. if Anim ~= "Fall" and Anim ~= "Jump" then
  1855. doge()
  1856. end
  1857. elseif k == 'x' then
  1858. if currentwep ~= "Knife" then
  1859. wepknifestab()
  1860. else
  1861. silentstab()
  1862. end
  1863. elseif k == 'f' and chara:FindFirstChild("healcool")==nil then
  1864. heal()
  1865. elseif k == 'g' and chara:FindFirstChild("targetcool")==nil then
  1866. aimassist()
  1867. elseif k == 'h' then
  1868. so(115959318,Torso,1,1)
  1869. if li.Enabled == true then
  1870. li.Enabled = false
  1871. else
  1872. li.Enabled = true
  1873. end
  1874. elseif k == 'c' then
  1875. if currentwep ~= "Pistol" and pshots > 0 then
  1876. pistol2shoot()
  1877. elseif currentwep == "Pistol" and pshots > 1 then
  1878. silentpist()
  1879. end
  1880. elseif k == 'q' then
  1881. goleft()
  1882. elseif k == 'e' then
  1883. goright()
  1884. elseif k == 'r' then
  1885. attack = true
  1886. Humanoid.WalkSpeed = 1
  1887. if currentwep == "Pistol" then
  1888. pistolrel()
  1889. elseif currentwep == "Shotgun" then
  1890. shotgunreload()
  1891. elseif currentwep == "Sniper" then
  1892. sniperreload()
  1893. end
  1894. Humanoid.WalkSpeed = 16
  1895. attack = false
  1896. elseif k == 't' then
  1897. switchweps("Pistol")
  1898. elseif k == 'y' then
  1899. switchweps("Shotgun")
  1900. elseif k == 'u' then
  1901. switchweps("Sniper")
  1902. end
  1903. end
  1904. end
  1905. end)
  1906.  
  1907. --coroutine.wrap(function()
  1908. --game:GetService("RunService").RenderStepped:connect(function()
  1909. -- for i,v in pairs(chara:GetDescendants()) do
  1910. -- if v:IsA("BasePart") and v.Parent.Name ~= "FakeHeadM" and v.Name ~= "Head" and v.Parent:IsA("Accessory") == false then
  1911. -- v.LocalTransparencyModifier = 0
  1912. -- end
  1913. -- end
  1914. --end)
  1915. --end)()
  1916.  
  1917. coroutine.wrap(function()
  1918. while 1 do
  1919. swait()
  1920. if doe <= 360 then
  1921. doe = doe + 2
  1922. else
  1923. doe = 0
  1924. end
  1925. end
  1926. end)()
  1927. while true do
  1928. swait()
  1929. while true do
  1930. swait()
  1931. if Head:FindFirstChild("mus")==nil then
  1932. mus = Instance.new("Sound",Head)
  1933. mus.Name = "mus"
  1934. mus.SoundId = "rbxassetid://1205101253"
  1935. mus.Looped = true
  1936. mus.Volume = 1
  1937. mus:Play()
  1938. end
  1939. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  1940. velocity = RootPart.Velocity.y
  1941. sine = sine + change
  1942. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
  1943. if RootPart.Velocity.y > 1 and hit == nil then
  1944. Anim = "Jump"
  1945. if attack == false then
  1946. PlayAnimationFromTable({
  1947. CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  1948. CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855),
  1949. CFrame.new(1.20945489, -0.213504896, 3.55388607e-07, 0.939692736, 0.342019916, 1.53461215e-07, -0.342019945, 0.939692736, 1.93715096e-07, -8.56816769e-08, -2.23517418e-07, 1.00000012),
  1950. CFrame.new(-1.20945573, -0.213503733, 5.0439985e-07, 0.939692736, -0.342019916, -1.53461215e-07, 0.342019945, 0.939692736, 1.93715096e-07, 8.56816769e-08, -2.23517418e-07, 1.00000012),
  1951. CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  1952. CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  1953. }, .3, false)
  1954. end
  1955. elseif RootPart.Velocity.y < -1 and hit == nil then
  1956. Anim = "Fall"
  1957. if attack == false then
  1958. PlayAnimationFromTable({
  1959. CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  1960. CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  1961. CFrame.new(1.55285025, 0.466259956, -9.26282269e-08, 0.766043842, -0.642788351, -6.46188241e-08, 0.642788291, 0.766043961, -7.4505806e-08, 1.04308128e-07, 1.49011612e-08, 1.00000012),
  1962. CFrame.new(-1.5605253, 0.475036323, -2.10609159e-07, 0.766043842, 0.642788351, 6.46188241e-08, -0.642788291, 0.766043961, -7.4505806e-08, -1.04308128e-07, 1.49011612e-08, 1.00000012),
  1963. CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  1964. CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  1965. }, .3, false)
  1966. end
  1967. elseif Torsovelocity < 1 and hit ~= nil then
  1968. Anim = "Idle"
  1969. if attack == false then
  1970. change = 1
  1971. if currentwep == "Knife" then
  1972. PlayAnimationFromTable({
  1973. CFrame.new(0.0746685266, -0.199986786, 0.0124222934, 0.766045094, -9.74504874e-05, 0.642788053, 2.38779321e-05, 1, 0.000123149191, -0.64278698, -7.8932324e-05, 0.766041338) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  1974. CFrame.new(0.0141649693, 1.48263907, -0.132771969, 0.766045034, 0.111642726, -0.633017421, -9.78431926e-05, 0.984821558, 0.173570558, 0.642788112, -0.132900283, 0.754424751),
  1975. CFrame.new(0.496542722, 0.915112793, -0.579361618, -2.45400588e-06, 0.866030455, 0.499991298, 1, 6.99437805e-06, -7.20722892e-06, -9.73872375e-06, 0.499992907, -0.866027057),
  1976. CFrame.new(-0.853593588, 0.548475266, -0.539758563, -2.98023224e-06, -0.500000715, -0.866025209, -0.939693391, 0.296197772, -0.171006888, 0.342017472, 0.813794196, -0.469849944),
  1977. CFrame.new(0.628544927, -1.80001187, -0.15317668, 0.766045034, -1.95977918e-07, -0.642787039, 1.56815432e-07, 1, -1.17666787e-07, 0.642788112, -1.05792424e-08, 0.766041219) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
  1978. CFrame.new(-0.766495645, -1.72321808, 0.461590618, 0.86602658, 0.249998271, -0.433011591, 4.77322828e-07, 0.866025925, 0.499999166, 0.49999994, -0.433010906, 0.749998212) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
  1979. }, .3, false)
  1980. elseif currentwep == "Pistol" then
  1981. PlayAnimationFromTable({
  1982. CFrame.new(0, 0, 0, 0.499999166, -7.89761714e-07, 0.866025329, 1.24944251e-08, 1.00000143, -9.25385962e-07, -0.866025865, -4.76837158e-07, 0.499998331) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  1983. CFrame.new(1.41561031e-06, 1.49998701, 1.01327896e-06, 0.49240312, 0.0868238658, -0.866025865, -0.173648998, 0.984809101, -4.76837158e-07, 0.852868617, 0.150382623, 0.499998331),
  1984. CFrame.new(1.67497301, 0.733016193, 0.303117812, 0.433011949, -0.866025865, 0.249999687, 0.500000238, -4.76837158e-07, -0.866026938, 0.749999404, 0.499998331, 0.433013648),
  1985. CFrame.new(-1.49999261, -3.8444914e-06, 7.30986267e-06, 0.939692736, 0.342020005, 1.78813934e-07, -0.342020422, 0.939693928, 1.06019513e-06, 1.1920929e-06, -2.65240669e-06, 0.999999046),
  1986. CFrame.new(0.499994516, -2.00000048, 1.52587891e-05, 0.766043723, 1.24944251e-08, -0.642788589, -5.80049061e-07, 1.00000143, -7.07089043e-07, 0.642788231, -9.25385962e-07, 0.766042709) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
  1987. CFrame.new(-0.499984771, -1.99999857, 9.37584991e-06, 1, 1.24944251e-08, 2.08616257e-07, 1.24944251e-08, 1.00000143, -9.25385962e-07, 2.08616257e-07, -9.25385962e-07, 0.999999046) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
  1988. }, .3, false)
  1989. elseif currentwep == "Shotgun" then
  1990. PlayAnimationFromTable({
  1991. CFrame.new(-0.0426620394, 2.51418419e-06, -0.0246679522, 0.500000179, 5.2477586e-05, -0.866025448, -3.59067781e-05, 1, 3.98651027e-05, 0.866025448, 1.11636218e-05, 0.500000179) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  1992. CFrame.new(0.0426683947, 1.49997485, -0.0245293416, 0.500000179, -3.59067781e-05, 0.866025448, 5.2477586e-05, 1, 1.11636218e-05, -0.866025448, 3.98651027e-05, 0.500000179),
  1993. CFrame.new(1.00722325, 0.250857353, -0.795783043, 0.500129044, 0.865951002, 8.28499979e-05, 0.000158182564, 4.31700028e-06, -1, -0.865951002, 0.500129044, -0.000134819289),
  1994. CFrame.new(-1.26435232, 0.136160329, -1.06736159, 0.0593797639, 0.336818933, 0.939695358, 0.984803379, -0.173673585, 2.03969612e-05, 0.163207144, 0.925413907, -0.342013031),
  1995. CFrame.new(0.500045896, -2.00000477, 1.52588036e-05, 1.00000024, 3.63797881e-12, 0, 3.63797881e-12, 1, -5.45696821e-12, 0, -5.45696821e-12, 1.00000024) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
  1996. CFrame.new(-0.500028968, -2.00000453, -1.60932541e-05, 0.5, -1.55070466e-05, 0.866025567, 3.21887783e-05, 1, -6.78202923e-07, -0.866025567, 2.82153978e-05, 0.5) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
  1997. }, .3, false)
  1998. elseif currentwep == "Sniper" then
  1999. PlayAnimationFromTable({
  2000. CFrame.new(3.85120393e-06, -1.10001469, -2.13328894e-06, 0.500000775, -4.97785209e-07, -0.86602819, -6.30748218e-08, 1.00000429, 5.48360163e-07, 0.866023958, 2.05408242e-07, 0.499997199) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
  2001. CFrame.new(2.99547736e-07, 1.49999404, 1.32609884e-07, 0.642788053, 1.99700139e-07, 0.766043067, 8.77411566e-08, 1.00000429, 2.01807097e-07, -0.766047895, 8.84073188e-08, 0.642785251),
  2002. CFrame.new(0.889702976, 0.352095068, -0.842586815, 0.342016101, 0.883022606, 0.321395069, 1.65737663e-06, 0.342022061, -0.939695477, -0.939696133, 0.321387529, 0.116974011),
  2003. CFrame.new(-1.27161205, -0.221690938, -0.73963666, -0.0593927503, 0.331705749, 0.941510677, 0.939696431, 0.336823493, -0.0593884364, -0.336821496, 0.881204367, -0.331710666),
  2004. CFrame.new(0.95132339, -1.22446179, 0.145100519, 0.500000775, -0.866023958, 1.99700139e-07, 3.86582464e-08, -2.05408242e-07, 1.00000429, -0.86602819, -0.499997199, 8.84073188e-08) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
  2005. CFrame.new(-0.75982666, -0.900000334, -0.150002122, 0.500000775, 1.99700139e-07, 0.866023958, 3.86582464e-08, 1.00000429, 2.05408242e-07, -0.86602819, 8.84073188e-08, 0.499997199) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
  2006. }, .3, false)
  2007. end
  2008. end
  2009. elseif Torsovelocity > 2 and hit ~= nil then
  2010. Anim = "Walk"
  2011. if attack == false then
  2012. Humanoid.WalkSpeed = 16
  2013. if currentwep == "Knife" then
  2014. PlayAnimationFromTable({
  2015. CFrame.new(0.0746246725, 1.01619426e-05, 0.0124369636, 0.766044021, -9.74504219e-05, 0.642788172, 2.38778302e-05, 1, 0.000123149352, -0.642788112, -7.89324113e-05, 0.766043961) * CFrame.new(0, 0- .08 * math.cos((sine) / 2.5), 0) * CFrame.Angles(0, math.rad(5*math.cos(sine/5)), 0),
  2016. CFrame.new(0.014163442, 1.48263991, -0.132773906, 0.766043961, 0.111642919, -0.633018553, -9.78431272e-05, 0.984821498, 0.173570558, 0.642788231, -0.13290073, 0.754427373) * CFrame.Angles(0, math.rad(0 - 2.5 * math.cos((sine) / 5)), 0),
  2017. CFrame.new(0.555779755, 0.727167428, -0.545163274, -0.296201736, 0.813801408, 0.499991775, 0.939690292, 0.342026591, -7.70784391e-06, -0.171016783, 0.469835162, -0.866030097),
  2018. CFrame.new(-0.730001986, 0.322316647, -0.685232282, -0.321397692, -0.383022875, -0.866023779, -0.52945435, 0.830923796, -0.171008542, 0.785099864, 0.403558135, -0.469850183),
  2019. CFrame.new(0.435748369, -2.00001574, 0.0766026974, 0.766043961, -1.95868779e-07, -0.642788172, 1.5686895e-07, 1, -1.17754098e-07, 0.642788231, -1.06228981e-08, 0.766043901) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 5)), 0, 0),
  2020. CFrame.new(-0.499964535, -2.00001693, -2.40653753e-05, 0.86602515, -4.59083822e-07, -0.500000417, 4.77219146e-07, 1, -9.15897544e-08, 0.500000477, -1.59285264e-07, 0.86602515) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 5)), 0, 0),
  2021. }, .3, false)
  2022. elseif currentwep == "Pistol" then
  2023. PlayAnimationFromTable({
  2024. CFrame.new(0, 0, 0, 0.499999762, -3.17524768e-06, 0.866023242, 4.99771886e-08, 1.00000572, -3.70154703e-06, -0.866025567, -1.89737557e-06, 0.499996424) * CFrame.new(0, 0- .08 * math.cos((sine) / 2.5), 0) * CFrame.Angles(0, math.rad(5*math.cos(sine/5)), 0),
  2025. CFrame.new(-1.40070915e-06, 1.49999928, -8.10623169e-06, 0.492403686, 0.0868240073, -0.866025567, -0.173652098, 0.984812915, -1.89737557e-06, 0.852867067, 0.150379539, 0.499996424) * CFrame.Angles(0, math.rad(0 - 2.5 * math.cos((sine) / 5)), 0),
  2026. CFrame.new(1.67498815, 0.733019531, 0.303111434, 0.433012426, -0.866025567, 0.24999994, 0.500000298, -1.89737557e-06, -0.866031885, 0.749996185, 0.499996424, 0.433014989),
  2027. CFrame.new(-1.50000703, 1.25168447e-06, 6.29892929e-06, 0.939692795, 0.342020035, 7.74860382e-07, -0.342021823, 0.939697981, -1.71595684e-06, 2.77161598e-06, -5.02169132e-06, 0.999996245),
  2028. CFrame.new(0.41340223, -2.00000691, 0.0500117987, 0.500000358, 4.27572111e-08, -0.866025209, -5.98500174e-06, 1.00000286, -3.46378215e-06, 0.866024017, 3.2134858e-06, 0.499998689) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 5)), 0, 0),
  2029. CFrame.new(-0.549988985, -2.00000405, -0.0865873098, 0.500000358, 4.27572111e-08, -0.866025209, -5.98500174e-06, 1.00000286, -3.46378215e-06, 0.866024017, 3.2134858e-06, 0.499998689) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 5)), 0, 0),
  2030. }, .3, false)
  2031. elseif currentwep == "Shotgun" then
  2032. PlayAnimationFromTable({
  2033. CFrame.new(-0.0426630676, 6.07051561e-07, -0.0246853493, 0.500000179, 5.24788447e-05, -0.866025507, -3.5907171e-05, 1.00000763, 3.98638804e-05, 0.866038442, 1.11629015e-05, 0.500007689) * CFrame.new(0, 0- .08 * math.cos((sine) / 2.5), 0) * CFrame.Angles(0, math.rad(5*math.cos(sine/5)), 0),
  2034. CFrame.new(0.0426706225, 1.49999774, -0.0245324671, 0.500000179, -3.5907171e-05, 0.866038442, 5.24788447e-05, 1.00000763, 1.11629015e-05, -0.866025507, 3.98638804e-05, 0.500007689) * CFrame.Angles(0, math.rad(0 - 2.5 * math.cos((sine) / 5)), 0),
  2035. CFrame.new(1.00722933, 0.250861168, -0.795779645, 0.500129044, 0.865963995, 8.28503107e-05, 0.000158184659, 4.31629815e-06, -1.00000763, -0.865951061, 0.500136554, -0.000134818169),
  2036. CFrame.new(-1.26439309, 0.136162177, -1.06738305, 0.0593814775, 0.336828679, 0.939703763, 0.984810889, -0.173674926, 2.03973486e-05, 0.163208127, 0.925419688, -0.342008293),
  2037. CFrame.new(0.564297915, -2.00001669, -0.0766125619, 0.642791092, -1.60755535e-05, 0.766049147, 2.44625789e-05, 1.00000381, 4.58258e-07, -0.766042113, 1.8443603e-05, 0.642793655) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 5)), 0, 0),
  2038. CFrame.new(-0.413438678, -2.00003505, 0.0499768406, 0.5, -1.5507263e-05, 0.866038561, 3.21898951e-05, 1.00000763, -6.78901415e-07, -0.866025627, 2.82142992e-05, 0.50000751) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 5)), 0, 0),
  2039. }, .3, false)
  2040. elseif currentwep == "Sniper" then
  2041. PlayAnimationFromTable({
  2042. CFrame.new(0, 0, 0, 1, 7.21867011e-13, 0, 7.21867011e-13, 1, 0, 0, 0, 1) * CFrame.new(0, 0- .08 * math.cos((sine) / 2.5), 0) * CFrame.Angles(0, math.rad(0 + 10 * math.cos((sine) / 5)), 0),
  2043. CFrame.new(3.81469818e-06, 1.50000954, 0, 1, 7.21867011e-13, 0, 7.21867011e-13, 1, 0, 0, 0, 1) * CFrame.Angles(0, math.rad(0 - 2.5 * math.cos((sine) / 5)), 0),
  2044. CFrame.new(0.827048123, -0.0171520263, -0.697202504, 0.342014849, 0.925418496, 0.163176477, -0.321393013, 0.278374583, -0.905104458, -0.883024514, 0.257115424, 0.392631322),
  2045. CFrame.new(-1.4085362, 0.219689652, -0.208836868, 0.999541581, 0.0292580184, 0.0077994708, -0.0127596147, 0.640579522, -0.767785847, -0.0274600741, 0.767334282, 0.640659094),
  2046. CFrame.new(0.500015259, -2.00003576, -1.52587891e-05, 1, 7.21867011e-13, 0, 7.21867011e-13, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 5)), 0, 0),
  2047. CFrame.new(-0.499992371, -2.0000248, 0, 1, 7.21867011e-13, 0, 7.21867011e-13, 1, 0, 0, 0, 1) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 5)), 0, 0),
  2048. }, .3, false)
  2049. end
  2050. end
  2051. end
  2052. end
  2053. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement