sprint:

local Player = game.Players.LocalPlayer
	local Character = workspace:WaitForChild(Player.Name)
		local Humanoid = Character:WaitForChild('Humanoid')
		
local RunAnimation = Instance.new('Animation')
RunAnimation.AnimationId = 'rbxassetid://5206135020'
RAnimation = Humanoid:LoadAnimation(RunAnimation)

Running = false

function Handler(BindName, InputState)
	if InputState == Enum.UserInputState.Begin and BindName == 'RunBind' then
		Running = true
		Humanoid.WalkSpeed = 22
	elseif InputState == Enum.UserInputState.End and BindName == 'RunBind' then
		Running = false
		if RAnimation.IsPlaying then
			RAnimation:Stop()
		end
		Humanoid.WalkSpeed = 16
	end
end

Humanoid.Running:connect(function(Speed)
	if Speed >= 10 and Running and not RAnimation.IsPlaying then
		RAnimation:Play()
		Humanoid.WalkSpeed = 22
	elseif Speed >= 10 and not Running and RAnimation.IsPlaying then
		RAnimation:Stop()
		Humanoid.WalkSpeed = 16
	elseif Speed < 10 and RAnimation.IsPlaying then
		RAnimation:Stop()
		Humanoid.WalkSpeed = 16
	end
end)

Humanoid.Changed:connect(function()
	if Humanoid.Jump and RAnimation.IsPlaying then
		RAnimation:Stop()
	end
end)

game:GetService('ContextActionService'):BindAction('RunBind', Handler, true, Enum.KeyCode.LeftShift)

Weapon Attack:

local animations = {"5208638411"}
local tool = script.Parent
local enabled = true
local char
local blade 

tool.Activated:Connect(function(plr)
	if enabled then
		enabled = false
		local char = tool.Parent
		local random = animations[math.random(1,#animations)]
		local sound = script.Parent.Handle.Sound
		local anim = Instance.new("Animation")
		anim.AnimationId = "http://www.roblox.com/asset/?id="..random
		anim.Name = "AttackAnim"
		
		local track = char.Humanoid:LoadAnimation(anim)
		track:Play()
		
		local dmg = script.Damage:Clone()
		dmg.Parent = tool.Handle
		dmg.Disabled = false
		
		sound:Play()
		
		wait(track.length + 1)
		
		enabled = true
		if dmg then
			dmg:Destroy()
		end
	end
end)