Christoffer07700Extr

FE Zenith Battle Rifle 70

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