Advertisement
Rufus14

Taser

Jan 12th, 2020
2,527
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 18.29 KB | None | 0 0
  1. --By Rufus14
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. Tool0 = Instance.new("Tool")
  4. Part1 = Instance.new("Part")
  5. SpecialMesh2 = Instance.new("SpecialMesh")
  6. Sound3 = Instance.new("Sound")
  7. FlangeSoundEffect4 = Instance.new("FlangeSoundEffect")
  8. Sound5 = Instance.new("Sound")
  9. Tool0.Name = "Taser"
  10. Tool0.Grip = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  11. Tool0.GripForward = Vector3.new(1, -0, -0)
  12. Tool0.GripRight = Vector3.new(0, 0, 1)
  13. Part1.Name = "Handle"
  14. Part1.Parent = Tool0
  15. Part1.CFrame = CFrame.new(18.9485455, 0.70252353, -13.5136948, 0.152027637, -0.454833627, -0.877504945, 1.38640985e-07, 0.887824535, -0.460182667, 0.988376021, 0.069960326, 0.134974062)
  16. Part1.Orientation = Vector3.new(27.3999996, -81.2600021, 0)
  17. Part1.Position = Vector3.new(18.9485455, 0.70252353, -13.5136948)
  18. Part1.Rotation = Vector3.new(73.6500015, -61.3400002, 71.5199966)
  19. Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
  20. Part1.Size = Vector3.new(0.399999857, 0.718000174, 1.66799939)
  21. Part1.BottomSurface = Enum.SurfaceType.Smooth
  22. Part1.BrickColor = BrickColor.new("Black")
  23. Part1.Locked = true
  24. Part1.TopSurface = Enum.SurfaceType.Smooth
  25. Part1.brickColor = BrickColor.new("Black")
  26. Part1.FormFactor = Enum.FormFactor.Custom
  27. Part1.formFactor = Enum.FormFactor.Custom
  28. SpecialMesh2.Parent = Part1
  29. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=82337638"
  30. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=82337709"
  31. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  32. Sound3.Name = "Use"
  33. Sound3.Parent = Part1
  34. Sound3.SoundId = "rbxassetid://3382281516"
  35. FlangeSoundEffect4.Parent = Sound3
  36. FlangeSoundEffect4.Rate = 1
  37. FlangeSoundEffect4.Depth = 1
  38. FlangeSoundEffect4.Mix = 1
  39. Sound5.Name = "Swoosh"
  40. Sound5.Parent = Part1
  41. Sound5.Pitch = 1.5
  42. Sound5.PlaybackSpeed = 1.5
  43. Sound5.SoundId = "rbxassetid://1489706716"
  44. coroutine.wrap(function()
  45. --By Rufus14
  46. canattack = true
  47. cananimate = false
  48. equipped = false
  49. runservice = game:GetService("RunService")
  50. tool = script.Parent
  51. handle = tool.Handle
  52. swoosh = handle.Swoosh
  53. zap = handle.Use
  54. anim = "idle"
  55. local owner
  56. local character
  57. function gettasedbro(WHO)
  58.     local WHOhum = WHO:findFirstChildOfClass("Humanoid")
  59.     local WHOhead = WHO:findFirstChild("Head")
  60.     if WHOhum and WHOhead then
  61.         --print("bzzbzbzbzbzbzbzbzbzzz")
  62.         WHOhum.PlatformStand = true
  63.         WHOhead.CFrame = WHOhead.CFrame * CFrame.new(0,-2,0)
  64.         if math.random(1,2) == 1 then
  65.             WHOhead.CFrame = WHOhead.CFrame * CFrame.fromEulerAnglesXYZ(math.pi/2,0,0)
  66.         else
  67.             WHOhead.CFrame = WHOhead.CFrame * CFrame.fromEulerAnglesXYZ(-math.pi/2,0,0)
  68.         end
  69.         local bzbzing = true
  70.         coroutine.wrap(function()
  71.             local thetazedbro = game:GetService("Players"):GetPlayerFromCharacter(WHO)
  72.             while runservice.Stepped:wait() and bzbzing and thetazedbro do
  73.                 if thetazedbro.Character:findFirstChildOfClass("Tool") then
  74.                     thetazedbro.Character:findFirstChildOfClass("Tool").Parent = thetazedbro:findFirstChildOfClass("Backpack")
  75.                 end
  76.             end
  77.         end)()
  78.         coroutine.wrap(function()
  79.             for i = 1,35 do
  80.                 local pointli = Instance.new("PointLight", WHOhead)
  81.                 game.Debris:AddItem(pointli, 0.05)
  82.                 WHOhum.PlatformStand = true
  83.                 WHOhead.CFrame = WHOhead.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-10,10)/100,math.random(-10,10)/100,math.random(-10,10)/100)
  84.                 wait(0.15)
  85.             end
  86.             bzbzing = false
  87.             WHOhum.PlatformStand = false
  88.         end)()
  89.     end
  90. end
  91. tool.Activated:connect(function()
  92.     if canattack then
  93.         canattack = false
  94.         cananimate = false
  95.         local charhum = character:findFirstChildOfClass("Humanoid")
  96.         local lastws = charhum.WalkSpeed
  97.         local lastjp = charhum.JumpPower
  98.         charhum.WalkSpeed = 0
  99.         charhum.JumpPower = 0
  100.         local grip = character["Right Arm"]:WaitForChild("RightGrip")
  101.         local rightarmweld = character.Torso:findFirstChild("RightArmWeldtaser")
  102.         local leftarmweld = character.Torso:findFirstChild("LeftArmWeldtaser")
  103.         local rightlegweld = character.Torso:findFirstChild("RightLegWeldtaser")
  104.         local leftlegweld = character.Torso:findFirstChild("LeftLegWeldtaser")
  105.         local headweld = character.Torso:findFirstChild("HeadWeldtaser")
  106.         local rootpart = character.HumanoidRootPart
  107.         local rootweld = character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldtaser")
  108.         for i = 0,1 , 0.06 do
  109.             rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.55502224, 0.124655247, 0.225976944, 0.586992025, -0.523052156, -0.617945373, 0.0230990332, 0.773788929, -0.63302207, 0.809263051, 0.35730505, 0.466289997),i)
  110.             leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-1.57922792, 0.094420433, 0, 0.98480773, 0.173648164, 0, -0.173648164, 0.98480767, 0, 0, -1.86264515e-09, 0.99999994),i)
  111.             leftlegweld.C0 = leftlegweld.C0:lerp(CFrame.new(-0.881243706, -2.07163167, 0, 0.98480773, 0.173648164, 0, -0.173648164, 0.98480767, 0, 0, -1.86264515e-09, 0.99999994),i)
  112.             rightlegweld.C0 = rightlegweld.C0:lerp(CFrame.new(0.881244421, -2.07163167, 0, 0.98480773, -0.173648164, 0, 0.173648164, 0.98480767, 0, 0, 1.86264515e-09, 0.99999994),i)
  113.             rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, 0, 0, 0.173648223, 0, -0.98480773, 0, 1, 0, 0.98480773, 0, 0.173648223),i)
  114.             headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.173648208, 0, 0.98480767, 0, 1, 0, -0.98480767, 0, 0.173648208),i)
  115.             runservice.Stepped:wait()
  116.         end
  117.         swoosh:Play()
  118.         coroutine.wrap(function()
  119.             for i = 0,1 , 0.14 do
  120.                 if not cananimate then
  121.                     rightarmweld.C0 = rightarmweld.C0:lerp(CFrame.new(1.89609933, 0.630064964, 0.00938415527, 0.110008851, -0.983443081, 0.144003883, -0.0606550612, -0.151255667, -0.986631811, 0.992077947, 0.0998035818, -0.0762902573),i)
  122.                     leftarmweld.C0 = leftarmweld.C0:lerp(CFrame.new(-1.70441556, 0.561628342, 0, 0.642787576, 0.766044259, 0, -0.766044319, 0.642787576, 0, 0, 0, 0.999999881),i)
  123.                     leftlegweld.C0 = leftlegweld.C0:lerp(CFrame.new(-0.875211716, -2.14543176, 0, 0.939692378, 0.342020035, 0, -0.342020094, 0.939692378, 0, 0, 0, 0.999999881),i)
  124.                     rightlegweld.C0 = rightlegweld.C0:lerp(CFrame.new(1.12330461, -1.66642118, 0, 0.939692318, -0.342020094, 0, 0.342020035, 0.939692438, 0, 0, 0, 0.999999881),i)
  125.                     rootweld.C0 = rootweld.C0:lerp(CFrame.new(0, -0.231691122, -0.162231922, 0, 0, 0.99999994, -0.173648179, 0.98480773, 0, -0.98480767, -0.173648164, 0),i)
  126.                     headweld.C0 = headweld.C0:lerp(CFrame.new(4.76837158e-07, 1.5, 0, 0.642787576, -1.49011612e-08, -0.76604414, -1.49011612e-08, 0.99999994, 1.49011612e-08, 0.76604414, 0, 0.642787576),i)
  127.                     runservice.Stepped:wait()
  128.                 end
  129.             end
  130.         end)()
  131.         local hitsomeone = false
  132.         for i = 1,15 do
  133.             if not hitsomeone and runservice.Stepped:wait() then
  134.                 rootpart.CFrame = rootpart.CFrame * CFrame.new(0,0,-0.35)
  135.                 local ray = Ray.new(handle.Position, rootpart.CFrame.lookVector * 0.35)
  136.                 local hit, position = workspace:FindPartOnRay(ray)
  137.                 if hit ~= nil then
  138.                     if hit.Parent:findFirstChildOfClass("Humanoid") then
  139.                         --print("tazed")
  140.                         hitsomeone = true
  141.                         gettasedbro(hit.Parent)
  142.                         local zapclone = zap:Clone()
  143.                         zapclone.Parent = hit
  144.                         zapclone:Play()
  145.                         game.Debris:AddItem(zapclone,zapclone.TimeLength)
  146.                     elseif hit.Parent.Parent:findFirstChildOfClass("Humanoid") then
  147.                         --print("tazed through hat")
  148.                         gettasedbro(hit.Parent.Parent)
  149.                         hitsomeone = true
  150.                         local zapclone = zap:Clone()
  151.                         zapclone.Parent = hit
  152.                         zapclone:Play()
  153.                         game.Debris:AddItem(zapclone,zapclone.TimeLength)
  154.                     end
  155.                 end
  156.             end
  157.         end
  158.         charhum.WalkSpeed = lastws
  159.         charhum.JumpPower = lastjp
  160.         cananimate = true
  161.         canattack = true
  162.     end
  163. end)
  164. tool.Unequipped:connect(function()
  165.     equipped = false
  166.     cananimate = false
  167.     if character.Torso:findFirstChild("LeftArmWeldtaser") then
  168.         character.Torso:findFirstChild("LeftArmWeldtaser"):destroy()
  169.     end
  170.     if character.Torso:findFirstChild("RightArmWeldtaser") then
  171.         character.Torso:findFirstChild("RightArmWeldtaser"):destroy()
  172.     end
  173.     if character.Torso:findFirstChild("LeftLegWeldtaser") then
  174.         character.Torso:findFirstChild("LeftLegWeldtaser"):destroy()
  175.     end
  176.     if character.Torso:findFirstChild("RightLegWeldtaser") then
  177.         character.Torso:findFirstChild("RightLegWeldtaser"):destroy()
  178.     end
  179.     if character.Torso:findFirstChild("HeadWeldtaser") then
  180.         character.Torso:findFirstChild("HeadWeldtaser"):destroy()
  181.     end
  182.     if character:findFirstChild("HumanoidRootPart") then
  183.         if character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldtaser") then
  184.             character.HumanoidRootPart:findFirstChild("HumanoidRootPartWeldtaser"):destroy()
  185.         end
  186.     end
  187. end)
  188. tool.Equipped:connect(function()
  189.     equipped = true
  190.     cananimate = true
  191.     owner = game:GetService("Players"):GetPlayerFromCharacter(tool.Parent)
  192.     character = owner.Character
  193.     local grip = character["Right Arm"]:WaitForChild("RightGrip")
  194.     grip.C0 = CFrame.new(-0.0220470428, -0.865621328, -0.352151394, 0.999763012, 0.0217338428, 0.00124904688, -0.00107799959, -0.00787999574, 0.999968231, 0.0217429996, -0.999732733, -0.00785470288) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0)
  195.     local rightarm = Instance.new("Weld", character.Torso)
  196.     rightarm.Part0 = character.Torso
  197.     rightarm.Part1 = character["Right Arm"]
  198.     rightarm.C0 = CFrame.new(1.5,0,0)
  199.     rightarm.Name = "RightArmWeldtaser"
  200.     local leftarm = Instance.new("Weld", character.Torso)
  201.     leftarm.Part0 = character.Torso
  202.     leftarm.Part1 = character["Left Arm"]
  203.     leftarm.C0 = CFrame.new(-1.5,0,0)
  204.     leftarm.Name = "LeftArmWeldtaser"
  205.     local leftleg = Instance.new("Weld", character.Torso)
  206.     leftleg.Part0 = character.Torso
  207.     leftleg.Part1 = character["Left Leg"]
  208.     leftleg.C0 = CFrame.new(-0.5,-2,0)
  209.     leftleg.Name = "LeftLegWeldtaser"
  210.     local rightleg = Instance.new("Weld", character.Torso)
  211.     rightleg.Part0 = character.Torso
  212.     rightleg.Part1 = character["Right Leg"]
  213.     rightleg.C0 = CFrame.new(0.5,-2,0)
  214.     rightleg.Name = "RightLegWeldtaser"
  215.     local head = Instance.new("Weld", character.Torso)
  216.     head.Part0 = character.Torso
  217.     head.Part1 = character.Head
  218.     head.C0 = CFrame.new(0,1.5,0)
  219.     head.Name = "HeadWeldtaser"
  220.     local humanoidrootpart = Instance.new("Weld", character.HumanoidRootPart)
  221.     humanoidrootpart.Part0 = character.HumanoidRootPart
  222.     humanoidrootpart.Part1 = character.Torso
  223.     humanoidrootpart.Name = "HumanoidRootPartWeldtaser"
  224.     local rootpart = character.HumanoidRootPart
  225.     local humanoid = character:findFirstChildOfClass("Humanoid")
  226.     coroutine.wrap(function()
  227.         while equipped and runservice.Stepped:wait() do
  228.             if rootpart.Velocity.x >= 2 or rootpart.Velocity.x <= -2 or rootpart.Velocity.z >= 2 or rootpart.Velocity.z <= -2 then
  229.                 if humanoid.FloorMaterial == Enum.Material.Air then
  230.                     if rootpart.Velocity.x >= 18 or rootpart.Velocity.x <= -18 or rootpart.Velocity.z >= 18 or rootpart.Velocity.z <= -18 then
  231.                         if rootpart.Velocity.y >= 3 then
  232.                             anim = "jumprun"
  233.                             --print("jumping (running)")
  234.                         elseif rootpart.Velocity.y <= -3 then
  235.                             anim = "fallrun"
  236.                             --("falling (running)")
  237.                         end
  238.                     else
  239.                         if rootpart.Velocity.y >= 3 then
  240.                             anim = "jump"
  241.                             --print("jumping (walking)")
  242.                         elseif rootpart.Velocity.y <= -3 then
  243.                             anim = "fall"
  244.                             --print("falling (walking)")
  245.                         end
  246.                     end
  247.                 else
  248.                     if rootpart.Velocity.x >= 18 or rootpart.Velocity.x <= -18 or rootpart.Velocity.z >= 18 or rootpart.Velocity.z <= -18 then
  249.                         anim = "walk"
  250.                         --print("running")
  251.                     else
  252.                         anim = "walk"
  253.                         --print("walking")
  254.                     end
  255.                 end
  256.             elseif rootpart.Velocity.x <= 2 or rootpart.Velocity.x >= -2 or rootpart.Velocity.z <= 2 or rootpart.Velocity.z >= -2 then
  257.                 if humanoid.FloorMaterial == Enum.Material.Air then
  258.                     if rootpart.Velocity.y >= 3 then
  259.                         anim = "jump"
  260.                         --print("jumping (standing)")
  261.                     elseif rootpart.Velocity.y < -3 then
  262.                         anim = "fall"
  263.                         --print("falling (standing)")
  264.                     end
  265.                 else
  266.                     anim = "idle"
  267.                     --print("standing")
  268.                 end
  269.             end
  270.             if cananimate then
  271.                 local absvel = rootpart.CFrame:vectorToObjectSpace(rootpart.Velocity)
  272.                 if anim == "idle" then
  273.                     rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1,0) * CFrame.new(0,-math.sin(tick())/20,0) * CFrame.fromEulerAnglesXYZ(math.rad(2),0,0) * CFrame.new(0,-1,0),1.5)
  274.                     leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1,0) * CFrame.new(0,-math.sin(tick())/20,0) * CFrame.fromEulerAnglesXYZ(math.rad(-2),0,0) * CFrame.new(0,-1,0),1.5)
  275.                     grip.C0 = grip.C0:lerp(CFrame.new(-0.0220470428, -0.865621328, -0.352151394, 0.999763012, 0.0217338428, 0.00124904688, -0.00107799959, -0.00787999574, 0.999968231, 0.0217429996, -0.999732733, -0.00785470288) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0),0.15)
  276.                     rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ((math.pi - math.rad(15)) + math.sin(tick())/20,0,0) * CFrame.new(0,-0.5,0),0.15)
  277.                     leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-5) + math.sin(tick())/20) * CFrame.new(0,-0.5,0),0.15)
  278.                     head.C0 = head.C0:lerp(CFrame.new(0, 1.5, 0) * CFrame.fromEulerAnglesXYZ(0,math.rad(30),0),0.15)
  279.                     humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.sin(tick())/20,0) * CFrame.fromEulerAnglesXYZ(0,math.rad(-30),0),0.15)
  280.                 elseif anim == "walk" then
  281.                     rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5,-1-math.cos(tick()*9.5)/2.5,math.cos(tick()*9.5)/1.5) * CFrame.fromEulerAnglesXYZ((absvel.z/20)*math.sin(tick()*9.5),0,(-absvel.x/20)*math.sin(tick()*9.5)) * CFrame.fromEulerAnglesXYZ(math.rad(2),0,0) * CFrame.new(0,-1,0),0.3)
  282.                     leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5,-1+math.cos(tick()*9.5)/2.5,-math.cos(tick()*9.5)/1.5) * CFrame.fromEulerAnglesXYZ((absvel.z/20)*-math.sin(tick()*9.5),0,(-absvel.x/20)*-math.sin(tick()*9.5)) * CFrame.fromEulerAnglesXYZ(math.rad(-2),0,0) * CFrame.new(0,-1,0),0.3)
  283.                     grip.C0 = grip.C0:lerp(CFrame.new(-0.0220470428, -0.865621328, -0.352151394, 0.999763012, 0.0217338428, 0.00124904688, -0.00107799959, -0.00787999574, 0.999968231, 0.0217429996, -0.999732733, -0.00785470288) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0),0.3)
  284.                     rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ((-absvel.z/15)*math.sin(tick()*9.5),0,math.rad(5) + (absvel.x/30)*math.sin(tick()*9.5)) * CFrame.new(0,-0.5,0),0.3)
  285.                     leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ((-absvel.z/15)*-math.sin(tick()*9.5),0,math.rad(-5) + (-absvel.x/30)*math.sin(tick()*9.5)) * CFrame.new(0,-0.5,0),0.3)
  286.                     head.C0 = head.C0:lerp(CFrame.new(0, 1.5, 0) * CFrame.fromEulerAnglesXYZ(-absvel.z/60,0,absvel.x/120),0.3)
  287.                     humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,math.sin(tick()*19)/12,0) * CFrame.fromEulerAnglesXYZ(absvel.z/60,0,(math.sin(tick()*9.5)/17)+(-absvel.x/60)),0.3)
  288.                 elseif anim == "jump" then
  289.                     head.C0 = head.C0:lerp(CFrame.new(0,1.5,0), 0.3)
  290.                     grip.C0 = grip.C0:lerp(CFrame.new(-0.0220470428, -0.865621328, -0.352151394, 0.999763012, 0.0217338428, 0.00124904688, -0.00107799959, -0.00787999574, 0.999968231, 0.0217429996, -0.999732733, -0.00785470288) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0),0.3)
  291.                     humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(),0.3)
  292.                     leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-5)) * CFrame.new(0,-0.5,0),0.3)
  293.                     rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(5)) * CFrame.new(0,-0.5,0),0.3)
  294.                     leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 1),0.3)
  295.                     rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -1.19999981, -0.600000024, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 1),0.3)
  296.                 elseif anim == "fall" then
  297.                     head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.fromEulerAnglesXYZ(math.rad(-15),0,0) * CFrame.new(0,0.5,0), 0.3)
  298.                     grip.C0 = grip.C0:lerp(CFrame.new(-0.0220470428, -0.865621328, -0.352151394, 0.999763012, 0.0217338428, 0.00124904688, -0.00107799959, -0.00787999574, 0.999968231, 0.0217429996, -0.999732733, -0.00785470288) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0),0.15)
  299.                     humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(),0.15)
  300.                     leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-40)) * CFrame.new(0,-0.5,0),0.15)
  301.                     rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(40)) * CFrame.new(0,-0.5,0),0.15)
  302.                     leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.19999981, -0.600000024, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 1),0.15)
  303.                     rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 1),0.15)
  304.                 elseif anim == "jumprun" then
  305.                     head.C0 = head.C0:lerp(CFrame.new(0,1.5,0), 0.3)
  306.                     grip.C0 = grip.C0:lerp(CFrame.new(-0.0220470428, -0.865621328, -0.352151394, 0.999763012, 0.0217338428, 0.00124904688, -0.00107799959, -0.00787999574, 0.999968231, 0.0217429996, -0.999732733, -0.00785470288) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0),0.3)
  307.                     humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(math.rad(-20),0,0),0.3)
  308.                     leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-5)) * CFrame.new(0,-0.5,0),0.3)
  309.                     rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(5)) * CFrame.new(0,-0.5,0),0.3)
  310.                     leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -2, 0, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 1),0.3)
  311.                     rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -1.19999981, -0.600000024, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 1),0.3)
  312.                 elseif anim == "fallrun" then
  313.                     head.C0 = head.C0:lerp(CFrame.new(0,1,0) * CFrame.fromEulerAnglesXYZ(math.rad(-15),0,0) * CFrame.new(0,0.5,0), 0.3)
  314.                     grip.C0 = grip.C0:lerp(CFrame.new(-0.0220470428, -0.865621328, -0.352151394, 0.999763012, 0.0217338428, 0.00124904688, -0.00107799959, -0.00787999574, 0.999968231, 0.0217429996, -0.999732733, -0.00785470288) * CFrame.fromEulerAnglesXYZ(0,-math.pi/2,0),0.15)
  315.                     humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.Angles(math.rad(-10),0,0),0.15)
  316.                     leftarm.C0 = leftarm.C0:lerp(CFrame.new(-1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(-40)) * CFrame.new(0,-0.5,0),0.15)
  317.                     rightarm.C0 = rightarm.C0:lerp(CFrame.new(1.5,0.5,0) * CFrame.fromEulerAnglesXYZ(0,0,math.rad(40)) * CFrame.new(0,-0.5,0),0.15)
  318.                     leftleg.C0 = leftleg.C0:lerp(CFrame.new(-0.5, -1.19999981, -0.600000024, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 1),0.15)
  319.                     rightleg.C0 = rightleg.C0:lerp(CFrame.new(0.5, -2, 0, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 1),0.15)
  320.                 end
  321.             end
  322.         end
  323.     end)()
  324. end)
  325. end)()
  326. Tool0.Parent = owner.Character
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement