humanoid.Running:Connect(function(T)if humanoid.MoveDirection.Magnitude>0 and(T>0 and humanoid:GetState()~=Enum.HumanoidStateType.Climbing)then getSoundProperties()update()currentSound.Playing=true currentSound.Looped=true else currentSound:Stop()end end)serverSound.Changed:Connect(function(T)if T~=0 then serverSound.Volume=0 end end)
-- check if the player is moving and not climbing
humanoid.Running:Connect(function(speed)
	if
		humanoid.MoveDirection.Magnitude > 0
		and speed > 0
		and humanoid:GetState() ~= Enum.HumanoidStateType.Climbing
	then
		getSoundProperties()
		update()
		currentSound.Playing = true
		currentSound.Looped = true
	else
		currentSound:Stop()
	end
end)

serverSound.Changed:Connect(function(Volume)
	if Volume ~= 0 then
		serverSound.Volume = 0
	end
end)
