Advertisement
AgentVK

Untitled

Jul 7th, 2017
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.25 KB | None | 0 0
  1. PASTEBINnew pastetrends API tools faq
  2. search...
  3.  
  4.  
  5. AgentVK
  6. FREE
  7. 1
  8. My Pastes
  9. Rainbow laugh
  10. 9 min ago
  11. Untitled
  12. 4 hours ago
  13. Untitled
  14. 10 hours ago
  15. Untitled
  16. 11 hours ago
  17. Untitled
  18. 12 hours ago
  19. Untitled
  20. 12 hours ago
  21. Untitled
  22. 23 hours ago
  23. Untitled
  24. 23 hours ago
  25. Public Pastes
  26. Untitled
  27. C | 0 sec ago
  28. Untitled
  29. Diff | 2 sec ago
  30. Untitled
  31. PHP | 5 sec ago
  32. Untitled
  33. Make | 9 sec ago
  34. wyplay: R8 startup
  35. 14 sec ago
  36. Untitled
  37. C++ | 14 sec ago
  38. Untitled
  39. 15 sec ago
  40. Untitled
  41. 16 sec ago
  42.  
  43. SHARE
  44. TWEET
  45.  
  46. Untitled
  47. LUXULUX FEB 11TH, 2017 2,664 NEVER
  48.  
  49. Pastebin PRO Accounts SUMMER SPECIAL! Until July 12th get 60% discount on a LIFETIME PRO account! Offer Ends Soon!
  50. rawdownloadcloneembedreportprint text 21.54 KB
  51. --Knife Module Script
  52.  
  53. --Perhapz
  54.  
  55. wait(.2)
  56. local toool = Instance.new("Tool",game.Players.LocalPlayer.Backpack)
  57. toool.Name = "QuickScope"
  58.  
  59. local hndle = Instance.new("Part",toool)
  60. hndle.Name = "Handle"
  61.  
  62. local mesh = Instance.new("SpecialMesh",hndle)
  63. mesh.MeshId = "http://www.roblox.com/asset/?id=121944778"
  64. mesh.TextureId = "http://www.roblox.com/asset/?id=121944805"
  65. mesh.Scale = Vector3.new(.7,.7,.7)
  66.  
  67. local sound = Instance.new("Sound",hndle)
  68.  
  69.  
  70. script.Parent = toool
  71.  
  72.  
  73.  
  74.  
  75. local tool=script.Parent
  76.  
  77. local player=game.Players.LocalPlayer
  78.  
  79. local char=player.Character
  80.  
  81. local humanoid=char:FindFirstChild("Humanoid")
  82.  
  83. local camera=workspace.CurrentCamera
  84.  
  85. local rightC1 = CFrame.new(-0.5, 0.7, 0) * CFrame.Angles(0, (math.pi / 2), 0)
  86.  
  87. local leftC1 = CFrame.new(0, 0.7, 0) * CFrame.Angles(0, (math.pi / 2), 0)
  88.  
  89. local mouse=player:GetMouse()
  90.  
  91. local equipping=false
  92.  
  93. local gettingknife=false
  94.  
  95. local laserCharge=false
  96.  
  97. local playcharge=false
  98.  
  99. local justthrown=false
  100.  
  101. local canLaser=true
  102.  
  103. local justattacked=false
  104.  
  105. local thrownkniferotation=0
  106.  
  107. local Damage=110
  108.  
  109. local Attacking=false
  110.  
  111. local handle=nil
  112.  
  113. local WalkSpeeds={16,20}
  114.  
  115. local fasterthrow = .2
  116.  
  117. local knifespeed = 225
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125. --[[if player.Gamepass4.Value == true then
  126.  
  127. fasterthrow = 0.5
  128.  
  129. else
  130.  
  131. fasterthrow = 0.2
  132.  
  133. end
  134.  
  135. if player.Gamepass5.Value == true then
  136.  
  137. knifespeed = 305
  138.  
  139. else
  140.  
  141. knifespeed = 225
  142.  
  143. end
  144. --]]
  145.  
  146.  
  147.  
  148.  
  149.  
  150. SOUNDS={
  151.  
  152. throwing={"153647554","153647549"},
  153.  
  154. laserthrowing={"193444173"},
  155.  
  156. shouts={"241084057","224360245","199837759","168209314"},
  157.  
  158. striking={"153647529","153647534","153647539","153647540"},
  159.  
  160. equip="153647514",
  161.  
  162. wallhit={"153647563","153647564"},
  163.  
  164. hitplayer={"153676325"},
  165.  
  166. deaths={"241084057","146457047","146594648","168209314"},
  167.  
  168. }
  169.  
  170.  
  171.  
  172. SETTINGS={
  173.  
  174.  
  175. tool={
  176.  
  177. tool_size=Vector3.new(0.4, 3, 0.7),
  178.  
  179. tool_transparency=0,
  180.  
  181. tool_color=BrickColor.Black(),
  182.  
  183. default_tool_size=0.6,
  184.  
  185. },
  186.  
  187.  
  188. }
  189.  
  190.  
  191.  
  192. function DamageObject(hit)
  193.  
  194. local char=hit.Parent
  195.  
  196. if char and char~=player.Character and char.Name~="Arms_Model" and hit.Name~="Handle" then
  197.  
  198. local h=char:FindFirstChild("Humanoid")
  199.  
  200. if h and h.Health > 0 then
  201.  
  202.  
  203.  
  204. h:TakeDamage(Damage)
  205.  
  206. PlaySound("Hit1",char.Torso)
  207.  
  208. local explosion = Instance.new("Explosion")
  209.  
  210. explosion.ExplosionType = 'NoCraters'
  211.  
  212. explosion.Position = humanoid.Torso.CFrame.p
  213.  
  214. explosion.BlastPressure=0
  215.  
  216. explosion.Parent=workspace
  217.  
  218. if h.Health == 0 then
  219.  
  220. PlaySound("Hit2")
  221.  
  222. end
  223.  
  224. end
  225.  
  226. end
  227.  
  228. end
  229.  
  230.  
  231.  
  232. function PlaySound(name,ctorso)
  233.  
  234. if name=="Throw" then
  235.  
  236. tool.Handle.Sound.SoundId = "rbxassetid://" .. SOUNDS.throwing[math.random(1,#SOUNDS.throwing)]
  237.  
  238. tool.Handle.Sound:Play()
  239.  
  240. elseif name=="ThrowLaser" then
  241.  
  242. tool.Handle.Sound.SoundId = "rbxassetid://" .. SOUNDS.laserthrowing[math.random(1,#SOUNDS.laserthrowing)]
  243.  
  244. tool.Handle.Sound:Play()
  245.  
  246. elseif name=="Equip" then
  247.  
  248. tool.Handle.Sound.SoundId = "rbxassetid://" .. SOUNDS.equip
  249.  
  250. tool.Handle.Sound:Play()
  251.  
  252. elseif name=="Swing" then
  253.  
  254. tool.Handle.Sound.SoundId = "rbxassetid://" .. SOUNDS.striking[math.random(1,#SOUNDS.striking)]
  255.  
  256. tool.Handle.Sound:Play()
  257.  
  258. elseif name=="Hit1" then
  259.  
  260. local NewSound=tool.Handle.Sound:clone()
  261.  
  262. NewSound.Parent=ctorso
  263.  
  264. NewSound.SoundId = "rbxassetid://" .. SOUNDS.hitplayer[math.random(1,#SOUNDS.hitplayer)]
  265.  
  266. NewSound:Play()
  267.  
  268. NewSound:Destroy()
  269.  
  270. --elseif name=="Hit2" then
  271.  
  272. --local NewSound=tool.Handle.Sound:clone()
  273.  
  274. --NewSound.Parent=ctorso
  275.  
  276. --NewSound.SoundId = "rbxassetid://" .. SOUNDS.deaths[math.random(1,#SOUNDS.deaths)]
  277.  
  278. --NewSound:Play()
  279.  
  280. -- NewSound:Destroy()
  281.  
  282. elseif name=="Laser" then
  283.  
  284. local NewSound=tool.Handle.Sound:Clone()
  285.  
  286. NewSound.Parent = ctorso
  287. NewSound.SoundId = "rbxassetid://" .. SOUNDS.shouts[math.random(1,#SOUNDS.shouts)]
  288.  
  289. NewSound:Play()
  290.  
  291.  
  292. end
  293.  
  294. end
  295.  
  296.  
  297.  
  298. function Throwtool(dPos)
  299.  
  300. if not tool.Handle then return end
  301.  
  302. local throwingHandle = tool.Handle:Clone()
  303.  
  304. game:GetService("Debris"):AddItem(throwingHandle, 5)
  305.  
  306. throwingHandle.Transparency=0
  307.  
  308. throwingHandle.Parent = workspace
  309.  
  310. if player.Character and player.Character.Humanoid then
  311.  
  312. throwingHandle.Velocity = (player.Character.Humanoid.TargetPoint - throwingHandle.CFrame.p).unit * knifespeed
  313.  
  314. if canLaser then
  315.  
  316. throwingHandle.Velocity = (player.Character.Humanoid.TargetPoint - throwingHandle.CFrame.p).unit * 15000
  317.  
  318. end
  319.  
  320. if mouse.Target ~= nil then
  321.  
  322. if mouse.Target.Parent.Name~="Arms_Model" and mouse.Target.Name~="ThrownKnife" and mouse.Target.Name~="Handle" then
  323.  
  324. targetpos=player.Character.Humanoid.TargetPoint
  325.  
  326. else
  327.  
  328. targetpos=Vector3.new(0,-10,0)
  329.  
  330. end
  331.  
  332. end
  333.  
  334. -- set the orientation to the direction it is being thrown in
  335.  
  336. throwingHandle.CFrame = CFrame.new(throwingHandle.CFrame.p, throwingHandle.CFrame.p + throwingHandle.Velocity) * CFrame.Angles(0, 0, math.rad(-90))
  337.  
  338. local floatingForce = Instance.new('BodyForce', throwingHandle)
  339.  
  340. floatingForce.force = Vector3.new(0, 196.2 * throwingHandle:GetMass() * 0.98, 0)
  341.  
  342. local spin = Instance.new('BodyAngularVelocity', throwingHandle)
  343.  
  344. spin.angularvelocity = throwingHandle.CFrame:vectorToWorldSpace(Vector3.new(0, -400, 0))
  345.  
  346. spawnPos=player.Character.PrimaryPart.Position
  347.  
  348. spawnPos = spawnPos + dPos*5
  349.  
  350. if canLaser then
  351.  
  352. local Ray = Ray.new(tool.Handle.CFrame.p,(mouse.Hit.p - tool.Handle.CFrame.p).unit * 999)
  353.  
  354. local Hit,Position = game.Workspace:FindPartOnRay(Ray,char)
  355.  
  356. if Hit then
  357.  
  358. if Hit.Parent:FindFirstChild("Humanoid") then
  359.  
  360. throwingHandle:Destroy()
  361.  
  362. Hit.Parent.Humanoid:TakeDamage(110)
  363. PlaySound("Laser",Hit.Parent.Torso)
  364. PlaySound("Hit1",Hit.Parent.Torso)
  365. laserCharge=true
  366.  
  367.  
  368.  
  369. local explosion = Instance.new("Explosion")
  370.  
  371. explosion.Position=Hit.Parent.Torso.Position
  372.  
  373. explosion.BlastRadius=explosion.BlastRadius*2
  374.  
  375. explosion.Parent=workspace
  376.  
  377. end end
  378.  
  379. local RayPart = Instance.new("Part",workspace)
  380.  
  381. RayPart.Name = "RayPart"
  382.  
  383. RayPart.BrickColor = BrickColor.new("White")
  384.  
  385. RayPart.Transparency = 0
  386.  
  387. RayPart.Anchored = true
  388.  
  389. RayPart.CanCollide = false
  390.  
  391. RayPart.TopSurface = Enum.SurfaceType.Smooth
  392.  
  393. RayPart.BottomSurface = Enum.SurfaceType.Smooth
  394.  
  395. RayPart.formFactor = Enum.FormFactor.Custom
  396.  
  397. local Distance = (Position-tool.Handle.CFrame.p).magnitude
  398.  
  399. RayPart.Size = Vector3.new(0.2,0.2,Distance)
  400.  
  401. RayPart.CFrame = CFrame.new(Position,tool.Handle.CFrame.p) * CFrame.new(0,0,-Distance/2)
  402.  
  403. game.Debris:addItem(RayPart,.5)
  404.  
  405.  
  406. end
  407.  
  408. end
  409.  
  410. if throwingHandle then
  411.  
  412.  
  413.  
  414. local touchedConn = throwingHandle.Touched:connect(function(hit)
  415.  
  416. local char=hit.Parent
  417.  
  418. camera.CameraSubject=humanoid
  419.  
  420. camera.CameraType=Enum.CameraType.Custom
  421.  
  422. if char and char~=player.Character and char.Name~="Arms_Model" and hit.Name~="Handle" and hit.Name~="RayPart" then
  423.  
  424. local h=char:FindFirstChild("Humanoid")
  425.  
  426. if h and h.Health > 0 then
  427.  
  428. throwingHandle:Destroy()
  429.  
  430. laserCharge=true
  431.  
  432. if hit.Name~="Head" or hit.className=="Hat" then
  433.  
  434. h:TakeDamage(Damage)
  435.  
  436. -- player.Credits.Value = player.Credits.Value + 15
  437.  
  438. --player.PlayerGui.NormalKillGui.Script.Disabled = false
  439.  
  440. local explosion = Instance.new("Explosion")
  441.  
  442. explosion.Position=h.Parent.Torso.Position
  443.  
  444. explosion.BlastRadius=explosion.BlastRadius*2
  445.  
  446. explosion.Parent=workspace
  447.  
  448.  
  449. if h.Health == 0 then
  450.  
  451. PlaySound("Hit2",char.Torso)
  452.  
  453. end
  454.  
  455. else
  456.  
  457. h:TakeDamage(Damage * 2)
  458.  
  459. print("Headshot!")
  460.  
  461. --player.Credits.Value = player.Credits.Value + 50
  462.  
  463. --player.PlayerGui.HeadShotGui.Script.Disabled = false
  464.  
  465. local explosion = Instance.new("Explosion")
  466.  
  467. explosion.Position=h.Parent.Torso.Position
  468.  
  469. explosion.BlastRadius=explosion.BlastRadius*2
  470.  
  471. explosion.Parent=workspace
  472.  
  473. char.Head.Transparency=1
  474.  
  475. char.Head.CanCollide=false
  476.  
  477. if char.Head:FindFirstChild("face") then char.Head:FindFirstChild("face").Transparency=1 end
  478.  
  479. for _,v in pairs(char:GetChildren()) do
  480.  
  481. if v.className=="Hat" then
  482.  
  483. v:Destroy()
  484.  
  485. end
  486.  
  487. end
  488.  
  489. for i = 1, 7 do
  490.  
  491. local blood=Instance.new("Part")
  492.  
  493. blood.FormFactor="Custom"
  494.  
  495. blood.Size=Vector3.new(1,.2,1)
  496.  
  497. blood.BrickColor=BrickColor.Red()
  498.  
  499. blood.TopSurface=0
  500.  
  501. blood.BottomSurface=0
  502.  
  503. game:GetService("Debris"):AddItem(blood,5)
  504.  
  505. blood.Parent=workspace
  506.  
  507. blood.Position=char.Head.Position + Vector3.new(math.random(0.2,0.8),0,math.random(0.2,0.8))
  508.  
  509. end
  510.  
  511. local sound = Instance.new("Sound")
  512.  
  513. sound.SoundId = "rbxassetid://179497874"
  514.  
  515. sound.Parent=char.Head
  516.  
  517. sound.Pitch=1.1
  518.  
  519. sound:Play()
  520.  
  521. end
  522.  
  523. PlaySound("Hit1",char.Torso)
  524.  
  525. if h.Health == 0 then
  526.  
  527. PlaySound("Hit2")
  528.  
  529. end
  530.  
  531. elseif hit.Name~="Handle" or hit.Name~="IgnoreThrowingKnives" and hit.Parent.Name~="Arms_Model" and hit.Name~="RayPart" and hit.CanCollide==true then
  532.  
  533. local sound=Instance.new("Sound")
  534.  
  535. sound.Parent=hit
  536.  
  537. sound.SoundId = "rbxassetid://" .. SOUNDS.wallhit[math.random(1,#SOUNDS.wallhit)]
  538.  
  539. sound:Play()
  540.  
  541. sound:Destroy()
  542.  
  543. print("Hit Object: " .. hit.Name)
  544.  
  545. local newknife=tool.Handle:clone()
  546.  
  547. newknife.Name="ThrownKnife"
  548.  
  549. newknife.CFrame = CFrame.new(spawnPos, spawnPos + dPos) * CFrame.Angles(math.pi/-2, 0, 0)
  550.  
  551. newknife.Position = targetpos
  552.  
  553. throwingHandle:Destroy()
  554.  
  555. newknife.Anchored=true
  556.  
  557. newknife.CanCollide=true
  558.  
  559. newknife.Transparency=0
  560.  
  561. newknife.Parent=workspace
  562.  
  563. --newknife.Script.Disabled = false
  564.  
  565. wait(7)
  566.  
  567. for i=1,10 do
  568.  
  569. newknife.Transparency=i*.1
  570.  
  571. wait()
  572.  
  573. end
  574.  
  575. newknife:Destroy()
  576.  
  577. end
  578.  
  579. end
  580.  
  581. end)
  582.  
  583. end
  584.  
  585. end
  586.  
  587. -- must check if it still exists since we waited
  588.  
  589. if throwingHandle then
  590.  
  591. throwingHandle.CanCollide = true
  592.  
  593. end
  594.  
  595.  
  596.  
  597. FUNCTIONS={
  598.  
  599.  
  600. CHECKFORFIRSTPERSON=function()
  601.  
  602. if (camera.focus.p - camera.CoordinateFrame.p).magnitude > 1 then
  603.  
  604. return false
  605.  
  606. else
  607.  
  608. return true
  609.  
  610. end
  611.  
  612. end,
  613.  
  614.  
  615. ANIMS=function(state)
  616.  
  617. if state then
  618.  
  619. mouse.Icon="http://www.roblox.com/asset/?id=258828417"
  620.  
  621. --Start Animation
  622.  
  623.  
  624.  
  625. if SETTINGS.tool then
  626.  
  627. tool.GripPos = Vector3.new(0, -0.55, 0)
  628.  
  629. elseif SETTINGS.tool then
  630.  
  631. tool.GripPos = Vector3.new(0, -0.6, 0)
  632.  
  633. elseif SETTINGS.tool then
  634.  
  635. tool.GripPos = Vector3.new(0, -0.65, 0)
  636.  
  637. elseif SETTINGS.tool then
  638.  
  639. tool.GripPos = Vector3.new(0, -0.7, 0)
  640.  
  641. elseif SETTINGS.tool then
  642.  
  643. tool.GripPos = Vector3.new(0, -0.75, 0)
  644.  
  645. elseif SETTINGS.tool then
  646.  
  647. tool.GripPos = Vector3.new(0, -0.8, 0)
  648.  
  649. elseif SETTINGS.tool then
  650.  
  651. tool.GripPos = Vector3.new(0, -0.85, 0)
  652.  
  653. elseif SETTINGS.tool then
  654.  
  655. tool.GripPos = Vector3.new(0, -0.9, 0)
  656.  
  657. elseif SETTINGS.tool then
  658.  
  659. tool.GripPos = Vector3.new(0, -0.95, 0)
  660.  
  661. elseif SETTINGS.tool then
  662.  
  663. tool.GripPos = Vector3.new(0, -1, 0)
  664.  
  665. else
  666.  
  667. print("Invalid tool size! Set to default: " .. SETTINGS.tool.default_tool_size )
  668.  
  669.  
  670. if SETTINGS.tool.default_tool_size==.1 then
  671.  
  672. tool.GripPos = Vector3.new(0, -0.55, 0)
  673.  
  674. elseif SETTINGS.tool.default_tool_size==.2 then
  675.  
  676. tool.GripPos = Vector3.new(0, -0.6, 0)
  677.  
  678. elseif SETTINGS.tool.default_tool_size==.3 then
  679.  
  680. tool.GripPos = Vector3.new(0, -0.65, 0)
  681.  
  682. elseif SETTINGS.tool.default_tool_size==.4 then
  683.  
  684. tool.GripPos = Vector3.new(0, -0.7, 0)
  685.  
  686. elseif SETTINGS.tool.default_tool_size==.5 then
  687.  
  688. tool.GripPos = Vector3.new(0, -0.75, 0)
  689.  
  690. elseif SETTINGS.tool.default_tool_size==.6 then
  691.  
  692. tool.GripPos = Vector3.new(0, -0.8, 0)
  693.  
  694. elseif SETTINGS.tool.default_tool_size==.7 then
  695.  
  696. tool.GripPos = Vector3.new(0, -0.85, 0)
  697.  
  698. elseif SETTINGS.tool.default_tool_size==.8 then
  699.  
  700. tool.GripPos = Vector3.new(0, -0.9, 0)
  701.  
  702. elseif SETTINGS.tool.default_tool_size==.9 then
  703.  
  704. tool.GripPos = Vector3.new(0, -0.95, 0)
  705.  
  706. elseif SETTINGS.tool.default_tool_size==1 then
  707.  
  708. tool.GripPos = Vector3.new(0, -1, 0)
  709.  
  710. else
  711.  
  712. print("Invalid default size! Un-equipping and removing Knife...")
  713.  
  714.  
  715. end
  716.  
  717. end
  718.  
  719. torso=char:FindFirstChild("Torso")
  720.  
  721. leftarm=torso:FindFirstChild("Left Shoulder")
  722.  
  723. if leftarm then
  724.  
  725. leftarm.Parent=nil
  726.  
  727. newarmweld=Instance.new("Weld")
  728.  
  729. newarmweld.Name="LeftWeld"
  730.  
  731. newarmweld.Part0=torso
  732.  
  733. newarmweld.C0 = CFrame.new(-1.5, 0.7, 0)
  734.  
  735. newarmweld.C1 = CFrame.new(0, 0.7, 0)
  736.  
  737. newarmweld.Part1=char:FindFirstChild("Left Arm")
  738.  
  739. newarmweld.Parent=torso
  740.  
  741. end
  742.  
  743. humanoid.WalkSpeed=WalkSpeeds[2]
  744.  
  745. for i = 1, 15, 3 do
  746.  
  747. if equipped then
  748.  
  749. torso:FindFirstChild("Right Shoulder").C1 = rightC1 * CFrame.Angles((-i * (math.pi / 90)),(-i * (math.pi / 90)),(i * (math.pi / 210)))
  750.  
  751. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0) * CFrame.Angles((-i * (math.pi / 60)),(i * (math.pi / 90)),(-i * (math.pi / 240)))
  752.  
  753. end
  754.  
  755. wait()
  756.  
  757. end
  758.  
  759. else
  760.  
  761. humanoid.WalkSpeed=WalkSpeeds[1]
  762.  
  763. torso:FindFirstChild("Right Shoulder").C1 = rightC1 * CFrame.new(0,-0.2,0)
  764.  
  765. tool.GripForward = Vector3.new(0,0,-1)
  766.  
  767. newarmweld:Destroy()
  768.  
  769. leftarm.Parent=torso
  770.  
  771. mouse.Icon=""
  772.  
  773. torso:FindFirstChild("Neck").C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  774.  
  775. torso:FindFirstChild("Right Shoulder").C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  776.  
  777. end
  778.  
  779. end
  780.  
  781. }
  782.  
  783.  
  784.  
  785. tool.Equipped:connect(function ()
  786.  
  787. equipped=true
  788.  
  789. PlaySound("Equip")
  790.  
  791. FUNCTIONS.ANIMS(true)
  792.  
  793. end)
  794.  
  795. tool.Unequipped:connect(function ()
  796.  
  797. equipped=false
  798.  
  799. FUNCTIONS.ANIMS(false)
  800.  
  801. end)
  802.  
  803. tool.Handle.Touched:connect(function (hit)
  804.  
  805. if Attacking then
  806.  
  807. DamageObject(hit)
  808.  
  809. end
  810.  
  811. end)
  812.  
  813. tool.Activated:connect(function ()
  814.  
  815. if Attacking then return end
  816.  
  817. if not tool.Enabled then return end
  818.  
  819. justthrown=false
  820.  
  821. justattacked=false
  822.  
  823. if not gettingknife and not justthrown and not Attacking then
  824.  
  825. HeldTime=time()
  826.  
  827. end
  828.  
  829. playcharge=true
  830.  
  831. wait(.15)
  832.  
  833. while gettingknife do
  834.  
  835. wait()
  836.  
  837. end
  838.  
  839. local speed=0.2
  840.  
  841. for i = 1, 15, fasterthrow do
  842.  
  843. if playcharge and equipped and not gettingknife and not justthrown and not Attacking then
  844.  
  845. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, 0.195277825, -0.747909963, 0.634426773, 0.482016951, 0.636551082, 0.602048457, -0.854123056, 0.188237742, 0.484809577) * CFrame.Angles((i * (math.pi / 50)), 0, (-i * (math.pi / 25)))
  846.  
  847. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0, 0.858912528, 0.165011853, 0.484809607, -0.464581847, 0.649385393, 0.602048457, -0.215483144, -0.742340684, 0.634426773) * CFrame.Angles((-i * (math.pi / 75)),(i * (math.pi / 180)),0)
  848.  
  849. player.Character["Right Arm"].RightGrip.C1 = CFrame.new(0, -0.800000012, 0.05, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.Angles((-i * (math.pi / 150)),0,0)
  850.  
  851. wait()
  852.  
  853. end
  854.  
  855. end
  856.  
  857. if playcharge then
  858.  
  859. canLaser=true
  860.  
  861. end
  862.  
  863. end)
  864.  
  865. tool.Deactivated:connect(function ()
  866.  
  867. if not tool.Enabled then return end
  868.  
  869. currTime=time()
  870.  
  871. playcharge=false
  872.  
  873. if HeldTime and currTime - HeldTime > .6 and
  874.  
  875. currTime - HeldTime > 0.01 and not justthrown and not gettingknife then
  876.  
  877. if not Attacking and not justattacked then
  878.  
  879. print("Throw")
  880.  
  881. if canLaser then
  882.  
  883. PlaySound("ThrowLaser")
  884.  
  885. else
  886.  
  887. PlaySound("Throw")
  888.  
  889. end
  890.  
  891. tool.Handle.Transparency=1
  892.  
  893. local targetPos = player.Character.Humanoid.TargetPoint
  894.  
  895. local lookAt = (targetPos - player.Character.PrimaryPart.Position).unit
  896.  
  897. local switchEvenOddParity = 1
  898.  
  899. local angle = math.ceil((1-1)/2)*math.pi/12*switchEvenOddParity
  900.  
  901. Throwtool(CFrame.Angles(0, angle, 0) * lookAt)
  902.  
  903. wait()
  904. canLaser=true
  905.  
  906. HeldTime=0
  907.  
  908. gettingknife=true
  909.  
  910. mouse.Icon="http://www.roblox.com/asset/?id=258828417"
  911.  
  912. player.Character["Right Arm"].RightGrip.C1 = CFrame.new(0, -0.800000012, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  913.  
  914. for i = 1, 15, .8 do
  915.  
  916. if equipped then
  917.  
  918. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, 0.0719629526, 0.22870943, 0.970831275, -0.981789052, 0.187819958, 0.0285283029, -0.175816804, -0.955204487, 0.238060504) * CFrame.Angles(0, 0, (i * (math.pi / 15)))
  919.  
  920. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, 0.7, 0, 0.703028679, -0.151466534, 0.694844246, -0.673604906, 0.171488613, 0.718921423, -0.228050426, -0.973472893, 0.0185328126) * CFrame.Angles((i * (math.pi / 60)),(-i * (math.pi / 180)),(i * (math.pi / 60)))
  921.  
  922. wait()
  923.  
  924. end
  925.  
  926. end
  927.  
  928. justthrown=true
  929.  
  930. tool.Handle.Transparency=0
  931.  
  932. PlaySound("Equip")
  933.  
  934. mouse.Icon="http://www.roblox.com/asset/?id=258828417"
  935.  
  936. tool.GripForward = Vector3.new(0,0,-1)
  937.  
  938. for i = 1, 15, 1 do
  939.  
  940. if equipped then
  941.  
  942. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, -0.071962975, -0.22870943, 0.970831275, 0.981789052, -0.187820047, 0.0285283029, 0.175816894, 0.955204487, 0.238060504) * CFrame.Angles(0, 0, (-i * (math.pi / 30)))
  943.  
  944. wait()
  945.  
  946. end
  947.  
  948. end
  949.  
  950. gettingknife=false
  951.  
  952. for i = 1, 15, 3 do
  953.  
  954. if equipped then
  955.  
  956. torso:FindFirstChild("Right Shoulder").C1 = rightC1 * CFrame.Angles((-i * (math.pi / 90)),(-i * (math.pi / 90)),(i * (math.pi / 210)))
  957.  
  958. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0) * CFrame.Angles((-i * (math.pi / 60)),(i * (math.pi / 90)),(-i * (math.pi / 240)))
  959.  
  960. end
  961.  
  962. wait()
  963.  
  964. end
  965.  
  966. end
  967.  
  968. else
  969.  
  970. if not justthrown and not gettingknife then
  971.  
  972. if Attacking then return end
  973.  
  974. print("Attack")
  975.  
  976. HeldTime=0
  977.  
  978. Attacking=true
  979.  
  980. justattacked=true
  981.  
  982. if math.random(1,2)==1 then
  983.  
  984. for i = 1, 15, 3 do
  985.  
  986. if equipped and not gettingknife and not justthrown then
  987.  
  988. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, 0.195277825, -0.747909963, 0.634426773, 0.482016951, 0.636551082, 0.602048457, -0.854123056, 0.188237742, 0.484809577) * CFrame.Angles((i * (math.pi / 65)), 0, (-i * (math.pi / 30)))
  989.  
  990. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0, 0.858912528, 0.165011853, 0.484809607, -0.464581847, 0.649385393, 0.602048457, -0.215483144, -0.742340684, 0.634426773) * CFrame.Angles((-i * (math.pi / 75)),(i * (math.pi / 180)),0)
  991.  
  992. wait()
  993.  
  994. end
  995.  
  996. end
  997.  
  998. PlaySound("Swing")
  999.  
  1000. for i = 1, 15, 3 do
  1001.  
  1002. if equipped and not gettingknife and not justthrown then
  1003.  
  1004. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, 0.0719629526, 0.22870943, 0.970831275, -0.981789052, 0.187819958, 0.0285283029, -0.175816804, -0.955204487, 0.238060504) * CFrame.Angles(0, 0, (i * (math.pi / 15)))
  1005.  
  1006. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, 0.7, 0, 0.703028679, -0.151466534, 0.694844246, -0.673604906, 0.171488613, 0.718921423, -0.228050426, -0.973472893, 0.0185328126) * CFrame.Angles((i * (math.pi / 60)),(-i * (math.pi / 180)),(i * (math.pi / 60)))
  1007.  
  1008. wait()
  1009.  
  1010. end
  1011.  
  1012. end
  1013.  
  1014. for i = 1, 15, 3 do
  1015.  
  1016. if equipped and not justthrown and not gettingknife then
  1017.  
  1018. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, -0.071962975, -0.22870943, 0.970831275, 0.981789052, -0.187820047, 0.0285283029, 0.175816894, 0.955204487, 0.238060504) * CFrame.Angles(0, 0, (-i * (math.pi / 30)))
  1019.  
  1020. wait()
  1021.  
  1022. end
  1023.  
  1024. end
  1025.  
  1026. for i = 1, 15, 3 do
  1027.  
  1028. equipping=true
  1029.  
  1030. if equipped and not gettingknife and not justthrown then
  1031.  
  1032. torso:FindFirstChild("Right Shoulder").C1 = rightC1 * CFrame.Angles((-i * (math.pi / 90)),(-i * (math.pi / 90)),(i * (math.pi / 210)))
  1033.  
  1034. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0) * CFrame.Angles((-i * (math.pi / 60)),(i * (math.pi / 90)),(-i * (math.pi / 240)))
  1035.  
  1036. end
  1037.  
  1038. wait()
  1039.  
  1040. end
  1041.  
  1042. Attacking=false
  1043.  
  1044. else
  1045.  
  1046. for i = 1, 15, 3 do
  1047.  
  1048. if equipped and not gettingknife and not justthrown then
  1049.  
  1050. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.3, 0.5, 0, 0.195277825, -0.747909963, 0.634426773, 0.482016951, 0.636551082, 0.602048457, -0.854123056, 0.188237742, 0.484809577) * CFrame.Angles((i * (math.pi / 40)),(-i * (math.pi / 45)),(i * (math.pi / 60)))
  1051.  
  1052. end
  1053.  
  1054. wait()
  1055.  
  1056. end
  1057.  
  1058. PlaySound("Swing")
  1059.  
  1060. for i = 1, 15, 3 do
  1061.  
  1062. if equipped and not gettingknife and not justthrown then
  1063.  
  1064. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.2, 0.5, -.3, 0.852928281, -0.428775758, 0.29776603, 0.516928136, 0.614185035, -0.596290231, 0.0727913082, 0.662516415, 0.745502114) * CFrame.Angles((-i * (math.pi / 45)),0,0)
  1065.  
  1066. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.200000003, 0.7, 0, 0.849384904, 0.16895318, 0.5, -0.48470962, 0.624545038, 0.612372398, -0.208810255, -0.762494743, 0.612372398) * CFrame.Angles((i * (math.pi / 60)),(-i * (math.pi / 180)),(i * (math.pi / 60)))
  1067.  
  1068. end
  1069.  
  1070. wait()
  1071.  
  1072. end
  1073.  
  1074. for i = 1, 15, 3 do
  1075.  
  1076. if equipped and not gettingknife and not justthrown then
  1077.  
  1078. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.3, 0.5, -0.300000012, 0.852928281, -0.472260833, -0.222447708, 0.516928136, 0.82349503, 0.233754784, 0.0727913082, -0.314365625, 0.946507096) * CFrame.Angles((i * (math.pi / 45)),0,0)
  1079.  
  1080. end
  1081.  
  1082. wait()
  1083.  
  1084. end
  1085.  
  1086. for i = 1, 15, 3 do
  1087.  
  1088. if equipped and not gettingknife and not justthrown then
  1089.  
  1090. torso:FindFirstChild("Right Shoulder").C1 = rightC1 * CFrame.Angles((-i * (math.pi / 90)),(-i * (math.pi / 90)),(i * (math.pi / 210)))
  1091.  
  1092. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0) * CFrame.Angles((-i * (math.pi / 60)),(i * (math.pi / 90)),(-i * (math.pi / 240)))
  1093.  
  1094. end
  1095.  
  1096. wait()
  1097.  
  1098. end
  1099.  
  1100. Attacking=false
  1101.  
  1102. end
  1103.  
  1104. end
  1105.  
  1106. end
  1107.  
  1108. end)
  1109.  
  1110.  
  1111.  
  1112. mouse.Move:connect(function ()
  1113.  
  1114. if equipped and mouse then
  1115.  
  1116. if (mouse.Hit.p - mouse.Origin.p).unit.y < 0.25 and (mouse.Hit.p - mouse.Origin.p).unit.y > -0.25 then
  1117.  
  1118. torso:FindFirstChild("Right Shoulder").C0 = CFrame.new(.9,.5,0) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(0, 0, math.asin((mouse.Hit.p - mouse.Origin.p).unit.y))
  1119.  
  1120. torso:FindFirstChild("LeftWeld").C0 = CFrame.new(-1.5,0.5,0) * CFrame.Angles(0, 0, math.asin((mouse.Hit.p - mouse.Origin.p).unit.y))
  1121.  
  1122. torso:FindFirstChild("Neck").C0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(-90),0,math.rad(180)) * CFrame.Angles(math.asin(-(mouse.Hit.p - mouse.Origin.p).unit.y), 0, 0)
  1123.  
  1124. end
  1125.  
  1126. end
  1127.  
  1128. end)
  1129. RAW Paste Data
  1130.  
  1131. --Knife Module Script
  1132.  
  1133. --Perhapz
  1134.  
  1135. wait(.2)
  1136. local toool = Instance.new("Tool",game.Players.LocalPlayer.Backpack)
  1137. toool.Name = "QuickScope"
  1138.  
  1139. local hndle = Instance.new("Part",toool)
  1140. hndle.Name = "Handle"
  1141.  
  1142. local mesh = Instance.new("SpecialMesh",hndle)
  1143. mesh.MeshId = "http://www.roblox.com/asset/?id=121944778"
  1144. mesh.TextureId = "http://www.roblox.com/asset/?id=121944805"
  1145. mesh.Scale = Vector3.new(.7,.7,.7)
  1146.  
  1147. local sound = Instance.new("Sound",hndle)
  1148.  
  1149.  
  1150. script.Parent = toool
  1151.  
  1152.  
  1153.  
  1154.  
  1155. local tool=script.Parent
  1156.  
  1157. local player=game.Players.LocalPlayer
  1158.  
  1159. local char=player.Character
  1160.  
  1161. local humanoid=char:FindFirstChild("Humanoid")
  1162.  
  1163. local camera=workspace.CurrentCamera
  1164.  
  1165. local rightC1 = CFrame.new(-0.5, 0.7, 0) * CFrame.Angles(0, (math.pi / 2), 0)
  1166.  
  1167. local leftC1 = CFrame.new(0, 0.7, 0) * CFrame.Angles(0, (math.pi / 2), 0)
  1168.  
  1169. local mouse=player:GetMouse()
  1170.  
  1171. local equipping=false
  1172.  
  1173. local gettingknife=false
  1174.  
  1175. local laserCharge=false
  1176.  
  1177. local playcharge=false
  1178.  
  1179. local justthrown=false
  1180.  
  1181. local canLaser=true
  1182.  
  1183. local justattacked=false
  1184.  
  1185. local thrownkniferotation=0
  1186.  
  1187. local Damage=110
  1188.  
  1189. local Attacking=false
  1190.  
  1191. local handle=nil
  1192.  
  1193. local WalkSpeeds={16,20}
  1194.  
  1195. local fasterthrow = .2
  1196.  
  1197. local knifespeed = 225
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205. --[[if player.Gamepass4.Value == true then
  1206.  
  1207. fasterthrow = 0.5
  1208.  
  1209. else
  1210.  
  1211. fasterthrow = 0.2
  1212.  
  1213. end
  1214.  
  1215. if player.Gamepass5.Value == true then
  1216.  
  1217. knifespeed = 305
  1218.  
  1219. else
  1220.  
  1221. knifespeed = 225
  1222.  
  1223. end
  1224. --]]
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230. SOUNDS={
  1231.  
  1232. throwing={"153647554","153647549"},
  1233.  
  1234. laserthrowing={"193444173"},
  1235.  
  1236. shouts={"241084057","224360245","199837759","168209314"},
  1237.  
  1238. striking={"153647529","153647534","153647539","153647540"},
  1239.  
  1240. equip="153647514",
  1241.  
  1242. wallhit={"153647563","153647564"},
  1243.  
  1244. hitplayer={"153676325"},
  1245.  
  1246. deaths={"241084057","146457047","146594648","168209314"},
  1247.  
  1248. }
  1249.  
  1250.  
  1251.  
  1252. SETTINGS={
  1253.  
  1254.  
  1255. tool={
  1256.  
  1257. tool_size=Vector3.new(0.4, 3, 0.7),
  1258.  
  1259. tool_transparency=0,
  1260.  
  1261. tool_color=BrickColor.Black(),
  1262.  
  1263. default_tool_size=0.6,
  1264.  
  1265. },
  1266.  
  1267.  
  1268. }
  1269.  
  1270.  
  1271.  
  1272. function DamageObject(hit)
  1273.  
  1274. local char=hit.Parent
  1275.  
  1276. if char and char~=player.Character and char.Name~="Arms_Model" and hit.Name~="Handle" then
  1277.  
  1278. local h=char:FindFirstChild("Humanoid")
  1279.  
  1280. if h and h.Health > 0 then
  1281.  
  1282.  
  1283.  
  1284. h:TakeDamage(Damage)
  1285.  
  1286. PlaySound("Hit1",char.Torso)
  1287.  
  1288. local explosion = Instance.new("Explosion")
  1289.  
  1290. explosion.ExplosionType = 'NoCraters'
  1291.  
  1292. explosion.Position = humanoid.Torso.CFrame.p
  1293.  
  1294. explosion.BlastPressure=0
  1295.  
  1296. explosion.Parent=workspace
  1297.  
  1298. if h.Health == 0 then
  1299.  
  1300. PlaySound("Hit2")
  1301.  
  1302. end
  1303.  
  1304. end
  1305.  
  1306. end
  1307.  
  1308. end
  1309.  
  1310.  
  1311.  
  1312. function PlaySound(name,ctorso)
  1313.  
  1314. if name=="Throw" then
  1315.  
  1316. tool.Handle.Sound.SoundId = "rbxassetid://" .. SOUNDS.throwing[math.random(1,#SOUNDS.throwing)]
  1317.  
  1318. tool.Handle.Sound:Play()
  1319.  
  1320. elseif name=="ThrowLaser" then
  1321.  
  1322. tool.Handle.Sound.SoundId = "rbxassetid://" .. SOUNDS.laserthrowing[math.random(1,#SOUNDS.laserthrowing)]
  1323.  
  1324. tool.Handle.Sound:Play()
  1325.  
  1326. elseif name=="Equip" then
  1327.  
  1328. tool.Handle.Sound.SoundId = "rbxassetid://" .. SOUNDS.equip
  1329.  
  1330. tool.Handle.Sound:Play()
  1331.  
  1332. elseif name=="Swing" then
  1333.  
  1334. tool.Handle.Sound.SoundId = "rbxassetid://" .. SOUNDS.striking[math.random(1,#SOUNDS.striking)]
  1335.  
  1336. tool.Handle.Sound:Play()
  1337.  
  1338. elseif name=="Hit1" then
  1339.  
  1340. local NewSound=tool.Handle.Sound:clone()
  1341.  
  1342. NewSound.Parent=ctorso
  1343.  
  1344. NewSound.SoundId = "rbxassetid://" .. SOUNDS.hitplayer[math.random(1,#SOUNDS.hitplayer)]
  1345.  
  1346. NewSound:Play()
  1347.  
  1348. NewSound:Destroy()
  1349.  
  1350. --elseif name=="Hit2" then
  1351.  
  1352. --local NewSound=tool.Handle.Sound:clone()
  1353.  
  1354. --NewSound.Parent=ctorso
  1355.  
  1356. --NewSound.SoundId = "rbxassetid://" .. SOUNDS.deaths[math.random(1,#SOUNDS.deaths)]
  1357.  
  1358. --NewSound:Play()
  1359.  
  1360. -- NewSound:Destroy()
  1361.  
  1362. elseif name=="Laser" then
  1363.  
  1364. local NewSound=tool.Handle.Sound:Clone()
  1365.  
  1366. NewSound.Parent = ctorso
  1367. NewSound.SoundId = "rbxassetid://" .. SOUNDS.shouts[math.random(1,#SOUNDS.shouts)]
  1368.  
  1369. NewSound:Play()
  1370.  
  1371.  
  1372. end
  1373.  
  1374. end
  1375.  
  1376.  
  1377.  
  1378. function Throwtool(dPos)
  1379.  
  1380. if not tool.Handle then return end
  1381.  
  1382. local throwingHandle = tool.Handle:Clone()
  1383.  
  1384. game:GetService("Debris"):AddItem(throwingHandle, 5)
  1385.  
  1386. throwingHandle.Transparency=0
  1387.  
  1388. throwingHandle.Parent = workspace
  1389.  
  1390. if player.Character and player.Character.Humanoid then
  1391.  
  1392. throwingHandle.Velocity = (player.Character.Humanoid.TargetPoint - throwingHandle.CFrame.p).unit * knifespeed
  1393.  
  1394. if canLaser then
  1395.  
  1396. throwingHandle.Velocity = (player.Character.Humanoid.TargetPoint - throwingHandle.CFrame.p).unit * 15000
  1397.  
  1398. end
  1399.  
  1400. if mouse.Target ~= nil then
  1401.  
  1402. if mouse.Target.Parent.Name~="Arms_Model" and mouse.Target.Name~="ThrownKnife" and mouse.Target.Name~="Handle" then
  1403.  
  1404. targetpos=player.Character.Humanoid.TargetPoint
  1405.  
  1406. else
  1407.  
  1408. targetpos=Vector3.new(0,-10,0)
  1409.  
  1410. end
  1411.  
  1412. end
  1413.  
  1414. -- set the orientation to the direction it is being thrown in
  1415.  
  1416. throwingHandle.CFrame = CFrame.new(throwingHandle.CFrame.p, throwingHandle.CFrame.p + throwingHandle.Velocity) * CFrame.Angles(0, 0, math.rad(-90))
  1417.  
  1418. local floatingForce = Instance.new('BodyForce', throwingHandle)
  1419.  
  1420. floatingForce.force = Vector3.new(0, 196.2 * throwingHandle:GetMass() * 0.98, 0)
  1421.  
  1422. local spin = Instance.new('BodyAngularVelocity', throwingHandle)
  1423.  
  1424. spin.angularvelocity = throwingHandle.CFrame:vectorToWorldSpace(Vector3.new(0, -400, 0))
  1425.  
  1426. spawnPos=player.Character.PrimaryPart.Position
  1427.  
  1428. spawnPos = spawnPos + dPos*5
  1429.  
  1430. if canLaser then
  1431.  
  1432. local Ray = Ray.new(tool.Handle.CFrame.p,(mouse.Hit.p - tool.Handle.CFrame.p).unit * 999)
  1433.  
  1434. local Hit,Position = game.Workspace:FindPartOnRay(Ray,char)
  1435.  
  1436. if Hit then
  1437.  
  1438. if Hit.Parent:FindFirstChild("Humanoid") then
  1439.  
  1440. throwingHandle:Destroy()
  1441.  
  1442. Hit.Parent.Humanoid:TakeDamage(110)
  1443. PlaySound("Laser",Hit.Parent.Torso)
  1444. PlaySound("Hit1",Hit.Parent.Torso)
  1445. laserCharge=true
  1446.  
  1447.  
  1448.  
  1449. local explosion = Instance.new("Explosion")
  1450.  
  1451. explosion.Position=Hit.Parent.Torso.Position
  1452.  
  1453. explosion.BlastRadius=explosion.BlastRadius*2
  1454.  
  1455. explosion.Parent=workspace
  1456.  
  1457. end end
  1458.  
  1459. local RayPart = Instance.new("Part",workspace)
  1460.  
  1461. RayPart.Name = "RayPart"
  1462.  
  1463. RayPart.BrickColor = BrickColor.new("White")
  1464.  
  1465. RayPart.Transparency = 0
  1466.  
  1467. RayPart.Anchored = true
  1468.  
  1469. RayPart.CanCollide = false
  1470.  
  1471. RayPart.TopSurface = Enum.SurfaceType.Smooth
  1472.  
  1473. RayPart.BottomSurface = Enum.SurfaceType.Smooth
  1474.  
  1475. RayPart.formFactor = Enum.FormFactor.Custom
  1476.  
  1477. local Distance = (Position-tool.Handle.CFrame.p).magnitude
  1478.  
  1479. RayPart.Size = Vector3.new(0.2,0.2,Distance)
  1480.  
  1481. RayPart.CFrame = CFrame.new(Position,tool.Handle.CFrame.p) * CFrame.new(0,0,-Distance/2)
  1482.  
  1483. game.Debris:addItem(RayPart,.5)
  1484.  
  1485.  
  1486. end
  1487.  
  1488. end
  1489.  
  1490. if throwingHandle then
  1491.  
  1492.  
  1493.  
  1494. local touchedConn = throwingHandle.Touched:connect(function(hit)
  1495.  
  1496. local char=hit.Parent
  1497.  
  1498. camera.CameraSubject=humanoid
  1499.  
  1500. camera.CameraType=Enum.CameraType.Custom
  1501.  
  1502. if char and char~=player.Character and char.Name~="Arms_Model" and hit.Name~="Handle" and hit.Name~="RayPart" then
  1503.  
  1504. local h=char:FindFirstChild("Humanoid")
  1505.  
  1506. if h and h.Health > 0 then
  1507.  
  1508. throwingHandle:Destroy()
  1509.  
  1510. laserCharge=true
  1511.  
  1512. if hit.Name~="Head" or hit.className=="Hat" then
  1513.  
  1514. h:TakeDamage(Damage)
  1515.  
  1516. -- player.Credits.Value = player.Credits.Value + 15
  1517.  
  1518. --player.PlayerGui.NormalKillGui.Script.Disabled = false
  1519.  
  1520. local explosion = Instance.new("Explosion")
  1521.  
  1522. explosion.Position=h.Parent.Torso.Position
  1523.  
  1524. explosion.BlastRadius=explosion.BlastRadius*2
  1525.  
  1526. explosion.Parent=workspace
  1527.  
  1528.  
  1529. if h.Health == 0 then
  1530.  
  1531. PlaySound("Hit2",char.Torso)
  1532.  
  1533. end
  1534.  
  1535. else
  1536.  
  1537. h:TakeDamage(Damage * 2)
  1538.  
  1539. print("Headshot!")
  1540.  
  1541. --player.Credits.Value = player.Credits.Value + 50
  1542.  
  1543. --player.PlayerGui.HeadShotGui.Script.Disabled = false
  1544.  
  1545. local explosion = Instance.new("Explosion")
  1546.  
  1547. explosion.Position=h.Parent.Torso.Position
  1548.  
  1549. explosion.BlastRadius=explosion.BlastRadius*2
  1550.  
  1551. explosion.Parent=workspace
  1552.  
  1553. char.Head.Transparency=1
  1554.  
  1555. char.Head.CanCollide=false
  1556.  
  1557. if char.Head:FindFirstChild("face") then char.Head:FindFirstChild("face").Transparency=1 end
  1558.  
  1559. for _,v in pairs(char:GetChildren()) do
  1560.  
  1561. if v.className=="Hat" then
  1562.  
  1563. v:Destroy()
  1564.  
  1565. end
  1566.  
  1567. end
  1568.  
  1569. for i = 1, 7 do
  1570.  
  1571. local blood=Instance.new("Part")
  1572.  
  1573. blood.FormFactor="Custom"
  1574.  
  1575. blood.Size=Vector3.new(1,.2,1)
  1576.  
  1577. blood.BrickColor=BrickColor.Red()
  1578.  
  1579. blood.TopSurface=0
  1580.  
  1581. blood.BottomSurface=0
  1582.  
  1583. game:GetService("Debris"):AddItem(blood,5)
  1584.  
  1585. blood.Parent=workspace
  1586.  
  1587. blood.Position=char.Head.Position + Vector3.new(math.random(0.2,0.8),0,math.random(0.2,0.8))
  1588.  
  1589. end
  1590.  
  1591. local sound = Instance.new("Sound")
  1592.  
  1593. sound.SoundId = "rbxassetid://142347633"
  1594.  
  1595. sound.Parent=char.Head
  1596.  
  1597. sound.Pitch=1.1
  1598.  
  1599. sound:Play()
  1600.  
  1601. end
  1602.  
  1603. PlaySound("Hit1",char.Torso)
  1604.  
  1605. if h.Health == 0 then
  1606.  
  1607. PlaySound("Hit2")
  1608.  
  1609. end
  1610.  
  1611. elseif hit.Name~="Handle" or hit.Name~="IgnoreThrowingKnives" and hit.Parent.Name~="Arms_Model" and hit.Name~="RayPart" and hit.CanCollide==true then
  1612.  
  1613. local sound=Instance.new("Sound")
  1614.  
  1615. sound.Parent=hit
  1616.  
  1617. sound.SoundId = "rbxassetid://" .. SOUNDS.wallhit[math.random(1,#SOUNDS.wallhit)]
  1618.  
  1619. sound:Play()
  1620.  
  1621. sound:Destroy()
  1622.  
  1623. print("Hit Object: " .. hit.Name)
  1624.  
  1625. local newknife=tool.Handle:clone()
  1626.  
  1627. newknife.Name="ThrownKnife"
  1628.  
  1629. newknife.CFrame = CFrame.new(spawnPos, spawnPos + dPos) * CFrame.Angles(math.pi/-2, 0, 0)
  1630.  
  1631. newknife.Position = targetpos
  1632.  
  1633. throwingHandle:Destroy()
  1634.  
  1635. newknife.Anchored=true
  1636.  
  1637. newknife.CanCollide=true
  1638.  
  1639. newknife.Transparency=0
  1640.  
  1641. newknife.Parent=workspace
  1642.  
  1643. --newknife.Script.Disabled = false
  1644.  
  1645. wait(7)
  1646.  
  1647. for i=1,10 do
  1648.  
  1649. newknife.Transparency=i*.1
  1650.  
  1651. wait()
  1652.  
  1653. end
  1654.  
  1655. newknife:Destroy()
  1656.  
  1657. end
  1658.  
  1659. end
  1660.  
  1661. end)
  1662.  
  1663. end
  1664.  
  1665. end
  1666.  
  1667. -- must check if it still exists since we waited
  1668.  
  1669. if throwingHandle then
  1670.  
  1671. throwingHandle.CanCollide = true
  1672.  
  1673. end
  1674.  
  1675.  
  1676.  
  1677. FUNCTIONS={
  1678.  
  1679.  
  1680. CHECKFORFIRSTPERSON=function()
  1681.  
  1682. if (camera.focus.p - camera.CoordinateFrame.p).magnitude > 1 then
  1683.  
  1684. return false
  1685.  
  1686. else
  1687.  
  1688. return true
  1689.  
  1690. end
  1691.  
  1692. end,
  1693.  
  1694.  
  1695. ANIMS=function(state)
  1696.  
  1697. if state then
  1698.  
  1699. mouse.Icon="http://www.roblox.com/asset/?id=258828417"
  1700.  
  1701. --Start Animation
  1702.  
  1703.  
  1704.  
  1705. if SETTINGS.tool then
  1706.  
  1707. tool.GripPos = Vector3.new(0, -0.55, 0)
  1708.  
  1709. elseif SETTINGS.tool then
  1710.  
  1711. tool.GripPos = Vector3.new(0, -0.6, 0)
  1712.  
  1713. elseif SETTINGS.tool then
  1714.  
  1715. tool.GripPos = Vector3.new(0, -0.65, 0)
  1716.  
  1717. elseif SETTINGS.tool then
  1718.  
  1719. tool.GripPos = Vector3.new(0, -0.7, 0)
  1720.  
  1721. elseif SETTINGS.tool then
  1722.  
  1723. tool.GripPos = Vector3.new(0, -0.75, 0)
  1724.  
  1725. elseif SETTINGS.tool then
  1726.  
  1727. tool.GripPos = Vector3.new(0, -0.8, 0)
  1728.  
  1729. elseif SETTINGS.tool then
  1730.  
  1731. tool.GripPos = Vector3.new(0, -0.85, 0)
  1732.  
  1733. elseif SETTINGS.tool then
  1734.  
  1735. tool.GripPos = Vector3.new(0, -0.9, 0)
  1736.  
  1737. elseif SETTINGS.tool then
  1738.  
  1739. tool.GripPos = Vector3.new(0, -0.95, 0)
  1740.  
  1741. elseif SETTINGS.tool then
  1742.  
  1743. tool.GripPos = Vector3.new(0, -1, 0)
  1744.  
  1745. else
  1746.  
  1747. print("Invalid tool size! Set to default: " .. SETTINGS.tool.default_tool_size )
  1748.  
  1749.  
  1750. if SETTINGS.tool.default_tool_size==.1 then
  1751.  
  1752. tool.GripPos = Vector3.new(0, -0.55, 0)
  1753.  
  1754. elseif SETTINGS.tool.default_tool_size==.2 then
  1755.  
  1756. tool.GripPos = Vector3.new(0, -0.6, 0)
  1757.  
  1758. elseif SETTINGS.tool.default_tool_size==.3 then
  1759.  
  1760. tool.GripPos = Vector3.new(0, -0.65, 0)
  1761.  
  1762. elseif SETTINGS.tool.default_tool_size==.4 then
  1763.  
  1764. tool.GripPos = Vector3.new(0, -0.7, 0)
  1765.  
  1766. elseif SETTINGS.tool.default_tool_size==.5 then
  1767.  
  1768. tool.GripPos = Vector3.new(0, -0.75, 0)
  1769.  
  1770. elseif SETTINGS.tool.default_tool_size==.6 then
  1771.  
  1772. tool.GripPos = Vector3.new(0, -0.8, 0)
  1773.  
  1774. elseif SETTINGS.tool.default_tool_size==.7 then
  1775.  
  1776. tool.GripPos = Vector3.new(0, -0.85, 0)
  1777.  
  1778. elseif SETTINGS.tool.default_tool_size==.8 then
  1779.  
  1780. tool.GripPos = Vector3.new(0, -0.9, 0)
  1781.  
  1782. elseif SETTINGS.tool.default_tool_size==.9 then
  1783.  
  1784. tool.GripPos = Vector3.new(0, -0.95, 0)
  1785.  
  1786. elseif SETTINGS.tool.default_tool_size==1 then
  1787.  
  1788. tool.GripPos = Vector3.new(0, -1, 0)
  1789.  
  1790. else
  1791.  
  1792. print("Invalid default size! Un-equipping and removing Knife...")
  1793.  
  1794.  
  1795. end
  1796.  
  1797. end
  1798.  
  1799. torso=char:FindFirstChild("Torso")
  1800.  
  1801. leftarm=torso:FindFirstChild("Left Shoulder")
  1802.  
  1803. if leftarm then
  1804.  
  1805. leftarm.Parent=nil
  1806.  
  1807. newarmweld=Instance.new("Weld")
  1808.  
  1809. newarmweld.Name="LeftWeld"
  1810.  
  1811. newarmweld.Part0=torso
  1812.  
  1813. newarmweld.C0 = CFrame.new(-1.5, 0.7, 0)
  1814.  
  1815. newarmweld.C1 = CFrame.new(0, 0.7, 0)
  1816.  
  1817. newarmweld.Part1=char:FindFirstChild("Left Arm")
  1818.  
  1819. newarmweld.Parent=torso
  1820.  
  1821. end
  1822.  
  1823. humanoid.WalkSpeed=WalkSpeeds[2]
  1824.  
  1825. for i = 1, 15, 3 do
  1826.  
  1827. if equipped then
  1828.  
  1829. torso:FindFirstChild("Right Shoulder").C1 = rightC1 * CFrame.Angles((-i * (math.pi / 90)),(-i * (math.pi / 90)),(i * (math.pi / 210)))
  1830.  
  1831. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0) * CFrame.Angles((-i * (math.pi / 60)),(i * (math.pi / 90)),(-i * (math.pi / 240)))
  1832.  
  1833. end
  1834.  
  1835. wait()
  1836.  
  1837. end
  1838.  
  1839. else
  1840.  
  1841. humanoid.WalkSpeed=WalkSpeeds[1]
  1842.  
  1843. torso:FindFirstChild("Right Shoulder").C1 = rightC1 * CFrame.new(0,-0.2,0)
  1844.  
  1845. tool.GripForward = Vector3.new(0,0,-1)
  1846.  
  1847. newarmweld:Destroy()
  1848.  
  1849. leftarm.Parent=torso
  1850.  
  1851. mouse.Icon=""
  1852.  
  1853. torso:FindFirstChild("Neck").C0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  1854.  
  1855. torso:FindFirstChild("Right Shoulder").C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1856.  
  1857. end
  1858.  
  1859. end
  1860.  
  1861. }
  1862.  
  1863.  
  1864.  
  1865. tool.Equipped:connect(function ()
  1866.  
  1867. equipped=true
  1868.  
  1869. PlaySound("Equip")
  1870.  
  1871. FUNCTIONS.ANIMS(true)
  1872.  
  1873. end)
  1874.  
  1875. tool.Unequipped:connect(function ()
  1876.  
  1877. equipped=false
  1878.  
  1879. FUNCTIONS.ANIMS(false)
  1880.  
  1881. end)
  1882.  
  1883. tool.Handle.Touched:connect(function (hit)
  1884.  
  1885. if Attacking then
  1886.  
  1887. DamageObject(hit)
  1888.  
  1889. end
  1890.  
  1891. end)
  1892.  
  1893. tool.Activated:connect(function ()
  1894.  
  1895. if Attacking then return end
  1896.  
  1897. if not tool.Enabled then return end
  1898.  
  1899. justthrown=false
  1900.  
  1901. justattacked=false
  1902.  
  1903. if not gettingknife and not justthrown and not Attacking then
  1904.  
  1905. HeldTime=time()
  1906.  
  1907. end
  1908.  
  1909. playcharge=true
  1910.  
  1911. wait(.15)
  1912.  
  1913. while gettingknife do
  1914.  
  1915. wait()
  1916.  
  1917. end
  1918.  
  1919. local speed=0.2
  1920.  
  1921. for i = 1, 15, fasterthrow do
  1922.  
  1923. if playcharge and equipped and not gettingknife and not justthrown and not Attacking then
  1924.  
  1925. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, 0.195277825, -0.747909963, 0.634426773, 0.482016951, 0.636551082, 0.602048457, -0.854123056, 0.188237742, 0.484809577) * CFrame.Angles((i * (math.pi / 50)), 0, (-i * (math.pi / 25)))
  1926.  
  1927. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0, 0.858912528, 0.165011853, 0.484809607, -0.464581847, 0.649385393, 0.602048457, -0.215483144, -0.742340684, 0.634426773) * CFrame.Angles((-i * (math.pi / 75)),(i * (math.pi / 180)),0)
  1928.  
  1929. player.Character["Right Arm"].RightGrip.C1 = CFrame.new(0, -0.800000012, 0.05, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.Angles((-i * (math.pi / 150)),0,0)
  1930.  
  1931. wait()
  1932.  
  1933. end
  1934.  
  1935. end
  1936.  
  1937. if playcharge then
  1938.  
  1939. canLaser=true
  1940.  
  1941. end
  1942.  
  1943. end)
  1944.  
  1945. tool.Deactivated:connect(function ()
  1946.  
  1947. if not tool.Enabled then return end
  1948.  
  1949. currTime=time()
  1950.  
  1951. playcharge=false
  1952.  
  1953. if HeldTime and currTime - HeldTime > .6 and
  1954.  
  1955. currTime - HeldTime > 0.01 and not justthrown and not gettingknife then
  1956.  
  1957. if not Attacking and not justattacked then
  1958.  
  1959. print("Throw")
  1960.  
  1961. if canLaser then
  1962.  
  1963. PlaySound("ThrowLaser")
  1964.  
  1965. else
  1966.  
  1967. PlaySound("Throw")
  1968.  
  1969. end
  1970.  
  1971. tool.Handle.Transparency=1
  1972.  
  1973. local targetPos = player.Character.Humanoid.TargetPoint
  1974.  
  1975. local lookAt = (targetPos - player.Character.PrimaryPart.Position).unit
  1976.  
  1977. local switchEvenOddParity = 1
  1978.  
  1979. local angle = math.ceil((1-1)/2)*math.pi/12*switchEvenOddParity
  1980.  
  1981. Throwtool(CFrame.Angles(0, angle, 0) * lookAt)
  1982.  
  1983. wait()
  1984. canLaser=true
  1985.  
  1986. HeldTime=0
  1987.  
  1988. gettingknife=true
  1989.  
  1990. mouse.Icon="http://www.roblox.com/asset/?id=258828417"
  1991.  
  1992. player.Character["Right Arm"].RightGrip.C1 = CFrame.new(0, -0.800000012, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  1993.  
  1994. for i = 1, 15, .8 do
  1995.  
  1996. if equipped then
  1997.  
  1998. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, 0.0719629526, 0.22870943, 0.970831275, -0.981789052, 0.187819958, 0.0285283029, -0.175816804, -0.955204487, 0.238060504) * CFrame.Angles(0, 0, (i * (math.pi / 15)))
  1999.  
  2000. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, 0.7, 0, 0.703028679, -0.151466534, 0.694844246, -0.673604906, 0.171488613, 0.718921423, -0.228050426, -0.973472893, 0.0185328126) * CFrame.Angles((i * (math.pi / 60)),(-i * (math.pi / 180)),(i * (math.pi / 60)))
  2001.  
  2002. wait()
  2003.  
  2004. end
  2005.  
  2006. end
  2007.  
  2008. justthrown=true
  2009.  
  2010. tool.Handle.Transparency=0
  2011.  
  2012. PlaySound("Equip")
  2013.  
  2014. mouse.Icon="http://www.roblox.com/asset/?id=258828417"
  2015.  
  2016. tool.GripForward = Vector3.new(0,0,-1)
  2017.  
  2018. for i = 1, 15, 1 do
  2019.  
  2020. if equipped then
  2021.  
  2022. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, -0.071962975, -0.22870943, 0.970831275, 0.981789052, -0.187820047, 0.0285283029, 0.175816894, 0.955204487, 0.238060504) * CFrame.Angles(0, 0, (-i * (math.pi / 30)))
  2023.  
  2024. wait()
  2025.  
  2026. end
  2027.  
  2028. end
  2029.  
  2030. gettingknife=false
  2031.  
  2032. for i = 1, 15, 3 do
  2033.  
  2034. if equipped then
  2035.  
  2036. torso:FindFirstChild("Right Shoulder").C1 = rightC1 * CFrame.Angles((-i * (math.pi / 90)),(-i * (math.pi / 90)),(i * (math.pi / 210)))
  2037.  
  2038. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0) * CFrame.Angles((-i * (math.pi / 60)),(i * (math.pi / 90)),(-i * (math.pi / 240)))
  2039.  
  2040. end
  2041.  
  2042. wait()
  2043.  
  2044. end
  2045.  
  2046. end
  2047.  
  2048. else
  2049.  
  2050. if not justthrown and not gettingknife then
  2051.  
  2052. if Attacking then return end
  2053.  
  2054. print("Attack")
  2055.  
  2056. HeldTime=0
  2057.  
  2058. Attacking=true
  2059.  
  2060. justattacked=true
  2061.  
  2062. if math.random(1,2)==1 then
  2063.  
  2064. for i = 1, 15, 3 do
  2065.  
  2066. if equipped and not gettingknife and not justthrown then
  2067.  
  2068. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, 0.195277825, -0.747909963, 0.634426773, 0.482016951, 0.636551082, 0.602048457, -0.854123056, 0.188237742, 0.484809577) * CFrame.Angles((i * (math.pi / 65)), 0, (-i * (math.pi / 30)))
  2069.  
  2070. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0, 0.858912528, 0.165011853, 0.484809607, -0.464581847, 0.649385393, 0.602048457, -0.215483144, -0.742340684, 0.634426773) * CFrame.Angles((-i * (math.pi / 75)),(i * (math.pi / 180)),0)
  2071.  
  2072. wait()
  2073.  
  2074. end
  2075.  
  2076. end
  2077.  
  2078. PlaySound("Swing")
  2079.  
  2080. for i = 1, 15, 3 do
  2081.  
  2082. if equipped and not gettingknife and not justthrown then
  2083.  
  2084. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, 0.0719629526, 0.22870943, 0.970831275, -0.981789052, 0.187819958, 0.0285283029, -0.175816804, -0.955204487, 0.238060504) * CFrame.Angles(0, 0, (i * (math.pi / 15)))
  2085.  
  2086. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, 0.7, 0, 0.703028679, -0.151466534, 0.694844246, -0.673604906, 0.171488613, 0.718921423, -0.228050426, -0.973472893, 0.0185328126) * CFrame.Angles((i * (math.pi / 60)),(-i * (math.pi / 180)),(i * (math.pi / 60)))
  2087.  
  2088. wait()
  2089.  
  2090. end
  2091.  
  2092. end
  2093.  
  2094. for i = 1, 15, 3 do
  2095.  
  2096. if equipped and not justthrown and not gettingknife then
  2097.  
  2098. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.5, 0.5, 0, -0.071962975, -0.22870943, 0.970831275, 0.981789052, -0.187820047, 0.0285283029, 0.175816894, 0.955204487, 0.238060504) * CFrame.Angles(0, 0, (-i * (math.pi / 30)))
  2099.  
  2100. wait()
  2101.  
  2102. end
  2103.  
  2104. end
  2105.  
  2106. for i = 1, 15, 3 do
  2107.  
  2108. equipping=true
  2109.  
  2110. if equipped and not gettingknife and not justthrown then
  2111.  
  2112. torso:FindFirstChild("Right Shoulder").C1 = rightC1 * CFrame.Angles((-i * (math.pi / 90)),(-i * (math.pi / 90)),(i * (math.pi / 210)))
  2113.  
  2114. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0) * CFrame.Angles((-i * (math.pi / 60)),(i * (math.pi / 90)),(-i * (math.pi / 240)))
  2115.  
  2116. end
  2117.  
  2118. wait()
  2119.  
  2120. end
  2121.  
  2122. Attacking=false
  2123.  
  2124. else
  2125.  
  2126. for i = 1, 15, 3 do
  2127.  
  2128. if equipped and not gettingknife and not justthrown then
  2129.  
  2130. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.3, 0.5, 0, 0.195277825, -0.747909963, 0.634426773, 0.482016951, 0.636551082, 0.602048457, -0.854123056, 0.188237742, 0.484809577) * CFrame.Angles((i * (math.pi / 40)),(-i * (math.pi / 45)),(i * (math.pi / 60)))
  2131.  
  2132. end
  2133.  
  2134. wait()
  2135.  
  2136. end
  2137.  
  2138. PlaySound("Swing")
  2139.  
  2140. for i = 1, 15, 3 do
  2141.  
  2142. if equipped and not gettingknife and not justthrown then
  2143.  
  2144. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.2, 0.5, -.3, 0.852928281, -0.428775758, 0.29776603, 0.516928136, 0.614185035, -0.596290231, 0.0727913082, 0.662516415, 0.745502114) * CFrame.Angles((-i * (math.pi / 45)),0,0)
  2145.  
  2146. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.200000003, 0.7, 0, 0.849384904, 0.16895318, 0.5, -0.48470962, 0.624545038, 0.612372398, -0.208810255, -0.762494743, 0.612372398) * CFrame.Angles((i * (math.pi / 60)),(-i * (math.pi / 180)),(i * (math.pi / 60)))
  2147.  
  2148. end
  2149.  
  2150. wait()
  2151.  
  2152. end
  2153.  
  2154. for i = 1, 15, 3 do
  2155.  
  2156. if equipped and not gettingknife and not justthrown then
  2157.  
  2158. torso:FindFirstChild("Right Shoulder").C1 = CFrame.new(-0.3, 0.5, -0.300000012, 0.852928281, -0.472260833, -0.222447708, 0.516928136, 0.82349503, 0.233754784, 0.0727913082, -0.314365625, 0.946507096) * CFrame.Angles((i * (math.pi / 45)),0,0)
  2159.  
  2160. end
  2161.  
  2162. wait()
  2163.  
  2164. end
  2165.  
  2166. for i = 1, 15, 3 do
  2167.  
  2168. if equipped and not gettingknife and not justthrown then
  2169.  
  2170. torso:FindFirstChild("Right Shoulder").C1 = rightC1 * CFrame.Angles((-i * (math.pi / 90)),(-i * (math.pi / 90)),(i * (math.pi / 210)))
  2171.  
  2172. torso:FindFirstChild("LeftWeld").C1 = CFrame.new(-0.2, .7, 0) * CFrame.Angles((-i * (math.pi / 60)),(i * (math.pi / 90)),(-i * (math.pi / 240)))
  2173.  
  2174. end
  2175.  
  2176. wait()
  2177.  
  2178. end
  2179.  
  2180. Attacking=false
  2181.  
  2182. end
  2183.  
  2184. end
  2185.  
  2186. end
  2187.  
  2188. end)
  2189.  
  2190.  
  2191.  
  2192. mouse.Move:connect(function ()
  2193.  
  2194. if equipped and mouse then
  2195.  
  2196. if (mouse.Hit.p - mouse.Origin.p).unit.y < 0.25 and (mouse.Hit.p - mouse.Origin.p).unit.y > -0.25 then
  2197.  
  2198. torso:FindFirstChild("Right Shoulder").C0 = CFrame.new(.9,.5,0) * CFrame.Angles(0,math.rad(90),0) * CFrame.Angles(0, 0, math.asin((mouse.Hit.p - mouse.Origin.p).unit.y))
  2199.  
  2200. torso:FindFirstChild("LeftWeld").C0 = CFrame.new(-1.5,0.5,0) * CFrame.Angles(0, 0, math.asin((mouse.Hit.p - mouse.Origin.p).unit.y))
  2201.  
  2202. torso:FindFirstChild("Neck").C0 = CFrame.new(0,1,0) * CFrame.Angles(math.rad(-90),0,math.rad(180)) * CFrame.Angles(math.asin(-(mouse.Hit.p - mouse.Origin.p).unit.y), 0, 0)
  2203.  
  2204. end
  2205.  
  2206. end
  2207.  
  2208. end)
  2209.  
  2210. Pastebin PRO Summer Special!
  2211. Get 60% OFF on Pastebin PRO accounts!
  2212.  
  2213. create new paste / dealsnew! / api / trends / syntax languages / faq / tools / privacy / cookies / contact / dmca / scraping / go
  2214. Site design & logo © 2017 Pastebin; user contributions (pastes) licensed under cc by-sa 3.0 -- Dedicated Server Hosting by Steadfast
  2215.  
  2216. My Pastebin
  2217. Share on Twitter!
  2218. Top
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement