Advertisement
HenloMyDude

ehehehe ima oof u

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