Advertisement
Christoffer07700Extr

bruh

Oct 15th, 2019
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 125.60 KB | None | 0 0
  1. ------------
  2. --Assassin--
  3. ---------------------------------
  4. --By CKbackup (Sugarie Saffron)--
  5. ---------------------------------
  6.  
  7. wait(1/60)
  8. Effects = { }
  9. local Player = game:service'Players'.LocalPlayer
  10. local chara = Player.Character
  11. local Mouse = Player:GetMouse()
  12. local Humanoid = chara:FindFirstChildOfClass("Humanoid")
  13. local LeftArm = chara["Left Arm"]
  14. local RightArm = chara["Right Arm"]
  15. local LeftLeg = chara["Left Leg"]
  16. local RightLeg = chara["Right Leg"]
  17. local Head = chara.Head
  18. local Torso = chara.Torso
  19. local Camera = workspace.CurrentCamera
  20. local RootPart = chara.HumanoidRootPart
  21. local RootJoint = RootPart.RootJoint
  22. local attack = false
  23. local Anim = 'Idle'
  24. local attacktype = 1
  25. local delays = false
  26. local play = true
  27. local targetted = nil
  28. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  29. local velocity = RootPart.Velocity.y
  30. local sine = 0
  31. local change = 1
  32. local doe = 0
  33. local Create = LoadLibrary("RbxUtility").Create
  34. local debby = game:GetService("Debris")
  35. Humanoid.WalkSpeed = 16
  36.  
  37. local currentwep = "Knife"
  38. local healing = false
  39.  
  40. local pshots = 17
  41. local sshots = 8
  42. local snshots = 10
  43.  
  44. Humanoid.Animator.Parent = nil
  45. chara.Animate.Parent = nil
  46.  
  47. local newMotor = function(part0, part1, c0, c1)
  48. local w = Create('Motor'){
  49. Parent = part0,
  50. Part0 = part0,
  51. Part1 = part1,
  52. C0 = c0,
  53. C1 = c1,
  54. }
  55. return w
  56. end
  57.  
  58. function clerp(a, b, t)
  59. return a:lerp(b, t)
  60. end
  61.  
  62. RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  63. NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  64.  
  65. local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0))
  66. local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
  67. local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
  68. local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
  69. RootJoint.C1 = CFrame.new(0, 0, 0)
  70. RootJoint.C0 = CFrame.new(0, 0, 0)
  71. Torso.Neck.C1 = CFrame.new(0, 0, 0)
  72. Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
  73.  
  74. local rarmc1 = RW.C1
  75. local larmc1 = LW.C1
  76. local rlegc1 = RH.C1
  77. local llegc1 = LH.C1
  78.  
  79. local resetc1 = false
  80.  
  81. function PlayAnimationFromTable(table, speed, bool)
  82. RootJoint.C0 = clerp(RootJoint.C0, table[1], speed)
  83. Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed)
  84. RW.C0 = clerp(RW.C0, table[3], speed)
  85. LW.C0 = clerp(LW.C0, table[4], speed)
  86. RH.C0 = clerp(RH.C0, table[5], speed)
  87. LH.C0 = clerp(LH.C0, table[6], speed)
  88. if bool == true then
  89. if resetc1 == false then
  90. resetc1 = true
  91. RootJoint.C1 = RootJoint.C1
  92. Torso.Neck.C1 = Torso.Neck.C1
  93. RW.C1 = rarmc1
  94. LW.C1 = larmc1
  95. RH.C1 = rlegc1
  96. LH.C1 = llegc1
  97. end
  98. end
  99. end
  100.  
  101. ArtificialHB = Instance.new("BindableEvent", script)
  102. ArtificialHB.Name = "Heartbeat"
  103. script:WaitForChild("Heartbeat")
  104. frame = 0.03333333333333
  105. tf = 0
  106. allowframeloss = false
  107. tossremainder = false
  108. lastframe = tick()
  109. script.Heartbeat:Fire()
  110. game:GetService("RunService").Heartbeat:connect(function(s, p)
  111. tf = tf + s
  112. if tf >= frame then
  113. if allowframeloss then
  114. script.Heartbeat:Fire()
  115. lastframe = tick()
  116. else
  117. for i = 1, math.floor(tf / frame) do
  118. script.Heartbeat:Fire()
  119. end
  120. lastframe = tick()
  121. end
  122. if tossremainder then
  123. tf = 0
  124. else
  125. tf = tf - frame * math.floor(tf / frame)
  126. end
  127. end
  128. end)
  129. function swait(num)
  130. if num == 0 or num == nil then
  131. ArtificialHB.Event:wait()
  132. else
  133. for i = 0, num do
  134. ArtificialHB.Event:wait()
  135. end
  136. end
  137. end
  138.  
  139. local TargetPoint = Vector3.new()
  140. function getNearestGuy()
  141. --local Distance = nil
  142. --for i, v in pairs(workspace:GetDescendants()) do
  143. --if v:IsA("Model") then
  144. --if v:FindFirstChildOfClass("Humanoid") then
  145. --if v:FindFirstChildOfClass("Humanoid").Health > 0 then
  146. --if v:FindFirstChild("Head") then
  147. --if v ~= chara then
  148. --if Distance ~= nil then
  149. --if (v.Head.Position - RootPart.Position).magnitude <= Distance then
  150. --TargetPoint = v.Head.Position - Vector3.new(0,1.5,0)
  151. --end
  152. --elseif Distance == nil then
  153. --Distance = (v.Head.Position - RootPart.Position).magnitude
  154. --TargetPoint = v.Head.Position - Vector3.new(0,1.5,0)
  155. --end
  156. --end
  157. --end
  158. --end
  159. --end
  160. --end
  161. --end
  162. end
  163. local mousemoveevent = script:WaitForChild("MouseMoveEvent")
  164. mousemoveevent.OnServerEvent:connect(function(ply,pos,targ)
  165. if ply == Player then
  166. TargetPoint = pos
  167. end
  168. end)
  169.  
  170. function RemoveOutlines(part)
  171. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  172. end
  173.  
  174. function so(id,par,pit,vol)
  175. local sou = Instance.new("Sound", par or workspace)
  176. if par == chara then
  177. sou.Parent = chara.Torso
  178. end
  179. sou.Volume = vol
  180. sou.Pitch = pit or 1
  181. sou.SoundId = "rbxassetid://" .. id
  182. sou.PlayOnRemove = true
  183. sou:Destroy()
  184. end
  185.  
  186. --This is just for builds--
  187. New = function(Object, Parent, Name, Data)
  188. local Object = Instance.new(Object)
  189. for Index, Value in pairs(Data or {}) do
  190. Object[Index] = Value
  191. end
  192. Object.Parent = Parent
  193. Object.Name = Name
  194. return Object
  195. end
  196.  
  197. 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,})
  198. 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,})
  199. 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),})
  200. 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,})
  201. 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),})
  202.  
  203. 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,})
  204. 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,})
  205. 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),})
  206. 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,})
  207. 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),})
  208.  
  209. 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,})
  210. 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,})
  211. 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),})
  212. 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,})
  213. 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,})
  214. 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),})
  215. 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,})
  216. 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),})
  217. 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,})
  218. 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),})
  219.  
  220. 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),})
  221. Mesh = New("SpecialMesh",Knife,"Mesh",{MeshId = "rbxassetid://121944778",TextureId = "rbxassetid://121944805",MeshType = Enum.MeshType.FileMesh,})
  222. 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),})
  223. 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),})
  224. Mesh = New("SpecialMesh",Knife2,"Mesh",{MeshId = "rbxassetid://121944778",TextureId = "rbxassetid://121944805",MeshType = Enum.MeshType.FileMesh,})
  225. 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),})
  226.  
  227. 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),})
  228. Mesh = New("SpecialMesh",SheathPart,"Mesh",{Scale = Vector3.new(0.419999987, 2.5, 5),MeshId = "rbxassetid://504776834",MeshType = Enum.MeshType.FileMesh,})
  229. 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),})
  230. 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),})
  231. Mesh = New("SpecialMesh",KnifeH,"Mesh",{MeshId = "rbxassetid://121944778",TextureId = "rbxassetid://121944805",MeshType = Enum.MeshType.FileMesh,})
  232. 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),})
  233. 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,})
  234. 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,})
  235. 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),})
  236. 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,})
  237. 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,})
  238. 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),})
  239. 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,})
  240. 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,})
  241. 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),})
  242.  
  243. Knife2.Transparency = 1
  244. Pistol2Part.Transparency = 1
  245. PistolPart.Transparency = 1
  246. ShottyPart.Transparency = 1
  247. SniperPart.Transparency = 1
  248. KnifeH.Transparency = 1
  249.  
  250. function CreateTrailObj(parent,color1,color2,ofsx,ofsz)
  251. local Att1 = New("Attachment",parent,"Att1",{Position = Vector3.new(ofsx,parent.Size.Y/2,ofsz)})
  252. local Att2 = New("Attachment",parent,"Att2",{Position = Vector3.new(ofsx,-(parent.Size.Y/2),ofsz)})
  253. 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})
  254. return TEff
  255. end
  256.  
  257. LLTr = CreateTrailObj(LeftLeg,"White","White",0,0)
  258. RLTr = CreateTrailObj(RightLeg,"White","White",0,0)
  259. LATr = CreateTrailObj(LeftArm,"White","White",0,0)
  260. RATr = CreateTrailObj(RightArm,"White","White",0,0)
  261.  
  262. local p1mit = Instance.new("ParticleEmitter",Knife)
  263. p1mit.Texture = "rbxasset://textures/particles/fire_main.dds"
  264. p1mit.Color = ColorSequence.new(Color3.new(.6,0,0))
  265. p1mit.Size = NumberSequence.new(1,0)
  266. p1mit.Lifetime = NumberRange.new(2)
  267. p1mit.Rate = 0
  268. p1mit.Enabled = false
  269. p1mit.Acceleration = Vector3.new(0,-10,0)
  270. p1mit.Rotation = NumberRange.new(0,359)
  271. p1mit.Speed = NumberRange.new(0)
  272. p1mit.Enabled = false
  273. local p2mit = p1mit:Clone()
  274. p2mit.Parent = Knife2
  275.  
  276. local tr1
  277. local tr2
  278. spawn(function()
  279. local Att1 = New("Attachment",Knife,"Att1",{Position = Vector3.new(0,1.3,.2)})
  280. local Att2 = New("Attachment",Knife,"Att2",{Position = Vector3.new(0,-.5,.2)})
  281. tr1 = New("Trail",Knife,"TrailEff",{Color = ColorSequence.new(Color3.new(.8,.8,.8)),Transparency = NumberSequence.new(0,1),Attachment0 = Att1,Attachment1 = Att2,Enabled = false,Lifetime = .5,MinLength = .001})
  282. end)
  283.  
  284. spawn(function()
  285. local Att1 = New("Attachment",Knife2,"Att1",{Position = Vector3.new(0,1.3,.2)})
  286. local Att2 = New("Attachment",Knife2,"Att2",{Position = Vector3.new(0,-.5,.2)})
  287. 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})
  288. end)
  289.  
  290. local scr = Instance.new("ScreenGui",Player:FindFirstChildOfClass("PlayerGui"))
  291. local fr1 = Instance.new("Frame",scr)
  292. fr1.AnchorPoint = Vector2.new(1,.5)
  293. fr1.BackgroundTransparency = 1
  294. fr1.BorderSizePixel = 0
  295. fr1.Position = UDim2.new(1,0,.6,0)
  296. fr1.Size = UDim2.new(0,150,0,200)
  297.  
  298. local imgbase = Instance.new("ImageLabel")
  299. imgbase.BackgroundTransparency = 1
  300. imgbase.BorderSizePixel = 0
  301. imgbase.Size = UDim2.new(0,50,0,50)
  302. imgbase.ImageColor3 = Color3.new(.3,.3,.3)
  303.  
  304. local img1 = imgbase:Clone()
  305. img1.Parent = fr1
  306. img1.Image = "rbxassetid://949752421"
  307. img1.ImageColor3 = Color3.new(1,1,1)
  308. local img2 = imgbase:Clone()
  309. img2.Parent = fr1
  310. img2.Position = UDim2.new(0,0,0,50)
  311. img2.Image = "rbxassetid://97886725"
  312. local img3 = imgbase:Clone()
  313. img3.Parent = fr1
  314. img3.Position = UDim2.new(0,0,0,100)
  315. img3.Image = "rbxassetid://31929291"
  316. local img4 = imgbase:Clone()
  317. img4.Parent = fr1
  318. img4.Position = UDim2.new(0,0,0,150)
  319. img4.Image = "rbxassetid://39422857"
  320.  
  321. imgbase:Destroy()
  322.  
  323. local txtbase = Instance.new("TextLabel")
  324. txtbase.BackgroundTransparency = 1
  325. txtbase.BorderSizePixel = 0
  326. txtbase.Size = UDim2.new(0,100,0,50)
  327. txtbase.Font = "Highway"
  328. txtbase.TextSize = 30
  329. txtbase.TextColor3 = Color3.new(.3,.3,.3)
  330. txtbase.TextStrokeColor3 = Color3.new(0,0,0)
  331. txtbase.TextStrokeTransparency = 0
  332.  
  333. local txt1 = txtbase:Clone()
  334. txt1.Parent = fr1
  335. txt1.Text = "∞"
  336. txt1.TextSize = 60
  337. txt1.TextColor3 = Color3.new(1,1,1)
  338. txt1.Position = UDim2.new(0,50,0,0)
  339. local txt2 = txtbase:Clone()
  340. txt2.Parent = fr1
  341. txt2.Text = "17/17"
  342. txt2.Position = UDim2.new(0,50,0,50)
  343. local txt3 = txtbase:Clone()
  344. txt3.Parent = fr1
  345. txt3.Text = "8/8"
  346. txt3.Position = UDim2.new(0,50,0,100)
  347. local txt4 = txtbase:Clone()
  348. txt4.Parent = fr1
  349. txt4.Text = "10/10"
  350. txt4.Position = UDim2.new(0,50,0,150)
  351.  
  352. txtbase:Destroy()
  353.  
  354. local fr2 = Instance.new("Frame",scr)
  355. fr2.AnchorPoint = Vector2.new(.5,.5)
  356. fr2.BackgroundColor3 = Color3.new(0,0,0)
  357. fr2.BorderColor3 = Color3.new(0,0,0)
  358. fr2.BorderSizePixel = 5
  359. fr2.Position = UDim2.new(.5,0,.8,0)
  360. fr2.Size = UDim2.new(0,300,0,30)
  361.  
  362. local hpbar = Instance.new("Frame",fr2)
  363. hpbar.BackgroundColor3 = Color3.new(0,1,0)
  364. hpbar.BorderSizePixel = 0
  365. hpbar.Size = UDim2.new(1,0,1,0)
  366. local hptext = Instance.new("TextLabel",fr2)
  367. hptext.BackgroundTransparency = 1
  368. hptext.BorderSizePixel = 0
  369. hptext.LayoutOrder = -1
  370. hptext.Size = UDim2.new(0,100,1,0)
  371. hptext.Font = "Highway"
  372. hptext.Text = " + 100"
  373. hptext.TextColor3 = Color3.new(1,1,1)
  374. hptext.TextSize = 30
  375. hptext.TextXAlignment = "Left"
  376.  
  377. coroutine.wrap(function()
  378. while true do
  379. swait()
  380. txt2.Text = pshots.."/17"
  381. txt3.Text = sshots.."/8"
  382. txt4.Text = snshots.."/10"
  383. end
  384. end)()
  385.  
  386. coroutine.wrap(function()
  387. while true do
  388. swait()
  389. local hp = Humanoid.Health
  390. local mhp = Humanoid.MaxHealth
  391. hpbar.Size = UDim2.new(hp/mhp,0,1,0)
  392. if healing == false then
  393. hpbar.BackgroundColor3 = Color3.new(1-(hp/mhp),hp/mhp,0)
  394. else
  395. hpbar.BackgroundColor3 = Color3.new(1,1,0)
  396. end
  397. hptext.Text = " + "..(math.floor(hp))
  398. end
  399. end)()
  400.  
  401. local li = Instance.new("SpotLight",Head)
  402. li.Angle = 90
  403. li.Brightness = 50
  404. li.Shadows = true
  405. li.Range = 30
  406. li.Enabled = false
  407.  
  408. function rayCast(Position, Direction, Range, Ignore)
  409. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  410. end
  411.  
  412. function FindNearestTorso(Position, Distance, SinglePlayer)
  413. if SinglePlayer then
  414. return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
  415. end
  416. local List = {}
  417. for i, v in pairs(workspace:GetDescendants()) do
  418. if v:IsA("Model") then
  419. if v:findFirstChild("Head") then
  420. if v ~= chara then
  421. if (v.Head.Position - Position).magnitude <= Distance then
  422. table.insert(List, v)
  423. end
  424. end
  425. end
  426. end
  427. end
  428. return List
  429. end
  430.  
  431. EffectModel = Create("Model"){
  432. Parent = chara,
  433. Name = "Effects",
  434. }
  435.  
  436. --Effect Functions--
  437. Effects = {
  438.  
  439. Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
  440. local p = Instance.new("Part",EffectModel)
  441. p.BrickColor = BrickColor.new(colour)
  442. p.Size = partsize
  443. p.Anchored = true
  444. p.CanCollide = false
  445. p.Material = matr
  446. p.CFrame = cf
  447. if inverse == true then
  448. p.Transparency = 1
  449. else
  450. p.Transparency = 0
  451. end
  452. local m = Instance.new("BlockMesh",p)
  453. m.Scale = meshstart
  454. coroutine.wrap(function()
  455. for i=0,1,factor do
  456. swait()
  457. if inverse == true then
  458. p.Transparency = 1-i
  459. else
  460. p.Transparency = i
  461. end
  462. m.Scale = m.Scale + meshadd
  463. if spin == true then
  464. p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  465. end
  466. end
  467. p:Destroy()
  468. end)()
  469. return p
  470. end,
  471.  
  472. Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  473. local p = Instance.new("Part",EffectModel)
  474. p.BrickColor = BrickColor.new(colour)
  475. p.Size = partsize
  476. p.Anchored = true
  477. p.CanCollide = false
  478. p.Material = matr
  479. p.CFrame = cf
  480. if inverse == true then
  481. p.Transparency = 1
  482. else
  483. p.Transparency = 0
  484. end
  485. local m = Instance.new("SpecialMesh",p)
  486. m.MeshType = "Sphere"
  487. m.Scale = meshstart
  488. coroutine.wrap(function()
  489. for i=0,1,factor do
  490. swait()
  491. if inverse == true then
  492. p.Transparency = 1-i
  493. else
  494. p.Transparency = i
  495. end
  496. m.Scale = m.Scale + meshadd
  497. end
  498. p:Destroy()
  499. end)()
  500. return p
  501. end,
  502.  
  503. Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
  504. local p = Instance.new("Part",EffectModel)
  505. p.BrickColor = BrickColor.new(colour)
  506. p.Size = partsize
  507. p.Anchored = true
  508. p.CanCollide = false
  509. p.Material = matr
  510. p.CFrame = cf
  511. if inverse == true then
  512. p.Transparency = 1
  513. else
  514. p.Transparency = 0
  515. end
  516. local m = Instance.new("CylinderMesh",p)
  517. m.Scale = meshstart
  518. coroutine.wrap(function()
  519. for i=0,1,factor do
  520. swait()
  521. if inverse == true then
  522. p.Transparency = 1-i
  523. else
  524. p.Transparency = i
  525. end
  526. m.Scale = m.Scale + meshadd
  527. end
  528. p:Destroy()
  529. end)()
  530. return p
  531. end,
  532.  
  533. Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
  534. local p = Instance.new("Part",EffectModel)
  535. p.BrickColor = BrickColor.new(colour)
  536. p.Size = Vector3.new()
  537. p.Anchored = true
  538. p.CanCollide = false
  539. p.CFrame = cf
  540. if inverse == true then
  541. p.Transparency = 1
  542. else
  543. p.Transparency = 0
  544. end
  545. local m = Instance.new("SpecialMesh",p)
  546. m.MeshId = "rbxassetid://20329976"
  547. m.Scale = meshstart
  548. coroutine.wrap(function()
  549. for i=0,1,factor do
  550. swait()
  551. if inverse == true then
  552. p.Transparency = 1-i
  553. else
  554. p.Transparency = i
  555. end
  556. m.Scale = m.Scale + meshadd
  557. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  558. end
  559. p:Destroy()
  560. end)()
  561. return p
  562. end,
  563.  
  564. Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
  565. local p = Instance.new("Part",EffectModel)
  566. p.BrickColor = BrickColor.new(colour)
  567. p.Size = Vector3.new()
  568. p.Anchored = true
  569. p.CanCollide = false
  570. p.CFrame = cf
  571. if inverse == true then
  572. p.Transparency = 1
  573. else
  574. p.Transparency = 0
  575. end
  576. local m = Instance.new("SpecialMesh",p)
  577. m.MeshId = "rbxassetid://3270017"
  578. m.Scale = meshstart
  579. coroutine.wrap(function()
  580. for i=0,1,factor do
  581. swait()
  582. if inverse == true then
  583. p.Transparency = 1-i
  584. else
  585. p.Transparency = i
  586. end
  587. m.Scale = m.Scale + meshadd
  588. end
  589. p:Destroy()
  590. end)()
  591. return p
  592. end,
  593.  
  594. Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
  595. local p = Instance.new("Part",EffectModel)
  596. p.BrickColor = BrickColor.new(colour)
  597. p.Size = Vector3.new()
  598. p.Anchored = true
  599. p.CanCollide = false
  600. p.CFrame = cf
  601. if inverse == true then
  602. p.Transparency = 1
  603. else
  604. p.Transparency = 0
  605. end
  606. local m = Instance.new("SpecialMesh",p)
  607. m.MeshId = meshid
  608. m.TextureId = textid
  609. m.Scale = meshstart
  610. coroutine.wrap(function()
  611. for i=0,1,factor do
  612. swait()
  613. if inverse == true then
  614. p.Transparency = 1-i
  615. else
  616. p.Transparency = i
  617. end
  618. m.Scale = m.Scale + meshadd
  619. p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
  620. end
  621. p:Destroy()
  622. end)()
  623. return p
  624. end,
  625.  
  626. Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
  627. local p = Instance.new("Part",EffectModel)
  628. p.BrickColor = BrickColor.new(colour)
  629. p.Size = partsize
  630. p.Anchored = true
  631. p.CanCollide = false
  632. p.Material = matr
  633. p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
  634. if inverse == true then
  635. p.Transparency = 1
  636. else
  637. p.Transparency = 0
  638. end
  639. local m = Instance.new("SpecialMesh",p)
  640. m.MeshType = "Sphere"
  641. m.Scale = meshstart
  642. coroutine.wrap(function()
  643. for i=0,1,factor do
  644. swait()
  645. if inverse == true then
  646. p.Transparency = 1-i
  647. else
  648. p.Transparency = i
  649. end
  650. m.Scale = m.Scale + meshadd
  651. p.CFrame = p.CFrame * CFrame.new(0,move,0)
  652. end
  653. p:Destroy()
  654. end)()
  655. return p
  656. end,
  657.  
  658. }
  659.  
  660. function GetDudesTorso(c)
  661. local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
  662. if torsy ~= nil then
  663. return torsy
  664. end
  665. end
  666.  
  667. function BodyVel(part,faws)
  668. local bodyvel = Instance.new("BodyVelocity",part)
  669. local pep = 10000000
  670. bodyvel.P = pep
  671. bodyvel.MaxForce = Vector3.new(pep,pep,pep)
  672. bodyvel.Velocity = faws
  673. debby:AddItem(bodyvel,.2)
  674. end
  675.  
  676. function Dmg(dude,dmg,env,faws,trip,efftyp,toim)
  677. if dude and dude ~= chara then
  678. if dude:FindFirstChild("HITO") then return end
  679. if toim ~= 0 then
  680. local debounce = Instance.new("BoolValue",dude)
  681. debounce.Name = "HITO"
  682. debby:AddItem(debounce,toim)
  683. end
  684. local hum = dude:FindFirstChildOfClass("Humanoid")
  685. local dam = dmg+math.random(-env,env)
  686. local teksu = "-"..dam
  687. if hum then
  688. local finhel = hum.Health - dam
  689. if (finhel <= 0 and dude:FindFirstChild("DEATHED")==nil) or dmg == math.huge or hum.Health > 1000000 then
  690. teksu = "DEATH"
  691. dude:BreakJoints()
  692. Instance.new("BoolValue",dude).Name = "DEATHED"
  693. if hum.RigType == Enum.HumanoidRigType.R6 then
  694. local raggy = script.RagdollScript:Clone()
  695. raggy.Parent = dude
  696. raggy.Disabled = false
  697. elseif hum.RigType == Enum.HumanoidRigType.R15 then
  698. local raggy = script.R15RagdollScript:Clone()
  699. raggy.Parent = dude
  700. raggy.Disabled = false
  701. end
  702. --local soaa = Instance.new("Sound",dude.Head)
  703. --local cho = math.random(1,5)
  704. --if cho == 1 then
  705. --soaa.SoundId = "rbxassetid://111896685"
  706. --elseif cho == 2 then
  707. --soaa.SoundId = "rbxassetid://535528169"
  708. --elseif cho == 3 then
  709. --soaa.SoundId = "rbxassetid://1080363252"
  710. --elseif cho == 4 then
  711. --soaa.SoundId = "rbxassetid://147758746"
  712. --elseif cho == 5 then
  713. --soaa.SoundId = "rbxassetid://626777433"
  714. --soaa.Volume = .2
  715. --soaa.TimePosition = 1
  716. --end
  717. --game:service'Debris':AddItem(soaa,6)
  718. --soaa:Play()
  719. end
  720. if dmg ~= math.huge then
  721. hum.Health = hum.Health - dam
  722. end
  723. end
  724. coroutine.wrap(function()
  725. local naeeym2 = Instance.new("BillboardGui",dude)
  726. naeeym2.Size = UDim2.new(0,100,0,40)
  727. naeeym2.StudsOffset = Vector3.new(0,3,0)
  728. naeeym2.Adornee = dude:FindFirstChild("Head")
  729. naeeym2.Name = "TalkingBillBoard"
  730. local tecks2 = Instance.new("TextLabel",naeeym2)
  731. tecks2.BackgroundTransparency = 1
  732. tecks2.BorderSizePixel = 0
  733. tecks2.Text = teksu
  734. tecks2.Font = "Fantasy"
  735. tecks2.TextSize = 24
  736. tecks2.TextStrokeTransparency = 0
  737. tecks2.TextColor3 = Color3.new(1,1,1)
  738. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  739. tecks2.Size = UDim2.new(1,0,0.5,0)
  740. swait(10)
  741. for i = 0,1,.05 do
  742. swait()
  743. tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
  744. tecks2.TextStrokeTransparency = i
  745. tecks2.TextTransparency = i
  746. end
  747. naeeym2:Destroy()
  748. end)()
  749. local torsy = GetDudesTorso(dude)
  750. if torsy then
  751. local amtt = dam/5
  752. if amtt > 30 then
  753. amtt = 30
  754. end
  755. --for i=1,amtt do
  756. --local blp = Instance.new("Part",workspace)
  757. --blp.Size = Vector3.new(.3,.3,.3)
  758. --blp.BrickColor = BrickColor.new("Crimson")
  759. --blp.CFrame = torsy.CFrame*CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  760. --blp.Velocity = torsy.CFrame.lookVector*math.random(-8,-8) + torsy.CFrame.rightVector*math.random(-8,8) + Vector3.new(0,math.random(0,5),0)
  761. --blp.RotVelocity = Vector3.new(math.random(-15,15),math.random(-15,15),math.random(-15,15))
  762. ----local blm = Instance.new("SpecialMesh",blp)
  763. ----blm.MeshType = "Sphere"
  764. --coroutine.wrap(function()
  765. --swait(10)
  766. --blp.Orientation = Vector3.new(0,blp.Orientation.y,0)
  767. --for i=0,1,.1 do
  768. --swait()
  769. --blp.Transparency = i
  770. --blp.Size = blp.Size + Vector3.new(.05,-.05,.05)
  771. --end
  772. --blp:Destroy()
  773. --end)()
  774. --end
  775. if efftyp == "Blunt" then
  776. puncheff(torsy)
  777. elseif efftyp == "Sharp" then
  778. slasheff(torsy)
  779. coroutine.wrap(function()
  780. if Knife.Transparency == 0 then
  781. p1mit.Enabled = true
  782. swait(10)
  783. p1mit.Enabled = false
  784. elseif Knife2.Transparency == 0 then
  785. p2mit.Enabled = true
  786. swait(10)
  787. p2mit.Enabled = false
  788. end
  789. end)()
  790. elseif efftyp == "Shot" then
  791. so(144884872,torsy,.9,1)
  792. end
  793. if faws ~= 0 then
  794. BodyVel(torsy,faws)
  795. end
  796. if trip == true then
  797. torsy.CFrame = torsy.CFrame * CFrame.Angles(math.rad(-90),0,0)
  798. torsy.RotVelocity = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  799. end
  800. end
  801. end
  802. end
  803.  
  804. function MagnitudeDmg(par,magni,dmg,env,faws,trip,efftyp,toim)
  805. for _, c in pairs(workspace:GetDescendants()) do
  806. local hum = c:FindFirstChildOfClass("Humanoid")
  807. if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then
  808. local head = GetDudesTorso(c)
  809. if head ~= nil then
  810. local targ = head.Position - par.Position
  811. local mag = targ.magnitude
  812. if magni >= mag and c ~= chara then
  813. Dmg(c,dmg,env,faws,trip,efftyp,toim)
  814. end
  815. end
  816. end
  817. end
  818. end
  819.  
  820. function CamShake(par,magni,env,dur)
  821. for _, c in pairs(workspace:GetDescendants()) do
  822. local hum = c:FindFirstChildOfClass("Humanoid")
  823. if hum ~= nil and c:FindFirstChild("SHAKE")==nil then
  824. local head = GetDudesTorso(c)
  825. if head ~= nil then
  826. local targ = head.Position - par.Position
  827. local mag = targ.magnitude
  828. if magni >= mag then
  829. local sheiku = script:FindFirstChild("SHAKE"):Clone()
  830. sheiku.Parent = c
  831. sheiku:FindFirstChild("Env").Value = env
  832. sheiku:FindFirstChild("Dur").Value = dur
  833. sheiku.Disabled = false
  834. end
  835. end
  836. end
  837. end
  838. end
  839.  
  840. function puncheff(par)
  841. if par.Parent:FindFirstChild("DebounceHit")==nil then
  842. so(386946017,par,math.random(80,120)/100,1)
  843. Effects.Sphere(par.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(.1,.1,.1),"Neon","White",false,.1)
  844. end
  845. end
  846.  
  847. function slasheff(par)
  848. if par.Parent:FindFirstChild("DebounceHit")==nil then
  849. local cho = math.random(1,3)
  850. --if cho == 1 then
  851. --so(444667824,par,1,1)
  852. --elseif cho == 2 then
  853. --so(444667844,par,1,1)
  854. --elseif cho == 3 then
  855. so(444667859,par,1,1)
  856. --end
  857. --function(cf,partsize,meshstart,meshadd,matr,colour,factor)
  858. 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)
  859. CamShake(par,3,.3,.5)
  860. end
  861. end
  862.  
  863. local mus = Instance.new("Sound",Head)
  864. mus.Name = "mus"
  865. mus.SoundId = "rbxassetid://1205101253"
  866. mus.Looped = true
  867. mus.Volume = 1
  868. mus:Play()
  869.  
  870. function pistolrel()
  871. so(1550642637,RightArm,1,1)
  872. for i=0,1,.1 do
  873. swait()
  874. PlayAnimationFromTable({
  875. 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),
  876. 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),
  877. 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),
  878. 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),
  879. 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),
  880. 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),
  881. }, .4, false)
  882. end
  883. for i=0,1,.1 do
  884. swait()
  885. PlayAnimationFromTable({
  886. CFrame.new(0, 0, 0, 1, -1.52100554e-13, 0, -1.52100554e-13, 1, 0, 0, 0, 1),
  887. 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),
  888. 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),
  889. 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),
  890. 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),
  891. 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),
  892. }, .4, false)
  893. end
  894. so(1550643261,RightArm,1,1)
  895. pshots = 17
  896. end
  897.  
  898. function shotgunreload()
  899. for ab=1,8-sshots do
  900. for i=0,1,.25 do
  901. swait()
  902. PlayAnimationFromTable({
  903. 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),
  904. 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),
  905. 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),
  906. 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),
  907. 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),
  908. 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),
  909. }, .4, false)
  910. end
  911. so(254833667,RightArm,1,1)
  912. for i=0,1,.25 do
  913. swait()
  914. PlayAnimationFromTable({
  915. CFrame.new(0, 0, 0, 1, -1.52100554e-13, 0, -1.52100554e-13, 1, 0, 0, 0, 1),
  916. 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),
  917. 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),
  918. 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),
  919. 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),
  920. 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),
  921. }, .4, false)
  922. end
  923. end
  924. sshots = 8
  925. end
  926.  
  927. function sniperreload()
  928. so(231020282,RightArm,1,1)
  929. for i=0,3,.1 do
  930. swait()
  931. PlayAnimationFromTable({
  932. 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),
  933. 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),
  934. 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),
  935. 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),
  936. CFrame.new(0.951329529, -1.22445107, 0.145094752, 0.499998987, -0.866025984, 0, 0, 0, 1, -0.866025984, -0.499998987, 0),
  937. CFrame.new(-0.75982517, -0.899992943, -0.150008053, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987),
  938. }, .1, false)
  939. end
  940. for i=0,.5,.1 do
  941. swait()
  942. PlayAnimationFromTable({
  943. 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),
  944. 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),
  945. 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),
  946. 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),
  947. CFrame.new(0.951331437, -1.22445107, 0.145091444, 0.499998987, -0.866025984, 0, 0, 0, 1, -0.866025984, -0.499998987, 0),
  948. CFrame.new(-0.759816706, -0.899992943, -0.150007531, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987),
  949. }, .2, false)
  950. end
  951. so(293309896,RightArm,1,1)
  952. for i=0,1.5,.1 do
  953. swait()
  954. PlayAnimationFromTable({
  955. 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),
  956. 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),
  957. 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),
  958. 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),
  959. CFrame.new(0.951331437, -1.22445107, 0.145091444, 0.499998987, -0.866025984, 0, 0, 0, 1, -0.866025984, -0.499998987, 0),
  960. CFrame.new(-0.759816706, -0.899992943, -0.150007531, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987),
  961. }, .2, false)
  962. end
  963. snshots = 10
  964. end
  965.  
  966. function switchweps(chosen)
  967. attack = true
  968. Humanoid.WalkSpeed = 1
  969. if currentwep == "Knife" then
  970. for i=0,1,.1 do
  971. swait()
  972. PlayAnimationFromTable({
  973. 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),
  974. 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),
  975. 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),
  976. 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),
  977. 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),
  978. 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),
  979. }, .3, false)
  980. end
  981. so(211134014,Knife,1,1)
  982. elseif currentwep == "Pistol" then
  983. for i=0,1,.1 do
  984. swait()
  985. PlayAnimationFromTable({
  986. 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),
  987. 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),
  988. 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),
  989. 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),
  990. 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),
  991. 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),
  992. }, .3, false)
  993. end
  994. elseif currentwep == "Shotgun" then
  995. for i=0,1,.1 do
  996. swait()
  997. PlayAnimationFromTable({
  998. 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),
  999. 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),
  1000. 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),
  1001. 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),
  1002. 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),
  1003. 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),
  1004. }, .3, false)
  1005. end
  1006. elseif currentwep == "Sniper" then
  1007. for i=0,1,.1 do
  1008. swait()
  1009. PlayAnimationFromTable({
  1010. CFrame.new(0, 0, 0, 1.00000012, -4.51194637e-12, 0, -4.51194637e-12, 1.00000012, 0, 0, 0, 1),
  1011. 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),
  1012. 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),
  1013. 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),
  1014. CFrame.new(0.500061095, -2.00012088, 2.28881836e-05, 1.00000012, -4.51194637e-12, 0, -4.51194637e-12, 1.00000012, 0, 0, 0, 1),
  1015. CFrame.new(-0.499973357, -2.0001204, -5.34057617e-05, 1.00000012, -4.51194637e-12, 0, -4.51194637e-12, 1.00000012, 0, 0, 0, 1),
  1016. }, .3, false)
  1017. end
  1018. end
  1019.  
  1020. Knife.Transparency = 1
  1021. PistolPart.Transparency = 1
  1022. ShottyPart.Transparency = 1
  1023. SniperPart.Transparency = 1
  1024.  
  1025. KnifeH.Transparency = 0
  1026. PistolH.Transparency = 0
  1027. ShottyH.Transparency = 0
  1028. SniperH.Transparency = 0
  1029.  
  1030. txt1.TextColor3 = Color3.new(.3,.3,.3)
  1031. txt2.TextColor3 = Color3.new(.3,.3,.3)
  1032. txt3.TextColor3 = Color3.new(.3,.3,.3)
  1033. txt4.TextColor3 = Color3.new(.3,.3,.3)
  1034. img1.ImageColor3 = Color3.new(.3,.3,.3)
  1035. img2.ImageColor3 = Color3.new(.3,.3,.3)
  1036. img3.ImageColor3 = Color3.new(.3,.3,.3)
  1037. img4.ImageColor3 = Color3.new(.3,.3,.3)
  1038.  
  1039. if currentwep == chosen then
  1040. for i=0,1,.1 do
  1041. swait()
  1042. PlayAnimationFromTable({
  1043. 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),
  1044. 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),
  1045. 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),
  1046. 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),
  1047. 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),
  1048. 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),
  1049. }, .3, false)
  1050. end
  1051. so(211059653,Knife,1,1)
  1052. KnifeH.Transparency = 1
  1053. Knife.Transparency = 0
  1054. txt1.TextColor3 = Color3.new(1,1,1)
  1055. img1.ImageColor3 = Color3.new(1,1,1)
  1056. currentwep = "Knife"
  1057. elseif chosen == "Pistol" then
  1058. for i=0,1,.1 do
  1059. swait()
  1060. PlayAnimationFromTable({
  1061. 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),
  1062. 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),
  1063. 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),
  1064. 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),
  1065. 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),
  1066. 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),
  1067. }, .3, false)
  1068. end
  1069. so(166196557,RightArm,1,1)
  1070. PistolH.Transparency = 1
  1071. PistolPart.Transparency = 0
  1072. txt2.TextColor3 = Color3.new(1,1,1)
  1073. img2.ImageColor3 = Color3.new(1,1,1)
  1074. currentwep = "Pistol"
  1075. if pshots <= 0 then
  1076. pistolrel()
  1077. end
  1078. elseif chosen == "Shotgun" then
  1079. for i=0,1,.1 do
  1080. swait()
  1081. PlayAnimationFromTable({
  1082. 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),
  1083. 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),
  1084. 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),
  1085. 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),
  1086. 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),
  1087. 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),
  1088. }, .3, false)
  1089. end
  1090. so(255061173,RightArm,1,1)
  1091. ShottyH.Transparency = 1
  1092. ShottyPart.Transparency = 0
  1093. txt3.TextColor3 = Color3.new(1,1,1)
  1094. img3.ImageColor3 = Color3.new(1,1,1)
  1095. currentwep = "Shotgun"
  1096. elseif chosen == "Sniper" then
  1097. for i=0,1,.1 do
  1098. swait()
  1099. PlayAnimationFromTable({
  1100. CFrame.new(0, 0, 0, 1.00000012, -4.51194637e-12, 0, -4.51194637e-12, 1.00000012, 0, 0, 0, 1),
  1101. 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),
  1102. 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),
  1103. 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),
  1104. CFrame.new(0.500061095, -2.00012088, 2.28881836e-05, 1.00000012, -4.51194637e-12, 0, -4.51194637e-12, 1.00000012, 0, 0, 0, 1),
  1105. CFrame.new(-0.499973357, -2.0001204, -5.34057617e-05, 1.00000012, -4.51194637e-12, 0, -4.51194637e-12, 1.00000012, 0, 0, 0, 1),
  1106. }, .3, false)
  1107. end
  1108. so(1498950813,RightArm,1,1)
  1109. SniperH.Transparency = 1
  1110. SniperPart.Transparency = 0
  1111. txt4.TextColor3 = Color3.new(1,1,1)
  1112. img4.ImageColor3 = Color3.new(1,1,1)
  1113. currentwep = "Sniper"
  1114. end
  1115.  
  1116. Humanoid.WalkSpeed = 16
  1117. attack = false
  1118. end
  1119.  
  1120. function knifestab()
  1121. attack = true
  1122. Humanoid.WalkSpeed = 16
  1123. for i=0,1,.25 do
  1124. swait()
  1125. PlayAnimationFromTable({
  1126. 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),
  1127. 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),
  1128. 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),
  1129. 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),
  1130. 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),
  1131. CFrame.new(-0.499961853, -2.00001669, -1.52587891e-05, 1, 1.45519152e-11, 0, 1.45519152e-11, 1, 0, 0, 0, 1),
  1132. }, .4, false)
  1133. end
  1134. Humanoid.WalkSpeed = 2
  1135. tr1.Enabled = true
  1136. so(200632136,Knife,math.random(9,11)/10,1)
  1137. for i=0,1,.2 do
  1138. swait()
  1139. PlayAnimationFromTable({
  1140. 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),
  1141. 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),
  1142. 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),
  1143. 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),
  1144. 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),
  1145. 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),
  1146. }, .5, false)
  1147. MagnitudeDmg(Knife,1.5,100,0,RootPart.CFrame.lookVector*5,false,"Sharp",.5)
  1148. end
  1149. Humanoid.WalkSpeed = 16
  1150. tr1.Enabled = false
  1151. attack = false
  1152. end
  1153.  
  1154. function wepknifestab()
  1155. attack = true
  1156. Humanoid.WalkSpeed = 2
  1157. for i=0,1,.2 do
  1158. swait()
  1159. PlayAnimationFromTable({
  1160. 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),
  1161. 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),
  1162. 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),
  1163. 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),
  1164. 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),
  1165. 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),
  1166. }, .5, false)
  1167. end
  1168. so(211059653,Knife2,1,1)
  1169. Knife2.Transparency = 0
  1170. KnifeH.Transparency = 1
  1171. for i=0,1,.1 do
  1172. swait()
  1173. PlayAnimationFromTable({
  1174. 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),
  1175. 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),
  1176. 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),
  1177. 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),
  1178. 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),
  1179. 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),
  1180. }, .5, false)
  1181. end
  1182. tr2.Enabled = true
  1183. so(200632136,Knife2,math.random(9,11)/10,1)
  1184. for i=0,1,.1 do
  1185. swait()
  1186. PlayAnimationFromTable({
  1187. 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),
  1188. 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),
  1189. 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),
  1190. 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),
  1191. 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),
  1192. 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),
  1193. }, .4, false)
  1194. MagnitudeDmg(Knife2,1.5,100,0,RootPart.CFrame.lookVector*5,false,"Sharp",.5)
  1195. end
  1196. for i=0,1,.2 do
  1197. swait()
  1198. PlayAnimationFromTable({
  1199. 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),
  1200. 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),
  1201. 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),
  1202. 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),
  1203. 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),
  1204. 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),
  1205. }, .5, false)
  1206. end
  1207. for i=0,1,.2 do
  1208. swait()
  1209. PlayAnimationFromTable({
  1210. 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),
  1211. 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),
  1212. 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),
  1213. 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),
  1214. 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),
  1215. 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),
  1216. }, .5, false)
  1217. end
  1218. so(211134014,Knife2,1,1)
  1219. Knife2.Transparency = 1
  1220. KnifeH.Transparency = 0
  1221. Humanoid.WalkSpeed = 16
  1222. tr2.Enabled = false
  1223. attack = false
  1224. end
  1225.  
  1226. function pistolshoot()
  1227. attack = true
  1228. Humanoid.WalkSpeed = 2
  1229. CamShake(RightArm,3,.2,.3)
  1230. getNearestGuy()
  1231. 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)
  1232. local aimo = Instance.new("Part",Camera)
  1233. aimo.Anchored = true
  1234. aimo.Size = Vector3.new()
  1235. aimo.Transparency = 1
  1236. aimo.CanCollide = false
  1237. aimo.CFrame = CFrame.new(pos)
  1238. 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)
  1239. Effects.Block(PistolF.CFrame,Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.3,.3,.3),"Neon","Bright yellow",true,false,.1)
  1240. Effects.Block(PistolF.CFrame,Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.6,.6,.6),"Neon","Bright yellow",true,false,.1)
  1241. Effects.Block(CFrame.new(pos),Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.1,.1,.1),"Neon","Bright yellow",true,false,.1)
  1242. 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)
  1243. MagnitudeDmg(aimo,3,18,2,RootPart.CFrame.lookVector*2,false,"Shot",.1)
  1244. so(1583819337,PistolPart,math.random(90,110)/100,2)
  1245. local hitpt = Instance.new("Part",EffectModel)
  1246. hitpt.Size = Vector3.new(0,0,.3)
  1247. hitpt.CFrame = PistolPart.CFrame * CFrame.new(0,.465,.5)-- * CFrame.Angles(math.rad(90),0,0)
  1248. hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
  1249. local hitm = Instance.new("SpecialMesh",hitpt)
  1250. hitm.MeshId = "rbxassetid://94295100"
  1251. hitm.TextureId = "rbxassetid://94287792"
  1252. hitm.Scale = Vector3.new(3,3,3.5)
  1253. coroutine.wrap(function()
  1254. swait(120)
  1255. for i = 0,1,.1 do
  1256. swait()
  1257. hitpt.Transparency = i
  1258. end
  1259. hitpt:Destroy()
  1260. end)()
  1261. for i=0,1,.5 do
  1262. swait()
  1263. PlayAnimationFromTable({
  1264. 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),
  1265. 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),
  1266. 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),
  1267. 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),
  1268. 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),
  1269. 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),
  1270. }, .5, false)
  1271. end
  1272. pshots = pshots - 1
  1273. aimo:Destroy()
  1274. if pshots <= 0 then
  1275. pistolrel()
  1276. end
  1277. for i=0,1,.5 do
  1278. swait()
  1279. PlayAnimationFromTable({
  1280. 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),
  1281. 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),
  1282. 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),
  1283. 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),
  1284. 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),
  1285. 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),
  1286. }, .5, false)
  1287. end
  1288. Humanoid.WalkSpeed = 16
  1289. attack = false
  1290. end
  1291.  
  1292. function shotgunshoot()
  1293. attack = true
  1294. Humanoid.WalkSpeed = 2
  1295. Effects.Block(ShotgunF.CFrame,Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.4,.4,.4),"Neon","Bright yellow",true,false,.1)
  1296. Effects.Block(ShotgunF.CFrame,Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.7,.7,.7),"Neon","Bright yellow",true,false,.1)
  1297. CamShake(RightArm,3,.4,.3)
  1298. for i=1,2 do
  1299. 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)
  1300. end
  1301. getNearestGuy()
  1302. local mop = TargetPoint
  1303. for ab=1,5 do
  1304. 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)
  1305. local aimo = Instance.new("Part",Camera)
  1306. aimo.Anchored = true
  1307. aimo.Size = Vector3.new()
  1308. aimo.Transparency = 1
  1309. aimo.CanCollide = false
  1310. aimo.CFrame = CFrame.new(pos)
  1311. Effects.Block(CFrame.new(pos),Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.1,.1,.1),"Neon","Bright yellow",true,false,.1)
  1312. 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)
  1313. MagnitudeDmg(aimo,3,36,2,RootPart.CFrame.lookVector*2,false,"Shot",0)
  1314. aimo:Destroy()
  1315. end
  1316. so(636319463,ShottyPart,math.random(90,110)/100,2)
  1317. for i=0,1,.1 do
  1318. swait()
  1319. PlayAnimationFromTable({
  1320. 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),
  1321. 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),
  1322. 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),
  1323. 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),
  1324. 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),
  1325. 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),
  1326. }, .4, false)
  1327. end
  1328. so(1676656467,RightArm,1,1)
  1329. for i=0,1,.1 do
  1330. swait()
  1331. PlayAnimationFromTable({
  1332. 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),
  1333. 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),
  1334. 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),
  1335. 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),
  1336. 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),
  1337. 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),
  1338. }, .4, false)
  1339. end
  1340. local hitpt = Instance.new("Part",EffectModel)
  1341. hitpt.Size = Vector3.new(.2,.2,.6)
  1342. hitpt.CFrame = ShottyPart.CFrame * CFrame.new(0,-.2,.1) * CFrame.Angles(math.rad(-90),0,0)
  1343. hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
  1344. local hitm = Instance.new("SpecialMesh",hitpt)
  1345. hitm.MeshId = "rbxassetid://94248124"
  1346. hitm.TextureId = "rbxassetid://94219470"
  1347. hitm.Scale = Vector3.new(1,1,1)
  1348. coroutine.wrap(function()
  1349. swait(120)
  1350. for i = 0,1,.1 do
  1351. swait()
  1352. hitpt.Transparency = i
  1353. end
  1354. hitpt:Destroy()
  1355. end)()
  1356. sshots = sshots - 1
  1357. if sshots <= 0 then
  1358. shotgunreload()
  1359. end
  1360. for i=0,1,.1 do
  1361. swait()
  1362. PlayAnimationFromTable({
  1363. 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),
  1364. 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),
  1365. 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),
  1366. 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),
  1367. CFrame.new(0.500045896, -2.00000525, 7.62939635e-06, 1.00000024, 1.45519152e-11, 0, 1.45519152e-11, 1, 0, 0, 0, 1.00000024),
  1368. 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),
  1369. }, .4, false)
  1370. end
  1371. Humanoid.WalkSpeed = 16
  1372. attack = false
  1373. end
  1374.  
  1375. function snipershoot()
  1376. attack = true
  1377. Humanoid.WalkSpeed = 1
  1378. for i=0,1,.1 do
  1379. swait()
  1380. PlayAnimationFromTable({
  1381. 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),
  1382. 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),
  1383. 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),
  1384. 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),
  1385. 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),
  1386. 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),
  1387. }, .4, false)
  1388. end
  1389. getNearestGuy()
  1390. 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)
  1391. local aimo = Instance.new("Part",Camera)
  1392. aimo.Anchored = true
  1393. aimo.Size = Vector3.new()
  1394. aimo.Transparency = 1
  1395. aimo.CanCollide = false
  1396. aimo.CFrame = CFrame.new(pos)
  1397. CamShake(RightArm,3,.5,.3)
  1398. for i=1,3 do
  1399. 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)
  1400. end
  1401. Effects.Block(SniperF.CFrame,Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.6,.6,.6),"Neon","Bright yellow",true,false,.1)
  1402. Effects.Block(SniperF.CFrame,Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.8,.8,.8),"Neon","Bright yellow",true,false,.1)
  1403. Effects.Block(CFrame.new(pos),Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.1,.1,.1),"Neon","Bright yellow",true,false,.1)
  1404. 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)
  1405. MagnitudeDmg(aimo,3,100,1,RootPart.CFrame.lookVector*2,false,"Shot",.1)
  1406. so(1188020502,SniperPart,math.random(90,110)/100,2)
  1407. local hitpt = Instance.new("Part",EffectModel)
  1408. hitpt.Size = Vector3.new(.2,.2,.6)
  1409. hitpt.CFrame = SniperPart.CFrame * CFrame.new(0,.2,.1) * CFrame.Angles(math.rad(90),0,0)
  1410. hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
  1411. local hitm = Instance.new("SpecialMesh",hitpt)
  1412. hitm.MeshId = "rbxassetid://94295100"
  1413. hitm.TextureId = "rbxassetid://94287792"
  1414. hitm.Scale = Vector3.new(6,6,7)
  1415. coroutine.wrap(function()
  1416. swait(120)
  1417. for i = 0,1,.1 do
  1418. swait()
  1419. hitpt.Transparency = i
  1420. end
  1421. hitpt:Destroy()
  1422. end)()
  1423. for i=0,1,.2 do
  1424. swait()
  1425. PlayAnimationFromTable({
  1426. 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),
  1427. 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),
  1428. 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),
  1429. 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),
  1430. 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),
  1431. 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),
  1432. }, .4, false)
  1433. end
  1434. snshots = snshots - 1
  1435. aimo:Destroy()
  1436. if snshots <= 0 then
  1437. sniperreload()
  1438. end
  1439. for i=0,1,.2 do
  1440. swait()
  1441. PlayAnimationFromTable({
  1442. 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),
  1443. 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),
  1444. 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),
  1445. 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),
  1446. 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),
  1447. 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),
  1448. }, .4, false)
  1449. end
  1450. Humanoid.WalkSpeed = 16
  1451. attack = false
  1452. end
  1453.  
  1454. function pistol2shoot()
  1455. attack = true
  1456. Humanoid.WalkSpeed = 2
  1457. for i=0,1,.2 do
  1458. swait()
  1459. PlayAnimationFromTable({
  1460. 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),
  1461. 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),
  1462. 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),
  1463. 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),
  1464. 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),
  1465. 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),
  1466. }, .5, false)
  1467. end
  1468. so(166196557,LeftArm,1,1)
  1469. Pistol2Part.Transparency = 0
  1470. PistolH.Transparency = 1
  1471. for i=0,1,.1 do
  1472. swait()
  1473. PlayAnimationFromTable({
  1474. 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),
  1475. 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),
  1476. 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),
  1477. 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),
  1478. 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),
  1479. 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),
  1480. }, .4, false)
  1481. end
  1482. local num = 4
  1483. if pshots <= 3 then
  1484. num = pshots
  1485. end
  1486. for aba=1,num do
  1487. CamShake(RightArm,3,.2,.3)
  1488. getNearestGuy()
  1489. 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)
  1490. local aimo = Instance.new("Part",Camera)
  1491. aimo.Anchored = true
  1492. aimo.Size = Vector3.new()
  1493. aimo.Transparency = 1
  1494. aimo.CanCollide = false
  1495. aimo.CFrame = CFrame.new(pos)
  1496. for i=1,3 do
  1497. 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)
  1498. end
  1499. Effects.Block(Pistol2F.CFrame,Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.3,.3,.3),"Neon","Bright yellow",true,false,.1)
  1500. Effects.Block(Pistol2F.CFrame,Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.6,.6,.6),"Neon","Bright yellow",true,false,.1)
  1501. Effects.Block(CFrame.new(pos),Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.1,.1,.1),"Neon","Bright yellow",true,false,.1)
  1502. 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)
  1503. MagnitudeDmg(aimo,3,18,2,RootPart.CFrame.lookVector*2,false,"Shot",.1)
  1504. so(1583819337,Pistol2Part,math.random(90,110)/100,2)
  1505. local hitpt = Instance.new("Part",EffectModel)
  1506. hitpt.Size = Vector3.new(0,0,.3)
  1507. hitpt.CFrame = Pistol2Part.CFrame * CFrame.new(0,.465,.1)-- * CFrame.Angles(math.rad(90),0,0)
  1508. hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
  1509. local hitm = Instance.new("SpecialMesh",hitpt)
  1510. hitm.MeshId = "rbxassetid://94295100"
  1511. hitm.TextureId = "rbxassetid://94287792"
  1512. hitm.Scale = Vector3.new(3,3,3.5)
  1513. coroutine.wrap(function()
  1514. swait(2)
  1515. for i = 0,1,.1 do
  1516. swait()
  1517. hitpt.Transparency = i
  1518. end
  1519. hitpt:Destroy()
  1520. end)()
  1521. for i=0,1,.5 do
  1522. swait()
  1523. PlayAnimationFromTable({
  1524. 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),
  1525. 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),
  1526. 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),
  1527. 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),
  1528. 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),
  1529. 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),
  1530. }, .5, false)
  1531. end
  1532. pshots = pshots - 1
  1533. aimo:Destroy()
  1534. for i=0,1,.5 do
  1535. swait()
  1536. PlayAnimationFromTable({
  1537. 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),
  1538. 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),
  1539. 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),
  1540. 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),
  1541. 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),
  1542. 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),
  1543. }, .5, false)
  1544. end
  1545. end
  1546. for i=0,1,.2 do
  1547. swait()
  1548. PlayAnimationFromTable({
  1549. 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),
  1550. 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),
  1551. 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),
  1552. 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),
  1553. 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),
  1554. 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),
  1555. }, .4, false)
  1556. end
  1557. Pistol2Part.Transparency = 1
  1558. PistolH.Transparency = 0
  1559. Humanoid.WalkSpeed = 16
  1560. attack = false
  1561. end
  1562.  
  1563. function silentstab()
  1564. attack = true
  1565. Humanoid.WalkSpeed = 2
  1566. local grab = nil
  1567. local torsy = nil
  1568. for i, v in pairs(FindNearestTorso(Torso.Position, 5)) do
  1569. if v:FindFirstChild('Head') and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then
  1570. torsy = GetDudesTorso(v)
  1571. grab = v
  1572. end
  1573. end
  1574. if grab ~= nil and torsy ~= nil then
  1575. so(200632136, RootPart, .8, 1)
  1576. for i = 0,1,.2 do
  1577. swait()
  1578. PlayAnimationFromTable({
  1579. CFrame.new(0, 0, 0, 1.0000037, 1.69968928e-10, 0, 1.69968928e-10, 1, -1.57160684e-09, 0, -1.57160684e-09, 1.0000037),
  1580. 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),
  1581. 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),
  1582. 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),
  1583. 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),
  1584. 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),
  1585. }, .3, false)
  1586. torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3)
  1587. torsy.Velocity = Vector3.new()
  1588. end
  1589. so(211059653,Knife,1,1)
  1590. for i = 0,1,.1 do
  1591. swait()
  1592. PlayAnimationFromTable({
  1593. 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),
  1594. 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),
  1595. 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),
  1596. 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),
  1597. 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),
  1598. 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),
  1599. }, .3, false)
  1600. torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3)
  1601. torsy.Velocity = Vector3.new()
  1602. end
  1603. tr1.Enabled = true
  1604. for i = 0,1,.2 do
  1605. swait()
  1606. PlayAnimationFromTable({
  1607. CFrame.new(0, 0, 0, 1.00000012, 1.52766688e-12, 1.45519152e-11, 1.52766688e-12, 1, 0, 1.45519152e-11, 0, 1.00000012),
  1608. 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),
  1609. 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),
  1610. 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),
  1611. 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),
  1612. 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),
  1613. }, .4, false)
  1614. torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3)
  1615. torsy.Velocity = Vector3.new()
  1616. end
  1617. Dmg(grab,math.huge,0,Vector3.new(),false,"Sharp",0)
  1618. tr1.Enabled = false
  1619. for i=1,30 do
  1620. swait()
  1621. torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3)
  1622. torsy.Velocity = Vector3.new()
  1623. end
  1624. so(444667824,torsy,1,1)
  1625. p1mit.Enabled = true
  1626. for i = 0,2,.1 do
  1627. swait()
  1628. PlayAnimationFromTable({
  1629. 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),
  1630. 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),
  1631. 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),
  1632. 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),
  1633. 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),
  1634. 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),
  1635. }, .3, false)
  1636. torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3)
  1637. torsy.Velocity = Vector3.new()
  1638. end
  1639. p1mit.Enabled = false
  1640. BodyVel(torsy,RootPart.CFrame.rightVector*-30)
  1641. for i = 0,2,.1 do
  1642. swait()
  1643. PlayAnimationFromTable({
  1644. 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),
  1645. 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),
  1646. 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),
  1647. 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),
  1648. 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),
  1649. 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),
  1650. }, .4, false)
  1651. end
  1652. end
  1653. attack = false
  1654. Humanoid.WalkSpeed = 16
  1655. end
  1656.  
  1657. function silentpist()
  1658. attack = true
  1659. Humanoid.WalkSpeed = 2
  1660. local grab = nil
  1661. local torsy = nil
  1662. for i, v in pairs(FindNearestTorso(Torso.Position, 5)) do
  1663. if v:FindFirstChild('Head') and v:FindFirstChildOfClass("Humanoid") and v:FindFirstChildOfClass("Humanoid").Health > 1 then
  1664. torsy = GetDudesTorso(v)
  1665. grab = v
  1666. end
  1667. end
  1668. if grab ~= nil and torsy ~= nil then
  1669. so(200632136, RootPart, .8, 1)
  1670. for i = 0,1,.2 do
  1671. swait()
  1672. PlayAnimationFromTable({
  1673. CFrame.new(0, 0, 0, 1.0000037, 1.69968928e-10, 0, 1.69968928e-10, 1, -1.57160684e-09, 0, -1.57160684e-09, 1.0000037),
  1674. 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),
  1675. 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),
  1676. 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),
  1677. 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),
  1678. 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),
  1679. }, .4, false)
  1680. torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3)
  1681. torsy.Velocity = Vector3.new()
  1682. end
  1683. for i = 0,1,.1 do
  1684. swait()
  1685. PlayAnimationFromTable({
  1686. CFrame.new(0, 0, 0, 1.000018, 8.09635026e-10, 0, 8.09635026e-10, 1, -7.88713805e-09, 0, -7.88713805e-09, 1.000018),
  1687. 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),
  1688. 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),
  1689. 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),
  1690. 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),
  1691. 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),
  1692. }, .4, false)
  1693. torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3)
  1694. torsy.Velocity = Vector3.new()
  1695. end
  1696. CamShake(RightArm,3,.2,.3)
  1697. for i=1,3 do
  1698. 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)
  1699. end
  1700. Effects.Block(PistolF.CFrame,Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.3,.3,.3),"Neon","Bright yellow",true,false,.1)
  1701. Effects.Block(PistolF.CFrame,Vector3.new(.4,.4,.4),Vector3.new(),Vector3.new(.6,.6,.6),"Neon","Bright yellow",true,false,.1)
  1702. so(1583819337,PistolPart,math.random(90,110)/100,2)
  1703. Dmg(grab,math.huge,0,Vector3.new(),false,"Shot",0)
  1704. pshots = pshots - 1
  1705. for i = 0,1,.2 do
  1706. swait()
  1707. PlayAnimationFromTable({
  1708. 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),
  1709. 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),
  1710. 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),
  1711. 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),
  1712. 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),
  1713. 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),
  1714. }, .5, false)
  1715. torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3)
  1716. torsy.Velocity = Vector3.new()
  1717. end
  1718. for i=1,5 do
  1719. swait()
  1720. torsy.CFrame = RootPart.CFrame*CFrame.new(0,0,-1.3)
  1721. torsy.Velocity = Vector3.new()
  1722. end
  1723. BodyVel(torsy,RootPart.CFrame.rightVector*-30)
  1724. for i = 0,2,.1 do
  1725. swait()
  1726. PlayAnimationFromTable({
  1727. 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),
  1728. 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),
  1729. 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),
  1730. 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),
  1731. 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),
  1732. 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),
  1733. }, .4, false)
  1734. end
  1735. end
  1736. attack = false
  1737. Humanoid.WalkSpeed = 16
  1738. end
  1739.  
  1740. function heal()
  1741. attack = true
  1742. Humanoid.WalkSpeed = 2
  1743. local val = Instance.new("BoolValue",chara)
  1744. val.Name = "healcool"
  1745. debby:AddItem(val,30)
  1746. for i=0,1,.1 do
  1747. swait()
  1748. PlayAnimationFromTable({
  1749. CFrame.new(0, 0, 0, 1.00000131, 5.536549e-11, 0, 5.536549e-11, 1, 5.82076609e-11, 0, 5.82076609e-11, 1.00000131),
  1750. 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),
  1751. 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),
  1752. 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),
  1753. 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),
  1754. 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),
  1755. }, .4, false)
  1756. end
  1757. 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,})
  1758. local iMesh = New("SpecialMesh",inj,"Mesh",{Scale = Vector3.new(0.00200000009, 0.00200000009, 0.00200000009),MeshId = "rbxassetid://504973881",MeshType = Enum.MeshType.FileMesh,})
  1759. 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),})
  1760. for i=0,1,.1 do
  1761. swait()
  1762. PlayAnimationFromTable({
  1763. 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),
  1764. 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),
  1765. 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),
  1766. 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),
  1767. 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),
  1768. 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),
  1769. }, .4, false)
  1770. end
  1771. for i=0,1,.2 do
  1772. swait()
  1773. PlayAnimationFromTable({
  1774. CFrame.new(0, 0, 0, 1.00000012, -3.48876483e-12, 0, -3.48876483e-12, 1, 0, 0, 0, 1.00000012),
  1775. 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),
  1776. 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),
  1777. 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),
  1778. 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),
  1779. 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),
  1780. }, .5, false)
  1781. end
  1782. so(566593606,Torso,1,1)
  1783. coroutine.wrap(function()
  1784. healing = true
  1785. for i=1,500 do
  1786. swait()
  1787. Humanoid.Health = Humanoid.Health + 1
  1788. end
  1789. healing = false
  1790. end)()
  1791. swait(60)
  1792. inj:BreakJoints()
  1793. inj.CanCollide = true
  1794. inj.Velocity = RootPart.CFrame.rightVector*-30
  1795. coroutine.wrap(function()
  1796. swait(60)
  1797. for i=0,1,.1 do
  1798. swait()
  1799. inj.Transparency = i
  1800. end
  1801. inj:Destroy()
  1802. end)()
  1803. for i=0,1,.1 do
  1804. swait()
  1805. PlayAnimationFromTable({
  1806. CFrame.new(0, 0, 0, 1.00000012, -7.41096073e-12, 0, -7.41096073e-12, 1, 2.91038305e-11, 0, 2.91038305e-11, 0.99999994),
  1807. CFrame.new(-3.04159403e-05, 1.46578789, -0.0939521194, 1.00000012, -4.05150786e-07, 1.62865035e-06, -1.76347669e-07, 0.939691484, 0.342023492, -1.66901737e-06, -0.342023432, 0.939691424),
  1808. CFrame.new(1.50005376, 0.699994802, 3.59716505e-05, 1.00000012, -1.58599477e-07, -6.6684006e-06, -1.58597771e-07, -1, 2.8318027e-07, -6.6684006e-06, -2.83209374e-07, -0.99999994),
  1809. CFrame.new(-1.64437401, 0.697701395, 0.19487834, 0.408384711, 0.907241344, 0.100674063, -0.898611128, 0.418956876, -0.130281046, -0.160374403, -0.0372620374, 0.986352742),
  1810. CFrame.new(0.500071704, -2.00001526, 2.73138285e-05, 0.939691603, 9.13247675e-07, -0.342023104, -1.21287303e-06, 1, -6.62083039e-07, 0.342023045, 1.03705679e-06, 0.939691603),
  1811. CFrame.new(-0.499963105, -2.00001931, 1.77323818e-05, 0.939691305, -1.36975643e-06, 0.342023998, 1.52508437e-06, 1, -1.85216777e-07, -0.342024028, 6.95697963e-07, 0.939691186),
  1812. }, .5, false)
  1813. end
  1814. attack = false
  1815. Humanoid.WalkSpeed = 16
  1816. end
  1817.  
  1818. function doge()
  1819. attack = true
  1820. Humanoid.WalkSpeed = 0
  1821. so(536642316,Torso,1,1)
  1822. local bodyvel = Instance.new("BodyVelocity",RootPart)
  1823. local pep = 10000000
  1824. bodyvel.P = pep
  1825. bodyvel.MaxForce = Vector3.new(pep,pep,pep)
  1826. bodyvel.Velocity = RootPart.CFrame.lookVector*50
  1827. for i=0,1,.2 do
  1828. swait()
  1829. PlayAnimationFromTable({
  1830. CFrame.new(0, -0.413182259, -0.492409885, 1, 0, 0, 0, 0.173647001, 0.984807968, 0, -0.984807968, 0.173647001),
  1831. CFrame.new(0, 1.39017391, 0.409808099, 1, 0, 0, 0, 0.499998748, -0.866026163, 0, 0.866026163, 0.499998748),
  1832. CFrame.new(0.997828066, 1.40889716, 0.360830426, 0, 0.173647001, 0.984807968, 0.173647001, -0.969846725, 0.171008945, 0.984807968, 0.171008945, -0.030153282),
  1833. CFrame.new(-1.00000775, 1.48291457, 0.347779244, 0, -0.173647001, -0.984807968, -0.173647001, -0.969846725, 0.171008945, -0.984807968, 0.171008945, -0.030153282),
  1834. CFrame.new(0.5, -2, -2.86102295e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1835. CFrame.new(-0.5, -2, -2.86102295e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1836. }, .4, false)
  1837. bodyvel.Velocity = RootPart.CFrame.lookVector*50
  1838. end
  1839. for i=0,1,.2 do
  1840. swait()
  1841. PlayAnimationFromTable({
  1842. CFrame.new(0, -1.30470812, -0.622091293, 1, 0, 0, 0, -0.866025984, 0.499998987, 0, -0.499998987, -0.866025984),
  1843. CFrame.new(0, 1.47984993, -0.230206192, 1, 0, 0, 0, 0.939693034, 0.34201926, 0, -0.34201926, 0.939693034),
  1844. CFrame.new(1.55977595, 0.764639199, 0.053586632, 0.93969202, -0.342021853, -1.61162654e-06, -0.342021883, -0.93969202, 3.57627869e-07, -1.63912773e-06, 2.08616257e-07, -1),
  1845. CFrame.new(-1.55977952, 0.764637887, 0.053586632, 0.93969202, 0.342021853, 1.61162654e-06, 0.342021883, -0.93969202, 3.57627869e-07, 1.63912773e-06, 2.08616257e-07, -1),
  1846. CFrame.new(0.5, -1.19999313, -0.600002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1847. CFrame.new(-0.5, -1.19999313, -0.600002289, 1, 0, 0, 0, 1, 0, 0, 0, 1),
  1848. }, .4, false)
  1849. bodyvel.Velocity = RootPart.CFrame.lookVector*50
  1850. end
  1851. for i=0,1,.2 do
  1852. swait()
  1853. PlayAnimationFromTable({
  1854. CFrame.new(0, -2.22375727, 0.305265486, 1, 0, 0, 0, 0.500000238, -0.866025388, 0, 0.866025388, 0.500000238),
  1855. CFrame.new(0, 1.35128808, -0.383415997, 1, 0, 0, 0, 0.766043901, 0.642788529, 0, -0.64278847, 0.766043901),
  1856. CFrame.new(1.55977547, 0.276377708, 0.0466975421, 0.93969214, -0.342021614, 4.56934458e-07, 0.321395159, 0.88302201, 0.342019856, -0.116978563, -0.321393132, 0.939692855),
  1857. CFrame.new(-1.55978227, 0.276371837, 0.0467037484, 0.93969214, 0.342021614, -4.56934458e-07, -0.321395159, 0.88302201, 0.342019856, 0.116978563, -0.321393132, 0.939692855),
  1858. CFrame.new(0.5, -1.19999337, -0.599998593, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024),
  1859. CFrame.new(-0.500003815, -1.35979521, -0.923200667, 1, 0, 0, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388),
  1860. }, .4, false)
  1861. bodyvel.Velocity = RootPart.CFrame.lookVector*50
  1862. end
  1863. bodyvel:Destroy()
  1864. Humanoid.WalkSpeed = 16
  1865. attack = false
  1866. end
  1867.  
  1868. function goright()
  1869. attack = true
  1870. Humanoid.WalkSpeed = 0
  1871. so(536642316,Torso,1,1)
  1872. BodyVel(RootPart,RootPart.CFrame.rightVector*40)
  1873. for i=0,1,.2 do
  1874. swait()
  1875. PlayAnimationFromTable({
  1876. CFrame.new(0, 0, 0, 0.866025686, 9.42248391e-07, 0.500011504, -8.48485797e-08, 1, 2.03145464e-06, -0.499997288, 1.801709e-06, 0.866039157),
  1877. CFrame.new(0.0133891273, 1.49998093, -0.223221898, 0.999244928, 0.0180275738, 0.0343858302, -0.0296961162, 0.925415933, 0.377787739, -0.0250054598, -0.378526747, 0.92527163),
  1878. CFrame.new(0.597281635, 0.899970174, -0.636579931, -0.2961981, 0.81379801, 0.499997288, 0.939692438, 0.34202075, -1.801709e-06, -0.171011984, 0.469857872, -0.866039157),
  1879. CFrame.new(-1.5597142, 0.600028992, -0.496432245, 0.556670129, 0.663414598, -0.499997288, -0.766044378, 0.642787695, 1.801709e-06, 0.321399361, 0.38303256, 0.866039157),
  1880. CFrame.new(0.0669843927, -1.80000138, -0.249991581, 0.750000238, 0.433012992, -0.499997288, -0.499999464, 0.866025865, 1.801709e-06, 0.433021635, 0.250007659, 0.866039157),
  1881. CFrame.new(-1.01960945, -1.79999983, -0.300026655, 0.663413942, 0.556670904, -0.499997288, -0.642787337, 0.766044736, 1.801709e-06, 0.38302961, 0.321402997, 0.866039157),
  1882. }, .4, false)
  1883. end
  1884. Humanoid.WalkSpeed = 16
  1885. attack = false
  1886. end
  1887.  
  1888. function goleft()
  1889. attack = true
  1890. Humanoid.WalkSpeed = 0
  1891. so(536642316,Torso,1,1)
  1892. BodyVel(RootPart,RootPart.CFrame.rightVector*-40)
  1893. for i=0,1,.2 do
  1894. swait()
  1895. PlayAnimationFromTable({
  1896. CFrame.new(0, 0, 0, 0.866035402, 9.42248391e-07, -0.499995083, 1.7168677e-06, 1, 1.08920722e-06, 0.500013709, 1.801709e-06, 0.866029859),
  1897. CFrame.new(-0.100005262, 1.49997783, -0.173194915, 0.984938622, -0.171012864, -0.0261079669, 0.171011686, 0.939692199, 0.296198815, -0.0261065066, -0.296198487, 0.954771042),
  1898. CFrame.new(1.55997992, 0.600023985, -0.496356547, 0.433018357, -0.750008225, 0.500013709, 0.866026461, 0.499998212, 1.801709e-06, -0.249996096, 0.433009237, 0.866029859),
  1899. CFrame.new(-0.510781586, 0.89997524, -0.686506629, -0.296202958, -0.813806593, -0.500013709, -0.939693034, 0.342019022, -1.801709e-06, 0.171007261, 0.469842136, -0.866029859),
  1900. CFrame.new(0.975441694, -1.79999304, -0.250189304, 0.750009537, -0.433016449, 0.500013709, 0.500001013, 0.866024911, 1.801709e-06, -0.433007956, 0.249998584, 0.866029859),
  1901. CFrame.new(-0.282589972, -1.79999781, -0.149757206, 0.813807786, -0.296199739, 0.500013709, 0.34202078, 0.939692438, 1.801709e-06, -0.469841361, 0.171009272, 0.866029859),
  1902. }, .4, false)
  1903. end
  1904. Humanoid.WalkSpeed = 16
  1905. attack = false
  1906. end
  1907.  
  1908. --function aimassist()
  1909. --coroutine.wrap(function()
  1910. --for i=1,2 do
  1911. --so(613361563,Torso,1,.2)
  1912. --swait(3)
  1913. --end
  1914. --end)()
  1915. --local val = Instance.new("BoolValue",chara)
  1916. --val.Name = "targetcool"
  1917. --debby:AddItem(val,10)
  1918. --for i,v in pairs(workspace:GetDescendants()) do
  1919. --if v:IsA("Model") and v~=chara and v:FindFirstChildOfClass("Humanoid") then
  1920. --local crsha = Instance.new("BillboardGui",Camera)
  1921. --crsha.Size = UDim2.new(10,0,10,0)
  1922. --crsha.AlwaysOnTop = true
  1923. --crsha.Adornee = GetDudesTorso(v)
  1924. --local imgl = Instance.new("ImageLabel",crsha)
  1925. --imgl.Position = UDim2.new(0,0,0,0)
  1926. --imgl.Size = UDim2.new(1,0,1,0)
  1927. --imgl.Image = "rbxassetid://29066470"
  1928. --imgl.BackgroundTransparency = 1
  1929. --imgl.ImageTransparency = 1
  1930. --coroutine.wrap(function()
  1931. --while crsha~=nil do
  1932. --swait()
  1933. --imgl.Rotation = imgl.Rotation + 1
  1934. --if crsha.Adornee == nil then crsha:Destroy() end
  1935. --if crsha.Adornee.Parent:FindFirstChildOfClass("Humanoid") and crsha.Adornee.Parent:FindFirstChildOfClass("Humanoid").Health <= 0 then crsha:Destroy() end
  1936. --end
  1937. --end)()
  1938. --coroutine.wrap(function()
  1939. --for i=0,1,.05 do
  1940. --swait()
  1941. --crsha.Size = UDim2.new(50-30*i,0,50-30*i,0)
  1942. --imgl.ImageTransparency = 1-i
  1943. --end
  1944. --crsha.Size = UDim2.new(20,0,20,0)
  1945. --imgl.ImageTransparency = 0
  1946. --swait(300)
  1947. --for i=0,1,.05 do
  1948. --swait()
  1949. --crsha.Size = UDim2.new(20+30*i,0,20+30*i,0)
  1950. --imgl.ImageTransparency = i
  1951. --end
  1952. --crsha:Destroy()
  1953. --end)()
  1954. --end
  1955. --end
  1956. --end
  1957.  
  1958. function aimassist()
  1959. coroutine.wrap(function()
  1960. for i=1,2 do
  1961. so(613361563,Torso,1,.2)
  1962. swait(3)
  1963. end
  1964. end)()
  1965. local val = Instance.new("BoolValue",chara)
  1966. val.Name = "targetcool"
  1967. debby:AddItem(val,10)
  1968. for i,v in pairs(workspace:GetDescendants()) do
  1969. if v:IsA("Model") and v~=chara and v:FindFirstChildOfClass("Humanoid") then
  1970. for _,b in pairs(v:children'') do
  1971. if b:IsA("BasePart") then
  1972. local xr = Instance.new("BoxHandleAdornment",Player:FindFirstChildOfClass("PlayerGui"))
  1973. xr.Adornee = b
  1974. xr.AlwaysOnTop = true
  1975. xr.Size = b.Size + Vector3.new(.1,.1,.1)
  1976. xr.Color3 = Color3.new(1,0,0)
  1977. xr.Transparency = 1
  1978. xr.ZIndex = 5
  1979. coroutine.wrap(function()
  1980. repeat swait()
  1981. until v:FindFirstChildOfClass("Humanoid").Health <= 0
  1982. xr:Destroy()
  1983. end)()
  1984. coroutine.wrap(function()
  1985. for tr=0,.5,.1 do
  1986. swait()
  1987. xr.Transparency = 1-tr
  1988. end
  1989. xr.Transparency = .5
  1990. swait(300)
  1991. for tr=0,.5,.1 do
  1992. swait()
  1993. xr.Transparency = .5+tr
  1994. end
  1995. xr:Destroy()
  1996. end)()
  1997. end
  1998. end
  1999. end
  2000. end
  2001. end
  2002.  
  2003. fighting = false
  2004. mousedownevent.OnServerEvent:connect(function(ply)
  2005. if ply == Player then
  2006. if attack == false then
  2007. if currentwep == "Knife" then
  2008. knifestab()
  2009. elseif currentwep == "Pistol" then
  2010. pistolshoot()
  2011. elseif currentwep == "Shotgun" then
  2012. shotgunshoot()
  2013. elseif currentwep == "Sniper" then
  2014. snipershoot()
  2015. end
  2016. end
  2017. end
  2018. end)
  2019.  
  2020. local sprintt = 0
  2021. keydownevent.OnServerEvent:connect(function(ply,k)
  2022. if ply == Player then
  2023. k = k:lower()
  2024. if k=='m' then
  2025. if mus.IsPlaying == true then
  2026. mus:Stop()
  2027. elseif mus.IsPaused == true then
  2028. mus:Play()
  2029. end
  2030. end
  2031. if attack == false then
  2032. if k == 'z' then
  2033. if Anim ~= "Fall" and Anim ~= "Jump" then
  2034. doge()
  2035. end
  2036. elseif k == 'x' then
  2037. if currentwep ~= "Knife" then
  2038. wepknifestab()
  2039. else
  2040. silentstab()
  2041. end
  2042. elseif k == 'f' and chara:FindFirstChild("healcool")==nil then
  2043. heal()
  2044. elseif k == 'g' and chara:FindFirstChild("targetcool")==nil then
  2045. aimassist()
  2046. elseif k == 'h' then
  2047. so(115959318,Torso,1,1)
  2048. if li.Enabled == true then
  2049. li.Enabled = false
  2050. else
  2051. li.Enabled = true
  2052. end
  2053. elseif k == 'c' then
  2054. if currentwep ~= "Pistol" and pshots > 0 then
  2055. pistol2shoot()
  2056. elseif currentwep == "Pistol" and pshots > 1 then
  2057. silentpist()
  2058. end
  2059. elseif k == 'q' then
  2060. goleft()
  2061. elseif k == 'e' then
  2062. goright()
  2063. elseif k == 'r' then
  2064. attack = true
  2065. Humanoid.WalkSpeed = 1
  2066. if currentwep == "Pistol" then
  2067. pistolrel()
  2068. elseif currentwep == "Shotgun" then
  2069. shotgunreload()
  2070. elseif currentwep == "Sniper" then
  2071. sniperreload()
  2072. end
  2073. Humanoid.WalkSpeed = 16
  2074. attack = false
  2075. elseif k == 't' then
  2076. switchweps("Pistol")
  2077. elseif k == 'y' then
  2078. switchweps("Shotgun")
  2079. elseif k == 'u' then
  2080. switchweps("Sniper")
  2081. end
  2082. end
  2083. end
  2084. end)
  2085.  
  2086. --coroutine.wrap(function()
  2087. --game:GetService("RunService").RenderStepped:connect(function()
  2088. -- for i,v in pairs(chara:GetDescendants()) do
  2089. -- if v:IsA("BasePart") and v.Parent.Name ~= "FakeHeadM" and v.Name ~= "Head" and v.Parent:IsA("Accessory") == false then
  2090. -- v.LocalTransparencyModifier = 0
  2091. -- end
  2092. -- end
  2093. --end)
  2094. --end)()
  2095.  
  2096. coroutine.wrap(function()
  2097. while 1 do
  2098. swait()
  2099. if doe <= 360 then
  2100. doe = doe + 2
  2101. else
  2102. doe = 0
  2103. end
  2104. end
  2105. end)()
  2106. while true do
  2107. swait()
  2108. while true do
  2109. swait()
  2110. if Head:FindFirstChild("mus")==nil then
  2111. mus = Instance.new("Sound",Head)
  2112. mus.Name = "mus"
  2113. mus.SoundId = "rbxassetid://1205101253"
  2114. mus.Looped = true
  2115. mus.Volume = 1
  2116. mus:Play()
  2117. end
  2118. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  2119. velocity = RootPart.Velocity.y
  2120. sine = sine + change
  2121. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
  2122. if RootPart.Velocity.y > 1 and hit == nil then
  2123. Anim = "Jump"
  2124. if attack == false then
  2125. PlayAnimationFromTable({
  2126. CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
  2127. CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855),
  2128. 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),
  2129. 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),
  2130. CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  2131. CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
  2132. }, .3, false)
  2133. end
  2134. elseif RootPart.Velocity.y < -1 and hit == nil then
  2135. Anim = "Fall"
  2136. if attack == false then
  2137. PlayAnimationFromTable({
  2138. CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
  2139. CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  2140. 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),
  2141. 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),
  2142. CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
  2143. CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
  2144. }, .3, false)
  2145. end
  2146. elseif Torsovelocity < 1 and hit ~= nil then
  2147. Anim = "Idle"
  2148. if attack == false then
  2149. change = 1
  2150. if currentwep == "Knife" then
  2151. PlayAnimationFromTable({
  2152. 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),
  2153. 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),
  2154. 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),
  2155. 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),
  2156. 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),
  2157. 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),
  2158. }, .3, false)
  2159. elseif currentwep == "Pistol" then
  2160. PlayAnimationFromTable({
  2161. 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),
  2162. 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),
  2163. 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),
  2164. 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),
  2165. 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),
  2166. 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),
  2167. }, .3, false)
  2168. elseif currentwep == "Shotgun" then
  2169. PlayAnimationFromTable({
  2170. 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),
  2171. 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),
  2172. 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),
  2173. 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),
  2174. 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),
  2175. 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),
  2176. }, .3, false)
  2177. elseif currentwep == "Sniper" then
  2178. PlayAnimationFromTable({
  2179. 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),
  2180. 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),
  2181. 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),
  2182. 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),
  2183. 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),
  2184. 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),
  2185. }, .3, false)
  2186. end
  2187. end
  2188. elseif Torsovelocity > 2 and hit ~= nil then
  2189. Anim = "Walk"
  2190. if attack == false then
  2191. Humanoid.WalkSpeed = 16
  2192. if currentwep == "Knife" then
  2193. PlayAnimationFromTable({
  2194. 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),
  2195. 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),
  2196. 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),
  2197. 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),
  2198. 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),
  2199. 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),
  2200. }, .3, false)
  2201. elseif currentwep == "Pistol" then
  2202. PlayAnimationFromTable({
  2203. 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),
  2204. 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),
  2205. 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),
  2206. 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),
  2207. 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),
  2208. 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),
  2209. }, .3, false)
  2210. elseif currentwep == "Shotgun" then
  2211. PlayAnimationFromTable({
  2212. 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),
  2213. 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),
  2214. 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),
  2215. 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),
  2216. 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),
  2217. 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),
  2218. }, .3, false)
  2219. elseif currentwep == "Sniper" then
  2220. PlayAnimationFromTable({
  2221. 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),
  2222. 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),
  2223. 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),
  2224. 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),
  2225. 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),
  2226. 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),
  2227. }, .3, false)
  2228. end
  2229. end
  2230. end
  2231. end
  2232. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement